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 computationSun, 21 Dec 2008 07:32:44 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/21/t1229870083jisxl3caax5q57o.htm/, Retrieved Sun, 19 May 2024 09:20:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=35596, Retrieved Sun, 19 May 2024 09:20:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact130
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Paper - multiple ...] [2008-12-21 14:32:44] [73ec5abea95a9c3c8c3a1ac44cab1f72] [Current]
Feedback Forum

Post a new message
Dataseries X:
2490	0
3266	0
3475	0
3127	0
2955	0
3870	0
2852	0
3142	0
3029	0
3180	0
2560	0
2733	0
2452	0
2553	0
2777	0
2520	0
2318	0
2873	0
2311	0
2395	0
2099	0
2268	0
2316	0
2181	0
2175	0
2627	0
2578	0
3090	0
2634	0
3225	0
2938	0
3174	0
3350	0
2588	0
2061	0
2691	0
2061	0
2918	0
2223	0
2651	0
2379	0
3146	0
2883	0
2768	0
3258	0
2839	0
2470	0
5072	1
1463	1
1600	1
2203	1
2013	1
2169	1
2640	1
2411	1
2528	1
2292	1
1988	1
1774	1
2279	1




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 6 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35596&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35596&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 3379.88904347826 -165.048695652174X[t] -994.603217391305M1[t] -521.040173913043M2[t] -453.677130434783M3[t] -415.714086956522M4[t] -595.951043478261M5[t] + 72.812M6[t] -390.024956521739M7[t] -258.661913043478M8[t] -245.498869565217M9[t] -469.535826086956M10[t] -796.972782608696M11[t] -8.96304347826086t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  3379.88904347826 -165.048695652174X[t] -994.603217391305M1[t] -521.040173913043M2[t] -453.677130434783M3[t] -415.714086956522M4[t] -595.951043478261M5[t] +  72.812M6[t] -390.024956521739M7[t] -258.661913043478M8[t] -245.498869565217M9[t] -469.535826086956M10[t] -796.972782608696M11[t] -8.96304347826086t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35596&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  3379.88904347826 -165.048695652174X[t] -994.603217391305M1[t] -521.040173913043M2[t] -453.677130434783M3[t] -415.714086956522M4[t] -595.951043478261M5[t] +  72.812M6[t] -390.024956521739M7[t] -258.661913043478M8[t] -245.498869565217M9[t] -469.535826086956M10[t] -796.972782608696M11[t] -8.96304347826086t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35596&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35596&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] = + 3379.88904347826 -165.048695652174X[t] -994.603217391305M1[t] -521.040173913043M2[t] -453.677130434783M3[t] -415.714086956522M4[t] -595.951043478261M5[t] + 72.812M6[t] -390.024956521739M7[t] -258.661913043478M8[t] -245.498869565217M9[t] -469.535826086956M10[t] -796.972782608696M11[t] -8.96304347826086t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3379.88904347826272.26590712.413900
X-165.048695652174232.754084-0.70910.4818340.240917
M1-994.603217391305325.048468-3.05990.0036880.001844
M2-521.040173913043324.614152-1.60510.1153150.057657
M3-453.677130434783324.275949-1.3990.1685060.084253
M4-415.714086956522324.034159-1.28290.2059420.102971
M5-595.951043478261323.888998-1.840.0722280.036114
M672.812323.8405970.22480.82310.41155
M7-390.024956521739323.888998-1.20420.2346750.117337
M8-258.661913043478324.034159-0.79830.4288240.214412
M9-245.498869565217324.275949-0.75710.452870.226435
M10-469.535826086956324.614152-1.44640.1548330.077417
M11-796.972782608696325.048468-2.45190.0180680.009034
t-8.963043478260865.599193-1.60080.1162730.058137

\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) & 3379.88904347826 & 272.265907 & 12.4139 & 0 & 0 \tabularnewline
X & -165.048695652174 & 232.754084 & -0.7091 & 0.481834 & 0.240917 \tabularnewline
M1 & -994.603217391305 & 325.048468 & -3.0599 & 0.003688 & 0.001844 \tabularnewline
M2 & -521.040173913043 & 324.614152 & -1.6051 & 0.115315 & 0.057657 \tabularnewline
M3 & -453.677130434783 & 324.275949 & -1.399 & 0.168506 & 0.084253 \tabularnewline
M4 & -415.714086956522 & 324.034159 & -1.2829 & 0.205942 & 0.102971 \tabularnewline
M5 & -595.951043478261 & 323.888998 & -1.84 & 0.072228 & 0.036114 \tabularnewline
M6 & 72.812 & 323.840597 & 0.2248 & 0.8231 & 0.41155 \tabularnewline
M7 & -390.024956521739 & 323.888998 & -1.2042 & 0.234675 & 0.117337 \tabularnewline
M8 & -258.661913043478 & 324.034159 & -0.7983 & 0.428824 & 0.214412 \tabularnewline
M9 & -245.498869565217 & 324.275949 & -0.7571 & 0.45287 & 0.226435 \tabularnewline
M10 & -469.535826086956 & 324.614152 & -1.4464 & 0.154833 & 0.077417 \tabularnewline
M11 & -796.972782608696 & 325.048468 & -2.4519 & 0.018068 & 0.009034 \tabularnewline
t & -8.96304347826086 & 5.599193 & -1.6008 & 0.116273 & 0.058137 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35596&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]3379.88904347826[/C][C]272.265907[/C][C]12.4139[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-165.048695652174[/C][C]232.754084[/C][C]-0.7091[/C][C]0.481834[/C][C]0.240917[/C][/ROW]
[ROW][C]M1[/C][C]-994.603217391305[/C][C]325.048468[/C][C]-3.0599[/C][C]0.003688[/C][C]0.001844[/C][/ROW]
[ROW][C]M2[/C][C]-521.040173913043[/C][C]324.614152[/C][C]-1.6051[/C][C]0.115315[/C][C]0.057657[/C][/ROW]
[ROW][C]M3[/C][C]-453.677130434783[/C][C]324.275949[/C][C]-1.399[/C][C]0.168506[/C][C]0.084253[/C][/ROW]
[ROW][C]M4[/C][C]-415.714086956522[/C][C]324.034159[/C][C]-1.2829[/C][C]0.205942[/C][C]0.102971[/C][/ROW]
[ROW][C]M5[/C][C]-595.951043478261[/C][C]323.888998[/C][C]-1.84[/C][C]0.072228[/C][C]0.036114[/C][/ROW]
[ROW][C]M6[/C][C]72.812[/C][C]323.840597[/C][C]0.2248[/C][C]0.8231[/C][C]0.41155[/C][/ROW]
[ROW][C]M7[/C][C]-390.024956521739[/C][C]323.888998[/C][C]-1.2042[/C][C]0.234675[/C][C]0.117337[/C][/ROW]
[ROW][C]M8[/C][C]-258.661913043478[/C][C]324.034159[/C][C]-0.7983[/C][C]0.428824[/C][C]0.214412[/C][/ROW]
[ROW][C]M9[/C][C]-245.498869565217[/C][C]324.275949[/C][C]-0.7571[/C][C]0.45287[/C][C]0.226435[/C][/ROW]
[ROW][C]M10[/C][C]-469.535826086956[/C][C]324.614152[/C][C]-1.4464[/C][C]0.154833[/C][C]0.077417[/C][/ROW]
[ROW][C]M11[/C][C]-796.972782608696[/C][C]325.048468[/C][C]-2.4519[/C][C]0.018068[/C][C]0.009034[/C][/ROW]
[ROW][C]t[/C][C]-8.96304347826086[/C][C]5.599193[/C][C]-1.6008[/C][C]0.116273[/C][C]0.058137[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35596&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35596&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)3379.88904347826272.26590712.413900
X-165.048695652174232.754084-0.70910.4818340.240917
M1-994.603217391305325.048468-3.05990.0036880.001844
M2-521.040173913043324.614152-1.60510.1153150.057657
M3-453.677130434783324.275949-1.3990.1685060.084253
M4-415.714086956522324.034159-1.28290.2059420.102971
M5-595.951043478261323.888998-1.840.0722280.036114
M672.812323.8405970.22480.82310.41155
M7-390.024956521739323.888998-1.20420.2346750.117337
M8-258.661913043478324.034159-0.79830.4288240.214412
M9-245.498869565217324.275949-0.75710.452870.226435
M10-469.535826086956324.614152-1.44640.1548330.077417
M11-796.972782608696325.048468-2.45190.0180680.009034
t-8.963043478260865.599193-1.60080.1162730.058137







Multiple Linear Regression - Regression Statistics
Multiple R0.608437199909348
R-squared0.370195826233528
Adjusted R-squared0.192207690169091
F-TEST (value)2.0798904602243
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.0344943095704632
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation509.495800539598
Sum Squared Residuals11940954.6553044

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.608437199909348 \tabularnewline
R-squared & 0.370195826233528 \tabularnewline
Adjusted R-squared & 0.192207690169091 \tabularnewline
F-TEST (value) & 2.0798904602243 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.0344943095704632 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 509.495800539598 \tabularnewline
Sum Squared Residuals & 11940954.6553044 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35596&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.608437199909348[/C][/ROW]
[ROW][C]R-squared[/C][C]0.370195826233528[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.192207690169091[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.0798904602243[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0.0344943095704632[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]509.495800539598[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]11940954.6553044[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35596&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35596&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.608437199909348
R-squared0.370195826233528
Adjusted R-squared0.192207690169091
F-TEST (value)2.0798904602243
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.0344943095704632
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation509.495800539598
Sum Squared Residuals11940954.6553044







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
124902376.3227826087113.677217391302
232662840.92278260870425.077217391305
334752899.32278260870575.677217391304
431272928.32278260870198.677217391304
529552739.12278260870215.877217391305
638703398.92278260870471.077217391305
728522927.12278260870-75.1227826086955
831423049.5227826087092.4772173913045
930293053.72278260870-24.7227826086954
1031802820.72278260870359.277217391305
1125602484.3227826087075.6772173913045
1227333272.33252173913-539.33252173913
1324522268.76626086956183.233739130436
1425532733.36626086957-180.366260869565
1527772791.76626086957-14.7662608695651
1625202820.76626086957-300.766260869565
1723182631.56626086957-313.566260869565
1828733291.36626086956-418.366260869565
1923112819.56626086957-508.566260869565
2023952941.96626086957-546.966260869565
2120992946.16626086957-847.166260869565
2222682713.16626086957-445.166260869565
2323162376.76626086957-60.766260869565
2421813164.776-983.776
2521752161.2097391304313.7902608695659
2626272625.809739130431.19026086956512
2725782684.20973913043-106.209739130435
2830902713.20973913043376.790260869565
2926342524.00973913043109.990260869565
3032253183.8097391304341.1902608695651
3129382712.00973913043225.990260869565
3231742834.40973913043339.590260869565
3333502838.60973913043511.390260869565
3425882605.60973913043-17.6097391304349
3520612269.20973913043-208.209739130435
3626913057.21947826087-366.219478260870
3720612053.653217391307.34678260869619
3829182518.25321739130399.746782608696
3922232576.65321739130-353.653217391305
4026512605.6532173913045.3467826086955
4123792416.45321739130-37.4532173913046
4231463076.2532173913069.7467826086955
4328832604.45321739130278.546782608696
4427682726.8532173913041.1467826086955
4532582731.05321739130526.946782608695
4628392498.05321739130340.946782608695
4724702161.65321739130308.346782608696
4850722784.614260869562287.38573913044
4914631781.048-318.047999999999
5016002245.648-645.648
5122032304.048-101.048000000000
5220132333.048-320.048
5321692143.84825.1519999999998
5426402803.648-163.648000000000
5524112331.84879.152
5625282454.24873.7519999999999
5722922458.448-166.448
5819882225.448-237.448
5917741889.048-115.048000000000
6022792677.05773913044-398.057739130435

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2490 & 2376.3227826087 & 113.677217391302 \tabularnewline
2 & 3266 & 2840.92278260870 & 425.077217391305 \tabularnewline
3 & 3475 & 2899.32278260870 & 575.677217391304 \tabularnewline
4 & 3127 & 2928.32278260870 & 198.677217391304 \tabularnewline
5 & 2955 & 2739.12278260870 & 215.877217391305 \tabularnewline
6 & 3870 & 3398.92278260870 & 471.077217391305 \tabularnewline
7 & 2852 & 2927.12278260870 & -75.1227826086955 \tabularnewline
8 & 3142 & 3049.52278260870 & 92.4772173913045 \tabularnewline
9 & 3029 & 3053.72278260870 & -24.7227826086954 \tabularnewline
10 & 3180 & 2820.72278260870 & 359.277217391305 \tabularnewline
11 & 2560 & 2484.32278260870 & 75.6772173913045 \tabularnewline
12 & 2733 & 3272.33252173913 & -539.33252173913 \tabularnewline
13 & 2452 & 2268.76626086956 & 183.233739130436 \tabularnewline
14 & 2553 & 2733.36626086957 & -180.366260869565 \tabularnewline
15 & 2777 & 2791.76626086957 & -14.7662608695651 \tabularnewline
16 & 2520 & 2820.76626086957 & -300.766260869565 \tabularnewline
17 & 2318 & 2631.56626086957 & -313.566260869565 \tabularnewline
18 & 2873 & 3291.36626086956 & -418.366260869565 \tabularnewline
19 & 2311 & 2819.56626086957 & -508.566260869565 \tabularnewline
20 & 2395 & 2941.96626086957 & -546.966260869565 \tabularnewline
21 & 2099 & 2946.16626086957 & -847.166260869565 \tabularnewline
22 & 2268 & 2713.16626086957 & -445.166260869565 \tabularnewline
23 & 2316 & 2376.76626086957 & -60.766260869565 \tabularnewline
24 & 2181 & 3164.776 & -983.776 \tabularnewline
25 & 2175 & 2161.20973913043 & 13.7902608695659 \tabularnewline
26 & 2627 & 2625.80973913043 & 1.19026086956512 \tabularnewline
27 & 2578 & 2684.20973913043 & -106.209739130435 \tabularnewline
28 & 3090 & 2713.20973913043 & 376.790260869565 \tabularnewline
29 & 2634 & 2524.00973913043 & 109.990260869565 \tabularnewline
30 & 3225 & 3183.80973913043 & 41.1902608695651 \tabularnewline
31 & 2938 & 2712.00973913043 & 225.990260869565 \tabularnewline
32 & 3174 & 2834.40973913043 & 339.590260869565 \tabularnewline
33 & 3350 & 2838.60973913043 & 511.390260869565 \tabularnewline
34 & 2588 & 2605.60973913043 & -17.6097391304349 \tabularnewline
35 & 2061 & 2269.20973913043 & -208.209739130435 \tabularnewline
36 & 2691 & 3057.21947826087 & -366.219478260870 \tabularnewline
37 & 2061 & 2053.65321739130 & 7.34678260869619 \tabularnewline
38 & 2918 & 2518.25321739130 & 399.746782608696 \tabularnewline
39 & 2223 & 2576.65321739130 & -353.653217391305 \tabularnewline
40 & 2651 & 2605.65321739130 & 45.3467826086955 \tabularnewline
41 & 2379 & 2416.45321739130 & -37.4532173913046 \tabularnewline
42 & 3146 & 3076.25321739130 & 69.7467826086955 \tabularnewline
43 & 2883 & 2604.45321739130 & 278.546782608696 \tabularnewline
44 & 2768 & 2726.85321739130 & 41.1467826086955 \tabularnewline
45 & 3258 & 2731.05321739130 & 526.946782608695 \tabularnewline
46 & 2839 & 2498.05321739130 & 340.946782608695 \tabularnewline
47 & 2470 & 2161.65321739130 & 308.346782608696 \tabularnewline
48 & 5072 & 2784.61426086956 & 2287.38573913044 \tabularnewline
49 & 1463 & 1781.048 & -318.047999999999 \tabularnewline
50 & 1600 & 2245.648 & -645.648 \tabularnewline
51 & 2203 & 2304.048 & -101.048000000000 \tabularnewline
52 & 2013 & 2333.048 & -320.048 \tabularnewline
53 & 2169 & 2143.848 & 25.1519999999998 \tabularnewline
54 & 2640 & 2803.648 & -163.648000000000 \tabularnewline
55 & 2411 & 2331.848 & 79.152 \tabularnewline
56 & 2528 & 2454.248 & 73.7519999999999 \tabularnewline
57 & 2292 & 2458.448 & -166.448 \tabularnewline
58 & 1988 & 2225.448 & -237.448 \tabularnewline
59 & 1774 & 1889.048 & -115.048000000000 \tabularnewline
60 & 2279 & 2677.05773913044 & -398.057739130435 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35596&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]2490[/C][C]2376.3227826087[/C][C]113.677217391302[/C][/ROW]
[ROW][C]2[/C][C]3266[/C][C]2840.92278260870[/C][C]425.077217391305[/C][/ROW]
[ROW][C]3[/C][C]3475[/C][C]2899.32278260870[/C][C]575.677217391304[/C][/ROW]
[ROW][C]4[/C][C]3127[/C][C]2928.32278260870[/C][C]198.677217391304[/C][/ROW]
[ROW][C]5[/C][C]2955[/C][C]2739.12278260870[/C][C]215.877217391305[/C][/ROW]
[ROW][C]6[/C][C]3870[/C][C]3398.92278260870[/C][C]471.077217391305[/C][/ROW]
[ROW][C]7[/C][C]2852[/C][C]2927.12278260870[/C][C]-75.1227826086955[/C][/ROW]
[ROW][C]8[/C][C]3142[/C][C]3049.52278260870[/C][C]92.4772173913045[/C][/ROW]
[ROW][C]9[/C][C]3029[/C][C]3053.72278260870[/C][C]-24.7227826086954[/C][/ROW]
[ROW][C]10[/C][C]3180[/C][C]2820.72278260870[/C][C]359.277217391305[/C][/ROW]
[ROW][C]11[/C][C]2560[/C][C]2484.32278260870[/C][C]75.6772173913045[/C][/ROW]
[ROW][C]12[/C][C]2733[/C][C]3272.33252173913[/C][C]-539.33252173913[/C][/ROW]
[ROW][C]13[/C][C]2452[/C][C]2268.76626086956[/C][C]183.233739130436[/C][/ROW]
[ROW][C]14[/C][C]2553[/C][C]2733.36626086957[/C][C]-180.366260869565[/C][/ROW]
[ROW][C]15[/C][C]2777[/C][C]2791.76626086957[/C][C]-14.7662608695651[/C][/ROW]
[ROW][C]16[/C][C]2520[/C][C]2820.76626086957[/C][C]-300.766260869565[/C][/ROW]
[ROW][C]17[/C][C]2318[/C][C]2631.56626086957[/C][C]-313.566260869565[/C][/ROW]
[ROW][C]18[/C][C]2873[/C][C]3291.36626086956[/C][C]-418.366260869565[/C][/ROW]
[ROW][C]19[/C][C]2311[/C][C]2819.56626086957[/C][C]-508.566260869565[/C][/ROW]
[ROW][C]20[/C][C]2395[/C][C]2941.96626086957[/C][C]-546.966260869565[/C][/ROW]
[ROW][C]21[/C][C]2099[/C][C]2946.16626086957[/C][C]-847.166260869565[/C][/ROW]
[ROW][C]22[/C][C]2268[/C][C]2713.16626086957[/C][C]-445.166260869565[/C][/ROW]
[ROW][C]23[/C][C]2316[/C][C]2376.76626086957[/C][C]-60.766260869565[/C][/ROW]
[ROW][C]24[/C][C]2181[/C][C]3164.776[/C][C]-983.776[/C][/ROW]
[ROW][C]25[/C][C]2175[/C][C]2161.20973913043[/C][C]13.7902608695659[/C][/ROW]
[ROW][C]26[/C][C]2627[/C][C]2625.80973913043[/C][C]1.19026086956512[/C][/ROW]
[ROW][C]27[/C][C]2578[/C][C]2684.20973913043[/C][C]-106.209739130435[/C][/ROW]
[ROW][C]28[/C][C]3090[/C][C]2713.20973913043[/C][C]376.790260869565[/C][/ROW]
[ROW][C]29[/C][C]2634[/C][C]2524.00973913043[/C][C]109.990260869565[/C][/ROW]
[ROW][C]30[/C][C]3225[/C][C]3183.80973913043[/C][C]41.1902608695651[/C][/ROW]
[ROW][C]31[/C][C]2938[/C][C]2712.00973913043[/C][C]225.990260869565[/C][/ROW]
[ROW][C]32[/C][C]3174[/C][C]2834.40973913043[/C][C]339.590260869565[/C][/ROW]
[ROW][C]33[/C][C]3350[/C][C]2838.60973913043[/C][C]511.390260869565[/C][/ROW]
[ROW][C]34[/C][C]2588[/C][C]2605.60973913043[/C][C]-17.6097391304349[/C][/ROW]
[ROW][C]35[/C][C]2061[/C][C]2269.20973913043[/C][C]-208.209739130435[/C][/ROW]
[ROW][C]36[/C][C]2691[/C][C]3057.21947826087[/C][C]-366.219478260870[/C][/ROW]
[ROW][C]37[/C][C]2061[/C][C]2053.65321739130[/C][C]7.34678260869619[/C][/ROW]
[ROW][C]38[/C][C]2918[/C][C]2518.25321739130[/C][C]399.746782608696[/C][/ROW]
[ROW][C]39[/C][C]2223[/C][C]2576.65321739130[/C][C]-353.653217391305[/C][/ROW]
[ROW][C]40[/C][C]2651[/C][C]2605.65321739130[/C][C]45.3467826086955[/C][/ROW]
[ROW][C]41[/C][C]2379[/C][C]2416.45321739130[/C][C]-37.4532173913046[/C][/ROW]
[ROW][C]42[/C][C]3146[/C][C]3076.25321739130[/C][C]69.7467826086955[/C][/ROW]
[ROW][C]43[/C][C]2883[/C][C]2604.45321739130[/C][C]278.546782608696[/C][/ROW]
[ROW][C]44[/C][C]2768[/C][C]2726.85321739130[/C][C]41.1467826086955[/C][/ROW]
[ROW][C]45[/C][C]3258[/C][C]2731.05321739130[/C][C]526.946782608695[/C][/ROW]
[ROW][C]46[/C][C]2839[/C][C]2498.05321739130[/C][C]340.946782608695[/C][/ROW]
[ROW][C]47[/C][C]2470[/C][C]2161.65321739130[/C][C]308.346782608696[/C][/ROW]
[ROW][C]48[/C][C]5072[/C][C]2784.61426086956[/C][C]2287.38573913044[/C][/ROW]
[ROW][C]49[/C][C]1463[/C][C]1781.048[/C][C]-318.047999999999[/C][/ROW]
[ROW][C]50[/C][C]1600[/C][C]2245.648[/C][C]-645.648[/C][/ROW]
[ROW][C]51[/C][C]2203[/C][C]2304.048[/C][C]-101.048000000000[/C][/ROW]
[ROW][C]52[/C][C]2013[/C][C]2333.048[/C][C]-320.048[/C][/ROW]
[ROW][C]53[/C][C]2169[/C][C]2143.848[/C][C]25.1519999999998[/C][/ROW]
[ROW][C]54[/C][C]2640[/C][C]2803.648[/C][C]-163.648000000000[/C][/ROW]
[ROW][C]55[/C][C]2411[/C][C]2331.848[/C][C]79.152[/C][/ROW]
[ROW][C]56[/C][C]2528[/C][C]2454.248[/C][C]73.7519999999999[/C][/ROW]
[ROW][C]57[/C][C]2292[/C][C]2458.448[/C][C]-166.448[/C][/ROW]
[ROW][C]58[/C][C]1988[/C][C]2225.448[/C][C]-237.448[/C][/ROW]
[ROW][C]59[/C][C]1774[/C][C]1889.048[/C][C]-115.048000000000[/C][/ROW]
[ROW][C]60[/C][C]2279[/C][C]2677.05773913044[/C][C]-398.057739130435[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35596&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35596&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
124902376.3227826087113.677217391302
232662840.92278260870425.077217391305
334752899.32278260870575.677217391304
431272928.32278260870198.677217391304
529552739.12278260870215.877217391305
638703398.92278260870471.077217391305
728522927.12278260870-75.1227826086955
831423049.5227826087092.4772173913045
930293053.72278260870-24.7227826086954
1031802820.72278260870359.277217391305
1125602484.3227826087075.6772173913045
1227333272.33252173913-539.33252173913
1324522268.76626086956183.233739130436
1425532733.36626086957-180.366260869565
1527772791.76626086957-14.7662608695651
1625202820.76626086957-300.766260869565
1723182631.56626086957-313.566260869565
1828733291.36626086956-418.366260869565
1923112819.56626086957-508.566260869565
2023952941.96626086957-546.966260869565
2120992946.16626086957-847.166260869565
2222682713.16626086957-445.166260869565
2323162376.76626086957-60.766260869565
2421813164.776-983.776
2521752161.2097391304313.7902608695659
2626272625.809739130431.19026086956512
2725782684.20973913043-106.209739130435
2830902713.20973913043376.790260869565
2926342524.00973913043109.990260869565
3032253183.8097391304341.1902608695651
3129382712.00973913043225.990260869565
3231742834.40973913043339.590260869565
3333502838.60973913043511.390260869565
3425882605.60973913043-17.6097391304349
3520612269.20973913043-208.209739130435
3626913057.21947826087-366.219478260870
3720612053.653217391307.34678260869619
3829182518.25321739130399.746782608696
3922232576.65321739130-353.653217391305
4026512605.6532173913045.3467826086955
4123792416.45321739130-37.4532173913046
4231463076.2532173913069.7467826086955
4328832604.45321739130278.546782608696
4427682726.8532173913041.1467826086955
4532582731.05321739130526.946782608695
4628392498.05321739130340.946782608695
4724702161.65321739130308.346782608696
4850722784.614260869562287.38573913044
4914631781.048-318.047999999999
5016002245.648-645.648
5122032304.048-101.048000000000
5220132333.048-320.048
5321692143.84825.1519999999998
5426402803.648-163.648000000000
5524112331.84879.152
5625282454.24873.7519999999999
5722922458.448-166.448
5819882225.448-237.448
5917741889.048-115.048000000000
6022792677.05773913044-398.057739130435







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.08335545521143190.1667109104228640.916644544788568
180.0577959490601250.115591898120250.942204050939875
190.02138569483455410.04277138966910820.978614305165446
200.007929568942189110.01585913788437820.99207043105781
210.005017266301650430.01003453260330090.99498273369835
220.002334148028963070.004668296057926130.997665851971037
230.001806613337622810.003613226675245630.998193386662377
240.002156330293902820.004312660587805640.997843669706097
250.00515653291879280.01031306583758560.994843467081207
260.005720820653965320.01144164130793060.994279179346035
270.00273483062997480.00546966125994960.997265169370025
280.01371862261125660.02743724522251330.986281377388743
290.01271070009056720.02542140018113450.987289299909433
300.00813176610982470.01626353221964940.991868233890175
310.01270903961598990.02541807923197970.98729096038401
320.01525792759360990.03051585518721970.98474207240639
330.02872363654990420.05744727309980830.971276363450096
340.01784161744445200.03568323488890400.982158382555548
350.02234917057799310.04469834115598630.977650829422007
360.9119395981664150.1761208036671710.0880604018335855
370.853842960356810.2923140792863800.146157039643190
380.9460402620959660.1079194758080670.0539597379040337
390.9688422799199710.06231544016005790.0311577200800289
400.933564349055160.1328713018896810.0664356509448407
410.9299680276216350.1400639447567310.0700319723783653
420.8599594195140910.2800811609718170.140040580485909
430.7668383379735830.4663233240528340.233161662026417

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0833554552114319 & 0.166710910422864 & 0.916644544788568 \tabularnewline
18 & 0.057795949060125 & 0.11559189812025 & 0.942204050939875 \tabularnewline
19 & 0.0213856948345541 & 0.0427713896691082 & 0.978614305165446 \tabularnewline
20 & 0.00792956894218911 & 0.0158591378843782 & 0.99207043105781 \tabularnewline
21 & 0.00501726630165043 & 0.0100345326033009 & 0.99498273369835 \tabularnewline
22 & 0.00233414802896307 & 0.00466829605792613 & 0.997665851971037 \tabularnewline
23 & 0.00180661333762281 & 0.00361322667524563 & 0.998193386662377 \tabularnewline
24 & 0.00215633029390282 & 0.00431266058780564 & 0.997843669706097 \tabularnewline
25 & 0.0051565329187928 & 0.0103130658375856 & 0.994843467081207 \tabularnewline
26 & 0.00572082065396532 & 0.0114416413079306 & 0.994279179346035 \tabularnewline
27 & 0.0027348306299748 & 0.0054696612599496 & 0.997265169370025 \tabularnewline
28 & 0.0137186226112566 & 0.0274372452225133 & 0.986281377388743 \tabularnewline
29 & 0.0127107000905672 & 0.0254214001811345 & 0.987289299909433 \tabularnewline
30 & 0.0081317661098247 & 0.0162635322196494 & 0.991868233890175 \tabularnewline
31 & 0.0127090396159899 & 0.0254180792319797 & 0.98729096038401 \tabularnewline
32 & 0.0152579275936099 & 0.0305158551872197 & 0.98474207240639 \tabularnewline
33 & 0.0287236365499042 & 0.0574472730998083 & 0.971276363450096 \tabularnewline
34 & 0.0178416174444520 & 0.0356832348889040 & 0.982158382555548 \tabularnewline
35 & 0.0223491705779931 & 0.0446983411559863 & 0.977650829422007 \tabularnewline
36 & 0.911939598166415 & 0.176120803667171 & 0.0880604018335855 \tabularnewline
37 & 0.85384296035681 & 0.292314079286380 & 0.146157039643190 \tabularnewline
38 & 0.946040262095966 & 0.107919475808067 & 0.0539597379040337 \tabularnewline
39 & 0.968842279919971 & 0.0623154401600579 & 0.0311577200800289 \tabularnewline
40 & 0.93356434905516 & 0.132871301889681 & 0.0664356509448407 \tabularnewline
41 & 0.929968027621635 & 0.140063944756731 & 0.0700319723783653 \tabularnewline
42 & 0.859959419514091 & 0.280081160971817 & 0.140040580485909 \tabularnewline
43 & 0.766838337973583 & 0.466323324052834 & 0.233161662026417 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=35596&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.0833554552114319[/C][C]0.166710910422864[/C][C]0.916644544788568[/C][/ROW]
[ROW][C]18[/C][C]0.057795949060125[/C][C]0.11559189812025[/C][C]0.942204050939875[/C][/ROW]
[ROW][C]19[/C][C]0.0213856948345541[/C][C]0.0427713896691082[/C][C]0.978614305165446[/C][/ROW]
[ROW][C]20[/C][C]0.00792956894218911[/C][C]0.0158591378843782[/C][C]0.99207043105781[/C][/ROW]
[ROW][C]21[/C][C]0.00501726630165043[/C][C]0.0100345326033009[/C][C]0.99498273369835[/C][/ROW]
[ROW][C]22[/C][C]0.00233414802896307[/C][C]0.00466829605792613[/C][C]0.997665851971037[/C][/ROW]
[ROW][C]23[/C][C]0.00180661333762281[/C][C]0.00361322667524563[/C][C]0.998193386662377[/C][/ROW]
[ROW][C]24[/C][C]0.00215633029390282[/C][C]0.00431266058780564[/C][C]0.997843669706097[/C][/ROW]
[ROW][C]25[/C][C]0.0051565329187928[/C][C]0.0103130658375856[/C][C]0.994843467081207[/C][/ROW]
[ROW][C]26[/C][C]0.00572082065396532[/C][C]0.0114416413079306[/C][C]0.994279179346035[/C][/ROW]
[ROW][C]27[/C][C]0.0027348306299748[/C][C]0.0054696612599496[/C][C]0.997265169370025[/C][/ROW]
[ROW][C]28[/C][C]0.0137186226112566[/C][C]0.0274372452225133[/C][C]0.986281377388743[/C][/ROW]
[ROW][C]29[/C][C]0.0127107000905672[/C][C]0.0254214001811345[/C][C]0.987289299909433[/C][/ROW]
[ROW][C]30[/C][C]0.0081317661098247[/C][C]0.0162635322196494[/C][C]0.991868233890175[/C][/ROW]
[ROW][C]31[/C][C]0.0127090396159899[/C][C]0.0254180792319797[/C][C]0.98729096038401[/C][/ROW]
[ROW][C]32[/C][C]0.0152579275936099[/C][C]0.0305158551872197[/C][C]0.98474207240639[/C][/ROW]
[ROW][C]33[/C][C]0.0287236365499042[/C][C]0.0574472730998083[/C][C]0.971276363450096[/C][/ROW]
[ROW][C]34[/C][C]0.0178416174444520[/C][C]0.0356832348889040[/C][C]0.982158382555548[/C][/ROW]
[ROW][C]35[/C][C]0.0223491705779931[/C][C]0.0446983411559863[/C][C]0.977650829422007[/C][/ROW]
[ROW][C]36[/C][C]0.911939598166415[/C][C]0.176120803667171[/C][C]0.0880604018335855[/C][/ROW]
[ROW][C]37[/C][C]0.85384296035681[/C][C]0.292314079286380[/C][C]0.146157039643190[/C][/ROW]
[ROW][C]38[/C][C]0.946040262095966[/C][C]0.107919475808067[/C][C]0.0539597379040337[/C][/ROW]
[ROW][C]39[/C][C]0.968842279919971[/C][C]0.0623154401600579[/C][C]0.0311577200800289[/C][/ROW]
[ROW][C]40[/C][C]0.93356434905516[/C][C]0.132871301889681[/C][C]0.0664356509448407[/C][/ROW]
[ROW][C]41[/C][C]0.929968027621635[/C][C]0.140063944756731[/C][C]0.0700319723783653[/C][/ROW]
[ROW][C]42[/C][C]0.859959419514091[/C][C]0.280081160971817[/C][C]0.140040580485909[/C][/ROW]
[ROW][C]43[/C][C]0.766838337973583[/C][C]0.466323324052834[/C][C]0.233161662026417[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=35596&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35596&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.08335545521143190.1667109104228640.916644544788568
180.0577959490601250.115591898120250.942204050939875
190.02138569483455410.04277138966910820.978614305165446
200.007929568942189110.01585913788437820.99207043105781
210.005017266301650430.01003453260330090.99498273369835
220.002334148028963070.004668296057926130.997665851971037
230.001806613337622810.003613226675245630.998193386662377
240.002156330293902820.004312660587805640.997843669706097
250.00515653291879280.01031306583758560.994843467081207
260.005720820653965320.01144164130793060.994279179346035
270.00273483062997480.00546966125994960.997265169370025
280.01371862261125660.02743724522251330.986281377388743
290.01271070009056720.02542140018113450.987289299909433
300.00813176610982470.01626353221964940.991868233890175
310.01270903961598990.02541807923197970.98729096038401
320.01525792759360990.03051585518721970.98474207240639
330.02872363654990420.05744727309980830.971276363450096
340.01784161744445200.03568323488890400.982158382555548
350.02234917057799310.04469834115598630.977650829422007
360.9119395981664150.1761208036671710.0880604018335855
370.853842960356810.2923140792863800.146157039643190
380.9460402620959660.1079194758080670.0539597379040337
390.9688422799199710.06231544016005790.0311577200800289
400.933564349055160.1328713018896810.0664356509448407
410.9299680276216350.1400639447567310.0700319723783653
420.8599594195140910.2800811609718170.140040580485909
430.7668383379735830.4663233240528340.233161662026417







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.148148148148148NOK
5% type I error level160.592592592592593NOK
10% type I error level180.666666666666667NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=35596&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 level40.148148148148148NOK
5% type I error level160.592592592592593NOK
10% type I error level180.666666666666667NOK



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