Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSat, 19 Dec 2009 15:14:52 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/19/t1261260945ndwnw8sd61c59tf.htm/, Retrieved Fri, 03 May 2024 15:32:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69757, Retrieved Fri, 03 May 2024 15:32:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact110
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:14:11] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-12-19 22:14:52] [7cc673c2b3a8ab442a3ec6ca430f2445] [Current]
Feedback Forum

Post a new message
Dataseries X:
19915	23322	20858	19761
19843	22558	21968	20858
19761	19185	23061	21968
20858	17869	22661	23061
21968	21515	22269	22661
23061	17686	21857	22269
22661	18044	21568	21857
22269	20398	21274	21568
21857	22894	20987	21274
21568	22016	19683	20987
21274	25325	19381	19683
20987	27683	19071	19381
19683	17333	20772	19071
19381	20190	22485	20772
19071	22589	24181	22485
20772	14588	23479	24181
22485	14296	22782	23479
24181	12237	22067	22782
23479	7607	21489	22067
22782	9303	20903	21489
22067	9226	20330	20903
21489	9351	19736	20330
20903	21266	19483	19736
20330	21377	19242	19483
19736	22034	20334	19242
19483	22483	21423	20334
19242	15122	22523	21423
20334	18982	21986	22523
21423	19653	21462	21986
22523	16653	20908	21462
21986	23528	20575	20908
21462	24612	20237	20575
20908	24733	19904	20237
20575	21839	19610	19904
20237	22421	19251	19610
19904	26543	18941	19251
19610	27067	20450	18941
19251	31403	21946	20450
18941	25762	23409	21946
20450	29359	22741	23409
21946	34174	22069	22741
23409	20163	21539	22069
22741	25226	21189	21539
22069	25077	20960	21189
21539	29764	20704	20960
21189	21372	19697	20704
20960	34136	19598	19697
20704	29126	19456	19598
19697	17279	20316	19456
19598	16163	21083	20316
19456	8058	22158	21083
20316	17888	21469	22158
21083	7642	20892	21469
22158	7458	20578	20892
21469	4639	20233	20578
20892	10276	19947	20233
20578	3129	20049	19947




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69757&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69757&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69757&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
X[t] = + 9900.68216907901 -0.00471812005872899Y[t] -0.56526794567411X1[t] + 1.11839925045814X2[t] + 117.241170415241M1[t] -790.09409085441M2[t] -1676.42406361342M3[t] -2187.26848383598M4[t] -600.875914435188M5[t] + 1023.58767688915M6[t] + 785.650338535605M7[t] + 457.358804732008M8[t] + 193.922136287785M9[t] -216.611067566657M10[t] + 212.757644255395M11[t] -6.13384599065014t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
X[t] =  +  9900.68216907901 -0.00471812005872899Y[t] -0.56526794567411X1[t] +  1.11839925045814X2[t] +  117.241170415241M1[t] -790.09409085441M2[t] -1676.42406361342M3[t] -2187.26848383598M4[t] -600.875914435188M5[t] +  1023.58767688915M6[t] +  785.650338535605M7[t] +  457.358804732008M8[t] +  193.922136287785M9[t] -216.611067566657M10[t] +  212.757644255395M11[t] -6.13384599065014t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69757&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]X[t] =  +  9900.68216907901 -0.00471812005872899Y[t] -0.56526794567411X1[t] +  1.11839925045814X2[t] +  117.241170415241M1[t] -790.09409085441M2[t] -1676.42406361342M3[t] -2187.26848383598M4[t] -600.875914435188M5[t] +  1023.58767688915M6[t] +  785.650338535605M7[t] +  457.358804732008M8[t] +  193.922136287785M9[t] -216.611067566657M10[t] +  212.757644255395M11[t] -6.13384599065014t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69757&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69757&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Estimated Regression Equation
X[t] = + 9900.68216907901 -0.00471812005872899Y[t] -0.56526794567411X1[t] + 1.11839925045814X2[t] + 117.241170415241M1[t] -790.09409085441M2[t] -1676.42406361342M3[t] -2187.26848383598M4[t] -600.875914435188M5[t] + 1023.58767688915M6[t] + 785.650338535605M7[t] + 457.358804732008M8[t] + 193.922136287785M9[t] -216.611067566657M10[t] + 212.757644255395M11[t] -6.13384599065014t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)9900.682169079012342.985324.22570.000136.5e-05
Y-0.004718120058728990.007216-0.65380.5168850.258442
X1-0.565267945674110.216706-2.60850.0126330.006317
X21.118399250458140.2117785.2815e-062e-06
M1117.241170415241393.9906290.29760.7675310.383766
M2-790.09409085441447.69196-1.76480.0850430.042522
M3-1676.42406361342563.017217-2.97760.004860.00243
M4-2187.26848383598484.977155-4.515.3e-052.7e-05
M5-600.875914435188426.212172-1.40980.1661380.083069
M61023.58767688915386.5068182.64830.0114320.005716
M7785.650338535605342.9663852.29080.0271910.013596
M8457.358804732008307.1476161.48910.1441260.072063
M9193.922136287785284.7913640.68090.4997460.249873
M10-216.611067566657278.867676-0.77680.4417630.220882
M11212.757644255395232.9461720.91330.3664070.183203
t-6.133845990650143.388652-1.81010.0776120.038806

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 9900.68216907901 & 2342.98532 & 4.2257 & 0.00013 & 6.5e-05 \tabularnewline
Y & -0.00471812005872899 & 0.007216 & -0.6538 & 0.516885 & 0.258442 \tabularnewline
X1 & -0.56526794567411 & 0.216706 & -2.6085 & 0.012633 & 0.006317 \tabularnewline
X2 & 1.11839925045814 & 0.211778 & 5.281 & 5e-06 & 2e-06 \tabularnewline
M1 & 117.241170415241 & 393.990629 & 0.2976 & 0.767531 & 0.383766 \tabularnewline
M2 & -790.09409085441 & 447.69196 & -1.7648 & 0.085043 & 0.042522 \tabularnewline
M3 & -1676.42406361342 & 563.017217 & -2.9776 & 0.00486 & 0.00243 \tabularnewline
M4 & -2187.26848383598 & 484.977155 & -4.51 & 5.3e-05 & 2.7e-05 \tabularnewline
M5 & -600.875914435188 & 426.212172 & -1.4098 & 0.166138 & 0.083069 \tabularnewline
M6 & 1023.58767688915 & 386.506818 & 2.6483 & 0.011432 & 0.005716 \tabularnewline
M7 & 785.650338535605 & 342.966385 & 2.2908 & 0.027191 & 0.013596 \tabularnewline
M8 & 457.358804732008 & 307.147616 & 1.4891 & 0.144126 & 0.072063 \tabularnewline
M9 & 193.922136287785 & 284.791364 & 0.6809 & 0.499746 & 0.249873 \tabularnewline
M10 & -216.611067566657 & 278.867676 & -0.7768 & 0.441763 & 0.220882 \tabularnewline
M11 & 212.757644255395 & 232.946172 & 0.9133 & 0.366407 & 0.183203 \tabularnewline
t & -6.13384599065014 & 3.388652 & -1.8101 & 0.077612 & 0.038806 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69757&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]9900.68216907901[/C][C]2342.98532[/C][C]4.2257[/C][C]0.00013[/C][C]6.5e-05[/C][/ROW]
[ROW][C]Y[/C][C]-0.00471812005872899[/C][C]0.007216[/C][C]-0.6538[/C][C]0.516885[/C][C]0.258442[/C][/ROW]
[ROW][C]X1[/C][C]-0.56526794567411[/C][C]0.216706[/C][C]-2.6085[/C][C]0.012633[/C][C]0.006317[/C][/ROW]
[ROW][C]X2[/C][C]1.11839925045814[/C][C]0.211778[/C][C]5.281[/C][C]5e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M1[/C][C]117.241170415241[/C][C]393.990629[/C][C]0.2976[/C][C]0.767531[/C][C]0.383766[/C][/ROW]
[ROW][C]M2[/C][C]-790.09409085441[/C][C]447.69196[/C][C]-1.7648[/C][C]0.085043[/C][C]0.042522[/C][/ROW]
[ROW][C]M3[/C][C]-1676.42406361342[/C][C]563.017217[/C][C]-2.9776[/C][C]0.00486[/C][C]0.00243[/C][/ROW]
[ROW][C]M4[/C][C]-2187.26848383598[/C][C]484.977155[/C][C]-4.51[/C][C]5.3e-05[/C][C]2.7e-05[/C][/ROW]
[ROW][C]M5[/C][C]-600.875914435188[/C][C]426.212172[/C][C]-1.4098[/C][C]0.166138[/C][C]0.083069[/C][/ROW]
[ROW][C]M6[/C][C]1023.58767688915[/C][C]386.506818[/C][C]2.6483[/C][C]0.011432[/C][C]0.005716[/C][/ROW]
[ROW][C]M7[/C][C]785.650338535605[/C][C]342.966385[/C][C]2.2908[/C][C]0.027191[/C][C]0.013596[/C][/ROW]
[ROW][C]M8[/C][C]457.358804732008[/C][C]307.147616[/C][C]1.4891[/C][C]0.144126[/C][C]0.072063[/C][/ROW]
[ROW][C]M9[/C][C]193.922136287785[/C][C]284.791364[/C][C]0.6809[/C][C]0.499746[/C][C]0.249873[/C][/ROW]
[ROW][C]M10[/C][C]-216.611067566657[/C][C]278.867676[/C][C]-0.7768[/C][C]0.441763[/C][C]0.220882[/C][/ROW]
[ROW][C]M11[/C][C]212.757644255395[/C][C]232.946172[/C][C]0.9133[/C][C]0.366407[/C][C]0.183203[/C][/ROW]
[ROW][C]t[/C][C]-6.13384599065014[/C][C]3.388652[/C][C]-1.8101[/C][C]0.077612[/C][C]0.038806[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69757&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69757&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)9900.682169079012342.985324.22570.000136.5e-05
Y-0.004718120058728990.007216-0.65380.5168850.258442
X1-0.565267945674110.216706-2.60850.0126330.006317
X21.118399250458140.2117785.2815e-062e-06
M1117.241170415241393.9906290.29760.7675310.383766
M2-790.09409085441447.69196-1.76480.0850430.042522
M3-1676.42406361342563.017217-2.97760.004860.00243
M4-2187.26848383598484.977155-4.515.3e-052.7e-05
M5-600.875914435188426.212172-1.40980.1661380.083069
M61023.58767688915386.5068182.64830.0114320.005716
M7785.650338535605342.9663852.29080.0271910.013596
M8457.358804732008307.1476161.48910.1441260.072063
M9193.922136287785284.7913640.68090.4997460.249873
M10-216.611067566657278.867676-0.77680.4417630.220882
M11212.757644255395232.9461720.91330.3664070.183203
t-6.133845990650143.388652-1.81010.0776120.038806







Multiple Linear Regression - Regression Statistics
Multiple R0.974951444117692
R-squared0.950530318387173
Adjusted R-squared0.93243165438248
F-TEST (value)52.5193637574966
F-TEST (DF numerator)15
F-TEST (DF denominator)41
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation326.7935313191
Sum Squared Residuals4378554.49659231

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.974951444117692 \tabularnewline
R-squared & 0.950530318387173 \tabularnewline
Adjusted R-squared & 0.93243165438248 \tabularnewline
F-TEST (value) & 52.5193637574966 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 41 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 326.7935313191 \tabularnewline
Sum Squared Residuals & 4378554.49659231 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69757&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.974951444117692[/C][/ROW]
[ROW][C]R-squared[/C][C]0.950530318387173[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.93243165438248[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]52.5193637574966[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]41[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]326.7935313191[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]4378554.49659231[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69757&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69757&T=3

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Regression Statistics
Multiple R0.974951444117692
R-squared0.950530318387173
Adjusted R-squared0.93243165438248
F-TEST (value)52.5193637574966
F-TEST (DF numerator)15
F-TEST (DF denominator)41
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation326.7935313191
Sum Squared Residuals4378554.49659231







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11991520212.0822749267-297.082274926661
21984319901.6543694456-58.6543694455693
31976119648.6900730407112.309926959266
42085820586.4384118452271.561588154798
52196821923.720204042244.2797959577834
62306123354.5935185189-293.593518518917
72266122811.4151923048-150.415192304763
82226922308.8547505381-39.8547505380529
92185721860.9303292104-3.93032921036739
102156821864.5346050544-296.534605054392
112127420984.4755086076289.524491392376
122098720591.9351807837395.06481921629
131968319443.6505045825239.349495417539
141938119450.7948624039-69.7948624039197
151907119504.1357538049-433.135753804873
162077221318.5303928218-546.53039282179
172248522509.0422916023-24.0422916023209
182418123761.7289497246419.271050275406
192347923066.5720697744412.427930225621
202278222408.9570077607373.042992239250
212206721808.2663606732258.733639326807
222148921085.9359350387403.064064961334
232090320931.6380358537-28.6380358537261
242033020565.4973988227-235.497398822712
251973619786.6981023322-50.6981023321769
261948319476.82574782676.17425217330837
271924219215.234054336726.7659456632720
282033420213.8319070278120.16809297222
292142321486.5447779157-63.5447779157272
302252322846.146118089-323.146118088991
312198622138.2788994967-152.278899496704
322146221617.3726927941-155.372692794082
332090821157.4465650867-249.446565086729
342057520548.195580317226.8044196827740
352023720842.8063131368-605.80631313676
361990420378.1944642531-474.194464253134
371961019287.1363961027322.863603897305
381925119195.233142480655.7668575193872
391894119175.5225131464-234.522513146397
402045020655.3902602125-205.390260212509
412194621845.7005957268100.299404273165
422340923078.1636361028330.83636389722
432274122415.2967881444325.703211855635
442206921819.5810301379249.418969862111
452153921416.4918527254122.508147274589
462118921322.3338795897-133.333879589717
472096020615.0801424019344.919857598110
482070420389.3729561404314.627043859556
491969719911.432722056-214.432722056006
501959819531.491877843266.5081221567936
511945618927.4176056713528.582394328732
522031619955.8090280927360.190971907281
532108321139.9921307129-56.9921307129004
542215822291.3677775647-133.367777564716
552146921904.4370502798-435.43705027979
562089221319.2345187692-427.234518769225
572057820705.8648923043-127.864892304300

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 19915 & 20212.0822749267 & -297.082274926661 \tabularnewline
2 & 19843 & 19901.6543694456 & -58.6543694455693 \tabularnewline
3 & 19761 & 19648.6900730407 & 112.309926959266 \tabularnewline
4 & 20858 & 20586.4384118452 & 271.561588154798 \tabularnewline
5 & 21968 & 21923.7202040422 & 44.2797959577834 \tabularnewline
6 & 23061 & 23354.5935185189 & -293.593518518917 \tabularnewline
7 & 22661 & 22811.4151923048 & -150.415192304763 \tabularnewline
8 & 22269 & 22308.8547505381 & -39.8547505380529 \tabularnewline
9 & 21857 & 21860.9303292104 & -3.93032921036739 \tabularnewline
10 & 21568 & 21864.5346050544 & -296.534605054392 \tabularnewline
11 & 21274 & 20984.4755086076 & 289.524491392376 \tabularnewline
12 & 20987 & 20591.9351807837 & 395.06481921629 \tabularnewline
13 & 19683 & 19443.6505045825 & 239.349495417539 \tabularnewline
14 & 19381 & 19450.7948624039 & -69.7948624039197 \tabularnewline
15 & 19071 & 19504.1357538049 & -433.135753804873 \tabularnewline
16 & 20772 & 21318.5303928218 & -546.53039282179 \tabularnewline
17 & 22485 & 22509.0422916023 & -24.0422916023209 \tabularnewline
18 & 24181 & 23761.7289497246 & 419.271050275406 \tabularnewline
19 & 23479 & 23066.5720697744 & 412.427930225621 \tabularnewline
20 & 22782 & 22408.9570077607 & 373.042992239250 \tabularnewline
21 & 22067 & 21808.2663606732 & 258.733639326807 \tabularnewline
22 & 21489 & 21085.9359350387 & 403.064064961334 \tabularnewline
23 & 20903 & 20931.6380358537 & -28.6380358537261 \tabularnewline
24 & 20330 & 20565.4973988227 & -235.497398822712 \tabularnewline
25 & 19736 & 19786.6981023322 & -50.6981023321769 \tabularnewline
26 & 19483 & 19476.8257478267 & 6.17425217330837 \tabularnewline
27 & 19242 & 19215.2340543367 & 26.7659456632720 \tabularnewline
28 & 20334 & 20213.8319070278 & 120.16809297222 \tabularnewline
29 & 21423 & 21486.5447779157 & -63.5447779157272 \tabularnewline
30 & 22523 & 22846.146118089 & -323.146118088991 \tabularnewline
31 & 21986 & 22138.2788994967 & -152.278899496704 \tabularnewline
32 & 21462 & 21617.3726927941 & -155.372692794082 \tabularnewline
33 & 20908 & 21157.4465650867 & -249.446565086729 \tabularnewline
34 & 20575 & 20548.1955803172 & 26.8044196827740 \tabularnewline
35 & 20237 & 20842.8063131368 & -605.80631313676 \tabularnewline
36 & 19904 & 20378.1944642531 & -474.194464253134 \tabularnewline
37 & 19610 & 19287.1363961027 & 322.863603897305 \tabularnewline
38 & 19251 & 19195.2331424806 & 55.7668575193872 \tabularnewline
39 & 18941 & 19175.5225131464 & -234.522513146397 \tabularnewline
40 & 20450 & 20655.3902602125 & -205.390260212509 \tabularnewline
41 & 21946 & 21845.7005957268 & 100.299404273165 \tabularnewline
42 & 23409 & 23078.1636361028 & 330.83636389722 \tabularnewline
43 & 22741 & 22415.2967881444 & 325.703211855635 \tabularnewline
44 & 22069 & 21819.5810301379 & 249.418969862111 \tabularnewline
45 & 21539 & 21416.4918527254 & 122.508147274589 \tabularnewline
46 & 21189 & 21322.3338795897 & -133.333879589717 \tabularnewline
47 & 20960 & 20615.0801424019 & 344.919857598110 \tabularnewline
48 & 20704 & 20389.3729561404 & 314.627043859556 \tabularnewline
49 & 19697 & 19911.432722056 & -214.432722056006 \tabularnewline
50 & 19598 & 19531.4918778432 & 66.5081221567936 \tabularnewline
51 & 19456 & 18927.4176056713 & 528.582394328732 \tabularnewline
52 & 20316 & 19955.8090280927 & 360.190971907281 \tabularnewline
53 & 21083 & 21139.9921307129 & -56.9921307129004 \tabularnewline
54 & 22158 & 22291.3677775647 & -133.367777564716 \tabularnewline
55 & 21469 & 21904.4370502798 & -435.43705027979 \tabularnewline
56 & 20892 & 21319.2345187692 & -427.234518769225 \tabularnewline
57 & 20578 & 20705.8648923043 & -127.864892304300 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69757&T=4

[TABLE]
[ROW][C]Multiple Linear Regression - Actuals, Interpolation, and Residuals[/C][/ROW]
[ROW][C]Time or Index[/C][C]Actuals[/C][C]InterpolationForecast[/C][C]ResidualsPrediction Error[/C][/ROW]
[ROW][C]1[/C][C]19915[/C][C]20212.0822749267[/C][C]-297.082274926661[/C][/ROW]
[ROW][C]2[/C][C]19843[/C][C]19901.6543694456[/C][C]-58.6543694455693[/C][/ROW]
[ROW][C]3[/C][C]19761[/C][C]19648.6900730407[/C][C]112.309926959266[/C][/ROW]
[ROW][C]4[/C][C]20858[/C][C]20586.4384118452[/C][C]271.561588154798[/C][/ROW]
[ROW][C]5[/C][C]21968[/C][C]21923.7202040422[/C][C]44.2797959577834[/C][/ROW]
[ROW][C]6[/C][C]23061[/C][C]23354.5935185189[/C][C]-293.593518518917[/C][/ROW]
[ROW][C]7[/C][C]22661[/C][C]22811.4151923048[/C][C]-150.415192304763[/C][/ROW]
[ROW][C]8[/C][C]22269[/C][C]22308.8547505381[/C][C]-39.8547505380529[/C][/ROW]
[ROW][C]9[/C][C]21857[/C][C]21860.9303292104[/C][C]-3.93032921036739[/C][/ROW]
[ROW][C]10[/C][C]21568[/C][C]21864.5346050544[/C][C]-296.534605054392[/C][/ROW]
[ROW][C]11[/C][C]21274[/C][C]20984.4755086076[/C][C]289.524491392376[/C][/ROW]
[ROW][C]12[/C][C]20987[/C][C]20591.9351807837[/C][C]395.06481921629[/C][/ROW]
[ROW][C]13[/C][C]19683[/C][C]19443.6505045825[/C][C]239.349495417539[/C][/ROW]
[ROW][C]14[/C][C]19381[/C][C]19450.7948624039[/C][C]-69.7948624039197[/C][/ROW]
[ROW][C]15[/C][C]19071[/C][C]19504.1357538049[/C][C]-433.135753804873[/C][/ROW]
[ROW][C]16[/C][C]20772[/C][C]21318.5303928218[/C][C]-546.53039282179[/C][/ROW]
[ROW][C]17[/C][C]22485[/C][C]22509.0422916023[/C][C]-24.0422916023209[/C][/ROW]
[ROW][C]18[/C][C]24181[/C][C]23761.7289497246[/C][C]419.271050275406[/C][/ROW]
[ROW][C]19[/C][C]23479[/C][C]23066.5720697744[/C][C]412.427930225621[/C][/ROW]
[ROW][C]20[/C][C]22782[/C][C]22408.9570077607[/C][C]373.042992239250[/C][/ROW]
[ROW][C]21[/C][C]22067[/C][C]21808.2663606732[/C][C]258.733639326807[/C][/ROW]
[ROW][C]22[/C][C]21489[/C][C]21085.9359350387[/C][C]403.064064961334[/C][/ROW]
[ROW][C]23[/C][C]20903[/C][C]20931.6380358537[/C][C]-28.6380358537261[/C][/ROW]
[ROW][C]24[/C][C]20330[/C][C]20565.4973988227[/C][C]-235.497398822712[/C][/ROW]
[ROW][C]25[/C][C]19736[/C][C]19786.6981023322[/C][C]-50.6981023321769[/C][/ROW]
[ROW][C]26[/C][C]19483[/C][C]19476.8257478267[/C][C]6.17425217330837[/C][/ROW]
[ROW][C]27[/C][C]19242[/C][C]19215.2340543367[/C][C]26.7659456632720[/C][/ROW]
[ROW][C]28[/C][C]20334[/C][C]20213.8319070278[/C][C]120.16809297222[/C][/ROW]
[ROW][C]29[/C][C]21423[/C][C]21486.5447779157[/C][C]-63.5447779157272[/C][/ROW]
[ROW][C]30[/C][C]22523[/C][C]22846.146118089[/C][C]-323.146118088991[/C][/ROW]
[ROW][C]31[/C][C]21986[/C][C]22138.2788994967[/C][C]-152.278899496704[/C][/ROW]
[ROW][C]32[/C][C]21462[/C][C]21617.3726927941[/C][C]-155.372692794082[/C][/ROW]
[ROW][C]33[/C][C]20908[/C][C]21157.4465650867[/C][C]-249.446565086729[/C][/ROW]
[ROW][C]34[/C][C]20575[/C][C]20548.1955803172[/C][C]26.8044196827740[/C][/ROW]
[ROW][C]35[/C][C]20237[/C][C]20842.8063131368[/C][C]-605.80631313676[/C][/ROW]
[ROW][C]36[/C][C]19904[/C][C]20378.1944642531[/C][C]-474.194464253134[/C][/ROW]
[ROW][C]37[/C][C]19610[/C][C]19287.1363961027[/C][C]322.863603897305[/C][/ROW]
[ROW][C]38[/C][C]19251[/C][C]19195.2331424806[/C][C]55.7668575193872[/C][/ROW]
[ROW][C]39[/C][C]18941[/C][C]19175.5225131464[/C][C]-234.522513146397[/C][/ROW]
[ROW][C]40[/C][C]20450[/C][C]20655.3902602125[/C][C]-205.390260212509[/C][/ROW]
[ROW][C]41[/C][C]21946[/C][C]21845.7005957268[/C][C]100.299404273165[/C][/ROW]
[ROW][C]42[/C][C]23409[/C][C]23078.1636361028[/C][C]330.83636389722[/C][/ROW]
[ROW][C]43[/C][C]22741[/C][C]22415.2967881444[/C][C]325.703211855635[/C][/ROW]
[ROW][C]44[/C][C]22069[/C][C]21819.5810301379[/C][C]249.418969862111[/C][/ROW]
[ROW][C]45[/C][C]21539[/C][C]21416.4918527254[/C][C]122.508147274589[/C][/ROW]
[ROW][C]46[/C][C]21189[/C][C]21322.3338795897[/C][C]-133.333879589717[/C][/ROW]
[ROW][C]47[/C][C]20960[/C][C]20615.0801424019[/C][C]344.919857598110[/C][/ROW]
[ROW][C]48[/C][C]20704[/C][C]20389.3729561404[/C][C]314.627043859556[/C][/ROW]
[ROW][C]49[/C][C]19697[/C][C]19911.432722056[/C][C]-214.432722056006[/C][/ROW]
[ROW][C]50[/C][C]19598[/C][C]19531.4918778432[/C][C]66.5081221567936[/C][/ROW]
[ROW][C]51[/C][C]19456[/C][C]18927.4176056713[/C][C]528.582394328732[/C][/ROW]
[ROW][C]52[/C][C]20316[/C][C]19955.8090280927[/C][C]360.190971907281[/C][/ROW]
[ROW][C]53[/C][C]21083[/C][C]21139.9921307129[/C][C]-56.9921307129004[/C][/ROW]
[ROW][C]54[/C][C]22158[/C][C]22291.3677775647[/C][C]-133.367777564716[/C][/ROW]
[ROW][C]55[/C][C]21469[/C][C]21904.4370502798[/C][C]-435.43705027979[/C][/ROW]
[ROW][C]56[/C][C]20892[/C][C]21319.2345187692[/C][C]-427.234518769225[/C][/ROW]
[ROW][C]57[/C][C]20578[/C][C]20705.8648923043[/C][C]-127.864892304300[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69757&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69757&T=4

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11991520212.0822749267-297.082274926661
21984319901.6543694456-58.6543694455693
31976119648.6900730407112.309926959266
42085820586.4384118452271.561588154798
52196821923.720204042244.2797959577834
62306123354.5935185189-293.593518518917
72266122811.4151923048-150.415192304763
82226922308.8547505381-39.8547505380529
92185721860.9303292104-3.93032921036739
102156821864.5346050544-296.534605054392
112127420984.4755086076289.524491392376
122098720591.9351807837395.06481921629
131968319443.6505045825239.349495417539
141938119450.7948624039-69.7948624039197
151907119504.1357538049-433.135753804873
162077221318.5303928218-546.53039282179
172248522509.0422916023-24.0422916023209
182418123761.7289497246419.271050275406
192347923066.5720697744412.427930225621
202278222408.9570077607373.042992239250
212206721808.2663606732258.733639326807
222148921085.9359350387403.064064961334
232090320931.6380358537-28.6380358537261
242033020565.4973988227-235.497398822712
251973619786.6981023322-50.6981023321769
261948319476.82574782676.17425217330837
271924219215.234054336726.7659456632720
282033420213.8319070278120.16809297222
292142321486.5447779157-63.5447779157272
302252322846.146118089-323.146118088991
312198622138.2788994967-152.278899496704
322146221617.3726927941-155.372692794082
332090821157.4465650867-249.446565086729
342057520548.195580317226.8044196827740
352023720842.8063131368-605.80631313676
361990420378.1944642531-474.194464253134
371961019287.1363961027322.863603897305
381925119195.233142480655.7668575193872
391894119175.5225131464-234.522513146397
402045020655.3902602125-205.390260212509
412194621845.7005957268100.299404273165
422340923078.1636361028330.83636389722
432274122415.2967881444325.703211855635
442206921819.5810301379249.418969862111
452153921416.4918527254122.508147274589
462118921322.3338795897-133.333879589717
472096020615.0801424019344.919857598110
482070420389.3729561404314.627043859556
491969719911.432722056-214.432722056006
501959819531.491877843266.5081221567936
511945618927.4176056713528.582394328732
522031619955.8090280927360.190971907281
532108321139.9921307129-56.9921307129004
542215822291.3677775647-133.367777564716
552146921904.4370502798-435.43705027979
562089221319.2345187692-427.234518769225
572057820705.8648923043-127.864892304300







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.2472910586591350.4945821173182690.752708941340865
200.3189938752422510.6379877504845020.681006124757749
210.432586402016740.865172804033480.56741359798326
220.4516852972212570.9033705944425130.548314702778743
230.4517919941971550.903583988394310.548208005802845
240.5655752645370420.8688494709259170.434424735462958
250.4543043582264090.9086087164528180.545695641773591
260.3519405264869390.7038810529738770.648059473513061
270.2855499260935680.5710998521871360.714450073906432
280.2493545104313200.4987090208626390.75064548956868
290.2258205824747280.4516411649494550.774179417525272
300.2131758451096890.4263516902193780.78682415489031
310.1390909946882370.2781819893764750.860909005311763
320.08695664798571040.1739132959714210.91304335201429
330.04978509035083870.09957018070167740.950214909649161
340.03477067250713970.06954134501427940.96522932749286
350.03338473420562530.06676946841125050.966615265794375
360.1434960514343000.2869921028686000.8565039485657
370.1762231327168850.3524462654337690.823776867283115
380.120644628048030.241289256096060.87935537195197

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.247291058659135 & 0.494582117318269 & 0.752708941340865 \tabularnewline
20 & 0.318993875242251 & 0.637987750484502 & 0.681006124757749 \tabularnewline
21 & 0.43258640201674 & 0.86517280403348 & 0.56741359798326 \tabularnewline
22 & 0.451685297221257 & 0.903370594442513 & 0.548314702778743 \tabularnewline
23 & 0.451791994197155 & 0.90358398839431 & 0.548208005802845 \tabularnewline
24 & 0.565575264537042 & 0.868849470925917 & 0.434424735462958 \tabularnewline
25 & 0.454304358226409 & 0.908608716452818 & 0.545695641773591 \tabularnewline
26 & 0.351940526486939 & 0.703881052973877 & 0.648059473513061 \tabularnewline
27 & 0.285549926093568 & 0.571099852187136 & 0.714450073906432 \tabularnewline
28 & 0.249354510431320 & 0.498709020862639 & 0.75064548956868 \tabularnewline
29 & 0.225820582474728 & 0.451641164949455 & 0.774179417525272 \tabularnewline
30 & 0.213175845109689 & 0.426351690219378 & 0.78682415489031 \tabularnewline
31 & 0.139090994688237 & 0.278181989376475 & 0.860909005311763 \tabularnewline
32 & 0.0869566479857104 & 0.173913295971421 & 0.91304335201429 \tabularnewline
33 & 0.0497850903508387 & 0.0995701807016774 & 0.950214909649161 \tabularnewline
34 & 0.0347706725071397 & 0.0695413450142794 & 0.96522932749286 \tabularnewline
35 & 0.0333847342056253 & 0.0667694684112505 & 0.966615265794375 \tabularnewline
36 & 0.143496051434300 & 0.286992102868600 & 0.8565039485657 \tabularnewline
37 & 0.176223132716885 & 0.352446265433769 & 0.823776867283115 \tabularnewline
38 & 0.12064462804803 & 0.24128925609606 & 0.87935537195197 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69757&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]19[/C][C]0.247291058659135[/C][C]0.494582117318269[/C][C]0.752708941340865[/C][/ROW]
[ROW][C]20[/C][C]0.318993875242251[/C][C]0.637987750484502[/C][C]0.681006124757749[/C][/ROW]
[ROW][C]21[/C][C]0.43258640201674[/C][C]0.86517280403348[/C][C]0.56741359798326[/C][/ROW]
[ROW][C]22[/C][C]0.451685297221257[/C][C]0.903370594442513[/C][C]0.548314702778743[/C][/ROW]
[ROW][C]23[/C][C]0.451791994197155[/C][C]0.90358398839431[/C][C]0.548208005802845[/C][/ROW]
[ROW][C]24[/C][C]0.565575264537042[/C][C]0.868849470925917[/C][C]0.434424735462958[/C][/ROW]
[ROW][C]25[/C][C]0.454304358226409[/C][C]0.908608716452818[/C][C]0.545695641773591[/C][/ROW]
[ROW][C]26[/C][C]0.351940526486939[/C][C]0.703881052973877[/C][C]0.648059473513061[/C][/ROW]
[ROW][C]27[/C][C]0.285549926093568[/C][C]0.571099852187136[/C][C]0.714450073906432[/C][/ROW]
[ROW][C]28[/C][C]0.249354510431320[/C][C]0.498709020862639[/C][C]0.75064548956868[/C][/ROW]
[ROW][C]29[/C][C]0.225820582474728[/C][C]0.451641164949455[/C][C]0.774179417525272[/C][/ROW]
[ROW][C]30[/C][C]0.213175845109689[/C][C]0.426351690219378[/C][C]0.78682415489031[/C][/ROW]
[ROW][C]31[/C][C]0.139090994688237[/C][C]0.278181989376475[/C][C]0.860909005311763[/C][/ROW]
[ROW][C]32[/C][C]0.0869566479857104[/C][C]0.173913295971421[/C][C]0.91304335201429[/C][/ROW]
[ROW][C]33[/C][C]0.0497850903508387[/C][C]0.0995701807016774[/C][C]0.950214909649161[/C][/ROW]
[ROW][C]34[/C][C]0.0347706725071397[/C][C]0.0695413450142794[/C][C]0.96522932749286[/C][/ROW]
[ROW][C]35[/C][C]0.0333847342056253[/C][C]0.0667694684112505[/C][C]0.966615265794375[/C][/ROW]
[ROW][C]36[/C][C]0.143496051434300[/C][C]0.286992102868600[/C][C]0.8565039485657[/C][/ROW]
[ROW][C]37[/C][C]0.176223132716885[/C][C]0.352446265433769[/C][C]0.823776867283115[/C][/ROW]
[ROW][C]38[/C][C]0.12064462804803[/C][C]0.24128925609606[/C][C]0.87935537195197[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69757&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69757&T=5

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.2472910586591350.4945821173182690.752708941340865
200.3189938752422510.6379877504845020.681006124757749
210.432586402016740.865172804033480.56741359798326
220.4516852972212570.9033705944425130.548314702778743
230.4517919941971550.903583988394310.548208005802845
240.5655752645370420.8688494709259170.434424735462958
250.4543043582264090.9086087164528180.545695641773591
260.3519405264869390.7038810529738770.648059473513061
270.2855499260935680.5710998521871360.714450073906432
280.2493545104313200.4987090208626390.75064548956868
290.2258205824747280.4516411649494550.774179417525272
300.2131758451096890.4263516902193780.78682415489031
310.1390909946882370.2781819893764750.860909005311763
320.08695664798571040.1739132959714210.91304335201429
330.04978509035083870.09957018070167740.950214909649161
340.03477067250713970.06954134501427940.96522932749286
350.03338473420562530.06676946841125050.966615265794375
360.1434960514343000.2869921028686000.8565039485657
370.1762231327168850.3524462654337690.823776867283115
380.120644628048030.241289256096060.87935537195197







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level30.15NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 3 & 0.15 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69757&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]3[/C][C]0.15[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69757&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69757&T=6

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level30.15NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}