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 computationFri, 20 Nov 2009 10:10:51 -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/Nov/20/t1258737153kiokvgq8ac31sxi.htm/, Retrieved Fri, 19 Apr 2024 23:44:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58340, Retrieved Fri, 19 Apr 2024 23:44:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact145
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-   PD    [Multiple Regression] [WS 7: model met s...] [2009-11-20 16:34:49] [b97b96148b0223bc16666763988dc147]
-             [Multiple Regression] [WS 7: Model 2: Se...] [2009-11-20 17:10:51] [b9056af0304697100f456398102f1287] [Current]
Feedback Forum

Post a new message
Dataseries X:
423	114
427	116
441	153
449	162
452	161
462	149
455	139
461	135
461	130
463	127
462	122
456	117
455	112
456	113
472	149
472	157
471	157
465	147
459	137
465	132
468	125
467	123
463	117
460	114
462	111
461	112
476	144
476	150
471	149
453	134
443	123
442	116
444	117
438	111
427	105
424	102
416	95
406	93
431	124
434	130
418	124
412	115
404	106
409	105
412	105
406	101
398	95
397	93
385	84
390	87
413	116
413	120
401	117
397	109
397	105
409	107
419	109
424	109
428	108
430	107




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=58340&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=58340&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58340&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
Y[t] = + 249.278046103183 + 1.72722283205269X[t] + 0.672557628979011M1[t] -1.25466520307351M2[t] -39.6530186608123M3[t] -48.85268935236M4[t] -51.2527991218441M5[t] -37.3987925356751M6[t] -28.3992316136114M7[t] -17.6175631174533M8[t] -10.9085620197585M9[t] -6.92689352360042M10[t] -2.63622392974752M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  249.278046103183 +  1.72722283205269X[t] +  0.672557628979011M1[t] -1.25466520307351M2[t] -39.6530186608123M3[t] -48.85268935236M4[t] -51.2527991218441M5[t] -37.3987925356751M6[t] -28.3992316136114M7[t] -17.6175631174533M8[t] -10.9085620197585M9[t] -6.92689352360042M10[t] -2.63622392974752M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58340&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  249.278046103183 +  1.72722283205269X[t] +  0.672557628979011M1[t] -1.25466520307351M2[t] -39.6530186608123M3[t] -48.85268935236M4[t] -51.2527991218441M5[t] -37.3987925356751M6[t] -28.3992316136114M7[t] -17.6175631174533M8[t] -10.9085620197585M9[t] -6.92689352360042M10[t] -2.63622392974752M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58340&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58340&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
Y[t] = + 249.278046103183 + 1.72722283205269X[t] + 0.672557628979011M1[t] -1.25466520307351M2[t] -39.6530186608123M3[t] -48.85268935236M4[t] -51.2527991218441M5[t] -37.3987925356751M6[t] -28.3992316136114M7[t] -17.6175631174533M8[t] -10.9085620197585M9[t] -6.92689352360042M10[t] -2.63622392974752M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)249.27804610318314.94808516.676300
X1.727222832052690.12911213.377800
M10.6725576289790118.2599520.08140.9354510.467725
M2-1.254665203073518.254097-0.1520.8798340.439917
M3-39.65301866081239.145656-4.33577.6e-053.8e-05
M4-48.852689352369.544759-5.11836e-063e-06
M5-51.25279912184419.40503-5.44952e-061e-06
M6-37.39879253567518.820238-4.24010.0001045.2e-05
M7-28.39923161361148.484545-3.34720.0016140.000807
M8-17.61756311745338.402217-2.09680.0414210.020711
M9-10.90856201975858.361048-1.30470.1983510.099176
M10-6.926893523600428.30644-0.83390.4085450.204273
M11-2.636223929747528.256197-0.31930.7509120.375456

\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) & 249.278046103183 & 14.948085 & 16.6763 & 0 & 0 \tabularnewline
X & 1.72722283205269 & 0.129112 & 13.3778 & 0 & 0 \tabularnewline
M1 & 0.672557628979011 & 8.259952 & 0.0814 & 0.935451 & 0.467725 \tabularnewline
M2 & -1.25466520307351 & 8.254097 & -0.152 & 0.879834 & 0.439917 \tabularnewline
M3 & -39.6530186608123 & 9.145656 & -4.3357 & 7.6e-05 & 3.8e-05 \tabularnewline
M4 & -48.85268935236 & 9.544759 & -5.1183 & 6e-06 & 3e-06 \tabularnewline
M5 & -51.2527991218441 & 9.40503 & -5.4495 & 2e-06 & 1e-06 \tabularnewline
M6 & -37.3987925356751 & 8.820238 & -4.2401 & 0.000104 & 5.2e-05 \tabularnewline
M7 & -28.3992316136114 & 8.484545 & -3.3472 & 0.001614 & 0.000807 \tabularnewline
M8 & -17.6175631174533 & 8.402217 & -2.0968 & 0.041421 & 0.020711 \tabularnewline
M9 & -10.9085620197585 & 8.361048 & -1.3047 & 0.198351 & 0.099176 \tabularnewline
M10 & -6.92689352360042 & 8.30644 & -0.8339 & 0.408545 & 0.204273 \tabularnewline
M11 & -2.63622392974752 & 8.256197 & -0.3193 & 0.750912 & 0.375456 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58340&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]249.278046103183[/C][C]14.948085[/C][C]16.6763[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]1.72722283205269[/C][C]0.129112[/C][C]13.3778[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.672557628979011[/C][C]8.259952[/C][C]0.0814[/C][C]0.935451[/C][C]0.467725[/C][/ROW]
[ROW][C]M2[/C][C]-1.25466520307351[/C][C]8.254097[/C][C]-0.152[/C][C]0.879834[/C][C]0.439917[/C][/ROW]
[ROW][C]M3[/C][C]-39.6530186608123[/C][C]9.145656[/C][C]-4.3357[/C][C]7.6e-05[/C][C]3.8e-05[/C][/ROW]
[ROW][C]M4[/C][C]-48.85268935236[/C][C]9.544759[/C][C]-5.1183[/C][C]6e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M5[/C][C]-51.2527991218441[/C][C]9.40503[/C][C]-5.4495[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M6[/C][C]-37.3987925356751[/C][C]8.820238[/C][C]-4.2401[/C][C]0.000104[/C][C]5.2e-05[/C][/ROW]
[ROW][C]M7[/C][C]-28.3992316136114[/C][C]8.484545[/C][C]-3.3472[/C][C]0.001614[/C][C]0.000807[/C][/ROW]
[ROW][C]M8[/C][C]-17.6175631174533[/C][C]8.402217[/C][C]-2.0968[/C][C]0.041421[/C][C]0.020711[/C][/ROW]
[ROW][C]M9[/C][C]-10.9085620197585[/C][C]8.361048[/C][C]-1.3047[/C][C]0.198351[/C][C]0.099176[/C][/ROW]
[ROW][C]M10[/C][C]-6.92689352360042[/C][C]8.30644[/C][C]-0.8339[/C][C]0.408545[/C][C]0.204273[/C][/ROW]
[ROW][C]M11[/C][C]-2.63622392974752[/C][C]8.256197[/C][C]-0.3193[/C][C]0.750912[/C][C]0.375456[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58340&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58340&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)249.27804610318314.94808516.676300
X1.727222832052690.12911213.377800
M10.6725576289790118.2599520.08140.9354510.467725
M2-1.254665203073518.254097-0.1520.8798340.439917
M3-39.65301866081239.145656-4.33577.6e-053.8e-05
M4-48.852689352369.544759-5.11836e-063e-06
M5-51.25279912184419.40503-5.44952e-061e-06
M6-37.39879253567518.820238-4.24010.0001045.2e-05
M7-28.39923161361148.484545-3.34720.0016140.000807
M8-17.61756311745338.402217-2.09680.0414210.020711
M9-10.90856201975858.361048-1.30470.1983510.099176
M10-6.926893523600428.30644-0.83390.4085450.204273
M11-2.636223929747528.256197-0.31930.7509120.375456







Multiple Linear Regression - Regression Statistics
Multiple R0.896840328544436
R-squared0.804322574903692
Adjusted R-squared0.75436238126208
F-TEST (value)16.0992685631585
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value8.59312621059871e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.0416734552831
Sum Squared Residuals7994.00658616908

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.896840328544436 \tabularnewline
R-squared & 0.804322574903692 \tabularnewline
Adjusted R-squared & 0.75436238126208 \tabularnewline
F-TEST (value) & 16.0992685631585 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 8.59312621059871e-13 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 13.0416734552831 \tabularnewline
Sum Squared Residuals & 7994.00658616908 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58340&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.896840328544436[/C][/ROW]
[ROW][C]R-squared[/C][C]0.804322574903692[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.75436238126208[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]16.0992685631585[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]8.59312621059871e-13[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]13.0416734552831[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]7994.00658616908[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58340&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58340&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.896840328544436
R-squared0.804322574903692
Adjusted R-squared0.75436238126208
F-TEST (value)16.0992685631585
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value8.59312621059871e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.0416734552831
Sum Squared Residuals7994.00658616908







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1423446.854006586170-23.8540065861696
2427448.381229418222-21.3812294182216
3441473.890120746433-32.8901207464325
4449480.235455543359-31.2354555433589
5452476.108122941822-24.1081229418222
6462469.235455543359-7.23545554335892
7455460.962788144896-5.9627881448957
8461464.835565312843-3.83556531284300
9461462.908452250274-1.90845225027441
10463461.7084522502741.29154774972559
11462457.3630076838644.63699231613612
12456451.3631174533484.63688254665204
13455443.39956092206411.6004390779365
14456443.19956092206412.8004390779363
15472466.9812294182225.01877058177828
16472471.5993413830950.400658616904519
17471469.1992316136111.80076838638860
18465465.781009879254-0.781009879253558
19459457.508342480791.49165751920967
20465459.6538968166855.34610318331505
21468454.27233809001113.7276619099890
22467454.79956092206412.2004390779363
23463448.726893523614.2731064763996
24460446.1814489571913.8185510428101
25462441.67233809001120.3276619099892
26461441.47233809001119.527661909989
27476458.34511525795817.6548847420417
28476459.50878155872716.4912184412733
29471455.3814489571915.6185510428101
30453443.3271130625699.6728869374314
31443433.3272228320539.67277716794731
32442432.0183315038429.98166849615806
33444440.4545554335893.54544456641054
34438434.0728869374313.9271130625686
35427428.000219538968-1.00021953896817
36424425.454774972558-1.45477497255762
37416414.0367727771681.96322722283220
38406408.65510428101-2.65510428100992
39431423.8006586169057.1993413830955
40434424.9643249176739.03567508232711
41418412.2008781558735.79912184412733
42412410.5098792535681.49012074643247
43404403.9644346871570.0355653128430213
44409413.018880351262-4.01888035126236
45412419.727881448957-7.72788144895719
46406416.800658616905-10.8006586169045
47398410.727991218441-12.7279912184413
48397409.909769484083-12.9097694840834
49385395.037321624588-10.0373216245882
50390398.291767288694-8.29176728869379
51413409.9828759604833.01712403951701
52413407.6920965971465.30790340285399
53401400.1103183315040.889681668496137
54397400.146542261251-3.1465422612514
55397402.237211855104-5.2372118551043
56409416.473326015368-7.47332601536774
57419426.636772777168-7.63677277716795
58424430.618441273326-6.61844127332602
59428433.181888035126-5.18188803512624
60430434.090889132821-4.09088913282107

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 423 & 446.854006586170 & -23.8540065861696 \tabularnewline
2 & 427 & 448.381229418222 & -21.3812294182216 \tabularnewline
3 & 441 & 473.890120746433 & -32.8901207464325 \tabularnewline
4 & 449 & 480.235455543359 & -31.2354555433589 \tabularnewline
5 & 452 & 476.108122941822 & -24.1081229418222 \tabularnewline
6 & 462 & 469.235455543359 & -7.23545554335892 \tabularnewline
7 & 455 & 460.962788144896 & -5.9627881448957 \tabularnewline
8 & 461 & 464.835565312843 & -3.83556531284300 \tabularnewline
9 & 461 & 462.908452250274 & -1.90845225027441 \tabularnewline
10 & 463 & 461.708452250274 & 1.29154774972559 \tabularnewline
11 & 462 & 457.363007683864 & 4.63699231613612 \tabularnewline
12 & 456 & 451.363117453348 & 4.63688254665204 \tabularnewline
13 & 455 & 443.399560922064 & 11.6004390779365 \tabularnewline
14 & 456 & 443.199560922064 & 12.8004390779363 \tabularnewline
15 & 472 & 466.981229418222 & 5.01877058177828 \tabularnewline
16 & 472 & 471.599341383095 & 0.400658616904519 \tabularnewline
17 & 471 & 469.199231613611 & 1.80076838638860 \tabularnewline
18 & 465 & 465.781009879254 & -0.781009879253558 \tabularnewline
19 & 459 & 457.50834248079 & 1.49165751920967 \tabularnewline
20 & 465 & 459.653896816685 & 5.34610318331505 \tabularnewline
21 & 468 & 454.272338090011 & 13.7276619099890 \tabularnewline
22 & 467 & 454.799560922064 & 12.2004390779363 \tabularnewline
23 & 463 & 448.7268935236 & 14.2731064763996 \tabularnewline
24 & 460 & 446.18144895719 & 13.8185510428101 \tabularnewline
25 & 462 & 441.672338090011 & 20.3276619099892 \tabularnewline
26 & 461 & 441.472338090011 & 19.527661909989 \tabularnewline
27 & 476 & 458.345115257958 & 17.6548847420417 \tabularnewline
28 & 476 & 459.508781558727 & 16.4912184412733 \tabularnewline
29 & 471 & 455.38144895719 & 15.6185510428101 \tabularnewline
30 & 453 & 443.327113062569 & 9.6728869374314 \tabularnewline
31 & 443 & 433.327222832053 & 9.67277716794731 \tabularnewline
32 & 442 & 432.018331503842 & 9.98166849615806 \tabularnewline
33 & 444 & 440.454555433589 & 3.54544456641054 \tabularnewline
34 & 438 & 434.072886937431 & 3.9271130625686 \tabularnewline
35 & 427 & 428.000219538968 & -1.00021953896817 \tabularnewline
36 & 424 & 425.454774972558 & -1.45477497255762 \tabularnewline
37 & 416 & 414.036772777168 & 1.96322722283220 \tabularnewline
38 & 406 & 408.65510428101 & -2.65510428100992 \tabularnewline
39 & 431 & 423.800658616905 & 7.1993413830955 \tabularnewline
40 & 434 & 424.964324917673 & 9.03567508232711 \tabularnewline
41 & 418 & 412.200878155873 & 5.79912184412733 \tabularnewline
42 & 412 & 410.509879253568 & 1.49012074643247 \tabularnewline
43 & 404 & 403.964434687157 & 0.0355653128430213 \tabularnewline
44 & 409 & 413.018880351262 & -4.01888035126236 \tabularnewline
45 & 412 & 419.727881448957 & -7.72788144895719 \tabularnewline
46 & 406 & 416.800658616905 & -10.8006586169045 \tabularnewline
47 & 398 & 410.727991218441 & -12.7279912184413 \tabularnewline
48 & 397 & 409.909769484083 & -12.9097694840834 \tabularnewline
49 & 385 & 395.037321624588 & -10.0373216245882 \tabularnewline
50 & 390 & 398.291767288694 & -8.29176728869379 \tabularnewline
51 & 413 & 409.982875960483 & 3.01712403951701 \tabularnewline
52 & 413 & 407.692096597146 & 5.30790340285399 \tabularnewline
53 & 401 & 400.110318331504 & 0.889681668496137 \tabularnewline
54 & 397 & 400.146542261251 & -3.1465422612514 \tabularnewline
55 & 397 & 402.237211855104 & -5.2372118551043 \tabularnewline
56 & 409 & 416.473326015368 & -7.47332601536774 \tabularnewline
57 & 419 & 426.636772777168 & -7.63677277716795 \tabularnewline
58 & 424 & 430.618441273326 & -6.61844127332602 \tabularnewline
59 & 428 & 433.181888035126 & -5.18188803512624 \tabularnewline
60 & 430 & 434.090889132821 & -4.09088913282107 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58340&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]423[/C][C]446.854006586170[/C][C]-23.8540065861696[/C][/ROW]
[ROW][C]2[/C][C]427[/C][C]448.381229418222[/C][C]-21.3812294182216[/C][/ROW]
[ROW][C]3[/C][C]441[/C][C]473.890120746433[/C][C]-32.8901207464325[/C][/ROW]
[ROW][C]4[/C][C]449[/C][C]480.235455543359[/C][C]-31.2354555433589[/C][/ROW]
[ROW][C]5[/C][C]452[/C][C]476.108122941822[/C][C]-24.1081229418222[/C][/ROW]
[ROW][C]6[/C][C]462[/C][C]469.235455543359[/C][C]-7.23545554335892[/C][/ROW]
[ROW][C]7[/C][C]455[/C][C]460.962788144896[/C][C]-5.9627881448957[/C][/ROW]
[ROW][C]8[/C][C]461[/C][C]464.835565312843[/C][C]-3.83556531284300[/C][/ROW]
[ROW][C]9[/C][C]461[/C][C]462.908452250274[/C][C]-1.90845225027441[/C][/ROW]
[ROW][C]10[/C][C]463[/C][C]461.708452250274[/C][C]1.29154774972559[/C][/ROW]
[ROW][C]11[/C][C]462[/C][C]457.363007683864[/C][C]4.63699231613612[/C][/ROW]
[ROW][C]12[/C][C]456[/C][C]451.363117453348[/C][C]4.63688254665204[/C][/ROW]
[ROW][C]13[/C][C]455[/C][C]443.399560922064[/C][C]11.6004390779365[/C][/ROW]
[ROW][C]14[/C][C]456[/C][C]443.199560922064[/C][C]12.8004390779363[/C][/ROW]
[ROW][C]15[/C][C]472[/C][C]466.981229418222[/C][C]5.01877058177828[/C][/ROW]
[ROW][C]16[/C][C]472[/C][C]471.599341383095[/C][C]0.400658616904519[/C][/ROW]
[ROW][C]17[/C][C]471[/C][C]469.199231613611[/C][C]1.80076838638860[/C][/ROW]
[ROW][C]18[/C][C]465[/C][C]465.781009879254[/C][C]-0.781009879253558[/C][/ROW]
[ROW][C]19[/C][C]459[/C][C]457.50834248079[/C][C]1.49165751920967[/C][/ROW]
[ROW][C]20[/C][C]465[/C][C]459.653896816685[/C][C]5.34610318331505[/C][/ROW]
[ROW][C]21[/C][C]468[/C][C]454.272338090011[/C][C]13.7276619099890[/C][/ROW]
[ROW][C]22[/C][C]467[/C][C]454.799560922064[/C][C]12.2004390779363[/C][/ROW]
[ROW][C]23[/C][C]463[/C][C]448.7268935236[/C][C]14.2731064763996[/C][/ROW]
[ROW][C]24[/C][C]460[/C][C]446.18144895719[/C][C]13.8185510428101[/C][/ROW]
[ROW][C]25[/C][C]462[/C][C]441.672338090011[/C][C]20.3276619099892[/C][/ROW]
[ROW][C]26[/C][C]461[/C][C]441.472338090011[/C][C]19.527661909989[/C][/ROW]
[ROW][C]27[/C][C]476[/C][C]458.345115257958[/C][C]17.6548847420417[/C][/ROW]
[ROW][C]28[/C][C]476[/C][C]459.508781558727[/C][C]16.4912184412733[/C][/ROW]
[ROW][C]29[/C][C]471[/C][C]455.38144895719[/C][C]15.6185510428101[/C][/ROW]
[ROW][C]30[/C][C]453[/C][C]443.327113062569[/C][C]9.6728869374314[/C][/ROW]
[ROW][C]31[/C][C]443[/C][C]433.327222832053[/C][C]9.67277716794731[/C][/ROW]
[ROW][C]32[/C][C]442[/C][C]432.018331503842[/C][C]9.98166849615806[/C][/ROW]
[ROW][C]33[/C][C]444[/C][C]440.454555433589[/C][C]3.54544456641054[/C][/ROW]
[ROW][C]34[/C][C]438[/C][C]434.072886937431[/C][C]3.9271130625686[/C][/ROW]
[ROW][C]35[/C][C]427[/C][C]428.000219538968[/C][C]-1.00021953896817[/C][/ROW]
[ROW][C]36[/C][C]424[/C][C]425.454774972558[/C][C]-1.45477497255762[/C][/ROW]
[ROW][C]37[/C][C]416[/C][C]414.036772777168[/C][C]1.96322722283220[/C][/ROW]
[ROW][C]38[/C][C]406[/C][C]408.65510428101[/C][C]-2.65510428100992[/C][/ROW]
[ROW][C]39[/C][C]431[/C][C]423.800658616905[/C][C]7.1993413830955[/C][/ROW]
[ROW][C]40[/C][C]434[/C][C]424.964324917673[/C][C]9.03567508232711[/C][/ROW]
[ROW][C]41[/C][C]418[/C][C]412.200878155873[/C][C]5.79912184412733[/C][/ROW]
[ROW][C]42[/C][C]412[/C][C]410.509879253568[/C][C]1.49012074643247[/C][/ROW]
[ROW][C]43[/C][C]404[/C][C]403.964434687157[/C][C]0.0355653128430213[/C][/ROW]
[ROW][C]44[/C][C]409[/C][C]413.018880351262[/C][C]-4.01888035126236[/C][/ROW]
[ROW][C]45[/C][C]412[/C][C]419.727881448957[/C][C]-7.72788144895719[/C][/ROW]
[ROW][C]46[/C][C]406[/C][C]416.800658616905[/C][C]-10.8006586169045[/C][/ROW]
[ROW][C]47[/C][C]398[/C][C]410.727991218441[/C][C]-12.7279912184413[/C][/ROW]
[ROW][C]48[/C][C]397[/C][C]409.909769484083[/C][C]-12.9097694840834[/C][/ROW]
[ROW][C]49[/C][C]385[/C][C]395.037321624588[/C][C]-10.0373216245882[/C][/ROW]
[ROW][C]50[/C][C]390[/C][C]398.291767288694[/C][C]-8.29176728869379[/C][/ROW]
[ROW][C]51[/C][C]413[/C][C]409.982875960483[/C][C]3.01712403951701[/C][/ROW]
[ROW][C]52[/C][C]413[/C][C]407.692096597146[/C][C]5.30790340285399[/C][/ROW]
[ROW][C]53[/C][C]401[/C][C]400.110318331504[/C][C]0.889681668496137[/C][/ROW]
[ROW][C]54[/C][C]397[/C][C]400.146542261251[/C][C]-3.1465422612514[/C][/ROW]
[ROW][C]55[/C][C]397[/C][C]402.237211855104[/C][C]-5.2372118551043[/C][/ROW]
[ROW][C]56[/C][C]409[/C][C]416.473326015368[/C][C]-7.47332601536774[/C][/ROW]
[ROW][C]57[/C][C]419[/C][C]426.636772777168[/C][C]-7.63677277716795[/C][/ROW]
[ROW][C]58[/C][C]424[/C][C]430.618441273326[/C][C]-6.61844127332602[/C][/ROW]
[ROW][C]59[/C][C]428[/C][C]433.181888035126[/C][C]-5.18188803512624[/C][/ROW]
[ROW][C]60[/C][C]430[/C][C]434.090889132821[/C][C]-4.09088913282107[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58340&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58340&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
1423446.854006586170-23.8540065861696
2427448.381229418222-21.3812294182216
3441473.890120746433-32.8901207464325
4449480.235455543359-31.2354555433589
5452476.108122941822-24.1081229418222
6462469.235455543359-7.23545554335892
7455460.962788144896-5.9627881448957
8461464.835565312843-3.83556531284300
9461462.908452250274-1.90845225027441
10463461.7084522502741.29154774972559
11462457.3630076838644.63699231613612
12456451.3631174533484.63688254665204
13455443.39956092206411.6004390779365
14456443.19956092206412.8004390779363
15472466.9812294182225.01877058177828
16472471.5993413830950.400658616904519
17471469.1992316136111.80076838638860
18465465.781009879254-0.781009879253558
19459457.508342480791.49165751920967
20465459.6538968166855.34610318331505
21468454.27233809001113.7276619099890
22467454.79956092206412.2004390779363
23463448.726893523614.2731064763996
24460446.1814489571913.8185510428101
25462441.67233809001120.3276619099892
26461441.47233809001119.527661909989
27476458.34511525795817.6548847420417
28476459.50878155872716.4912184412733
29471455.3814489571915.6185510428101
30453443.3271130625699.6728869374314
31443433.3272228320539.67277716794731
32442432.0183315038429.98166849615806
33444440.4545554335893.54544456641054
34438434.0728869374313.9271130625686
35427428.000219538968-1.00021953896817
36424425.454774972558-1.45477497255762
37416414.0367727771681.96322722283220
38406408.65510428101-2.65510428100992
39431423.8006586169057.1993413830955
40434424.9643249176739.03567508232711
41418412.2008781558735.79912184412733
42412410.5098792535681.49012074643247
43404403.9644346871570.0355653128430213
44409413.018880351262-4.01888035126236
45412419.727881448957-7.72788144895719
46406416.800658616905-10.8006586169045
47398410.727991218441-12.7279912184413
48397409.909769484083-12.9097694840834
49385395.037321624588-10.0373216245882
50390398.291767288694-8.29176728869379
51413409.9828759604833.01712403951701
52413407.6920965971465.30790340285399
53401400.1103183315040.889681668496137
54397400.146542261251-3.1465422612514
55397402.237211855104-5.2372118551043
56409416.473326015368-7.47332601536774
57419426.636772777168-7.63677277716795
58424430.618441273326-6.61844127332602
59428433.181888035126-5.18188803512624
60430434.090889132821-4.09088913282107







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.8227740926801150.3544518146397700.177225907319885
170.8430664067600730.3138671864798550.156933593239927
180.9105368225973230.1789263548053530.0894631774026766
190.955437759074870.0891244818502590.0445622409251295
200.9812811062160340.03743778756793090.0187188937839655
210.9937620319334170.01247593613316560.00623796806658282
220.9946327380489260.01073452390214830.00536726195107413
230.9985099079211720.002980184157655960.00149009207882798
240.999075069905150.001849860189700200.000924930094850099
250.999775299730060.0004494005398781310.000224700269939066
260.9999522658904449.54682191113312e-054.77341095556656e-05
270.9998926413877980.0002147172244032200.000107358612201610
280.999935179374950.0001296412500980836.48206250490413e-05
290.9999753979710884.92040578248489e-052.46020289124245e-05
300.9999989301197072.13976058567414e-061.06988029283707e-06
310.9999992293780571.54124388674602e-067.70621943373008e-07
320.9999997680554384.6388912463921e-072.31944562319605e-07
330.9999995581196878.83760626570498e-074.41880313285249e-07
340.9999999157685561.68462887994463e-078.42314439972317e-08
350.999999952272269.5455478169989e-084.77277390849945e-08
360.9999999770809324.58381359462264e-082.29190679731132e-08
370.999999977055494.58890186888941e-082.29445093444471e-08
380.999999892805152.1438970039435e-071.07194850197175e-07
390.9999990521443341.89571133181989e-069.47855665909943e-07
400.9999939274363941.21451272126162e-056.0725636063081e-06
410.9999547684488119.0463102376881e-054.52315511884405e-05
420.9997039129217870.0005921741564257520.000296087078212876
430.9994097900476420.001180419904716950.000590209952358475
440.9995348725648380.000930254870323650.000465127435161825

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.822774092680115 & 0.354451814639770 & 0.177225907319885 \tabularnewline
17 & 0.843066406760073 & 0.313867186479855 & 0.156933593239927 \tabularnewline
18 & 0.910536822597323 & 0.178926354805353 & 0.0894631774026766 \tabularnewline
19 & 0.95543775907487 & 0.089124481850259 & 0.0445622409251295 \tabularnewline
20 & 0.981281106216034 & 0.0374377875679309 & 0.0187188937839655 \tabularnewline
21 & 0.993762031933417 & 0.0124759361331656 & 0.00623796806658282 \tabularnewline
22 & 0.994632738048926 & 0.0107345239021483 & 0.00536726195107413 \tabularnewline
23 & 0.998509907921172 & 0.00298018415765596 & 0.00149009207882798 \tabularnewline
24 & 0.99907506990515 & 0.00184986018970020 & 0.000924930094850099 \tabularnewline
25 & 0.99977529973006 & 0.000449400539878131 & 0.000224700269939066 \tabularnewline
26 & 0.999952265890444 & 9.54682191113312e-05 & 4.77341095556656e-05 \tabularnewline
27 & 0.999892641387798 & 0.000214717224403220 & 0.000107358612201610 \tabularnewline
28 & 0.99993517937495 & 0.000129641250098083 & 6.48206250490413e-05 \tabularnewline
29 & 0.999975397971088 & 4.92040578248489e-05 & 2.46020289124245e-05 \tabularnewline
30 & 0.999998930119707 & 2.13976058567414e-06 & 1.06988029283707e-06 \tabularnewline
31 & 0.999999229378057 & 1.54124388674602e-06 & 7.70621943373008e-07 \tabularnewline
32 & 0.999999768055438 & 4.6388912463921e-07 & 2.31944562319605e-07 \tabularnewline
33 & 0.999999558119687 & 8.83760626570498e-07 & 4.41880313285249e-07 \tabularnewline
34 & 0.999999915768556 & 1.68462887994463e-07 & 8.42314439972317e-08 \tabularnewline
35 & 0.99999995227226 & 9.5455478169989e-08 & 4.77277390849945e-08 \tabularnewline
36 & 0.999999977080932 & 4.58381359462264e-08 & 2.29190679731132e-08 \tabularnewline
37 & 0.99999997705549 & 4.58890186888941e-08 & 2.29445093444471e-08 \tabularnewline
38 & 0.99999989280515 & 2.1438970039435e-07 & 1.07194850197175e-07 \tabularnewline
39 & 0.999999052144334 & 1.89571133181989e-06 & 9.47855665909943e-07 \tabularnewline
40 & 0.999993927436394 & 1.21451272126162e-05 & 6.0725636063081e-06 \tabularnewline
41 & 0.999954768448811 & 9.0463102376881e-05 & 4.52315511884405e-05 \tabularnewline
42 & 0.999703912921787 & 0.000592174156425752 & 0.000296087078212876 \tabularnewline
43 & 0.999409790047642 & 0.00118041990471695 & 0.000590209952358475 \tabularnewline
44 & 0.999534872564838 & 0.00093025487032365 & 0.000465127435161825 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58340&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]16[/C][C]0.822774092680115[/C][C]0.354451814639770[/C][C]0.177225907319885[/C][/ROW]
[ROW][C]17[/C][C]0.843066406760073[/C][C]0.313867186479855[/C][C]0.156933593239927[/C][/ROW]
[ROW][C]18[/C][C]0.910536822597323[/C][C]0.178926354805353[/C][C]0.0894631774026766[/C][/ROW]
[ROW][C]19[/C][C]0.95543775907487[/C][C]0.089124481850259[/C][C]0.0445622409251295[/C][/ROW]
[ROW][C]20[/C][C]0.981281106216034[/C][C]0.0374377875679309[/C][C]0.0187188937839655[/C][/ROW]
[ROW][C]21[/C][C]0.993762031933417[/C][C]0.0124759361331656[/C][C]0.00623796806658282[/C][/ROW]
[ROW][C]22[/C][C]0.994632738048926[/C][C]0.0107345239021483[/C][C]0.00536726195107413[/C][/ROW]
[ROW][C]23[/C][C]0.998509907921172[/C][C]0.00298018415765596[/C][C]0.00149009207882798[/C][/ROW]
[ROW][C]24[/C][C]0.99907506990515[/C][C]0.00184986018970020[/C][C]0.000924930094850099[/C][/ROW]
[ROW][C]25[/C][C]0.99977529973006[/C][C]0.000449400539878131[/C][C]0.000224700269939066[/C][/ROW]
[ROW][C]26[/C][C]0.999952265890444[/C][C]9.54682191113312e-05[/C][C]4.77341095556656e-05[/C][/ROW]
[ROW][C]27[/C][C]0.999892641387798[/C][C]0.000214717224403220[/C][C]0.000107358612201610[/C][/ROW]
[ROW][C]28[/C][C]0.99993517937495[/C][C]0.000129641250098083[/C][C]6.48206250490413e-05[/C][/ROW]
[ROW][C]29[/C][C]0.999975397971088[/C][C]4.92040578248489e-05[/C][C]2.46020289124245e-05[/C][/ROW]
[ROW][C]30[/C][C]0.999998930119707[/C][C]2.13976058567414e-06[/C][C]1.06988029283707e-06[/C][/ROW]
[ROW][C]31[/C][C]0.999999229378057[/C][C]1.54124388674602e-06[/C][C]7.70621943373008e-07[/C][/ROW]
[ROW][C]32[/C][C]0.999999768055438[/C][C]4.6388912463921e-07[/C][C]2.31944562319605e-07[/C][/ROW]
[ROW][C]33[/C][C]0.999999558119687[/C][C]8.83760626570498e-07[/C][C]4.41880313285249e-07[/C][/ROW]
[ROW][C]34[/C][C]0.999999915768556[/C][C]1.68462887994463e-07[/C][C]8.42314439972317e-08[/C][/ROW]
[ROW][C]35[/C][C]0.99999995227226[/C][C]9.5455478169989e-08[/C][C]4.77277390849945e-08[/C][/ROW]
[ROW][C]36[/C][C]0.999999977080932[/C][C]4.58381359462264e-08[/C][C]2.29190679731132e-08[/C][/ROW]
[ROW][C]37[/C][C]0.99999997705549[/C][C]4.58890186888941e-08[/C][C]2.29445093444471e-08[/C][/ROW]
[ROW][C]38[/C][C]0.99999989280515[/C][C]2.1438970039435e-07[/C][C]1.07194850197175e-07[/C][/ROW]
[ROW][C]39[/C][C]0.999999052144334[/C][C]1.89571133181989e-06[/C][C]9.47855665909943e-07[/C][/ROW]
[ROW][C]40[/C][C]0.999993927436394[/C][C]1.21451272126162e-05[/C][C]6.0725636063081e-06[/C][/ROW]
[ROW][C]41[/C][C]0.999954768448811[/C][C]9.0463102376881e-05[/C][C]4.52315511884405e-05[/C][/ROW]
[ROW][C]42[/C][C]0.999703912921787[/C][C]0.000592174156425752[/C][C]0.000296087078212876[/C][/ROW]
[ROW][C]43[/C][C]0.999409790047642[/C][C]0.00118041990471695[/C][C]0.000590209952358475[/C][/ROW]
[ROW][C]44[/C][C]0.999534872564838[/C][C]0.00093025487032365[/C][C]0.000465127435161825[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58340&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58340&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
160.8227740926801150.3544518146397700.177225907319885
170.8430664067600730.3138671864798550.156933593239927
180.9105368225973230.1789263548053530.0894631774026766
190.955437759074870.0891244818502590.0445622409251295
200.9812811062160340.03743778756793090.0187188937839655
210.9937620319334170.01247593613316560.00623796806658282
220.9946327380489260.01073452390214830.00536726195107413
230.9985099079211720.002980184157655960.00149009207882798
240.999075069905150.001849860189700200.000924930094850099
250.999775299730060.0004494005398781310.000224700269939066
260.9999522658904449.54682191113312e-054.77341095556656e-05
270.9998926413877980.0002147172244032200.000107358612201610
280.999935179374950.0001296412500980836.48206250490413e-05
290.9999753979710884.92040578248489e-052.46020289124245e-05
300.9999989301197072.13976058567414e-061.06988029283707e-06
310.9999992293780571.54124388674602e-067.70621943373008e-07
320.9999997680554384.6388912463921e-072.31944562319605e-07
330.9999995581196878.83760626570498e-074.41880313285249e-07
340.9999999157685561.68462887994463e-078.42314439972317e-08
350.999999952272269.5455478169989e-084.77277390849945e-08
360.9999999770809324.58381359462264e-082.29190679731132e-08
370.999999977055494.58890186888941e-082.29445093444471e-08
380.999999892805152.1438970039435e-071.07194850197175e-07
390.9999990521443341.89571133181989e-069.47855665909943e-07
400.9999939274363941.21451272126162e-056.0725636063081e-06
410.9999547684488119.0463102376881e-054.52315511884405e-05
420.9997039129217870.0005921741564257520.000296087078212876
430.9994097900476420.001180419904716950.000590209952358475
440.9995348725648380.000930254870323650.000465127435161825







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level220.758620689655172NOK
5% type I error level250.862068965517241NOK
10% type I error level260.896551724137931NOK

\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 & 22 & 0.758620689655172 & NOK \tabularnewline
5% type I error level & 25 & 0.862068965517241 & NOK \tabularnewline
10% type I error level & 26 & 0.896551724137931 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58340&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]22[/C][C]0.758620689655172[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]25[/C][C]0.862068965517241[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]26[/C][C]0.896551724137931[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58340&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58340&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 level220.758620689655172NOK
5% type I error level250.862068965517241NOK
10% type I error level260.896551724137931NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}