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 computationWed, 18 Nov 2009 10:28:08 -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/18/t1258565480gi68vrup5hhc781.htm/, Retrieved Sat, 04 May 2024 14:48:16 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57546, Retrieved Sat, 04 May 2024 14:48:16 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact195
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-18 17:28:08] [faa1ded5041cd5a0e2be04844f08502a] [Current]
Feedback Forum

Post a new message
Dataseries X:
24	24
22	23
25	24
24	24
29	27
26	28
26	25
21	19
23	19
22	19
21	20
16	16
19	22
16	21
25	25
27	29
23	28
22	25
23	26
20	24
24	28
23	28
20	28
21	28
22	32
17	31
21	22
19	29
23	31
22	29
15	32
23	32
21	31
18	29
18	28
18	28
18	29
10	22
13	26
10	24
9	27
9	27
6	23
11	21
9	19
10	17
9	19
16	21
10	13
7	8
7	5
14	10
11	6
10	6
6	8
8	11
13	12
12	13
15	19
16	19
16	18




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57546&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
s[t] = + 5.62124967044556 + 0.52583706828368consv[t] + 0.451164425696457M1[t] -2.26382810440284M2[t] + 1.85167413656736M3[t] + 0.979330345373056M4[t] + 0.863828104402849M5[t] + 0.0844977590297924M6[t] -2.41033482731347M7[t] -0.274162931716319M8[t] + 0.915502240970207M9[t] + 0.231004481940417M10[t] -1.01033482731347M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
s[t] =  +  5.62124967044556 +  0.52583706828368consv[t] +  0.451164425696457M1[t] -2.26382810440284M2[t] +  1.85167413656736M3[t] +  0.979330345373056M4[t] +  0.863828104402849M5[t] +  0.0844977590297924M6[t] -2.41033482731347M7[t] -0.274162931716319M8[t] +  0.915502240970207M9[t] +  0.231004481940417M10[t] -1.01033482731347M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57546&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]s[t] =  +  5.62124967044556 +  0.52583706828368consv[t] +  0.451164425696457M1[t] -2.26382810440284M2[t] +  1.85167413656736M3[t] +  0.979330345373056M4[t] +  0.863828104402849M5[t] +  0.0844977590297924M6[t] -2.41033482731347M7[t] -0.274162931716319M8[t] +  0.915502240970207M9[t] +  0.231004481940417M10[t] -1.01033482731347M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57546&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57546&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
s[t] = + 5.62124967044556 + 0.52583706828368consv[t] + 0.451164425696457M1[t] -2.26382810440284M2[t] + 1.85167413656736M3[t] + 0.979330345373056M4[t] + 0.863828104402849M5[t] + 0.0844977590297924M6[t] -2.41033482731347M7[t] -0.274162931716319M8[t] + 0.915502240970207M9[t] + 0.231004481940417M10[t] -1.01033482731347M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)5.621249670445563.2124571.74980.0865390.043269
consv0.525837068283680.0964815.45022e-061e-06
M10.4511644256964573.2187290.14020.8891130.444557
M2-2.263828104402843.364022-0.6730.5042040.252102
M31.851674136567363.3668430.550.5848880.292444
M40.9793303453730563.3621950.29130.7720940.386047
M50.8638281044028493.3640220.25680.7984430.399221
M60.08449775902979243.3618070.02510.9800520.490026
M7-2.410334827313473.36153-0.7170.4768270.238414
M8-0.2741629317163193.362693-0.08150.9353590.467679
M90.9155022409702073.3618070.27230.7865410.39327
M100.2310044819404173.3633020.06870.9455270.472763
M11-1.010334827313473.36153-0.30060.765050.382525

\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) & 5.62124967044556 & 3.212457 & 1.7498 & 0.086539 & 0.043269 \tabularnewline
consv & 0.52583706828368 & 0.096481 & 5.4502 & 2e-06 & 1e-06 \tabularnewline
M1 & 0.451164425696457 & 3.218729 & 0.1402 & 0.889113 & 0.444557 \tabularnewline
M2 & -2.26382810440284 & 3.364022 & -0.673 & 0.504204 & 0.252102 \tabularnewline
M3 & 1.85167413656736 & 3.366843 & 0.55 & 0.584888 & 0.292444 \tabularnewline
M4 & 0.979330345373056 & 3.362195 & 0.2913 & 0.772094 & 0.386047 \tabularnewline
M5 & 0.863828104402849 & 3.364022 & 0.2568 & 0.798443 & 0.399221 \tabularnewline
M6 & 0.0844977590297924 & 3.361807 & 0.0251 & 0.980052 & 0.490026 \tabularnewline
M7 & -2.41033482731347 & 3.36153 & -0.717 & 0.476827 & 0.238414 \tabularnewline
M8 & -0.274162931716319 & 3.362693 & -0.0815 & 0.935359 & 0.467679 \tabularnewline
M9 & 0.915502240970207 & 3.361807 & 0.2723 & 0.786541 & 0.39327 \tabularnewline
M10 & 0.231004481940417 & 3.363302 & 0.0687 & 0.945527 & 0.472763 \tabularnewline
M11 & -1.01033482731347 & 3.36153 & -0.3006 & 0.76505 & 0.382525 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57546&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]5.62124967044556[/C][C]3.212457[/C][C]1.7498[/C][C]0.086539[/C][C]0.043269[/C][/ROW]
[ROW][C]consv[/C][C]0.52583706828368[/C][C]0.096481[/C][C]5.4502[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M1[/C][C]0.451164425696457[/C][C]3.218729[/C][C]0.1402[/C][C]0.889113[/C][C]0.444557[/C][/ROW]
[ROW][C]M2[/C][C]-2.26382810440284[/C][C]3.364022[/C][C]-0.673[/C][C]0.504204[/C][C]0.252102[/C][/ROW]
[ROW][C]M3[/C][C]1.85167413656736[/C][C]3.366843[/C][C]0.55[/C][C]0.584888[/C][C]0.292444[/C][/ROW]
[ROW][C]M4[/C][C]0.979330345373056[/C][C]3.362195[/C][C]0.2913[/C][C]0.772094[/C][C]0.386047[/C][/ROW]
[ROW][C]M5[/C][C]0.863828104402849[/C][C]3.364022[/C][C]0.2568[/C][C]0.798443[/C][C]0.399221[/C][/ROW]
[ROW][C]M6[/C][C]0.0844977590297924[/C][C]3.361807[/C][C]0.0251[/C][C]0.980052[/C][C]0.490026[/C][/ROW]
[ROW][C]M7[/C][C]-2.41033482731347[/C][C]3.36153[/C][C]-0.717[/C][C]0.476827[/C][C]0.238414[/C][/ROW]
[ROW][C]M8[/C][C]-0.274162931716319[/C][C]3.362693[/C][C]-0.0815[/C][C]0.935359[/C][C]0.467679[/C][/ROW]
[ROW][C]M9[/C][C]0.915502240970207[/C][C]3.361807[/C][C]0.2723[/C][C]0.786541[/C][C]0.39327[/C][/ROW]
[ROW][C]M10[/C][C]0.231004481940417[/C][C]3.363302[/C][C]0.0687[/C][C]0.945527[/C][C]0.472763[/C][/ROW]
[ROW][C]M11[/C][C]-1.01033482731347[/C][C]3.36153[/C][C]-0.3006[/C][C]0.76505[/C][C]0.382525[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57546&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57546&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)5.621249670445563.2124571.74980.0865390.043269
consv0.525837068283680.0964815.45022e-061e-06
M10.4511644256964573.2187290.14020.8891130.444557
M2-2.263828104402843.364022-0.6730.5042040.252102
M31.851674136567363.3668430.550.5848880.292444
M40.9793303453730563.3621950.29130.7720940.386047
M50.8638281044028493.3640220.25680.7984430.399221
M60.08449775902979243.3618070.02510.9800520.490026
M7-2.410334827313473.36153-0.7170.4768270.238414
M8-0.2741629317163193.362693-0.08150.9353590.467679
M90.9155022409702073.3618070.27230.7865410.39327
M100.2310044819404173.3633020.06870.9455270.472763
M11-1.010334827313473.36153-0.30060.765050.382525







Multiple Linear Regression - Regression Statistics
Multiple R0.641168960890293
R-squared0.411097636409138
Adjusted R-squared0.263872045511423
F-TEST (value)2.79229741176415
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.00574383023303948
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.31469603077929
Sum Squared Residuals1355.80770717989

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.641168960890293 \tabularnewline
R-squared & 0.411097636409138 \tabularnewline
Adjusted R-squared & 0.263872045511423 \tabularnewline
F-TEST (value) & 2.79229741176415 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 0.00574383023303948 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.31469603077929 \tabularnewline
Sum Squared Residuals & 1355.80770717989 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57546&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.641168960890293[/C][/ROW]
[ROW][C]R-squared[/C][C]0.411097636409138[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.263872045511423[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.79229741176415[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]0.00574383023303948[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.31469603077929[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1355.80770717989[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57546&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57546&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.641168960890293
R-squared0.411097636409138
Adjusted R-squared0.263872045511423
F-TEST (value)2.79229741176415
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.00574383023303948
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.31469603077929
Sum Squared Residuals1355.80770717989







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12418.69250373495035.30749626504965
22215.45167413656746.54832586343264
32520.09301344582124.90698655417875
42419.22066965462694.77933034537305
52920.68267861850788.31732138149223
62620.42918534141845.5708146585816
72616.35684155022419.6431584497759
82115.33799103611925.66200896388083
92316.52765620880576.4723437911943
102215.84315844977596.1568415502241
112115.12765620880575.8723437911943
121614.03464276298441.96535723701556
131917.6408295983831.35917040161701
141614.41.6
152520.61885051410494.38114948589507
162721.84985499604535.15014500395466
172321.20851568679151.79148431320854
182218.85167413656743.14832586343264
192316.88267861850786.11732138149222
202017.96717637753762.03282362246243
212421.26018982335882.73981017664118
222320.57569206432902.42430793567097
232019.33435275507510.665647244924862
242120.34468758238860.655312417611391
252222.8992002812198-0.899200281219789
261719.6583706828368-2.65837068283680
272119.04133930925391.95866069074611
281921.8498549960453-2.84985499604534
292322.78602689164250.213973108357501
302220.95502240970211.04497759029792
311520.0377010282099-5.03770102820986
322322.1738729238070.826127076192988
332122.8377010282099-1.83770102820986
341821.1015291326127-3.10152913261271
351819.3343527550751-1.33435275507514
361820.3446875823886-2.34468758238861
371821.3216890763687-3.32168907636875
381014.9258370682837-4.92583706828368
391321.1446875823886-8.14468758238861
401019.2206696546269-9.22066965462695
41920.6826786185078-11.6826786185078
42919.9033482731347-10.9033482731347
43615.3051674136567-9.30516741365674
441116.3896651726865-5.38966517268653
45916.5276562088057-7.5276562088057
461014.7914843132085-4.79148431320854
47914.6018191405220-5.60181914052202
481616.6638281044028-0.663828104402847
491012.9082959838299-2.90829598382986
5077.56411811231215-0.564118112312154
51710.1021091484313-3.10210914843132
521411.85895069865542.14104930134458
53119.640100184550491.35989981544951
54108.860769839177431.13923016082257
5567.41761138940153-1.41761138940153
56811.1312944898497-3.13129448984972
571312.84679673081990.153203269180069
581212.6881360400738-0.68813604007382
591514.60181914052200.398180859477985
601615.61215396783550.387846032164515
611615.53748132524830.462518674751738

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 24 & 18.6925037349503 & 5.30749626504965 \tabularnewline
2 & 22 & 15.4516741365674 & 6.54832586343264 \tabularnewline
3 & 25 & 20.0930134458212 & 4.90698655417875 \tabularnewline
4 & 24 & 19.2206696546269 & 4.77933034537305 \tabularnewline
5 & 29 & 20.6826786185078 & 8.31732138149223 \tabularnewline
6 & 26 & 20.4291853414184 & 5.5708146585816 \tabularnewline
7 & 26 & 16.3568415502241 & 9.6431584497759 \tabularnewline
8 & 21 & 15.3379910361192 & 5.66200896388083 \tabularnewline
9 & 23 & 16.5276562088057 & 6.4723437911943 \tabularnewline
10 & 22 & 15.8431584497759 & 6.1568415502241 \tabularnewline
11 & 21 & 15.1276562088057 & 5.8723437911943 \tabularnewline
12 & 16 & 14.0346427629844 & 1.96535723701556 \tabularnewline
13 & 19 & 17.640829598383 & 1.35917040161701 \tabularnewline
14 & 16 & 14.4 & 1.6 \tabularnewline
15 & 25 & 20.6188505141049 & 4.38114948589507 \tabularnewline
16 & 27 & 21.8498549960453 & 5.15014500395466 \tabularnewline
17 & 23 & 21.2085156867915 & 1.79148431320854 \tabularnewline
18 & 22 & 18.8516741365674 & 3.14832586343264 \tabularnewline
19 & 23 & 16.8826786185078 & 6.11732138149222 \tabularnewline
20 & 20 & 17.9671763775376 & 2.03282362246243 \tabularnewline
21 & 24 & 21.2601898233588 & 2.73981017664118 \tabularnewline
22 & 23 & 20.5756920643290 & 2.42430793567097 \tabularnewline
23 & 20 & 19.3343527550751 & 0.665647244924862 \tabularnewline
24 & 21 & 20.3446875823886 & 0.655312417611391 \tabularnewline
25 & 22 & 22.8992002812198 & -0.899200281219789 \tabularnewline
26 & 17 & 19.6583706828368 & -2.65837068283680 \tabularnewline
27 & 21 & 19.0413393092539 & 1.95866069074611 \tabularnewline
28 & 19 & 21.8498549960453 & -2.84985499604534 \tabularnewline
29 & 23 & 22.7860268916425 & 0.213973108357501 \tabularnewline
30 & 22 & 20.9550224097021 & 1.04497759029792 \tabularnewline
31 & 15 & 20.0377010282099 & -5.03770102820986 \tabularnewline
32 & 23 & 22.173872923807 & 0.826127076192988 \tabularnewline
33 & 21 & 22.8377010282099 & -1.83770102820986 \tabularnewline
34 & 18 & 21.1015291326127 & -3.10152913261271 \tabularnewline
35 & 18 & 19.3343527550751 & -1.33435275507514 \tabularnewline
36 & 18 & 20.3446875823886 & -2.34468758238861 \tabularnewline
37 & 18 & 21.3216890763687 & -3.32168907636875 \tabularnewline
38 & 10 & 14.9258370682837 & -4.92583706828368 \tabularnewline
39 & 13 & 21.1446875823886 & -8.14468758238861 \tabularnewline
40 & 10 & 19.2206696546269 & -9.22066965462695 \tabularnewline
41 & 9 & 20.6826786185078 & -11.6826786185078 \tabularnewline
42 & 9 & 19.9033482731347 & -10.9033482731347 \tabularnewline
43 & 6 & 15.3051674136567 & -9.30516741365674 \tabularnewline
44 & 11 & 16.3896651726865 & -5.38966517268653 \tabularnewline
45 & 9 & 16.5276562088057 & -7.5276562088057 \tabularnewline
46 & 10 & 14.7914843132085 & -4.79148431320854 \tabularnewline
47 & 9 & 14.6018191405220 & -5.60181914052202 \tabularnewline
48 & 16 & 16.6638281044028 & -0.663828104402847 \tabularnewline
49 & 10 & 12.9082959838299 & -2.90829598382986 \tabularnewline
50 & 7 & 7.56411811231215 & -0.564118112312154 \tabularnewline
51 & 7 & 10.1021091484313 & -3.10210914843132 \tabularnewline
52 & 14 & 11.8589506986554 & 2.14104930134458 \tabularnewline
53 & 11 & 9.64010018455049 & 1.35989981544951 \tabularnewline
54 & 10 & 8.86076983917743 & 1.13923016082257 \tabularnewline
55 & 6 & 7.41761138940153 & -1.41761138940153 \tabularnewline
56 & 8 & 11.1312944898497 & -3.13129448984972 \tabularnewline
57 & 13 & 12.8467967308199 & 0.153203269180069 \tabularnewline
58 & 12 & 12.6881360400738 & -0.68813604007382 \tabularnewline
59 & 15 & 14.6018191405220 & 0.398180859477985 \tabularnewline
60 & 16 & 15.6121539678355 & 0.387846032164515 \tabularnewline
61 & 16 & 15.5374813252483 & 0.462518674751738 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57546&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]24[/C][C]18.6925037349503[/C][C]5.30749626504965[/C][/ROW]
[ROW][C]2[/C][C]22[/C][C]15.4516741365674[/C][C]6.54832586343264[/C][/ROW]
[ROW][C]3[/C][C]25[/C][C]20.0930134458212[/C][C]4.90698655417875[/C][/ROW]
[ROW][C]4[/C][C]24[/C][C]19.2206696546269[/C][C]4.77933034537305[/C][/ROW]
[ROW][C]5[/C][C]29[/C][C]20.6826786185078[/C][C]8.31732138149223[/C][/ROW]
[ROW][C]6[/C][C]26[/C][C]20.4291853414184[/C][C]5.5708146585816[/C][/ROW]
[ROW][C]7[/C][C]26[/C][C]16.3568415502241[/C][C]9.6431584497759[/C][/ROW]
[ROW][C]8[/C][C]21[/C][C]15.3379910361192[/C][C]5.66200896388083[/C][/ROW]
[ROW][C]9[/C][C]23[/C][C]16.5276562088057[/C][C]6.4723437911943[/C][/ROW]
[ROW][C]10[/C][C]22[/C][C]15.8431584497759[/C][C]6.1568415502241[/C][/ROW]
[ROW][C]11[/C][C]21[/C][C]15.1276562088057[/C][C]5.8723437911943[/C][/ROW]
[ROW][C]12[/C][C]16[/C][C]14.0346427629844[/C][C]1.96535723701556[/C][/ROW]
[ROW][C]13[/C][C]19[/C][C]17.640829598383[/C][C]1.35917040161701[/C][/ROW]
[ROW][C]14[/C][C]16[/C][C]14.4[/C][C]1.6[/C][/ROW]
[ROW][C]15[/C][C]25[/C][C]20.6188505141049[/C][C]4.38114948589507[/C][/ROW]
[ROW][C]16[/C][C]27[/C][C]21.8498549960453[/C][C]5.15014500395466[/C][/ROW]
[ROW][C]17[/C][C]23[/C][C]21.2085156867915[/C][C]1.79148431320854[/C][/ROW]
[ROW][C]18[/C][C]22[/C][C]18.8516741365674[/C][C]3.14832586343264[/C][/ROW]
[ROW][C]19[/C][C]23[/C][C]16.8826786185078[/C][C]6.11732138149222[/C][/ROW]
[ROW][C]20[/C][C]20[/C][C]17.9671763775376[/C][C]2.03282362246243[/C][/ROW]
[ROW][C]21[/C][C]24[/C][C]21.2601898233588[/C][C]2.73981017664118[/C][/ROW]
[ROW][C]22[/C][C]23[/C][C]20.5756920643290[/C][C]2.42430793567097[/C][/ROW]
[ROW][C]23[/C][C]20[/C][C]19.3343527550751[/C][C]0.665647244924862[/C][/ROW]
[ROW][C]24[/C][C]21[/C][C]20.3446875823886[/C][C]0.655312417611391[/C][/ROW]
[ROW][C]25[/C][C]22[/C][C]22.8992002812198[/C][C]-0.899200281219789[/C][/ROW]
[ROW][C]26[/C][C]17[/C][C]19.6583706828368[/C][C]-2.65837068283680[/C][/ROW]
[ROW][C]27[/C][C]21[/C][C]19.0413393092539[/C][C]1.95866069074611[/C][/ROW]
[ROW][C]28[/C][C]19[/C][C]21.8498549960453[/C][C]-2.84985499604534[/C][/ROW]
[ROW][C]29[/C][C]23[/C][C]22.7860268916425[/C][C]0.213973108357501[/C][/ROW]
[ROW][C]30[/C][C]22[/C][C]20.9550224097021[/C][C]1.04497759029792[/C][/ROW]
[ROW][C]31[/C][C]15[/C][C]20.0377010282099[/C][C]-5.03770102820986[/C][/ROW]
[ROW][C]32[/C][C]23[/C][C]22.173872923807[/C][C]0.826127076192988[/C][/ROW]
[ROW][C]33[/C][C]21[/C][C]22.8377010282099[/C][C]-1.83770102820986[/C][/ROW]
[ROW][C]34[/C][C]18[/C][C]21.1015291326127[/C][C]-3.10152913261271[/C][/ROW]
[ROW][C]35[/C][C]18[/C][C]19.3343527550751[/C][C]-1.33435275507514[/C][/ROW]
[ROW][C]36[/C][C]18[/C][C]20.3446875823886[/C][C]-2.34468758238861[/C][/ROW]
[ROW][C]37[/C][C]18[/C][C]21.3216890763687[/C][C]-3.32168907636875[/C][/ROW]
[ROW][C]38[/C][C]10[/C][C]14.9258370682837[/C][C]-4.92583706828368[/C][/ROW]
[ROW][C]39[/C][C]13[/C][C]21.1446875823886[/C][C]-8.14468758238861[/C][/ROW]
[ROW][C]40[/C][C]10[/C][C]19.2206696546269[/C][C]-9.22066965462695[/C][/ROW]
[ROW][C]41[/C][C]9[/C][C]20.6826786185078[/C][C]-11.6826786185078[/C][/ROW]
[ROW][C]42[/C][C]9[/C][C]19.9033482731347[/C][C]-10.9033482731347[/C][/ROW]
[ROW][C]43[/C][C]6[/C][C]15.3051674136567[/C][C]-9.30516741365674[/C][/ROW]
[ROW][C]44[/C][C]11[/C][C]16.3896651726865[/C][C]-5.38966517268653[/C][/ROW]
[ROW][C]45[/C][C]9[/C][C]16.5276562088057[/C][C]-7.5276562088057[/C][/ROW]
[ROW][C]46[/C][C]10[/C][C]14.7914843132085[/C][C]-4.79148431320854[/C][/ROW]
[ROW][C]47[/C][C]9[/C][C]14.6018191405220[/C][C]-5.60181914052202[/C][/ROW]
[ROW][C]48[/C][C]16[/C][C]16.6638281044028[/C][C]-0.663828104402847[/C][/ROW]
[ROW][C]49[/C][C]10[/C][C]12.9082959838299[/C][C]-2.90829598382986[/C][/ROW]
[ROW][C]50[/C][C]7[/C][C]7.56411811231215[/C][C]-0.564118112312154[/C][/ROW]
[ROW][C]51[/C][C]7[/C][C]10.1021091484313[/C][C]-3.10210914843132[/C][/ROW]
[ROW][C]52[/C][C]14[/C][C]11.8589506986554[/C][C]2.14104930134458[/C][/ROW]
[ROW][C]53[/C][C]11[/C][C]9.64010018455049[/C][C]1.35989981544951[/C][/ROW]
[ROW][C]54[/C][C]10[/C][C]8.86076983917743[/C][C]1.13923016082257[/C][/ROW]
[ROW][C]55[/C][C]6[/C][C]7.41761138940153[/C][C]-1.41761138940153[/C][/ROW]
[ROW][C]56[/C][C]8[/C][C]11.1312944898497[/C][C]-3.13129448984972[/C][/ROW]
[ROW][C]57[/C][C]13[/C][C]12.8467967308199[/C][C]0.153203269180069[/C][/ROW]
[ROW][C]58[/C][C]12[/C][C]12.6881360400738[/C][C]-0.68813604007382[/C][/ROW]
[ROW][C]59[/C][C]15[/C][C]14.6018191405220[/C][C]0.398180859477985[/C][/ROW]
[ROW][C]60[/C][C]16[/C][C]15.6121539678355[/C][C]0.387846032164515[/C][/ROW]
[ROW][C]61[/C][C]16[/C][C]15.5374813252483[/C][C]0.462518674751738[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57546&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57546&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
12418.69250373495035.30749626504965
22215.45167413656746.54832586343264
32520.09301344582124.90698655417875
42419.22066965462694.77933034537305
52920.68267861850788.31732138149223
62620.42918534141845.5708146585816
72616.35684155022419.6431584497759
82115.33799103611925.66200896388083
92316.52765620880576.4723437911943
102215.84315844977596.1568415502241
112115.12765620880575.8723437911943
121614.03464276298441.96535723701556
131917.6408295983831.35917040161701
141614.41.6
152520.61885051410494.38114948589507
162721.84985499604535.15014500395466
172321.20851568679151.79148431320854
182218.85167413656743.14832586343264
192316.88267861850786.11732138149222
202017.96717637753762.03282362246243
212421.26018982335882.73981017664118
222320.57569206432902.42430793567097
232019.33435275507510.665647244924862
242120.34468758238860.655312417611391
252222.8992002812198-0.899200281219789
261719.6583706828368-2.65837068283680
272119.04133930925391.95866069074611
281921.8498549960453-2.84985499604534
292322.78602689164250.213973108357501
302220.95502240970211.04497759029792
311520.0377010282099-5.03770102820986
322322.1738729238070.826127076192988
332122.8377010282099-1.83770102820986
341821.1015291326127-3.10152913261271
351819.3343527550751-1.33435275507514
361820.3446875823886-2.34468758238861
371821.3216890763687-3.32168907636875
381014.9258370682837-4.92583706828368
391321.1446875823886-8.14468758238861
401019.2206696546269-9.22066965462695
41920.6826786185078-11.6826786185078
42919.9033482731347-10.9033482731347
43615.3051674136567-9.30516741365674
441116.3896651726865-5.38966517268653
45916.5276562088057-7.5276562088057
461014.7914843132085-4.79148431320854
47914.6018191405220-5.60181914052202
481616.6638281044028-0.663828104402847
491012.9082959838299-2.90829598382986
5077.56411811231215-0.564118112312154
51710.1021091484313-3.10210914843132
521411.85895069865542.14104930134458
53119.640100184550491.35989981544951
54108.860769839177431.13923016082257
5567.41761138940153-1.41761138940153
56811.1312944898497-3.13129448984972
571312.84679673081990.153203269180069
581212.6881360400738-0.68813604007382
591514.60181914052200.398180859477985
601615.61215396783550.387846032164515
611615.53748132524830.462518674751738







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1333806228350350.2667612456700710.866619377164965
170.2502836043440390.5005672086880790.749716395655961
180.1536021980689130.3072043961378250.846397801931087
190.1693173469251670.3386346938503330.830682653074833
200.1556912870223370.3113825740446740.844308712977663
210.1205206464833750.2410412929667490.879479353516625
220.08622627372884940.1724525474576990.91377372627115
230.0604214432814420.1208428865628840.939578556718558
240.04049027230694450.0809805446138890.959509727693056
250.02428526202869840.04857052405739680.975714737971302
260.02045494270954830.04090988541909660.979545057290452
270.02935003471642140.05870006943284280.970649965283579
280.06038738354546650.1207747670909330.939612616454534
290.07767053873306740.1553410774661350.922329461266933
300.1056850293627110.2113700587254220.894314970637289
310.2838234677503740.5676469355007480.716176532249626
320.4632090251177860.9264180502355720.536790974882214
330.5822805645717290.8354388708565420.417719435428271
340.6516359896359110.6967280207281780.348364010364089
350.6938642043663140.6122715912673710.306135795633686
360.60839856356060.78320287287880.3916014364394
370.637443872755240.7251122544895210.362556127244761
380.708502746783260.5829945064334790.291497253216740
390.8855032955280630.2289934089438740.114496704471937
400.9346894464946930.1306211070106150.0653105535053074
410.949731876702750.1005362465944990.0502681232972493
420.9390675894216780.1218648211566450.0609324105783224
430.9143432554507550.1713134890984890.0856567445492447
440.8571262507497520.2857474985004970.142873749250248
450.831097091697350.3378058166052990.168902908302650

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.133380622835035 & 0.266761245670071 & 0.866619377164965 \tabularnewline
17 & 0.250283604344039 & 0.500567208688079 & 0.749716395655961 \tabularnewline
18 & 0.153602198068913 & 0.307204396137825 & 0.846397801931087 \tabularnewline
19 & 0.169317346925167 & 0.338634693850333 & 0.830682653074833 \tabularnewline
20 & 0.155691287022337 & 0.311382574044674 & 0.844308712977663 \tabularnewline
21 & 0.120520646483375 & 0.241041292966749 & 0.879479353516625 \tabularnewline
22 & 0.0862262737288494 & 0.172452547457699 & 0.91377372627115 \tabularnewline
23 & 0.060421443281442 & 0.120842886562884 & 0.939578556718558 \tabularnewline
24 & 0.0404902723069445 & 0.080980544613889 & 0.959509727693056 \tabularnewline
25 & 0.0242852620286984 & 0.0485705240573968 & 0.975714737971302 \tabularnewline
26 & 0.0204549427095483 & 0.0409098854190966 & 0.979545057290452 \tabularnewline
27 & 0.0293500347164214 & 0.0587000694328428 & 0.970649965283579 \tabularnewline
28 & 0.0603873835454665 & 0.120774767090933 & 0.939612616454534 \tabularnewline
29 & 0.0776705387330674 & 0.155341077466135 & 0.922329461266933 \tabularnewline
30 & 0.105685029362711 & 0.211370058725422 & 0.894314970637289 \tabularnewline
31 & 0.283823467750374 & 0.567646935500748 & 0.716176532249626 \tabularnewline
32 & 0.463209025117786 & 0.926418050235572 & 0.536790974882214 \tabularnewline
33 & 0.582280564571729 & 0.835438870856542 & 0.417719435428271 \tabularnewline
34 & 0.651635989635911 & 0.696728020728178 & 0.348364010364089 \tabularnewline
35 & 0.693864204366314 & 0.612271591267371 & 0.306135795633686 \tabularnewline
36 & 0.6083985635606 & 0.7832028728788 & 0.3916014364394 \tabularnewline
37 & 0.63744387275524 & 0.725112254489521 & 0.362556127244761 \tabularnewline
38 & 0.70850274678326 & 0.582994506433479 & 0.291497253216740 \tabularnewline
39 & 0.885503295528063 & 0.228993408943874 & 0.114496704471937 \tabularnewline
40 & 0.934689446494693 & 0.130621107010615 & 0.0653105535053074 \tabularnewline
41 & 0.94973187670275 & 0.100536246594499 & 0.0502681232972493 \tabularnewline
42 & 0.939067589421678 & 0.121864821156645 & 0.0609324105783224 \tabularnewline
43 & 0.914343255450755 & 0.171313489098489 & 0.0856567445492447 \tabularnewline
44 & 0.857126250749752 & 0.285747498500497 & 0.142873749250248 \tabularnewline
45 & 0.83109709169735 & 0.337805816605299 & 0.168902908302650 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57546&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.133380622835035[/C][C]0.266761245670071[/C][C]0.866619377164965[/C][/ROW]
[ROW][C]17[/C][C]0.250283604344039[/C][C]0.500567208688079[/C][C]0.749716395655961[/C][/ROW]
[ROW][C]18[/C][C]0.153602198068913[/C][C]0.307204396137825[/C][C]0.846397801931087[/C][/ROW]
[ROW][C]19[/C][C]0.169317346925167[/C][C]0.338634693850333[/C][C]0.830682653074833[/C][/ROW]
[ROW][C]20[/C][C]0.155691287022337[/C][C]0.311382574044674[/C][C]0.844308712977663[/C][/ROW]
[ROW][C]21[/C][C]0.120520646483375[/C][C]0.241041292966749[/C][C]0.879479353516625[/C][/ROW]
[ROW][C]22[/C][C]0.0862262737288494[/C][C]0.172452547457699[/C][C]0.91377372627115[/C][/ROW]
[ROW][C]23[/C][C]0.060421443281442[/C][C]0.120842886562884[/C][C]0.939578556718558[/C][/ROW]
[ROW][C]24[/C][C]0.0404902723069445[/C][C]0.080980544613889[/C][C]0.959509727693056[/C][/ROW]
[ROW][C]25[/C][C]0.0242852620286984[/C][C]0.0485705240573968[/C][C]0.975714737971302[/C][/ROW]
[ROW][C]26[/C][C]0.0204549427095483[/C][C]0.0409098854190966[/C][C]0.979545057290452[/C][/ROW]
[ROW][C]27[/C][C]0.0293500347164214[/C][C]0.0587000694328428[/C][C]0.970649965283579[/C][/ROW]
[ROW][C]28[/C][C]0.0603873835454665[/C][C]0.120774767090933[/C][C]0.939612616454534[/C][/ROW]
[ROW][C]29[/C][C]0.0776705387330674[/C][C]0.155341077466135[/C][C]0.922329461266933[/C][/ROW]
[ROW][C]30[/C][C]0.105685029362711[/C][C]0.211370058725422[/C][C]0.894314970637289[/C][/ROW]
[ROW][C]31[/C][C]0.283823467750374[/C][C]0.567646935500748[/C][C]0.716176532249626[/C][/ROW]
[ROW][C]32[/C][C]0.463209025117786[/C][C]0.926418050235572[/C][C]0.536790974882214[/C][/ROW]
[ROW][C]33[/C][C]0.582280564571729[/C][C]0.835438870856542[/C][C]0.417719435428271[/C][/ROW]
[ROW][C]34[/C][C]0.651635989635911[/C][C]0.696728020728178[/C][C]0.348364010364089[/C][/ROW]
[ROW][C]35[/C][C]0.693864204366314[/C][C]0.612271591267371[/C][C]0.306135795633686[/C][/ROW]
[ROW][C]36[/C][C]0.6083985635606[/C][C]0.7832028728788[/C][C]0.3916014364394[/C][/ROW]
[ROW][C]37[/C][C]0.63744387275524[/C][C]0.725112254489521[/C][C]0.362556127244761[/C][/ROW]
[ROW][C]38[/C][C]0.70850274678326[/C][C]0.582994506433479[/C][C]0.291497253216740[/C][/ROW]
[ROW][C]39[/C][C]0.885503295528063[/C][C]0.228993408943874[/C][C]0.114496704471937[/C][/ROW]
[ROW][C]40[/C][C]0.934689446494693[/C][C]0.130621107010615[/C][C]0.0653105535053074[/C][/ROW]
[ROW][C]41[/C][C]0.94973187670275[/C][C]0.100536246594499[/C][C]0.0502681232972493[/C][/ROW]
[ROW][C]42[/C][C]0.939067589421678[/C][C]0.121864821156645[/C][C]0.0609324105783224[/C][/ROW]
[ROW][C]43[/C][C]0.914343255450755[/C][C]0.171313489098489[/C][C]0.0856567445492447[/C][/ROW]
[ROW][C]44[/C][C]0.857126250749752[/C][C]0.285747498500497[/C][C]0.142873749250248[/C][/ROW]
[ROW][C]45[/C][C]0.83109709169735[/C][C]0.337805816605299[/C][C]0.168902908302650[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57546&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57546&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.1333806228350350.2667612456700710.866619377164965
170.2502836043440390.5005672086880790.749716395655961
180.1536021980689130.3072043961378250.846397801931087
190.1693173469251670.3386346938503330.830682653074833
200.1556912870223370.3113825740446740.844308712977663
210.1205206464833750.2410412929667490.879479353516625
220.08622627372884940.1724525474576990.91377372627115
230.0604214432814420.1208428865628840.939578556718558
240.04049027230694450.0809805446138890.959509727693056
250.02428526202869840.04857052405739680.975714737971302
260.02045494270954830.04090988541909660.979545057290452
270.02935003471642140.05870006943284280.970649965283579
280.06038738354546650.1207747670909330.939612616454534
290.07767053873306740.1553410774661350.922329461266933
300.1056850293627110.2113700587254220.894314970637289
310.2838234677503740.5676469355007480.716176532249626
320.4632090251177860.9264180502355720.536790974882214
330.5822805645717290.8354388708565420.417719435428271
340.6516359896359110.6967280207281780.348364010364089
350.6938642043663140.6122715912673710.306135795633686
360.60839856356060.78320287287880.3916014364394
370.637443872755240.7251122544895210.362556127244761
380.708502746783260.5829945064334790.291497253216740
390.8855032955280630.2289934089438740.114496704471937
400.9346894464946930.1306211070106150.0653105535053074
410.949731876702750.1005362465944990.0502681232972493
420.9390675894216780.1218648211566450.0609324105783224
430.9143432554507550.1713134890984890.0856567445492447
440.8571262507497520.2857474985004970.142873749250248
450.831097091697350.3378058166052990.168902908302650







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

\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 & 2 & 0.0666666666666667 & NOK \tabularnewline
10% type I error level & 4 & 0.133333333333333 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57546&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]2[/C][C]0.0666666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]4[/C][C]0.133333333333333[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57546&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57546&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 level20.0666666666666667NOK
10% type I error level40.133333333333333NOK



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')
}