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 computationMon, 22 Dec 2008 09:00:49 -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/2008/Dec/22/t12299616915zawinz7btcb47u.htm/, Retrieved Mon, 13 May 2024 18:41:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=36108, Retrieved Mon, 13 May 2024 18:41:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsmultiple lineair regression
Estimated Impact209
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [MLR] [2008-11-26 18:25:12] [3ffd109c9e040b1ae7e5dbe576d4698c]
- R P   [Multiple Regression] [Multiple Lineair ...] [2008-12-16 16:18:01] [3ffd109c9e040b1ae7e5dbe576d4698c]
-    D      [Multiple Regression] [multiple lineair ...] [2008-12-22 16:00:49] [962e6c9020896982bc8283b8971710a9] [Current]
-             [Multiple Regression] [monthly dummies e...] [2008-12-24 11:55:22] [b28ef2aea2cd58ceb5ad90223572c703]
Feedback Forum

Post a new message
Dataseries X:
147768	0
137507	0
136919	0
136151	0
133001	0
125554	0
119647	0
114158	0
116193	0
152803	0
161761	0
160942	0
149470	0
139208	0
134588	0
130322	0
126611	0
122401	0
117352	0
112135	0
112879	0
148729	0
157230	0
157221	0
146681	0
136524	0
132111	0
125326	1
122716	1
116615	1
113719	1
110737	1
112093	1
143565	1
149946	1
149147	1
134339	1
122683	1
115614	1
116566	1
111272	1
104609	1
101802	1
94542	1
93051	1
124129	1
130374	1
123946	1
114971	1
105531	1
104919	1
104782	0
101281	0
94545	0
93248	0
84031	0
87486	0
115867	0
120327	0
117008	0
108811	0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 5 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36108&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36108&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36108&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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
jonger_dan_25[t] = + 144914.385321101 -8153.9633027523plan[t] -8523.06422018347M1[t] -13362.2M2[t] -16822.6M3[t] -19023.4M4[t] -22676.6M5[t] -28908M6[t] -32499.2M7[t] -38532.2M8[t] -37312.4M9[t] -4634.2M10[t] + 2274.80000000001M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
jonger_dan_25[t] =  +  144914.385321101 -8153.9633027523plan[t] -8523.06422018347M1[t] -13362.2M2[t] -16822.6M3[t] -19023.4M4[t] -22676.6M5[t] -28908M6[t] -32499.2M7[t] -38532.2M8[t] -37312.4M9[t] -4634.2M10[t] +  2274.80000000001M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36108&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]jonger_dan_25[t] =  +  144914.385321101 -8153.9633027523plan[t] -8523.06422018347M1[t] -13362.2M2[t] -16822.6M3[t] -19023.4M4[t] -22676.6M5[t] -28908M6[t] -32499.2M7[t] -38532.2M8[t] -37312.4M9[t] -4634.2M10[t] +  2274.80000000001M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36108&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36108&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
jonger_dan_25[t] = + 144914.385321101 -8153.9633027523plan[t] -8523.06422018347M1[t] -13362.2M2[t] -16822.6M3[t] -19023.4M4[t] -22676.6M5[t] -28908M6[t] -32499.2M7[t] -38532.2M8[t] -37312.4M9[t] -4634.2M10[t] + 2274.80000000001M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)144914.3853211016606.24565321.93600
plan-8153.96330275233772.432108-2.16150.0356770.017839
M1-8523.064220183478712.058771-0.97830.3328280.166414
M2-13362.29095.65639-1.46910.1483360.074168
M3-16822.69095.65639-1.84950.0705450.035273
M4-19023.49095.65639-2.09150.0418010.0209
M5-22676.69095.65639-2.49310.0161640.008082
M6-289089095.65639-3.17820.0025930.001297
M7-32499.29095.65639-3.5730.0008160.000408
M8-38532.29095.65639-4.23630.0001025.1e-05
M9-37312.49095.65639-4.10220.0001587.9e-05
M10-4634.29095.65639-0.50950.6127390.30637
M112274.800000000019095.656390.25010.8035790.40179

\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) & 144914.385321101 & 6606.245653 & 21.936 & 0 & 0 \tabularnewline
plan & -8153.9633027523 & 3772.432108 & -2.1615 & 0.035677 & 0.017839 \tabularnewline
M1 & -8523.06422018347 & 8712.058771 & -0.9783 & 0.332828 & 0.166414 \tabularnewline
M2 & -13362.2 & 9095.65639 & -1.4691 & 0.148336 & 0.074168 \tabularnewline
M3 & -16822.6 & 9095.65639 & -1.8495 & 0.070545 & 0.035273 \tabularnewline
M4 & -19023.4 & 9095.65639 & -2.0915 & 0.041801 & 0.0209 \tabularnewline
M5 & -22676.6 & 9095.65639 & -2.4931 & 0.016164 & 0.008082 \tabularnewline
M6 & -28908 & 9095.65639 & -3.1782 & 0.002593 & 0.001297 \tabularnewline
M7 & -32499.2 & 9095.65639 & -3.573 & 0.000816 & 0.000408 \tabularnewline
M8 & -38532.2 & 9095.65639 & -4.2363 & 0.000102 & 5.1e-05 \tabularnewline
M9 & -37312.4 & 9095.65639 & -4.1022 & 0.000158 & 7.9e-05 \tabularnewline
M10 & -4634.2 & 9095.65639 & -0.5095 & 0.612739 & 0.30637 \tabularnewline
M11 & 2274.80000000001 & 9095.65639 & 0.2501 & 0.803579 & 0.40179 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36108&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]144914.385321101[/C][C]6606.245653[/C][C]21.936[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]plan[/C][C]-8153.9633027523[/C][C]3772.432108[/C][C]-2.1615[/C][C]0.035677[/C][C]0.017839[/C][/ROW]
[ROW][C]M1[/C][C]-8523.06422018347[/C][C]8712.058771[/C][C]-0.9783[/C][C]0.332828[/C][C]0.166414[/C][/ROW]
[ROW][C]M2[/C][C]-13362.2[/C][C]9095.65639[/C][C]-1.4691[/C][C]0.148336[/C][C]0.074168[/C][/ROW]
[ROW][C]M3[/C][C]-16822.6[/C][C]9095.65639[/C][C]-1.8495[/C][C]0.070545[/C][C]0.035273[/C][/ROW]
[ROW][C]M4[/C][C]-19023.4[/C][C]9095.65639[/C][C]-2.0915[/C][C]0.041801[/C][C]0.0209[/C][/ROW]
[ROW][C]M5[/C][C]-22676.6[/C][C]9095.65639[/C][C]-2.4931[/C][C]0.016164[/C][C]0.008082[/C][/ROW]
[ROW][C]M6[/C][C]-28908[/C][C]9095.65639[/C][C]-3.1782[/C][C]0.002593[/C][C]0.001297[/C][/ROW]
[ROW][C]M7[/C][C]-32499.2[/C][C]9095.65639[/C][C]-3.573[/C][C]0.000816[/C][C]0.000408[/C][/ROW]
[ROW][C]M8[/C][C]-38532.2[/C][C]9095.65639[/C][C]-4.2363[/C][C]0.000102[/C][C]5.1e-05[/C][/ROW]
[ROW][C]M9[/C][C]-37312.4[/C][C]9095.65639[/C][C]-4.1022[/C][C]0.000158[/C][C]7.9e-05[/C][/ROW]
[ROW][C]M10[/C][C]-4634.2[/C][C]9095.65639[/C][C]-0.5095[/C][C]0.612739[/C][C]0.30637[/C][/ROW]
[ROW][C]M11[/C][C]2274.80000000001[/C][C]9095.65639[/C][C]0.2501[/C][C]0.803579[/C][C]0.40179[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36108&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36108&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)144914.3853211016606.24565321.93600
plan-8153.96330275233772.432108-2.16150.0356770.017839
M1-8523.064220183478712.058771-0.97830.3328280.166414
M2-13362.29095.65639-1.46910.1483360.074168
M3-16822.69095.65639-1.84950.0705450.035273
M4-19023.49095.65639-2.09150.0418010.0209
M5-22676.69095.65639-2.49310.0161640.008082
M6-289089095.65639-3.17820.0025930.001297
M7-32499.29095.65639-3.5730.0008160.000408
M8-38532.29095.65639-4.23630.0001025.1e-05
M9-37312.49095.65639-4.10220.0001587.9e-05
M10-4634.29095.65639-0.50950.6127390.30637
M112274.800000000019095.656390.25010.8035790.40179







Multiple Linear Regression - Regression Statistics
Multiple R0.739545161441837
R-squared0.546927045812033
Adjusted R-squared0.433658807265041
F-TEST (value)4.82860025747754
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value3.86779666283754e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation14381.4955029847
Sum Squared Residuals9927715819.31376

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.739545161441837 \tabularnewline
R-squared & 0.546927045812033 \tabularnewline
Adjusted R-squared & 0.433658807265041 \tabularnewline
F-TEST (value) & 4.82860025747754 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 3.86779666283754e-05 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 14381.4955029847 \tabularnewline
Sum Squared Residuals & 9927715819.31376 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36108&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.739545161441837[/C][/ROW]
[ROW][C]R-squared[/C][C]0.546927045812033[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.433658807265041[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.82860025747754[/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]3.86779666283754e-05[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]14381.4955029847[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]9927715819.31376[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36108&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36108&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.739545161441837
R-squared0.546927045812033
Adjusted R-squared0.433658807265041
F-TEST (value)4.82860025747754
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value3.86779666283754e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation14381.4955029847
Sum Squared Residuals9927715819.31376







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1147768136391.32110091711376.6788990827
2137507131552.1853211015954.81467889909
3136919128091.7853211018827.21467889908
4136151125890.98532110110260.0146788991
5133001122237.78532110110763.2146788991
6125554116006.3853211019547.61467889908
7119647112415.1853211017231.81467889909
8114158106382.1853211017775.81467889907
9116193107601.9853211018591.01467889907
10152803140280.18532110112522.8146788991
11161761147189.18532110114571.8146788991
12160942144914.38532110116027.6146788991
13149470136391.32110091713078.6788990826
14139208131552.1853211017655.81467889908
15134588128091.7853211016496.21467889908
16130322125890.9853211014431.01467889909
17126611122237.7853211014373.21467889908
18122401116006.3853211016394.61467889908
19117352112415.1853211014936.81467889908
20112135106382.1853211015752.81467889908
21112879107601.9853211015277.01467889908
22148729140280.1853211018448.81467889908
23157230147189.18532110110040.8146788991
24157221144914.38532110112306.6146788991
25146681136391.32110091710289.6788990826
26136524131552.1853211014971.81467889908
27132111128091.7853211014019.21467889908
28125326117737.0220183497588.97798165138
29122716114083.8220183498632.17798165137
30116615107852.4220183498762.57798165138
31113719104261.2220183499457.77798165138
3211073798228.222018348612508.7779816514
3311209399448.022018348612644.9779816514
34143565132126.22201834911438.7779816514
35149946139035.22201834910910.7779816514
36149147136760.42201834912386.5779816514
37134339128237.3577981656101.64220183484
38122683123398.222018349-715.222018348621
39115614119937.822018349-4323.82201834862
40116566117737.022018349-1171.02201834862
41111272114083.822018349-2811.82201834863
42104609107852.422018349-3243.42201834862
43101802104261.222018349-2459.22201834862
449454298228.2220183486-3686.22201834862
459305199448.0220183486-6397.02201834862
46124129132126.222018349-7997.22201834862
47130374139035.222018349-8661.22201834862
48123946136760.422018349-12814.4220183486
49114971128237.357798165-13266.3577981652
50105531123398.222018349-17867.2220183486
51104919119937.822018349-15018.8220183486
52104782125890.985321101-21108.9853211009
53101281122237.785321101-20956.7853211009
5494545116006.385321101-21461.3853211009
5593248112415.185321101-19167.1853211009
5684031106382.185321101-22351.1853211009
5787486107601.985321101-20115.9853211009
58115867140280.185321101-24413.1853211009
59120327147189.185321101-26862.1853211009
60117008144914.385321101-27906.3853211009
61108811136391.321100917-27580.3211009174

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 147768 & 136391.321100917 & 11376.6788990827 \tabularnewline
2 & 137507 & 131552.185321101 & 5954.81467889909 \tabularnewline
3 & 136919 & 128091.785321101 & 8827.21467889908 \tabularnewline
4 & 136151 & 125890.985321101 & 10260.0146788991 \tabularnewline
5 & 133001 & 122237.785321101 & 10763.2146788991 \tabularnewline
6 & 125554 & 116006.385321101 & 9547.61467889908 \tabularnewline
7 & 119647 & 112415.185321101 & 7231.81467889909 \tabularnewline
8 & 114158 & 106382.185321101 & 7775.81467889907 \tabularnewline
9 & 116193 & 107601.985321101 & 8591.01467889907 \tabularnewline
10 & 152803 & 140280.185321101 & 12522.8146788991 \tabularnewline
11 & 161761 & 147189.185321101 & 14571.8146788991 \tabularnewline
12 & 160942 & 144914.385321101 & 16027.6146788991 \tabularnewline
13 & 149470 & 136391.321100917 & 13078.6788990826 \tabularnewline
14 & 139208 & 131552.185321101 & 7655.81467889908 \tabularnewline
15 & 134588 & 128091.785321101 & 6496.21467889908 \tabularnewline
16 & 130322 & 125890.985321101 & 4431.01467889909 \tabularnewline
17 & 126611 & 122237.785321101 & 4373.21467889908 \tabularnewline
18 & 122401 & 116006.385321101 & 6394.61467889908 \tabularnewline
19 & 117352 & 112415.185321101 & 4936.81467889908 \tabularnewline
20 & 112135 & 106382.185321101 & 5752.81467889908 \tabularnewline
21 & 112879 & 107601.985321101 & 5277.01467889908 \tabularnewline
22 & 148729 & 140280.185321101 & 8448.81467889908 \tabularnewline
23 & 157230 & 147189.185321101 & 10040.8146788991 \tabularnewline
24 & 157221 & 144914.385321101 & 12306.6146788991 \tabularnewline
25 & 146681 & 136391.321100917 & 10289.6788990826 \tabularnewline
26 & 136524 & 131552.185321101 & 4971.81467889908 \tabularnewline
27 & 132111 & 128091.785321101 & 4019.21467889908 \tabularnewline
28 & 125326 & 117737.022018349 & 7588.97798165138 \tabularnewline
29 & 122716 & 114083.822018349 & 8632.17798165137 \tabularnewline
30 & 116615 & 107852.422018349 & 8762.57798165138 \tabularnewline
31 & 113719 & 104261.222018349 & 9457.77798165138 \tabularnewline
32 & 110737 & 98228.2220183486 & 12508.7779816514 \tabularnewline
33 & 112093 & 99448.0220183486 & 12644.9779816514 \tabularnewline
34 & 143565 & 132126.222018349 & 11438.7779816514 \tabularnewline
35 & 149946 & 139035.222018349 & 10910.7779816514 \tabularnewline
36 & 149147 & 136760.422018349 & 12386.5779816514 \tabularnewline
37 & 134339 & 128237.357798165 & 6101.64220183484 \tabularnewline
38 & 122683 & 123398.222018349 & -715.222018348621 \tabularnewline
39 & 115614 & 119937.822018349 & -4323.82201834862 \tabularnewline
40 & 116566 & 117737.022018349 & -1171.02201834862 \tabularnewline
41 & 111272 & 114083.822018349 & -2811.82201834863 \tabularnewline
42 & 104609 & 107852.422018349 & -3243.42201834862 \tabularnewline
43 & 101802 & 104261.222018349 & -2459.22201834862 \tabularnewline
44 & 94542 & 98228.2220183486 & -3686.22201834862 \tabularnewline
45 & 93051 & 99448.0220183486 & -6397.02201834862 \tabularnewline
46 & 124129 & 132126.222018349 & -7997.22201834862 \tabularnewline
47 & 130374 & 139035.222018349 & -8661.22201834862 \tabularnewline
48 & 123946 & 136760.422018349 & -12814.4220183486 \tabularnewline
49 & 114971 & 128237.357798165 & -13266.3577981652 \tabularnewline
50 & 105531 & 123398.222018349 & -17867.2220183486 \tabularnewline
51 & 104919 & 119937.822018349 & -15018.8220183486 \tabularnewline
52 & 104782 & 125890.985321101 & -21108.9853211009 \tabularnewline
53 & 101281 & 122237.785321101 & -20956.7853211009 \tabularnewline
54 & 94545 & 116006.385321101 & -21461.3853211009 \tabularnewline
55 & 93248 & 112415.185321101 & -19167.1853211009 \tabularnewline
56 & 84031 & 106382.185321101 & -22351.1853211009 \tabularnewline
57 & 87486 & 107601.985321101 & -20115.9853211009 \tabularnewline
58 & 115867 & 140280.185321101 & -24413.1853211009 \tabularnewline
59 & 120327 & 147189.185321101 & -26862.1853211009 \tabularnewline
60 & 117008 & 144914.385321101 & -27906.3853211009 \tabularnewline
61 & 108811 & 136391.321100917 & -27580.3211009174 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36108&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]147768[/C][C]136391.321100917[/C][C]11376.6788990827[/C][/ROW]
[ROW][C]2[/C][C]137507[/C][C]131552.185321101[/C][C]5954.81467889909[/C][/ROW]
[ROW][C]3[/C][C]136919[/C][C]128091.785321101[/C][C]8827.21467889908[/C][/ROW]
[ROW][C]4[/C][C]136151[/C][C]125890.985321101[/C][C]10260.0146788991[/C][/ROW]
[ROW][C]5[/C][C]133001[/C][C]122237.785321101[/C][C]10763.2146788991[/C][/ROW]
[ROW][C]6[/C][C]125554[/C][C]116006.385321101[/C][C]9547.61467889908[/C][/ROW]
[ROW][C]7[/C][C]119647[/C][C]112415.185321101[/C][C]7231.81467889909[/C][/ROW]
[ROW][C]8[/C][C]114158[/C][C]106382.185321101[/C][C]7775.81467889907[/C][/ROW]
[ROW][C]9[/C][C]116193[/C][C]107601.985321101[/C][C]8591.01467889907[/C][/ROW]
[ROW][C]10[/C][C]152803[/C][C]140280.185321101[/C][C]12522.8146788991[/C][/ROW]
[ROW][C]11[/C][C]161761[/C][C]147189.185321101[/C][C]14571.8146788991[/C][/ROW]
[ROW][C]12[/C][C]160942[/C][C]144914.385321101[/C][C]16027.6146788991[/C][/ROW]
[ROW][C]13[/C][C]149470[/C][C]136391.321100917[/C][C]13078.6788990826[/C][/ROW]
[ROW][C]14[/C][C]139208[/C][C]131552.185321101[/C][C]7655.81467889908[/C][/ROW]
[ROW][C]15[/C][C]134588[/C][C]128091.785321101[/C][C]6496.21467889908[/C][/ROW]
[ROW][C]16[/C][C]130322[/C][C]125890.985321101[/C][C]4431.01467889909[/C][/ROW]
[ROW][C]17[/C][C]126611[/C][C]122237.785321101[/C][C]4373.21467889908[/C][/ROW]
[ROW][C]18[/C][C]122401[/C][C]116006.385321101[/C][C]6394.61467889908[/C][/ROW]
[ROW][C]19[/C][C]117352[/C][C]112415.185321101[/C][C]4936.81467889908[/C][/ROW]
[ROW][C]20[/C][C]112135[/C][C]106382.185321101[/C][C]5752.81467889908[/C][/ROW]
[ROW][C]21[/C][C]112879[/C][C]107601.985321101[/C][C]5277.01467889908[/C][/ROW]
[ROW][C]22[/C][C]148729[/C][C]140280.185321101[/C][C]8448.81467889908[/C][/ROW]
[ROW][C]23[/C][C]157230[/C][C]147189.185321101[/C][C]10040.8146788991[/C][/ROW]
[ROW][C]24[/C][C]157221[/C][C]144914.385321101[/C][C]12306.6146788991[/C][/ROW]
[ROW][C]25[/C][C]146681[/C][C]136391.321100917[/C][C]10289.6788990826[/C][/ROW]
[ROW][C]26[/C][C]136524[/C][C]131552.185321101[/C][C]4971.81467889908[/C][/ROW]
[ROW][C]27[/C][C]132111[/C][C]128091.785321101[/C][C]4019.21467889908[/C][/ROW]
[ROW][C]28[/C][C]125326[/C][C]117737.022018349[/C][C]7588.97798165138[/C][/ROW]
[ROW][C]29[/C][C]122716[/C][C]114083.822018349[/C][C]8632.17798165137[/C][/ROW]
[ROW][C]30[/C][C]116615[/C][C]107852.422018349[/C][C]8762.57798165138[/C][/ROW]
[ROW][C]31[/C][C]113719[/C][C]104261.222018349[/C][C]9457.77798165138[/C][/ROW]
[ROW][C]32[/C][C]110737[/C][C]98228.2220183486[/C][C]12508.7779816514[/C][/ROW]
[ROW][C]33[/C][C]112093[/C][C]99448.0220183486[/C][C]12644.9779816514[/C][/ROW]
[ROW][C]34[/C][C]143565[/C][C]132126.222018349[/C][C]11438.7779816514[/C][/ROW]
[ROW][C]35[/C][C]149946[/C][C]139035.222018349[/C][C]10910.7779816514[/C][/ROW]
[ROW][C]36[/C][C]149147[/C][C]136760.422018349[/C][C]12386.5779816514[/C][/ROW]
[ROW][C]37[/C][C]134339[/C][C]128237.357798165[/C][C]6101.64220183484[/C][/ROW]
[ROW][C]38[/C][C]122683[/C][C]123398.222018349[/C][C]-715.222018348621[/C][/ROW]
[ROW][C]39[/C][C]115614[/C][C]119937.822018349[/C][C]-4323.82201834862[/C][/ROW]
[ROW][C]40[/C][C]116566[/C][C]117737.022018349[/C][C]-1171.02201834862[/C][/ROW]
[ROW][C]41[/C][C]111272[/C][C]114083.822018349[/C][C]-2811.82201834863[/C][/ROW]
[ROW][C]42[/C][C]104609[/C][C]107852.422018349[/C][C]-3243.42201834862[/C][/ROW]
[ROW][C]43[/C][C]101802[/C][C]104261.222018349[/C][C]-2459.22201834862[/C][/ROW]
[ROW][C]44[/C][C]94542[/C][C]98228.2220183486[/C][C]-3686.22201834862[/C][/ROW]
[ROW][C]45[/C][C]93051[/C][C]99448.0220183486[/C][C]-6397.02201834862[/C][/ROW]
[ROW][C]46[/C][C]124129[/C][C]132126.222018349[/C][C]-7997.22201834862[/C][/ROW]
[ROW][C]47[/C][C]130374[/C][C]139035.222018349[/C][C]-8661.22201834862[/C][/ROW]
[ROW][C]48[/C][C]123946[/C][C]136760.422018349[/C][C]-12814.4220183486[/C][/ROW]
[ROW][C]49[/C][C]114971[/C][C]128237.357798165[/C][C]-13266.3577981652[/C][/ROW]
[ROW][C]50[/C][C]105531[/C][C]123398.222018349[/C][C]-17867.2220183486[/C][/ROW]
[ROW][C]51[/C][C]104919[/C][C]119937.822018349[/C][C]-15018.8220183486[/C][/ROW]
[ROW][C]52[/C][C]104782[/C][C]125890.985321101[/C][C]-21108.9853211009[/C][/ROW]
[ROW][C]53[/C][C]101281[/C][C]122237.785321101[/C][C]-20956.7853211009[/C][/ROW]
[ROW][C]54[/C][C]94545[/C][C]116006.385321101[/C][C]-21461.3853211009[/C][/ROW]
[ROW][C]55[/C][C]93248[/C][C]112415.185321101[/C][C]-19167.1853211009[/C][/ROW]
[ROW][C]56[/C][C]84031[/C][C]106382.185321101[/C][C]-22351.1853211009[/C][/ROW]
[ROW][C]57[/C][C]87486[/C][C]107601.985321101[/C][C]-20115.9853211009[/C][/ROW]
[ROW][C]58[/C][C]115867[/C][C]140280.185321101[/C][C]-24413.1853211009[/C][/ROW]
[ROW][C]59[/C][C]120327[/C][C]147189.185321101[/C][C]-26862.1853211009[/C][/ROW]
[ROW][C]60[/C][C]117008[/C][C]144914.385321101[/C][C]-27906.3853211009[/C][/ROW]
[ROW][C]61[/C][C]108811[/C][C]136391.321100917[/C][C]-27580.3211009174[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36108&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36108&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
1147768136391.32110091711376.6788990827
2137507131552.1853211015954.81467889909
3136919128091.7853211018827.21467889908
4136151125890.98532110110260.0146788991
5133001122237.78532110110763.2146788991
6125554116006.3853211019547.61467889908
7119647112415.1853211017231.81467889909
8114158106382.1853211017775.81467889907
9116193107601.9853211018591.01467889907
10152803140280.18532110112522.8146788991
11161761147189.18532110114571.8146788991
12160942144914.38532110116027.6146788991
13149470136391.32110091713078.6788990826
14139208131552.1853211017655.81467889908
15134588128091.7853211016496.21467889908
16130322125890.9853211014431.01467889909
17126611122237.7853211014373.21467889908
18122401116006.3853211016394.61467889908
19117352112415.1853211014936.81467889908
20112135106382.1853211015752.81467889908
21112879107601.9853211015277.01467889908
22148729140280.1853211018448.81467889908
23157230147189.18532110110040.8146788991
24157221144914.38532110112306.6146788991
25146681136391.32110091710289.6788990826
26136524131552.1853211014971.81467889908
27132111128091.7853211014019.21467889908
28125326117737.0220183497588.97798165138
29122716114083.8220183498632.17798165137
30116615107852.4220183498762.57798165138
31113719104261.2220183499457.77798165138
3211073798228.222018348612508.7779816514
3311209399448.022018348612644.9779816514
34143565132126.22201834911438.7779816514
35149946139035.22201834910910.7779816514
36149147136760.42201834912386.5779816514
37134339128237.3577981656101.64220183484
38122683123398.222018349-715.222018348621
39115614119937.822018349-4323.82201834862
40116566117737.022018349-1171.02201834862
41111272114083.822018349-2811.82201834863
42104609107852.422018349-3243.42201834862
43101802104261.222018349-2459.22201834862
449454298228.2220183486-3686.22201834862
459305199448.0220183486-6397.02201834862
46124129132126.222018349-7997.22201834862
47130374139035.222018349-8661.22201834862
48123946136760.422018349-12814.4220183486
49114971128237.357798165-13266.3577981652
50105531123398.222018349-17867.2220183486
51104919119937.822018349-15018.8220183486
52104782125890.985321101-21108.9853211009
53101281122237.785321101-20956.7853211009
5494545116006.385321101-21461.3853211009
5593248112415.185321101-19167.1853211009
5684031106382.185321101-22351.1853211009
5787486107601.985321101-20115.9853211009
58115867140280.185321101-24413.1853211009
59120327147189.185321101-26862.1853211009
60117008144914.385321101-27906.3853211009
61108811136391.321100917-27580.3211009174







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.008741157912316610.01748231582463320.991258842087683
170.004710098927864330.009420197855728660.995289901072136
180.001216384419422290.002432768838844590.998783615580578
190.0002728374575624410.0005456749151248810.999727162542438
205.94732846088066e-050.0001189465692176130.999940526715391
211.63650279121915e-053.27300558243829e-050.999983634972088
226.47220999410216e-061.29444199882043e-050.999993527790006
233.60323738704956e-067.20647477409911e-060.999996396762613
242.42728300470705e-064.85456600941411e-060.999997572716995
251.92298551043437e-063.84597102086874e-060.99999807701449
262.25618354475661e-064.51236708951322e-060.999997743816455
271.43061249858966e-052.86122499717932e-050.999985693875014
284.26554828743288e-068.53109657486575e-060.999995734451713
291.35225213972761e-062.70450427945521e-060.99999864774786
304.32342276736501e-078.64684553473002e-070.999999567657723
311.75238193942610e-073.50476387885219e-070.999999824761806
321.96153590083156e-073.92307180166313e-070.99999980384641
332.08443607849844e-074.16887215699688e-070.999999791556392
342.78528354712157e-075.57056709424314e-070.999999721471645
351.36905262266732e-062.73810524533464e-060.999998630947377
360.0001181253502278430.0002362507004556850.999881874649772
370.01578771823889710.03157543647779410.984212281761103
380.5502430898306270.8995138203387460.449756910169373
390.9938282945728080.01234341085438470.00617170542719233
400.9966474524948570.006705095010285390.00335254750514269
410.9960202871782750.00795942564345010.00397971282172505
420.9949976892555150.01000462148897070.00500231074448535
430.9872051363170590.02558972736588290.0127948636829414
440.987329327900390.02534134419921870.0126706720996094
450.9787490715360630.04250185692787430.0212509284639372

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.00874115791231661 & 0.0174823158246332 & 0.991258842087683 \tabularnewline
17 & 0.00471009892786433 & 0.00942019785572866 & 0.995289901072136 \tabularnewline
18 & 0.00121638441942229 & 0.00243276883884459 & 0.998783615580578 \tabularnewline
19 & 0.000272837457562441 & 0.000545674915124881 & 0.999727162542438 \tabularnewline
20 & 5.94732846088066e-05 & 0.000118946569217613 & 0.999940526715391 \tabularnewline
21 & 1.63650279121915e-05 & 3.27300558243829e-05 & 0.999983634972088 \tabularnewline
22 & 6.47220999410216e-06 & 1.29444199882043e-05 & 0.999993527790006 \tabularnewline
23 & 3.60323738704956e-06 & 7.20647477409911e-06 & 0.999996396762613 \tabularnewline
24 & 2.42728300470705e-06 & 4.85456600941411e-06 & 0.999997572716995 \tabularnewline
25 & 1.92298551043437e-06 & 3.84597102086874e-06 & 0.99999807701449 \tabularnewline
26 & 2.25618354475661e-06 & 4.51236708951322e-06 & 0.999997743816455 \tabularnewline
27 & 1.43061249858966e-05 & 2.86122499717932e-05 & 0.999985693875014 \tabularnewline
28 & 4.26554828743288e-06 & 8.53109657486575e-06 & 0.999995734451713 \tabularnewline
29 & 1.35225213972761e-06 & 2.70450427945521e-06 & 0.99999864774786 \tabularnewline
30 & 4.32342276736501e-07 & 8.64684553473002e-07 & 0.999999567657723 \tabularnewline
31 & 1.75238193942610e-07 & 3.50476387885219e-07 & 0.999999824761806 \tabularnewline
32 & 1.96153590083156e-07 & 3.92307180166313e-07 & 0.99999980384641 \tabularnewline
33 & 2.08443607849844e-07 & 4.16887215699688e-07 & 0.999999791556392 \tabularnewline
34 & 2.78528354712157e-07 & 5.57056709424314e-07 & 0.999999721471645 \tabularnewline
35 & 1.36905262266732e-06 & 2.73810524533464e-06 & 0.999998630947377 \tabularnewline
36 & 0.000118125350227843 & 0.000236250700455685 & 0.999881874649772 \tabularnewline
37 & 0.0157877182388971 & 0.0315754364777941 & 0.984212281761103 \tabularnewline
38 & 0.550243089830627 & 0.899513820338746 & 0.449756910169373 \tabularnewline
39 & 0.993828294572808 & 0.0123434108543847 & 0.00617170542719233 \tabularnewline
40 & 0.996647452494857 & 0.00670509501028539 & 0.00335254750514269 \tabularnewline
41 & 0.996020287178275 & 0.0079594256434501 & 0.00397971282172505 \tabularnewline
42 & 0.994997689255515 & 0.0100046214889707 & 0.00500231074448535 \tabularnewline
43 & 0.987205136317059 & 0.0255897273658829 & 0.0127948636829414 \tabularnewline
44 & 0.98732932790039 & 0.0253413441992187 & 0.0126706720996094 \tabularnewline
45 & 0.978749071536063 & 0.0425018569278743 & 0.0212509284639372 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36108&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.00874115791231661[/C][C]0.0174823158246332[/C][C]0.991258842087683[/C][/ROW]
[ROW][C]17[/C][C]0.00471009892786433[/C][C]0.00942019785572866[/C][C]0.995289901072136[/C][/ROW]
[ROW][C]18[/C][C]0.00121638441942229[/C][C]0.00243276883884459[/C][C]0.998783615580578[/C][/ROW]
[ROW][C]19[/C][C]0.000272837457562441[/C][C]0.000545674915124881[/C][C]0.999727162542438[/C][/ROW]
[ROW][C]20[/C][C]5.94732846088066e-05[/C][C]0.000118946569217613[/C][C]0.999940526715391[/C][/ROW]
[ROW][C]21[/C][C]1.63650279121915e-05[/C][C]3.27300558243829e-05[/C][C]0.999983634972088[/C][/ROW]
[ROW][C]22[/C][C]6.47220999410216e-06[/C][C]1.29444199882043e-05[/C][C]0.999993527790006[/C][/ROW]
[ROW][C]23[/C][C]3.60323738704956e-06[/C][C]7.20647477409911e-06[/C][C]0.999996396762613[/C][/ROW]
[ROW][C]24[/C][C]2.42728300470705e-06[/C][C]4.85456600941411e-06[/C][C]0.999997572716995[/C][/ROW]
[ROW][C]25[/C][C]1.92298551043437e-06[/C][C]3.84597102086874e-06[/C][C]0.99999807701449[/C][/ROW]
[ROW][C]26[/C][C]2.25618354475661e-06[/C][C]4.51236708951322e-06[/C][C]0.999997743816455[/C][/ROW]
[ROW][C]27[/C][C]1.43061249858966e-05[/C][C]2.86122499717932e-05[/C][C]0.999985693875014[/C][/ROW]
[ROW][C]28[/C][C]4.26554828743288e-06[/C][C]8.53109657486575e-06[/C][C]0.999995734451713[/C][/ROW]
[ROW][C]29[/C][C]1.35225213972761e-06[/C][C]2.70450427945521e-06[/C][C]0.99999864774786[/C][/ROW]
[ROW][C]30[/C][C]4.32342276736501e-07[/C][C]8.64684553473002e-07[/C][C]0.999999567657723[/C][/ROW]
[ROW][C]31[/C][C]1.75238193942610e-07[/C][C]3.50476387885219e-07[/C][C]0.999999824761806[/C][/ROW]
[ROW][C]32[/C][C]1.96153590083156e-07[/C][C]3.92307180166313e-07[/C][C]0.99999980384641[/C][/ROW]
[ROW][C]33[/C][C]2.08443607849844e-07[/C][C]4.16887215699688e-07[/C][C]0.999999791556392[/C][/ROW]
[ROW][C]34[/C][C]2.78528354712157e-07[/C][C]5.57056709424314e-07[/C][C]0.999999721471645[/C][/ROW]
[ROW][C]35[/C][C]1.36905262266732e-06[/C][C]2.73810524533464e-06[/C][C]0.999998630947377[/C][/ROW]
[ROW][C]36[/C][C]0.000118125350227843[/C][C]0.000236250700455685[/C][C]0.999881874649772[/C][/ROW]
[ROW][C]37[/C][C]0.0157877182388971[/C][C]0.0315754364777941[/C][C]0.984212281761103[/C][/ROW]
[ROW][C]38[/C][C]0.550243089830627[/C][C]0.899513820338746[/C][C]0.449756910169373[/C][/ROW]
[ROW][C]39[/C][C]0.993828294572808[/C][C]0.0123434108543847[/C][C]0.00617170542719233[/C][/ROW]
[ROW][C]40[/C][C]0.996647452494857[/C][C]0.00670509501028539[/C][C]0.00335254750514269[/C][/ROW]
[ROW][C]41[/C][C]0.996020287178275[/C][C]0.0079594256434501[/C][C]0.00397971282172505[/C][/ROW]
[ROW][C]42[/C][C]0.994997689255515[/C][C]0.0100046214889707[/C][C]0.00500231074448535[/C][/ROW]
[ROW][C]43[/C][C]0.987205136317059[/C][C]0.0255897273658829[/C][C]0.0127948636829414[/C][/ROW]
[ROW][C]44[/C][C]0.98732932790039[/C][C]0.0253413441992187[/C][C]0.0126706720996094[/C][/ROW]
[ROW][C]45[/C][C]0.978749071536063[/C][C]0.0425018569278743[/C][C]0.0212509284639372[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36108&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36108&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.008741157912316610.01748231582463320.991258842087683
170.004710098927864330.009420197855728660.995289901072136
180.001216384419422290.002432768838844590.998783615580578
190.0002728374575624410.0005456749151248810.999727162542438
205.94732846088066e-050.0001189465692176130.999940526715391
211.63650279121915e-053.27300558243829e-050.999983634972088
226.47220999410216e-061.29444199882043e-050.999993527790006
233.60323738704956e-067.20647477409911e-060.999996396762613
242.42728300470705e-064.85456600941411e-060.999997572716995
251.92298551043437e-063.84597102086874e-060.99999807701449
262.25618354475661e-064.51236708951322e-060.999997743816455
271.43061249858966e-052.86122499717932e-050.999985693875014
284.26554828743288e-068.53109657486575e-060.999995734451713
291.35225213972761e-062.70450427945521e-060.99999864774786
304.32342276736501e-078.64684553473002e-070.999999567657723
311.75238193942610e-073.50476387885219e-070.999999824761806
321.96153590083156e-073.92307180166313e-070.99999980384641
332.08443607849844e-074.16887215699688e-070.999999791556392
342.78528354712157e-075.57056709424314e-070.999999721471645
351.36905262266732e-062.73810524533464e-060.999998630947377
360.0001181253502278430.0002362507004556850.999881874649772
370.01578771823889710.03157543647779410.984212281761103
380.5502430898306270.8995138203387460.449756910169373
390.9938282945728080.01234341085438470.00617170542719233
400.9966474524948570.006705095010285390.00335254750514269
410.9960202871782750.00795942564345010.00397971282172505
420.9949976892555150.01000462148897070.00500231074448535
430.9872051363170590.02558972736588290.0127948636829414
440.987329327900390.02534134419921870.0126706720996094
450.9787490715360630.04250185692787430.0212509284639372







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level220.733333333333333NOK
5% type I error level290.966666666666667NOK
10% type I error level290.966666666666667NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36108&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.733333333333333NOK
5% type I error level290.966666666666667NOK
10% type I error level290.966666666666667NOK



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