Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 27 Nov 2009 07:33:05 -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/27/t1259332497tj6zwi8k8wetosb.htm/, Retrieved Mon, 29 Apr 2024 01:01:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60827, Retrieved Mon, 29 Apr 2024 01:01:07 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact115
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [SHW WS7] [2009-11-20 11:20:18] [253127ae8da904b75450fbd69fe4eb21]
- R  D        [Multiple Regression] [WorkShop7 (SHW)] [2009-11-27 14:33:05] [2d9a0b3c2f25bb8f387fafb994d0d852] [Current]
Feedback Forum

Post a new message
Dataseries X:
282965	1
276610	1
277838	1
277051	1
277026	1
274960	1
270073	1
267063	1
264916	1
287182	1
291109	1
292223	1
288109	1
281400	1
282579	1
280113	1
280331	1
276759	1
275139	1
274275	1
271234	1
289725	1
290649	1
292223	1
278429	0
269749	0
265784	0
268957	0
264099	0
255121	0
253276	0
245980	0
235295	0
258479	0
260916	0
254586	0
250566	0
243345	0
247028	0
248464	0
244962	0
237003	0
237008	0
225477	0
226762	0
247857	0
248256	0
246892	0
245021	0
246186	0
255688	0
264242	0
268270	0
272969	0
273886	0
267353	0
271916	0
292633	0
295804	0
293222	0




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60827&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] = + 266708.677777778 + 22801.3055555555X[t] -6811.20000000002M1[t] -12371.2000000000M2[t] -10045.8000000000M3[t] -8063.79999999998M4[t] -8891.6M5[t] -12466.8000000000M6[t] -13952.8000000000M7[t] -19799.6M8[t] -21804.6M9[t] -654M10[t] + 1517.6M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  266708.677777778 +  22801.3055555555X[t] -6811.20000000002M1[t] -12371.2000000000M2[t] -10045.8000000000M3[t] -8063.79999999998M4[t] -8891.6M5[t] -12466.8000000000M6[t] -13952.8000000000M7[t] -19799.6M8[t] -21804.6M9[t] -654M10[t] +  1517.6M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60827&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  266708.677777778 +  22801.3055555555X[t] -6811.20000000002M1[t] -12371.2000000000M2[t] -10045.8000000000M3[t] -8063.79999999998M4[t] -8891.6M5[t] -12466.8000000000M6[t] -13952.8000000000M7[t] -19799.6M8[t] -21804.6M9[t] -654M10[t] +  1517.6M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60827&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60827&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] = + 266708.677777778 + 22801.3055555555X[t] -6811.20000000002M1[t] -12371.2000000000M2[t] -10045.8000000000M3[t] -8063.79999999998M4[t] -8891.6M5[t] -12466.8000000000M6[t] -13952.8000000000M7[t] -19799.6M8[t] -21804.6M9[t] -654M10[t] + 1517.6M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)266708.6777777786332.36848542.118300
X22801.30555555553631.8624086.278100
M1-6811.200000000028716.469779-0.78140.4384760.219238
M2-12371.20000000008716.469779-1.41930.1624130.081206
M3-10045.80000000008716.469779-1.15250.2549410.12747
M4-8063.799999999988716.469779-0.92510.3596280.179814
M5-8891.68716.469779-1.02010.3129070.156454
M6-12466.80000000008716.469779-1.43030.1592580.079629
M7-13952.80000000008716.469779-1.60070.1161360.058068
M8-19799.68716.469779-2.27150.0277370.013868
M9-21804.68716.469779-2.50150.0159060.007953
M10-6548716.469779-0.0750.9405090.470254
M111517.68716.4697790.17410.8625290.431265

\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) & 266708.677777778 & 6332.368485 & 42.1183 & 0 & 0 \tabularnewline
X & 22801.3055555555 & 3631.862408 & 6.2781 & 0 & 0 \tabularnewline
M1 & -6811.20000000002 & 8716.469779 & -0.7814 & 0.438476 & 0.219238 \tabularnewline
M2 & -12371.2000000000 & 8716.469779 & -1.4193 & 0.162413 & 0.081206 \tabularnewline
M3 & -10045.8000000000 & 8716.469779 & -1.1525 & 0.254941 & 0.12747 \tabularnewline
M4 & -8063.79999999998 & 8716.469779 & -0.9251 & 0.359628 & 0.179814 \tabularnewline
M5 & -8891.6 & 8716.469779 & -1.0201 & 0.312907 & 0.156454 \tabularnewline
M6 & -12466.8000000000 & 8716.469779 & -1.4303 & 0.159258 & 0.079629 \tabularnewline
M7 & -13952.8000000000 & 8716.469779 & -1.6007 & 0.116136 & 0.058068 \tabularnewline
M8 & -19799.6 & 8716.469779 & -2.2715 & 0.027737 & 0.013868 \tabularnewline
M9 & -21804.6 & 8716.469779 & -2.5015 & 0.015906 & 0.007953 \tabularnewline
M10 & -654 & 8716.469779 & -0.075 & 0.940509 & 0.470254 \tabularnewline
M11 & 1517.6 & 8716.469779 & 0.1741 & 0.862529 & 0.431265 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60827&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]266708.677777778[/C][C]6332.368485[/C][C]42.1183[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]22801.3055555555[/C][C]3631.862408[/C][C]6.2781[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-6811.20000000002[/C][C]8716.469779[/C][C]-0.7814[/C][C]0.438476[/C][C]0.219238[/C][/ROW]
[ROW][C]M2[/C][C]-12371.2000000000[/C][C]8716.469779[/C][C]-1.4193[/C][C]0.162413[/C][C]0.081206[/C][/ROW]
[ROW][C]M3[/C][C]-10045.8000000000[/C][C]8716.469779[/C][C]-1.1525[/C][C]0.254941[/C][C]0.12747[/C][/ROW]
[ROW][C]M4[/C][C]-8063.79999999998[/C][C]8716.469779[/C][C]-0.9251[/C][C]0.359628[/C][C]0.179814[/C][/ROW]
[ROW][C]M5[/C][C]-8891.6[/C][C]8716.469779[/C][C]-1.0201[/C][C]0.312907[/C][C]0.156454[/C][/ROW]
[ROW][C]M6[/C][C]-12466.8000000000[/C][C]8716.469779[/C][C]-1.4303[/C][C]0.159258[/C][C]0.079629[/C][/ROW]
[ROW][C]M7[/C][C]-13952.8000000000[/C][C]8716.469779[/C][C]-1.6007[/C][C]0.116136[/C][C]0.058068[/C][/ROW]
[ROW][C]M8[/C][C]-19799.6[/C][C]8716.469779[/C][C]-2.2715[/C][C]0.027737[/C][C]0.013868[/C][/ROW]
[ROW][C]M9[/C][C]-21804.6[/C][C]8716.469779[/C][C]-2.5015[/C][C]0.015906[/C][C]0.007953[/C][/ROW]
[ROW][C]M10[/C][C]-654[/C][C]8716.469779[/C][C]-0.075[/C][C]0.940509[/C][C]0.470254[/C][/ROW]
[ROW][C]M11[/C][C]1517.6[/C][C]8716.469779[/C][C]0.1741[/C][C]0.862529[/C][C]0.431265[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60827&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60827&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)266708.6777777786332.36848542.118300
X22801.30555555553631.8624086.278100
M1-6811.200000000028716.469779-0.78140.4384760.219238
M2-12371.20000000008716.469779-1.41930.1624130.081206
M3-10045.80000000008716.469779-1.15250.2549410.12747
M4-8063.799999999988716.469779-0.92510.3596280.179814
M5-8891.68716.469779-1.02010.3129070.156454
M6-12466.80000000008716.469779-1.43030.1592580.079629
M7-13952.80000000008716.469779-1.60070.1161360.058068
M8-19799.68716.469779-2.27150.0277370.013868
M9-21804.68716.469779-2.50150.0159060.007953
M10-6548716.469779-0.0750.9405090.470254
M111517.68716.4697790.17410.8625290.431265







Multiple Linear Regression - Regression Statistics
Multiple R0.734484551457028
R-squared0.539467556329032
Adjusted R-squared0.421884804753466
F-TEST (value)4.58798207305377
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value7.23691307702445e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13781.9488294418
Sum Squared Residuals8927279336.25555

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.734484551457028 \tabularnewline
R-squared & 0.539467556329032 \tabularnewline
Adjusted R-squared & 0.421884804753466 \tabularnewline
F-TEST (value) & 4.58798207305377 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 7.23691307702445e-05 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 13781.9488294418 \tabularnewline
Sum Squared Residuals & 8927279336.25555 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60827&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.734484551457028[/C][/ROW]
[ROW][C]R-squared[/C][C]0.539467556329032[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.421884804753466[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.58798207305377[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]7.23691307702445e-05[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]13781.9488294418[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8927279336.25555[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60827&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60827&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.734484551457028
R-squared0.539467556329032
Adjusted R-squared0.421884804753466
F-TEST (value)4.58798207305377
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value7.23691307702445e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13781.9488294418
Sum Squared Residuals8927279336.25555







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1282965282698.783333333266.216666666588
2276610277138.783333333-528.783333333391
3277838279464.183333333-1626.18333333334
4277051281446.183333333-4395.1833333333
5277026280618.383333333-3592.38333333332
6274960277043.183333333-2083.18333333335
7270073275557.183333333-5484.18333333335
8267063269710.383333333-2647.38333333332
9264916267705.383333333-2789.38333333332
10287182288855.983333333-1673.98333333332
11291109291027.58333333381.416666666675
12292223289509.9833333332713.01666666667
13288109282698.7833333335410.21666666669
14281400277138.7833333334261.21666666669
15282579279464.1833333333114.81666666668
16280113281446.183333333-1333.18333333334
17280331280618.383333333-287.383333333333
18276759277043.183333333-284.183333333324
19275139275557.183333333-418.183333333322
20274275269710.3833333334564.61666666667
21271234267705.3833333333528.61666666667
22289725288855.983333333869.016666666669
23290649291027.583333333-378.583333333331
24292223289509.9833333332713.01666666667
25278429259897.47777777818531.5222222222
26269749254337.47777777815411.5222222222
27265784256662.8777777789121.12222222223
28268957258644.87777777810312.1222222222
29264099257817.0777777786281.92222222222
30255121254241.877777778879.122222222227
31253276252755.877777778520.122222222225
32245980246909.077777778-929.07777777778
33235295244904.077777778-9609.07777777778
34258479266054.677777778-7575.67777777778
35260916268226.277777778-7310.27777777778
36254586266708.677777778-12122.6777777778
37250566259897.477777778-9331.47777777775
38243345254337.477777778-10992.4777777778
39247028256662.877777778-9634.87777777777
40248464258644.877777778-10180.8777777778
41244962257817.077777778-12855.0777777778
42237003254241.877777778-17238.8777777778
43237008252755.877777778-15747.8777777778
44225477246909.077777778-21432.0777777778
45226762244904.077777778-18142.0777777778
46247857266054.677777778-18197.6777777778
47248256268226.277777778-19970.2777777778
48246892266708.677777778-19816.6777777778
49245021259897.477777778-14876.4777777777
50246186254337.477777778-8151.47777777776
51255688256662.877777778-974.877777777772
52264242258644.8777777785597.12222222221
53268270257817.07777777810452.9222222222
54272969254241.87777777818727.1222222222
55273886252755.87777777821130.1222222222
56267353246909.07777777820443.9222222222
57271916244904.07777777827011.9222222222
58292633266054.67777777826578.3222222222
59295804268226.27777777827577.7222222222
60293222266708.67777777826513.3222222222

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 282965 & 282698.783333333 & 266.216666666588 \tabularnewline
2 & 276610 & 277138.783333333 & -528.783333333391 \tabularnewline
3 & 277838 & 279464.183333333 & -1626.18333333334 \tabularnewline
4 & 277051 & 281446.183333333 & -4395.1833333333 \tabularnewline
5 & 277026 & 280618.383333333 & -3592.38333333332 \tabularnewline
6 & 274960 & 277043.183333333 & -2083.18333333335 \tabularnewline
7 & 270073 & 275557.183333333 & -5484.18333333335 \tabularnewline
8 & 267063 & 269710.383333333 & -2647.38333333332 \tabularnewline
9 & 264916 & 267705.383333333 & -2789.38333333332 \tabularnewline
10 & 287182 & 288855.983333333 & -1673.98333333332 \tabularnewline
11 & 291109 & 291027.583333333 & 81.416666666675 \tabularnewline
12 & 292223 & 289509.983333333 & 2713.01666666667 \tabularnewline
13 & 288109 & 282698.783333333 & 5410.21666666669 \tabularnewline
14 & 281400 & 277138.783333333 & 4261.21666666669 \tabularnewline
15 & 282579 & 279464.183333333 & 3114.81666666668 \tabularnewline
16 & 280113 & 281446.183333333 & -1333.18333333334 \tabularnewline
17 & 280331 & 280618.383333333 & -287.383333333333 \tabularnewline
18 & 276759 & 277043.183333333 & -284.183333333324 \tabularnewline
19 & 275139 & 275557.183333333 & -418.183333333322 \tabularnewline
20 & 274275 & 269710.383333333 & 4564.61666666667 \tabularnewline
21 & 271234 & 267705.383333333 & 3528.61666666667 \tabularnewline
22 & 289725 & 288855.983333333 & 869.016666666669 \tabularnewline
23 & 290649 & 291027.583333333 & -378.583333333331 \tabularnewline
24 & 292223 & 289509.983333333 & 2713.01666666667 \tabularnewline
25 & 278429 & 259897.477777778 & 18531.5222222222 \tabularnewline
26 & 269749 & 254337.477777778 & 15411.5222222222 \tabularnewline
27 & 265784 & 256662.877777778 & 9121.12222222223 \tabularnewline
28 & 268957 & 258644.877777778 & 10312.1222222222 \tabularnewline
29 & 264099 & 257817.077777778 & 6281.92222222222 \tabularnewline
30 & 255121 & 254241.877777778 & 879.122222222227 \tabularnewline
31 & 253276 & 252755.877777778 & 520.122222222225 \tabularnewline
32 & 245980 & 246909.077777778 & -929.07777777778 \tabularnewline
33 & 235295 & 244904.077777778 & -9609.07777777778 \tabularnewline
34 & 258479 & 266054.677777778 & -7575.67777777778 \tabularnewline
35 & 260916 & 268226.277777778 & -7310.27777777778 \tabularnewline
36 & 254586 & 266708.677777778 & -12122.6777777778 \tabularnewline
37 & 250566 & 259897.477777778 & -9331.47777777775 \tabularnewline
38 & 243345 & 254337.477777778 & -10992.4777777778 \tabularnewline
39 & 247028 & 256662.877777778 & -9634.87777777777 \tabularnewline
40 & 248464 & 258644.877777778 & -10180.8777777778 \tabularnewline
41 & 244962 & 257817.077777778 & -12855.0777777778 \tabularnewline
42 & 237003 & 254241.877777778 & -17238.8777777778 \tabularnewline
43 & 237008 & 252755.877777778 & -15747.8777777778 \tabularnewline
44 & 225477 & 246909.077777778 & -21432.0777777778 \tabularnewline
45 & 226762 & 244904.077777778 & -18142.0777777778 \tabularnewline
46 & 247857 & 266054.677777778 & -18197.6777777778 \tabularnewline
47 & 248256 & 268226.277777778 & -19970.2777777778 \tabularnewline
48 & 246892 & 266708.677777778 & -19816.6777777778 \tabularnewline
49 & 245021 & 259897.477777778 & -14876.4777777777 \tabularnewline
50 & 246186 & 254337.477777778 & -8151.47777777776 \tabularnewline
51 & 255688 & 256662.877777778 & -974.877777777772 \tabularnewline
52 & 264242 & 258644.877777778 & 5597.12222222221 \tabularnewline
53 & 268270 & 257817.077777778 & 10452.9222222222 \tabularnewline
54 & 272969 & 254241.877777778 & 18727.1222222222 \tabularnewline
55 & 273886 & 252755.877777778 & 21130.1222222222 \tabularnewline
56 & 267353 & 246909.077777778 & 20443.9222222222 \tabularnewline
57 & 271916 & 244904.077777778 & 27011.9222222222 \tabularnewline
58 & 292633 & 266054.677777778 & 26578.3222222222 \tabularnewline
59 & 295804 & 268226.277777778 & 27577.7222222222 \tabularnewline
60 & 293222 & 266708.677777778 & 26513.3222222222 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60827&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]282965[/C][C]282698.783333333[/C][C]266.216666666588[/C][/ROW]
[ROW][C]2[/C][C]276610[/C][C]277138.783333333[/C][C]-528.783333333391[/C][/ROW]
[ROW][C]3[/C][C]277838[/C][C]279464.183333333[/C][C]-1626.18333333334[/C][/ROW]
[ROW][C]4[/C][C]277051[/C][C]281446.183333333[/C][C]-4395.1833333333[/C][/ROW]
[ROW][C]5[/C][C]277026[/C][C]280618.383333333[/C][C]-3592.38333333332[/C][/ROW]
[ROW][C]6[/C][C]274960[/C][C]277043.183333333[/C][C]-2083.18333333335[/C][/ROW]
[ROW][C]7[/C][C]270073[/C][C]275557.183333333[/C][C]-5484.18333333335[/C][/ROW]
[ROW][C]8[/C][C]267063[/C][C]269710.383333333[/C][C]-2647.38333333332[/C][/ROW]
[ROW][C]9[/C][C]264916[/C][C]267705.383333333[/C][C]-2789.38333333332[/C][/ROW]
[ROW][C]10[/C][C]287182[/C][C]288855.983333333[/C][C]-1673.98333333332[/C][/ROW]
[ROW][C]11[/C][C]291109[/C][C]291027.583333333[/C][C]81.416666666675[/C][/ROW]
[ROW][C]12[/C][C]292223[/C][C]289509.983333333[/C][C]2713.01666666667[/C][/ROW]
[ROW][C]13[/C][C]288109[/C][C]282698.783333333[/C][C]5410.21666666669[/C][/ROW]
[ROW][C]14[/C][C]281400[/C][C]277138.783333333[/C][C]4261.21666666669[/C][/ROW]
[ROW][C]15[/C][C]282579[/C][C]279464.183333333[/C][C]3114.81666666668[/C][/ROW]
[ROW][C]16[/C][C]280113[/C][C]281446.183333333[/C][C]-1333.18333333334[/C][/ROW]
[ROW][C]17[/C][C]280331[/C][C]280618.383333333[/C][C]-287.383333333333[/C][/ROW]
[ROW][C]18[/C][C]276759[/C][C]277043.183333333[/C][C]-284.183333333324[/C][/ROW]
[ROW][C]19[/C][C]275139[/C][C]275557.183333333[/C][C]-418.183333333322[/C][/ROW]
[ROW][C]20[/C][C]274275[/C][C]269710.383333333[/C][C]4564.61666666667[/C][/ROW]
[ROW][C]21[/C][C]271234[/C][C]267705.383333333[/C][C]3528.61666666667[/C][/ROW]
[ROW][C]22[/C][C]289725[/C][C]288855.983333333[/C][C]869.016666666669[/C][/ROW]
[ROW][C]23[/C][C]290649[/C][C]291027.583333333[/C][C]-378.583333333331[/C][/ROW]
[ROW][C]24[/C][C]292223[/C][C]289509.983333333[/C][C]2713.01666666667[/C][/ROW]
[ROW][C]25[/C][C]278429[/C][C]259897.477777778[/C][C]18531.5222222222[/C][/ROW]
[ROW][C]26[/C][C]269749[/C][C]254337.477777778[/C][C]15411.5222222222[/C][/ROW]
[ROW][C]27[/C][C]265784[/C][C]256662.877777778[/C][C]9121.12222222223[/C][/ROW]
[ROW][C]28[/C][C]268957[/C][C]258644.877777778[/C][C]10312.1222222222[/C][/ROW]
[ROW][C]29[/C][C]264099[/C][C]257817.077777778[/C][C]6281.92222222222[/C][/ROW]
[ROW][C]30[/C][C]255121[/C][C]254241.877777778[/C][C]879.122222222227[/C][/ROW]
[ROW][C]31[/C][C]253276[/C][C]252755.877777778[/C][C]520.122222222225[/C][/ROW]
[ROW][C]32[/C][C]245980[/C][C]246909.077777778[/C][C]-929.07777777778[/C][/ROW]
[ROW][C]33[/C][C]235295[/C][C]244904.077777778[/C][C]-9609.07777777778[/C][/ROW]
[ROW][C]34[/C][C]258479[/C][C]266054.677777778[/C][C]-7575.67777777778[/C][/ROW]
[ROW][C]35[/C][C]260916[/C][C]268226.277777778[/C][C]-7310.27777777778[/C][/ROW]
[ROW][C]36[/C][C]254586[/C][C]266708.677777778[/C][C]-12122.6777777778[/C][/ROW]
[ROW][C]37[/C][C]250566[/C][C]259897.477777778[/C][C]-9331.47777777775[/C][/ROW]
[ROW][C]38[/C][C]243345[/C][C]254337.477777778[/C][C]-10992.4777777778[/C][/ROW]
[ROW][C]39[/C][C]247028[/C][C]256662.877777778[/C][C]-9634.87777777777[/C][/ROW]
[ROW][C]40[/C][C]248464[/C][C]258644.877777778[/C][C]-10180.8777777778[/C][/ROW]
[ROW][C]41[/C][C]244962[/C][C]257817.077777778[/C][C]-12855.0777777778[/C][/ROW]
[ROW][C]42[/C][C]237003[/C][C]254241.877777778[/C][C]-17238.8777777778[/C][/ROW]
[ROW][C]43[/C][C]237008[/C][C]252755.877777778[/C][C]-15747.8777777778[/C][/ROW]
[ROW][C]44[/C][C]225477[/C][C]246909.077777778[/C][C]-21432.0777777778[/C][/ROW]
[ROW][C]45[/C][C]226762[/C][C]244904.077777778[/C][C]-18142.0777777778[/C][/ROW]
[ROW][C]46[/C][C]247857[/C][C]266054.677777778[/C][C]-18197.6777777778[/C][/ROW]
[ROW][C]47[/C][C]248256[/C][C]268226.277777778[/C][C]-19970.2777777778[/C][/ROW]
[ROW][C]48[/C][C]246892[/C][C]266708.677777778[/C][C]-19816.6777777778[/C][/ROW]
[ROW][C]49[/C][C]245021[/C][C]259897.477777778[/C][C]-14876.4777777777[/C][/ROW]
[ROW][C]50[/C][C]246186[/C][C]254337.477777778[/C][C]-8151.47777777776[/C][/ROW]
[ROW][C]51[/C][C]255688[/C][C]256662.877777778[/C][C]-974.877777777772[/C][/ROW]
[ROW][C]52[/C][C]264242[/C][C]258644.877777778[/C][C]5597.12222222221[/C][/ROW]
[ROW][C]53[/C][C]268270[/C][C]257817.077777778[/C][C]10452.9222222222[/C][/ROW]
[ROW][C]54[/C][C]272969[/C][C]254241.877777778[/C][C]18727.1222222222[/C][/ROW]
[ROW][C]55[/C][C]273886[/C][C]252755.877777778[/C][C]21130.1222222222[/C][/ROW]
[ROW][C]56[/C][C]267353[/C][C]246909.077777778[/C][C]20443.9222222222[/C][/ROW]
[ROW][C]57[/C][C]271916[/C][C]244904.077777778[/C][C]27011.9222222222[/C][/ROW]
[ROW][C]58[/C][C]292633[/C][C]266054.677777778[/C][C]26578.3222222222[/C][/ROW]
[ROW][C]59[/C][C]295804[/C][C]268226.277777778[/C][C]27577.7222222222[/C][/ROW]
[ROW][C]60[/C][C]293222[/C][C]266708.677777778[/C][C]26513.3222222222[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60827&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60827&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
1282965282698.783333333266.216666666588
2276610277138.783333333-528.783333333391
3277838279464.183333333-1626.18333333334
4277051281446.183333333-4395.1833333333
5277026280618.383333333-3592.38333333332
6274960277043.183333333-2083.18333333335
7270073275557.183333333-5484.18333333335
8267063269710.383333333-2647.38333333332
9264916267705.383333333-2789.38333333332
10287182288855.983333333-1673.98333333332
11291109291027.58333333381.416666666675
12292223289509.9833333332713.01666666667
13288109282698.7833333335410.21666666669
14281400277138.7833333334261.21666666669
15282579279464.1833333333114.81666666668
16280113281446.183333333-1333.18333333334
17280331280618.383333333-287.383333333333
18276759277043.183333333-284.183333333324
19275139275557.183333333-418.183333333322
20274275269710.3833333334564.61666666667
21271234267705.3833333333528.61666666667
22289725288855.983333333869.016666666669
23290649291027.583333333-378.583333333331
24292223289509.9833333332713.01666666667
25278429259897.47777777818531.5222222222
26269749254337.47777777815411.5222222222
27265784256662.8777777789121.12222222223
28268957258644.87777777810312.1222222222
29264099257817.0777777786281.92222222222
30255121254241.877777778879.122222222227
31253276252755.877777778520.122222222225
32245980246909.077777778-929.07777777778
33235295244904.077777778-9609.07777777778
34258479266054.677777778-7575.67777777778
35260916268226.277777778-7310.27777777778
36254586266708.677777778-12122.6777777778
37250566259897.477777778-9331.47777777775
38243345254337.477777778-10992.4777777778
39247028256662.877777778-9634.87777777777
40248464258644.877777778-10180.8777777778
41244962257817.077777778-12855.0777777778
42237003254241.877777778-17238.8777777778
43237008252755.877777778-15747.8777777778
44225477246909.077777778-21432.0777777778
45226762244904.077777778-18142.0777777778
46247857266054.677777778-18197.6777777778
47248256268226.277777778-19970.2777777778
48246892266708.677777778-19816.6777777778
49245021259897.477777778-14876.4777777777
50246186254337.477777778-8151.47777777776
51255688256662.877777778-974.877777777772
52264242258644.8777777785597.12222222221
53268270257817.07777777810452.9222222222
54272969254241.87777777818727.1222222222
55273886252755.87777777821130.1222222222
56267353246909.07777777820443.9222222222
57271916244904.07777777827011.9222222222
58292633266054.67777777826578.3222222222
59295804268226.27777777827577.7222222222
60293222266708.67777777826513.3222222222







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.01425565660296780.02851131320593570.985744343397032
170.003161675258202760.006323350516405520.996838324741797
180.000566588465259250.00113317693051850.99943341153474
190.0001731266113139030.0003462532226278060.999826873388686
209.10384790801577e-050.0001820769581603150.99990896152092
213.48837695523005e-056.9767539104601e-050.999965116230448
227.03354191565982e-061.40670838313196e-050.999992966458084
231.19009677158884e-062.38019354317768e-060.999998809903228
241.86732669662947e-073.73465339325894e-070.99999981326733
254.24644079382423e-088.49288158764846e-080.999999957535592
269.29687001218845e-091.85937400243769e-080.99999999070313
273.91314109993067e-097.82628219986135e-090.99999999608686
286.26829760663453e-101.25365952132691e-090.99999999937317
291.63792195573217e-103.27584391146434e-100.999999999836208
302.9932470766865e-105.986494153373e-100.999999999700675
311.30347083520237e-102.60694167040474e-100.999999999869653
322.51226439408366e-105.02452878816732e-100.999999999748774
334.83853975651576e-099.67707951303153e-090.99999999516146
346.60817887125086e-091.32163577425017e-080.999999993391821
355.5473993420054e-091.10947986840108e-080.9999999944526
362.08772584817489e-084.17545169634978e-080.999999979122742
376.05310067115196e-081.21062013423039e-070.999999939468993
389.45077236875078e-081.89015447375016e-070.999999905492276
395.73899938422435e-081.14779987684487e-070.999999942610006
402.91202232853663e-085.82404465707326e-080.999999970879777
412.08958354752458e-084.17916709504916e-080.999999979104164
423.7846954441004e-087.5693908882008e-080.999999962153046
435.10342022257621e-081.02068404451524e-070.999999948965798
442.58646415539701e-075.17292831079402e-070.999999741353584

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0142556566029678 & 0.0285113132059357 & 0.985744343397032 \tabularnewline
17 & 0.00316167525820276 & 0.00632335051640552 & 0.996838324741797 \tabularnewline
18 & 0.00056658846525925 & 0.0011331769305185 & 0.99943341153474 \tabularnewline
19 & 0.000173126611313903 & 0.000346253222627806 & 0.999826873388686 \tabularnewline
20 & 9.10384790801577e-05 & 0.000182076958160315 & 0.99990896152092 \tabularnewline
21 & 3.48837695523005e-05 & 6.9767539104601e-05 & 0.999965116230448 \tabularnewline
22 & 7.03354191565982e-06 & 1.40670838313196e-05 & 0.999992966458084 \tabularnewline
23 & 1.19009677158884e-06 & 2.38019354317768e-06 & 0.999998809903228 \tabularnewline
24 & 1.86732669662947e-07 & 3.73465339325894e-07 & 0.99999981326733 \tabularnewline
25 & 4.24644079382423e-08 & 8.49288158764846e-08 & 0.999999957535592 \tabularnewline
26 & 9.29687001218845e-09 & 1.85937400243769e-08 & 0.99999999070313 \tabularnewline
27 & 3.91314109993067e-09 & 7.82628219986135e-09 & 0.99999999608686 \tabularnewline
28 & 6.26829760663453e-10 & 1.25365952132691e-09 & 0.99999999937317 \tabularnewline
29 & 1.63792195573217e-10 & 3.27584391146434e-10 & 0.999999999836208 \tabularnewline
30 & 2.9932470766865e-10 & 5.986494153373e-10 & 0.999999999700675 \tabularnewline
31 & 1.30347083520237e-10 & 2.60694167040474e-10 & 0.999999999869653 \tabularnewline
32 & 2.51226439408366e-10 & 5.02452878816732e-10 & 0.999999999748774 \tabularnewline
33 & 4.83853975651576e-09 & 9.67707951303153e-09 & 0.99999999516146 \tabularnewline
34 & 6.60817887125086e-09 & 1.32163577425017e-08 & 0.999999993391821 \tabularnewline
35 & 5.5473993420054e-09 & 1.10947986840108e-08 & 0.9999999944526 \tabularnewline
36 & 2.08772584817489e-08 & 4.17545169634978e-08 & 0.999999979122742 \tabularnewline
37 & 6.05310067115196e-08 & 1.21062013423039e-07 & 0.999999939468993 \tabularnewline
38 & 9.45077236875078e-08 & 1.89015447375016e-07 & 0.999999905492276 \tabularnewline
39 & 5.73899938422435e-08 & 1.14779987684487e-07 & 0.999999942610006 \tabularnewline
40 & 2.91202232853663e-08 & 5.82404465707326e-08 & 0.999999970879777 \tabularnewline
41 & 2.08958354752458e-08 & 4.17916709504916e-08 & 0.999999979104164 \tabularnewline
42 & 3.7846954441004e-08 & 7.5693908882008e-08 & 0.999999962153046 \tabularnewline
43 & 5.10342022257621e-08 & 1.02068404451524e-07 & 0.999999948965798 \tabularnewline
44 & 2.58646415539701e-07 & 5.17292831079402e-07 & 0.999999741353584 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60827&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.0142556566029678[/C][C]0.0285113132059357[/C][C]0.985744343397032[/C][/ROW]
[ROW][C]17[/C][C]0.00316167525820276[/C][C]0.00632335051640552[/C][C]0.996838324741797[/C][/ROW]
[ROW][C]18[/C][C]0.00056658846525925[/C][C]0.0011331769305185[/C][C]0.99943341153474[/C][/ROW]
[ROW][C]19[/C][C]0.000173126611313903[/C][C]0.000346253222627806[/C][C]0.999826873388686[/C][/ROW]
[ROW][C]20[/C][C]9.10384790801577e-05[/C][C]0.000182076958160315[/C][C]0.99990896152092[/C][/ROW]
[ROW][C]21[/C][C]3.48837695523005e-05[/C][C]6.9767539104601e-05[/C][C]0.999965116230448[/C][/ROW]
[ROW][C]22[/C][C]7.03354191565982e-06[/C][C]1.40670838313196e-05[/C][C]0.999992966458084[/C][/ROW]
[ROW][C]23[/C][C]1.19009677158884e-06[/C][C]2.38019354317768e-06[/C][C]0.999998809903228[/C][/ROW]
[ROW][C]24[/C][C]1.86732669662947e-07[/C][C]3.73465339325894e-07[/C][C]0.99999981326733[/C][/ROW]
[ROW][C]25[/C][C]4.24644079382423e-08[/C][C]8.49288158764846e-08[/C][C]0.999999957535592[/C][/ROW]
[ROW][C]26[/C][C]9.29687001218845e-09[/C][C]1.85937400243769e-08[/C][C]0.99999999070313[/C][/ROW]
[ROW][C]27[/C][C]3.91314109993067e-09[/C][C]7.82628219986135e-09[/C][C]0.99999999608686[/C][/ROW]
[ROW][C]28[/C][C]6.26829760663453e-10[/C][C]1.25365952132691e-09[/C][C]0.99999999937317[/C][/ROW]
[ROW][C]29[/C][C]1.63792195573217e-10[/C][C]3.27584391146434e-10[/C][C]0.999999999836208[/C][/ROW]
[ROW][C]30[/C][C]2.9932470766865e-10[/C][C]5.986494153373e-10[/C][C]0.999999999700675[/C][/ROW]
[ROW][C]31[/C][C]1.30347083520237e-10[/C][C]2.60694167040474e-10[/C][C]0.999999999869653[/C][/ROW]
[ROW][C]32[/C][C]2.51226439408366e-10[/C][C]5.02452878816732e-10[/C][C]0.999999999748774[/C][/ROW]
[ROW][C]33[/C][C]4.83853975651576e-09[/C][C]9.67707951303153e-09[/C][C]0.99999999516146[/C][/ROW]
[ROW][C]34[/C][C]6.60817887125086e-09[/C][C]1.32163577425017e-08[/C][C]0.999999993391821[/C][/ROW]
[ROW][C]35[/C][C]5.5473993420054e-09[/C][C]1.10947986840108e-08[/C][C]0.9999999944526[/C][/ROW]
[ROW][C]36[/C][C]2.08772584817489e-08[/C][C]4.17545169634978e-08[/C][C]0.999999979122742[/C][/ROW]
[ROW][C]37[/C][C]6.05310067115196e-08[/C][C]1.21062013423039e-07[/C][C]0.999999939468993[/C][/ROW]
[ROW][C]38[/C][C]9.45077236875078e-08[/C][C]1.89015447375016e-07[/C][C]0.999999905492276[/C][/ROW]
[ROW][C]39[/C][C]5.73899938422435e-08[/C][C]1.14779987684487e-07[/C][C]0.999999942610006[/C][/ROW]
[ROW][C]40[/C][C]2.91202232853663e-08[/C][C]5.82404465707326e-08[/C][C]0.999999970879777[/C][/ROW]
[ROW][C]41[/C][C]2.08958354752458e-08[/C][C]4.17916709504916e-08[/C][C]0.999999979104164[/C][/ROW]
[ROW][C]42[/C][C]3.7846954441004e-08[/C][C]7.5693908882008e-08[/C][C]0.999999962153046[/C][/ROW]
[ROW][C]43[/C][C]5.10342022257621e-08[/C][C]1.02068404451524e-07[/C][C]0.999999948965798[/C][/ROW]
[ROW][C]44[/C][C]2.58646415539701e-07[/C][C]5.17292831079402e-07[/C][C]0.999999741353584[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60827&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60827&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.01425565660296780.02851131320593570.985744343397032
170.003161675258202760.006323350516405520.996838324741797
180.000566588465259250.00113317693051850.99943341153474
190.0001731266113139030.0003462532226278060.999826873388686
209.10384790801577e-050.0001820769581603150.99990896152092
213.48837695523005e-056.9767539104601e-050.999965116230448
227.03354191565982e-061.40670838313196e-050.999992966458084
231.19009677158884e-062.38019354317768e-060.999998809903228
241.86732669662947e-073.73465339325894e-070.99999981326733
254.24644079382423e-088.49288158764846e-080.999999957535592
269.29687001218845e-091.85937400243769e-080.99999999070313
273.91314109993067e-097.82628219986135e-090.99999999608686
286.26829760663453e-101.25365952132691e-090.99999999937317
291.63792195573217e-103.27584391146434e-100.999999999836208
302.9932470766865e-105.986494153373e-100.999999999700675
311.30347083520237e-102.60694167040474e-100.999999999869653
322.51226439408366e-105.02452878816732e-100.999999999748774
334.83853975651576e-099.67707951303153e-090.99999999516146
346.60817887125086e-091.32163577425017e-080.999999993391821
355.5473993420054e-091.10947986840108e-080.9999999944526
362.08772584817489e-084.17545169634978e-080.999999979122742
376.05310067115196e-081.21062013423039e-070.999999939468993
389.45077236875078e-081.89015447375016e-070.999999905492276
395.73899938422435e-081.14779987684487e-070.999999942610006
402.91202232853663e-085.82404465707326e-080.999999970879777
412.08958354752458e-084.17916709504916e-080.999999979104164
423.7846954441004e-087.5693908882008e-080.999999962153046
435.10342022257621e-081.02068404451524e-070.999999948965798
442.58646415539701e-075.17292831079402e-070.999999741353584







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

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

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



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