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 14:10:22 -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/t12585786670nn88cokyorltzd.htm/, Retrieved Sat, 04 May 2024 18:49:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57622, Retrieved Sat, 04 May 2024 18:49:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact172
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]
- R PD      [Multiple Regression] [Model 3] [2009-11-18 21:10:22] [026d431dc78a3ce53a040b5408fc0322] [Current]
Feedback Forum

Post a new message
Dataseries X:
115.6	0
111.3	0
114.6	0
137.5	0
83.7	0
106.0	0
123.4	0
126.5	0
120.0	0
141.6	0
90.5	0
96.5	0
113.5	0
120.1	0
123.9	0
144.4	0
90.8	0
114.2	0
138.1	0
135.0	0
131.3	0
144.6	0
101.7	0
108.7	0
135.3	0
124.3	0
138.3	0
158.2	0
93.5	0
124.8	0
154.4	0
152.8	0
148.9	0
170.3	0
124.8	0
134.4	0
154.0	0
147.9	0
168.1	0
175.7	0
116.7	0
140.8	0
164.2	0
173.8	0
167.8	0
166.6	0
135.1	1
158.1	1
151.8	1
166.7	1
165.3	1
187.0	1
125.2	1
144.4	1
181.7	1
175.9	1
166.3	1
181.5	1
121.8	1
134.8	1
162.9	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 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 & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57622&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]4 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=57622&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57622&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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 89.1350491803279 -3.90549180327873X[t] + 17.4961821493625M1[t] + 17.5919981785064M2[t] + 24.4906885245902M3[t] + 41.9293788706739M4[t] -17.7319307832422M5[t] + 5.24675956284152M6[t] + 30.4854499089253M7[t] + 29.8441402550091M8[t] + 22.8228306010929M9[t] + 35.8015209471767M10[t] -10.6386903460838M11[t] + 1.08130965391621t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  89.1350491803279 -3.90549180327873X[t] +  17.4961821493625M1[t] +  17.5919981785064M2[t] +  24.4906885245902M3[t] +  41.9293788706739M4[t] -17.7319307832422M5[t] +  5.24675956284152M6[t] +  30.4854499089253M7[t] +  29.8441402550091M8[t] +  22.8228306010929M9[t] +  35.8015209471767M10[t] -10.6386903460838M11[t] +  1.08130965391621t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57622&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  89.1350491803279 -3.90549180327873X[t] +  17.4961821493625M1[t] +  17.5919981785064M2[t] +  24.4906885245902M3[t] +  41.9293788706739M4[t] -17.7319307832422M5[t] +  5.24675956284152M6[t] +  30.4854499089253M7[t] +  29.8441402550091M8[t] +  22.8228306010929M9[t] +  35.8015209471767M10[t] -10.6386903460838M11[t] +  1.08130965391621t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57622&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 89.1350491803279 -3.90549180327873X[t] + 17.4961821493625M1[t] + 17.5919981785064M2[t] + 24.4906885245902M3[t] + 41.9293788706739M4[t] -17.7319307832422M5[t] + 5.24675956284152M6[t] + 30.4854499089253M7[t] + 29.8441402550091M8[t] + 22.8228306010929M9[t] + 35.8015209471767M10[t] -10.6386903460838M11[t] + 1.08130965391621t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)89.13504918032793.91895122.744600
X-3.905491803278733.358537-1.16290.2507590.125379
M117.49618214936254.4573493.92520.0002820.000141
M217.59199817850644.6779883.76060.0004690.000234
M324.49068852459024.673175.24074e-062e-06
M441.92937887067394.6697868.978900
M5-17.73193078324224.667838-3.79870.0004170.000208
M65.246759562841524.6673291.12410.266660.13333
M730.48544990892534.6682596.530400
M829.84414025500914.6706286.389700
M922.82283060109294.6744324.88251.3e-056e-06
M1035.80152094717674.6796697.650400
M11-10.63869034608384.646838-2.28940.026590.013295
t1.081309653916210.08195813.193500

\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) & 89.1350491803279 & 3.918951 & 22.7446 & 0 & 0 \tabularnewline
X & -3.90549180327873 & 3.358537 & -1.1629 & 0.250759 & 0.125379 \tabularnewline
M1 & 17.4961821493625 & 4.457349 & 3.9252 & 0.000282 & 0.000141 \tabularnewline
M2 & 17.5919981785064 & 4.677988 & 3.7606 & 0.000469 & 0.000234 \tabularnewline
M3 & 24.4906885245902 & 4.67317 & 5.2407 & 4e-06 & 2e-06 \tabularnewline
M4 & 41.9293788706739 & 4.669786 & 8.9789 & 0 & 0 \tabularnewline
M5 & -17.7319307832422 & 4.667838 & -3.7987 & 0.000417 & 0.000208 \tabularnewline
M6 & 5.24675956284152 & 4.667329 & 1.1241 & 0.26666 & 0.13333 \tabularnewline
M7 & 30.4854499089253 & 4.668259 & 6.5304 & 0 & 0 \tabularnewline
M8 & 29.8441402550091 & 4.670628 & 6.3897 & 0 & 0 \tabularnewline
M9 & 22.8228306010929 & 4.674432 & 4.8825 & 1.3e-05 & 6e-06 \tabularnewline
M10 & 35.8015209471767 & 4.679669 & 7.6504 & 0 & 0 \tabularnewline
M11 & -10.6386903460838 & 4.646838 & -2.2894 & 0.02659 & 0.013295 \tabularnewline
t & 1.08130965391621 & 0.081958 & 13.1935 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57622&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]89.1350491803279[/C][C]3.918951[/C][C]22.7446[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-3.90549180327873[/C][C]3.358537[/C][C]-1.1629[/C][C]0.250759[/C][C]0.125379[/C][/ROW]
[ROW][C]M1[/C][C]17.4961821493625[/C][C]4.457349[/C][C]3.9252[/C][C]0.000282[/C][C]0.000141[/C][/ROW]
[ROW][C]M2[/C][C]17.5919981785064[/C][C]4.677988[/C][C]3.7606[/C][C]0.000469[/C][C]0.000234[/C][/ROW]
[ROW][C]M3[/C][C]24.4906885245902[/C][C]4.67317[/C][C]5.2407[/C][C]4e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M4[/C][C]41.9293788706739[/C][C]4.669786[/C][C]8.9789[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]-17.7319307832422[/C][C]4.667838[/C][C]-3.7987[/C][C]0.000417[/C][C]0.000208[/C][/ROW]
[ROW][C]M6[/C][C]5.24675956284152[/C][C]4.667329[/C][C]1.1241[/C][C]0.26666[/C][C]0.13333[/C][/ROW]
[ROW][C]M7[/C][C]30.4854499089253[/C][C]4.668259[/C][C]6.5304[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]29.8441402550091[/C][C]4.670628[/C][C]6.3897[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]22.8228306010929[/C][C]4.674432[/C][C]4.8825[/C][C]1.3e-05[/C][C]6e-06[/C][/ROW]
[ROW][C]M10[/C][C]35.8015209471767[/C][C]4.679669[/C][C]7.6504[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]-10.6386903460838[/C][C]4.646838[/C][C]-2.2894[/C][C]0.02659[/C][C]0.013295[/C][/ROW]
[ROW][C]t[/C][C]1.08130965391621[/C][C]0.081958[/C][C]13.1935[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57622&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57622&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)89.13504918032793.91895122.744600
X-3.905491803278733.358537-1.16290.2507590.125379
M117.49618214936254.4573493.92520.0002820.000141
M217.59199817850644.6779883.76060.0004690.000234
M324.49068852459024.673175.24074e-062e-06
M441.92937887067394.6697868.978900
M5-17.73193078324224.667838-3.79870.0004170.000208
M65.246759562841524.6673291.12410.266660.13333
M730.48544990892534.6682596.530400
M829.84414025500914.6706286.389700
M922.82283060109294.6744324.88251.3e-056e-06
M1035.80152094717674.6796697.650400
M11-10.63869034608384.646838-2.28940.026590.013295
t1.081309653916210.08195813.193500







Multiple Linear Regression - Regression Statistics
Multiple R0.967564799200113
R-squared0.936181640651156
Adjusted R-squared0.918529754022752
F-TEST (value)53.0357836733860
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.34615257901844
Sum Squared Residuals2536.40001256831

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.967564799200113 \tabularnewline
R-squared & 0.936181640651156 \tabularnewline
Adjusted R-squared & 0.918529754022752 \tabularnewline
F-TEST (value) & 53.0357836733860 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 7.34615257901844 \tabularnewline
Sum Squared Residuals & 2536.40001256831 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57622&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.967564799200113[/C][/ROW]
[ROW][C]R-squared[/C][C]0.936181640651156[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.918529754022752[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]53.0357836733860[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]7.34615257901844[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2536.40001256831[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57622&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57622&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.967564799200113
R-squared0.936181640651156
Adjusted R-squared0.918529754022752
F-TEST (value)53.0357836733860
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.34615257901844
Sum Squared Residuals2536.40001256831







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1115.6107.7125409836067.8874590163935
2111.3108.8896666666672.41033333333336
3114.6116.869666666667-2.26966666666668
4137.5135.3896666666672.11033333333327
583.776.80966666666676.89033333333334
6106100.8696666666675.1303333333333
7123.4127.189666666667-3.7896666666667
8126.5127.629666666667-1.12966666666669
9120121.689666666667-1.68966666666666
10141.6135.7496666666675.85033333333333
1190.590.39076502732240.109234972677633
1296.5102.110765027322-5.61076502732237
13113.5120.688256830601-7.1882568306011
14120.1121.865382513661-1.76538251366123
15123.9129.845382513661-5.9453825136612
16144.4148.365382513661-3.96538251366118
1790.889.78538251366121.01461748633879
18114.2113.8453825136610.354617486338808
19138.1140.165382513661-2.06538251366119
20135140.605382513661-5.6053825136612
21131.3134.665382513661-3.3653825136612
22144.6148.725382513661-4.12538251366120
23101.7103.366480874317-1.66648087431694
24108.7115.086480874317-6.38648087431694
25135.3133.6639726775961.63602732240437
26124.3134.841098360656-10.5410983606557
27138.3142.821098360656-4.52109836065573
28158.2161.341098360656-3.14109836065574
2993.5102.761098360656-9.26109836065575
30124.8126.821098360656-2.02109836065573
31154.4153.1410983606561.25890163934428
32152.8153.581098360656-0.781098360655725
33148.9147.6410983606561.25890163934425
34170.3161.7010983606568.59890163934428
35124.8116.3421967213118.4578032786885
36134.4128.0621967213116.33780327868851
37154146.6396885245907.36031147540982
38147.9147.8168142076500.0831857923497378
39168.1155.79681420765012.3031857923497
40175.7174.3168142076501.38318579234973
41116.7115.7368142076500.963185792349718
42140.8139.7968142076501.00318579234973
43164.2166.116814207650-1.91681420765027
44173.8166.5568142076507.24318579234974
45167.8160.6168142076507.18318579234973
46166.6174.676814207650-8.07681420765028
47135.1125.4124207650279.68757923497267
48158.1137.13242076502720.9675792349727
49151.8155.709912568306-3.90991256830602
50166.7156.8870382513669.81296174863387
51165.3164.8670382513660.432961748633893
52187183.3870382513663.61296174863391
53125.2124.8070382513660.392961748633878
54144.4148.867038251366-4.46703825136611
55181.7175.1870382513666.51296174863388
56175.9175.6270382513660.272961748633879
57166.3169.687038251366-3.38703825136612
58181.5183.747038251366-2.24703825136613
59121.8138.388136612022-16.5881366120219
60134.8150.108136612022-15.3081366120219
61162.9168.685628415301-5.78562841530056

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 115.6 & 107.712540983606 & 7.8874590163935 \tabularnewline
2 & 111.3 & 108.889666666667 & 2.41033333333336 \tabularnewline
3 & 114.6 & 116.869666666667 & -2.26966666666668 \tabularnewline
4 & 137.5 & 135.389666666667 & 2.11033333333327 \tabularnewline
5 & 83.7 & 76.8096666666667 & 6.89033333333334 \tabularnewline
6 & 106 & 100.869666666667 & 5.1303333333333 \tabularnewline
7 & 123.4 & 127.189666666667 & -3.7896666666667 \tabularnewline
8 & 126.5 & 127.629666666667 & -1.12966666666669 \tabularnewline
9 & 120 & 121.689666666667 & -1.68966666666666 \tabularnewline
10 & 141.6 & 135.749666666667 & 5.85033333333333 \tabularnewline
11 & 90.5 & 90.3907650273224 & 0.109234972677633 \tabularnewline
12 & 96.5 & 102.110765027322 & -5.61076502732237 \tabularnewline
13 & 113.5 & 120.688256830601 & -7.1882568306011 \tabularnewline
14 & 120.1 & 121.865382513661 & -1.76538251366123 \tabularnewline
15 & 123.9 & 129.845382513661 & -5.9453825136612 \tabularnewline
16 & 144.4 & 148.365382513661 & -3.96538251366118 \tabularnewline
17 & 90.8 & 89.7853825136612 & 1.01461748633879 \tabularnewline
18 & 114.2 & 113.845382513661 & 0.354617486338808 \tabularnewline
19 & 138.1 & 140.165382513661 & -2.06538251366119 \tabularnewline
20 & 135 & 140.605382513661 & -5.6053825136612 \tabularnewline
21 & 131.3 & 134.665382513661 & -3.3653825136612 \tabularnewline
22 & 144.6 & 148.725382513661 & -4.12538251366120 \tabularnewline
23 & 101.7 & 103.366480874317 & -1.66648087431694 \tabularnewline
24 & 108.7 & 115.086480874317 & -6.38648087431694 \tabularnewline
25 & 135.3 & 133.663972677596 & 1.63602732240437 \tabularnewline
26 & 124.3 & 134.841098360656 & -10.5410983606557 \tabularnewline
27 & 138.3 & 142.821098360656 & -4.52109836065573 \tabularnewline
28 & 158.2 & 161.341098360656 & -3.14109836065574 \tabularnewline
29 & 93.5 & 102.761098360656 & -9.26109836065575 \tabularnewline
30 & 124.8 & 126.821098360656 & -2.02109836065573 \tabularnewline
31 & 154.4 & 153.141098360656 & 1.25890163934428 \tabularnewline
32 & 152.8 & 153.581098360656 & -0.781098360655725 \tabularnewline
33 & 148.9 & 147.641098360656 & 1.25890163934425 \tabularnewline
34 & 170.3 & 161.701098360656 & 8.59890163934428 \tabularnewline
35 & 124.8 & 116.342196721311 & 8.4578032786885 \tabularnewline
36 & 134.4 & 128.062196721311 & 6.33780327868851 \tabularnewline
37 & 154 & 146.639688524590 & 7.36031147540982 \tabularnewline
38 & 147.9 & 147.816814207650 & 0.0831857923497378 \tabularnewline
39 & 168.1 & 155.796814207650 & 12.3031857923497 \tabularnewline
40 & 175.7 & 174.316814207650 & 1.38318579234973 \tabularnewline
41 & 116.7 & 115.736814207650 & 0.963185792349718 \tabularnewline
42 & 140.8 & 139.796814207650 & 1.00318579234973 \tabularnewline
43 & 164.2 & 166.116814207650 & -1.91681420765027 \tabularnewline
44 & 173.8 & 166.556814207650 & 7.24318579234974 \tabularnewline
45 & 167.8 & 160.616814207650 & 7.18318579234973 \tabularnewline
46 & 166.6 & 174.676814207650 & -8.07681420765028 \tabularnewline
47 & 135.1 & 125.412420765027 & 9.68757923497267 \tabularnewline
48 & 158.1 & 137.132420765027 & 20.9675792349727 \tabularnewline
49 & 151.8 & 155.709912568306 & -3.90991256830602 \tabularnewline
50 & 166.7 & 156.887038251366 & 9.81296174863387 \tabularnewline
51 & 165.3 & 164.867038251366 & 0.432961748633893 \tabularnewline
52 & 187 & 183.387038251366 & 3.61296174863391 \tabularnewline
53 & 125.2 & 124.807038251366 & 0.392961748633878 \tabularnewline
54 & 144.4 & 148.867038251366 & -4.46703825136611 \tabularnewline
55 & 181.7 & 175.187038251366 & 6.51296174863388 \tabularnewline
56 & 175.9 & 175.627038251366 & 0.272961748633879 \tabularnewline
57 & 166.3 & 169.687038251366 & -3.38703825136612 \tabularnewline
58 & 181.5 & 183.747038251366 & -2.24703825136613 \tabularnewline
59 & 121.8 & 138.388136612022 & -16.5881366120219 \tabularnewline
60 & 134.8 & 150.108136612022 & -15.3081366120219 \tabularnewline
61 & 162.9 & 168.685628415301 & -5.78562841530056 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57622&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]115.6[/C][C]107.712540983606[/C][C]7.8874590163935[/C][/ROW]
[ROW][C]2[/C][C]111.3[/C][C]108.889666666667[/C][C]2.41033333333336[/C][/ROW]
[ROW][C]3[/C][C]114.6[/C][C]116.869666666667[/C][C]-2.26966666666668[/C][/ROW]
[ROW][C]4[/C][C]137.5[/C][C]135.389666666667[/C][C]2.11033333333327[/C][/ROW]
[ROW][C]5[/C][C]83.7[/C][C]76.8096666666667[/C][C]6.89033333333334[/C][/ROW]
[ROW][C]6[/C][C]106[/C][C]100.869666666667[/C][C]5.1303333333333[/C][/ROW]
[ROW][C]7[/C][C]123.4[/C][C]127.189666666667[/C][C]-3.7896666666667[/C][/ROW]
[ROW][C]8[/C][C]126.5[/C][C]127.629666666667[/C][C]-1.12966666666669[/C][/ROW]
[ROW][C]9[/C][C]120[/C][C]121.689666666667[/C][C]-1.68966666666666[/C][/ROW]
[ROW][C]10[/C][C]141.6[/C][C]135.749666666667[/C][C]5.85033333333333[/C][/ROW]
[ROW][C]11[/C][C]90.5[/C][C]90.3907650273224[/C][C]0.109234972677633[/C][/ROW]
[ROW][C]12[/C][C]96.5[/C][C]102.110765027322[/C][C]-5.61076502732237[/C][/ROW]
[ROW][C]13[/C][C]113.5[/C][C]120.688256830601[/C][C]-7.1882568306011[/C][/ROW]
[ROW][C]14[/C][C]120.1[/C][C]121.865382513661[/C][C]-1.76538251366123[/C][/ROW]
[ROW][C]15[/C][C]123.9[/C][C]129.845382513661[/C][C]-5.9453825136612[/C][/ROW]
[ROW][C]16[/C][C]144.4[/C][C]148.365382513661[/C][C]-3.96538251366118[/C][/ROW]
[ROW][C]17[/C][C]90.8[/C][C]89.7853825136612[/C][C]1.01461748633879[/C][/ROW]
[ROW][C]18[/C][C]114.2[/C][C]113.845382513661[/C][C]0.354617486338808[/C][/ROW]
[ROW][C]19[/C][C]138.1[/C][C]140.165382513661[/C][C]-2.06538251366119[/C][/ROW]
[ROW][C]20[/C][C]135[/C][C]140.605382513661[/C][C]-5.6053825136612[/C][/ROW]
[ROW][C]21[/C][C]131.3[/C][C]134.665382513661[/C][C]-3.3653825136612[/C][/ROW]
[ROW][C]22[/C][C]144.6[/C][C]148.725382513661[/C][C]-4.12538251366120[/C][/ROW]
[ROW][C]23[/C][C]101.7[/C][C]103.366480874317[/C][C]-1.66648087431694[/C][/ROW]
[ROW][C]24[/C][C]108.7[/C][C]115.086480874317[/C][C]-6.38648087431694[/C][/ROW]
[ROW][C]25[/C][C]135.3[/C][C]133.663972677596[/C][C]1.63602732240437[/C][/ROW]
[ROW][C]26[/C][C]124.3[/C][C]134.841098360656[/C][C]-10.5410983606557[/C][/ROW]
[ROW][C]27[/C][C]138.3[/C][C]142.821098360656[/C][C]-4.52109836065573[/C][/ROW]
[ROW][C]28[/C][C]158.2[/C][C]161.341098360656[/C][C]-3.14109836065574[/C][/ROW]
[ROW][C]29[/C][C]93.5[/C][C]102.761098360656[/C][C]-9.26109836065575[/C][/ROW]
[ROW][C]30[/C][C]124.8[/C][C]126.821098360656[/C][C]-2.02109836065573[/C][/ROW]
[ROW][C]31[/C][C]154.4[/C][C]153.141098360656[/C][C]1.25890163934428[/C][/ROW]
[ROW][C]32[/C][C]152.8[/C][C]153.581098360656[/C][C]-0.781098360655725[/C][/ROW]
[ROW][C]33[/C][C]148.9[/C][C]147.641098360656[/C][C]1.25890163934425[/C][/ROW]
[ROW][C]34[/C][C]170.3[/C][C]161.701098360656[/C][C]8.59890163934428[/C][/ROW]
[ROW][C]35[/C][C]124.8[/C][C]116.342196721311[/C][C]8.4578032786885[/C][/ROW]
[ROW][C]36[/C][C]134.4[/C][C]128.062196721311[/C][C]6.33780327868851[/C][/ROW]
[ROW][C]37[/C][C]154[/C][C]146.639688524590[/C][C]7.36031147540982[/C][/ROW]
[ROW][C]38[/C][C]147.9[/C][C]147.816814207650[/C][C]0.0831857923497378[/C][/ROW]
[ROW][C]39[/C][C]168.1[/C][C]155.796814207650[/C][C]12.3031857923497[/C][/ROW]
[ROW][C]40[/C][C]175.7[/C][C]174.316814207650[/C][C]1.38318579234973[/C][/ROW]
[ROW][C]41[/C][C]116.7[/C][C]115.736814207650[/C][C]0.963185792349718[/C][/ROW]
[ROW][C]42[/C][C]140.8[/C][C]139.796814207650[/C][C]1.00318579234973[/C][/ROW]
[ROW][C]43[/C][C]164.2[/C][C]166.116814207650[/C][C]-1.91681420765027[/C][/ROW]
[ROW][C]44[/C][C]173.8[/C][C]166.556814207650[/C][C]7.24318579234974[/C][/ROW]
[ROW][C]45[/C][C]167.8[/C][C]160.616814207650[/C][C]7.18318579234973[/C][/ROW]
[ROW][C]46[/C][C]166.6[/C][C]174.676814207650[/C][C]-8.07681420765028[/C][/ROW]
[ROW][C]47[/C][C]135.1[/C][C]125.412420765027[/C][C]9.68757923497267[/C][/ROW]
[ROW][C]48[/C][C]158.1[/C][C]137.132420765027[/C][C]20.9675792349727[/C][/ROW]
[ROW][C]49[/C][C]151.8[/C][C]155.709912568306[/C][C]-3.90991256830602[/C][/ROW]
[ROW][C]50[/C][C]166.7[/C][C]156.887038251366[/C][C]9.81296174863387[/C][/ROW]
[ROW][C]51[/C][C]165.3[/C][C]164.867038251366[/C][C]0.432961748633893[/C][/ROW]
[ROW][C]52[/C][C]187[/C][C]183.387038251366[/C][C]3.61296174863391[/C][/ROW]
[ROW][C]53[/C][C]125.2[/C][C]124.807038251366[/C][C]0.392961748633878[/C][/ROW]
[ROW][C]54[/C][C]144.4[/C][C]148.867038251366[/C][C]-4.46703825136611[/C][/ROW]
[ROW][C]55[/C][C]181.7[/C][C]175.187038251366[/C][C]6.51296174863388[/C][/ROW]
[ROW][C]56[/C][C]175.9[/C][C]175.627038251366[/C][C]0.272961748633879[/C][/ROW]
[ROW][C]57[/C][C]166.3[/C][C]169.687038251366[/C][C]-3.38703825136612[/C][/ROW]
[ROW][C]58[/C][C]181.5[/C][C]183.747038251366[/C][C]-2.24703825136613[/C][/ROW]
[ROW][C]59[/C][C]121.8[/C][C]138.388136612022[/C][C]-16.5881366120219[/C][/ROW]
[ROW][C]60[/C][C]134.8[/C][C]150.108136612022[/C][C]-15.3081366120219[/C][/ROW]
[ROW][C]61[/C][C]162.9[/C][C]168.685628415301[/C][C]-5.78562841530056[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57622&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57622&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
1115.6107.7125409836067.8874590163935
2111.3108.8896666666672.41033333333336
3114.6116.869666666667-2.26966666666668
4137.5135.3896666666672.11033333333327
583.776.80966666666676.89033333333334
6106100.8696666666675.1303333333333
7123.4127.189666666667-3.7896666666667
8126.5127.629666666667-1.12966666666669
9120121.689666666667-1.68966666666666
10141.6135.7496666666675.85033333333333
1190.590.39076502732240.109234972677633
1296.5102.110765027322-5.61076502732237
13113.5120.688256830601-7.1882568306011
14120.1121.865382513661-1.76538251366123
15123.9129.845382513661-5.9453825136612
16144.4148.365382513661-3.96538251366118
1790.889.78538251366121.01461748633879
18114.2113.8453825136610.354617486338808
19138.1140.165382513661-2.06538251366119
20135140.605382513661-5.6053825136612
21131.3134.665382513661-3.3653825136612
22144.6148.725382513661-4.12538251366120
23101.7103.366480874317-1.66648087431694
24108.7115.086480874317-6.38648087431694
25135.3133.6639726775961.63602732240437
26124.3134.841098360656-10.5410983606557
27138.3142.821098360656-4.52109836065573
28158.2161.341098360656-3.14109836065574
2993.5102.761098360656-9.26109836065575
30124.8126.821098360656-2.02109836065573
31154.4153.1410983606561.25890163934428
32152.8153.581098360656-0.781098360655725
33148.9147.6410983606561.25890163934425
34170.3161.7010983606568.59890163934428
35124.8116.3421967213118.4578032786885
36134.4128.0621967213116.33780327868851
37154146.6396885245907.36031147540982
38147.9147.8168142076500.0831857923497378
39168.1155.79681420765012.3031857923497
40175.7174.3168142076501.38318579234973
41116.7115.7368142076500.963185792349718
42140.8139.7968142076501.00318579234973
43164.2166.116814207650-1.91681420765027
44173.8166.5568142076507.24318579234974
45167.8160.6168142076507.18318579234973
46166.6174.676814207650-8.07681420765028
47135.1125.4124207650279.68757923497267
48158.1137.13242076502720.9675792349727
49151.8155.709912568306-3.90991256830602
50166.7156.8870382513669.81296174863387
51165.3164.8670382513660.432961748633893
52187183.3870382513663.61296174863391
53125.2124.8070382513660.392961748633878
54144.4148.867038251366-4.46703825136611
55181.7175.1870382513666.51296174863388
56175.9175.6270382513660.272961748633879
57166.3169.687038251366-3.38703825136612
58181.5183.747038251366-2.24703825136613
59121.8138.388136612022-16.5881366120219
60134.8150.108136612022-15.3081366120219
61162.9168.685628415301-5.78562841530056







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1080333452480840.2160666904961680.891966654751916
180.0415320794214930.0830641588429860.958467920578507
190.04061470338030180.08122940676060360.959385296619698
200.01605325380699800.03210650761399610.983946746193002
210.007163791345118680.01432758269023740.992836208654881
220.003879407396451030.007758814792902070.99612059260355
230.001667880429555420.003335760859110840.998332119570445
240.0009850352102477530.001970070420495510.999014964789752
250.001266569002472070.002533138004944150.998733430997528
260.001410518200754420.002821036401508840.998589481799246
270.001580956729552180.003161913459104360.998419043270448
280.001016159027314970.002032318054629940.998983840972685
290.002647699784217260.005295399568434530.997352300215783
300.001533850234470740.003067700468941470.99846614976553
310.004036451359596670.008072902719193340.995963548640403
320.01145731513562770.02291463027125540.988542684864372
330.0391291026483060.0782582052966120.960870897351694
340.06168880564456660.1233776112891330.938311194355433
350.07772387525729710.1554477505145940.922276124742703
360.1308935385831960.2617870771663920.869106461416804
370.1037624200648140.2075248401296290.896237579935186
380.1021934681323750.2043869362647510.897806531867624
390.1826544109712520.3653088219425040.817345589028748
400.1212498024794140.2424996049588280.878750197520586
410.07085753888927160.1417150777785430.929142461110728
420.04013459483317420.08026918966634830.959865405166826
430.03219480306848560.06438960613697110.967805196931514
440.01783835980533500.03567671961066990.982161640194665

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.108033345248084 & 0.216066690496168 & 0.891966654751916 \tabularnewline
18 & 0.041532079421493 & 0.083064158842986 & 0.958467920578507 \tabularnewline
19 & 0.0406147033803018 & 0.0812294067606036 & 0.959385296619698 \tabularnewline
20 & 0.0160532538069980 & 0.0321065076139961 & 0.983946746193002 \tabularnewline
21 & 0.00716379134511868 & 0.0143275826902374 & 0.992836208654881 \tabularnewline
22 & 0.00387940739645103 & 0.00775881479290207 & 0.99612059260355 \tabularnewline
23 & 0.00166788042955542 & 0.00333576085911084 & 0.998332119570445 \tabularnewline
24 & 0.000985035210247753 & 0.00197007042049551 & 0.999014964789752 \tabularnewline
25 & 0.00126656900247207 & 0.00253313800494415 & 0.998733430997528 \tabularnewline
26 & 0.00141051820075442 & 0.00282103640150884 & 0.998589481799246 \tabularnewline
27 & 0.00158095672955218 & 0.00316191345910436 & 0.998419043270448 \tabularnewline
28 & 0.00101615902731497 & 0.00203231805462994 & 0.998983840972685 \tabularnewline
29 & 0.00264769978421726 & 0.00529539956843453 & 0.997352300215783 \tabularnewline
30 & 0.00153385023447074 & 0.00306770046894147 & 0.99846614976553 \tabularnewline
31 & 0.00403645135959667 & 0.00807290271919334 & 0.995963548640403 \tabularnewline
32 & 0.0114573151356277 & 0.0229146302712554 & 0.988542684864372 \tabularnewline
33 & 0.039129102648306 & 0.078258205296612 & 0.960870897351694 \tabularnewline
34 & 0.0616888056445666 & 0.123377611289133 & 0.938311194355433 \tabularnewline
35 & 0.0777238752572971 & 0.155447750514594 & 0.922276124742703 \tabularnewline
36 & 0.130893538583196 & 0.261787077166392 & 0.869106461416804 \tabularnewline
37 & 0.103762420064814 & 0.207524840129629 & 0.896237579935186 \tabularnewline
38 & 0.102193468132375 & 0.204386936264751 & 0.897806531867624 \tabularnewline
39 & 0.182654410971252 & 0.365308821942504 & 0.817345589028748 \tabularnewline
40 & 0.121249802479414 & 0.242499604958828 & 0.878750197520586 \tabularnewline
41 & 0.0708575388892716 & 0.141715077778543 & 0.929142461110728 \tabularnewline
42 & 0.0401345948331742 & 0.0802691896663483 & 0.959865405166826 \tabularnewline
43 & 0.0321948030684856 & 0.0643896061369711 & 0.967805196931514 \tabularnewline
44 & 0.0178383598053350 & 0.0356767196106699 & 0.982161640194665 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57622&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]17[/C][C]0.108033345248084[/C][C]0.216066690496168[/C][C]0.891966654751916[/C][/ROW]
[ROW][C]18[/C][C]0.041532079421493[/C][C]0.083064158842986[/C][C]0.958467920578507[/C][/ROW]
[ROW][C]19[/C][C]0.0406147033803018[/C][C]0.0812294067606036[/C][C]0.959385296619698[/C][/ROW]
[ROW][C]20[/C][C]0.0160532538069980[/C][C]0.0321065076139961[/C][C]0.983946746193002[/C][/ROW]
[ROW][C]21[/C][C]0.00716379134511868[/C][C]0.0143275826902374[/C][C]0.992836208654881[/C][/ROW]
[ROW][C]22[/C][C]0.00387940739645103[/C][C]0.00775881479290207[/C][C]0.99612059260355[/C][/ROW]
[ROW][C]23[/C][C]0.00166788042955542[/C][C]0.00333576085911084[/C][C]0.998332119570445[/C][/ROW]
[ROW][C]24[/C][C]0.000985035210247753[/C][C]0.00197007042049551[/C][C]0.999014964789752[/C][/ROW]
[ROW][C]25[/C][C]0.00126656900247207[/C][C]0.00253313800494415[/C][C]0.998733430997528[/C][/ROW]
[ROW][C]26[/C][C]0.00141051820075442[/C][C]0.00282103640150884[/C][C]0.998589481799246[/C][/ROW]
[ROW][C]27[/C][C]0.00158095672955218[/C][C]0.00316191345910436[/C][C]0.998419043270448[/C][/ROW]
[ROW][C]28[/C][C]0.00101615902731497[/C][C]0.00203231805462994[/C][C]0.998983840972685[/C][/ROW]
[ROW][C]29[/C][C]0.00264769978421726[/C][C]0.00529539956843453[/C][C]0.997352300215783[/C][/ROW]
[ROW][C]30[/C][C]0.00153385023447074[/C][C]0.00306770046894147[/C][C]0.99846614976553[/C][/ROW]
[ROW][C]31[/C][C]0.00403645135959667[/C][C]0.00807290271919334[/C][C]0.995963548640403[/C][/ROW]
[ROW][C]32[/C][C]0.0114573151356277[/C][C]0.0229146302712554[/C][C]0.988542684864372[/C][/ROW]
[ROW][C]33[/C][C]0.039129102648306[/C][C]0.078258205296612[/C][C]0.960870897351694[/C][/ROW]
[ROW][C]34[/C][C]0.0616888056445666[/C][C]0.123377611289133[/C][C]0.938311194355433[/C][/ROW]
[ROW][C]35[/C][C]0.0777238752572971[/C][C]0.155447750514594[/C][C]0.922276124742703[/C][/ROW]
[ROW][C]36[/C][C]0.130893538583196[/C][C]0.261787077166392[/C][C]0.869106461416804[/C][/ROW]
[ROW][C]37[/C][C]0.103762420064814[/C][C]0.207524840129629[/C][C]0.896237579935186[/C][/ROW]
[ROW][C]38[/C][C]0.102193468132375[/C][C]0.204386936264751[/C][C]0.897806531867624[/C][/ROW]
[ROW][C]39[/C][C]0.182654410971252[/C][C]0.365308821942504[/C][C]0.817345589028748[/C][/ROW]
[ROW][C]40[/C][C]0.121249802479414[/C][C]0.242499604958828[/C][C]0.878750197520586[/C][/ROW]
[ROW][C]41[/C][C]0.0708575388892716[/C][C]0.141715077778543[/C][C]0.929142461110728[/C][/ROW]
[ROW][C]42[/C][C]0.0401345948331742[/C][C]0.0802691896663483[/C][C]0.959865405166826[/C][/ROW]
[ROW][C]43[/C][C]0.0321948030684856[/C][C]0.0643896061369711[/C][C]0.967805196931514[/C][/ROW]
[ROW][C]44[/C][C]0.0178383598053350[/C][C]0.0356767196106699[/C][C]0.982161640194665[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57622&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57622&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
170.1080333452480840.2160666904961680.891966654751916
180.0415320794214930.0830641588429860.958467920578507
190.04061470338030180.08122940676060360.959385296619698
200.01605325380699800.03210650761399610.983946746193002
210.007163791345118680.01432758269023740.992836208654881
220.003879407396451030.007758814792902070.99612059260355
230.001667880429555420.003335760859110840.998332119570445
240.0009850352102477530.001970070420495510.999014964789752
250.001266569002472070.002533138004944150.998733430997528
260.001410518200754420.002821036401508840.998589481799246
270.001580956729552180.003161913459104360.998419043270448
280.001016159027314970.002032318054629940.998983840972685
290.002647699784217260.005295399568434530.997352300215783
300.001533850234470740.003067700468941470.99846614976553
310.004036451359596670.008072902719193340.995963548640403
320.01145731513562770.02291463027125540.988542684864372
330.0391291026483060.0782582052966120.960870897351694
340.06168880564456660.1233776112891330.938311194355433
350.07772387525729710.1554477505145940.922276124742703
360.1308935385831960.2617870771663920.869106461416804
370.1037624200648140.2075248401296290.896237579935186
380.1021934681323750.2043869362647510.897806531867624
390.1826544109712520.3653088219425040.817345589028748
400.1212498024794140.2424996049588280.878750197520586
410.07085753888927160.1417150777785430.929142461110728
420.04013459483317420.08026918966634830.959865405166826
430.03219480306848560.06438960613697110.967805196931514
440.01783835980533500.03567671961066990.982161640194665







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level100.357142857142857NOK
5% type I error level140.5NOK
10% type I error level190.678571428571429NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57622&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 level100.357142857142857NOK
5% type I error level140.5NOK
10% type I error level190.678571428571429NOK



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