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 computationSat, 21 Nov 2009 06:34:09 -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/21/t1258810494b8aete8y6ux8099.htm/, Retrieved Sat, 27 Apr 2024 14:05:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58538, Retrieved Sat, 27 Apr 2024 14:05:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact129
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Model 5] [2009-11-21 13:34:09] [b42c0aeada8a5fa89825c81e73c10645] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.5	99.2
8.6	116.5
8.5	98.4
8.2	90.6
8.1	130.5
7.9	107.4
8.6	106
8.7	196.5
8.7	107.8
8.5	90.5
8.4	123.8
8.5	114.7
8.7	115.3
8.7	197
8.6	88.4
8.5	93.8
8.3	111.3
8	105.9
8.2	123.6
8.1	171
8.1	97
8	99.2
7.9	126.6
7.9	103.4
8	121.3
8	129.6
7.9	110.8
8	98.9
7.7	122.8
7.2	120.9
7.5	133.1
7.3	203.1
7	110.2
7	119.5
7	135.1
7.2	113.9
7.3	137.4
7.1	157.1
6.8	126.4
6.4	112.2
6.1	128.8
6.5	136.8
7.7	156.5
7.9	215.2
7.5	146.7
6.9	130.8
6.6	133.1
6.9	153.4
7.7	159.9
8	174.6
8	145
7.7	112.9
7.3	137.8
7.4	150.6
8.1	162.1
8.3	226.4




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58538&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58538&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Yt-2[t] = + 54.4478692187951 + 4.89094083246159X[t] + 8.17504404347599M1[t] + 35.332449512388M2[t] -6.22759448550611M3[t] -18.3563632168033M4[t] + 6.48832450184722M5[t] + 4.07046168730386M6[t] + 11.9911214733882M7[t] + 76.9885269423002M8[t] -3.9423174731238M9[t] -9.25381268360943M10[t] + 10.0205980226587M11[t] + 0.986956897789507t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Yt-2[t] =  +  54.4478692187951 +  4.89094083246159X[t] +  8.17504404347599M1[t] +  35.332449512388M2[t] -6.22759448550611M3[t] -18.3563632168033M4[t] +  6.48832450184722M5[t] +  4.07046168730386M6[t] +  11.9911214733882M7[t] +  76.9885269423002M8[t] -3.9423174731238M9[t] -9.25381268360943M10[t] +  10.0205980226587M11[t] +  0.986956897789507t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58538&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Yt-2[t] =  +  54.4478692187951 +  4.89094083246159X[t] +  8.17504404347599M1[t] +  35.332449512388M2[t] -6.22759448550611M3[t] -18.3563632168033M4[t] +  6.48832450184722M5[t] +  4.07046168730386M6[t] +  11.9911214733882M7[t] +  76.9885269423002M8[t] -3.9423174731238M9[t] -9.25381268360943M10[t] +  10.0205980226587M11[t] +  0.986956897789507t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58538&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58538&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
Yt-2[t] = + 54.4478692187951 + 4.89094083246159X[t] + 8.17504404347599M1[t] + 35.332449512388M2[t] -6.22759448550611M3[t] -18.3563632168033M4[t] + 6.48832450184722M5[t] + 4.07046168730386M6[t] + 11.9911214733882M7[t] + 76.9885269423002M8[t] -3.9423174731238M9[t] -9.25381268360943M10[t] + 10.0205980226587M11[t] + 0.986956897789507t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)54.447869218795135.3694721.53940.1312070.065603
X4.890940832461594.1043811.19160.2400930.120047
M18.175044043475999.2100870.88760.3798010.1899
M235.3324495123889.2421633.8230.000430.000215
M3-6.227594485506119.185475-0.6780.5015010.25075
M4-18.35636321680339.127969-2.0110.0507730.025386
M56.488324501847229.1407530.70980.4817360.240868
M64.070461687303869.1655520.44410.6592470.329623
M711.99112147338829.2821581.29180.2034740.101737
M876.98852694230029.3388178.243900
M9-3.94231747312389.630967-0.40930.6843720.342186
M10-9.253812683609439.620139-0.96190.3415950.170797
M1110.02059802265879.6400611.03950.3045310.152266
t0.9869568977895070.1566886.298900

\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) & 54.4478692187951 & 35.369472 & 1.5394 & 0.131207 & 0.065603 \tabularnewline
X & 4.89094083246159 & 4.104381 & 1.1916 & 0.240093 & 0.120047 \tabularnewline
M1 & 8.17504404347599 & 9.210087 & 0.8876 & 0.379801 & 0.1899 \tabularnewline
M2 & 35.332449512388 & 9.242163 & 3.823 & 0.00043 & 0.000215 \tabularnewline
M3 & -6.22759448550611 & 9.185475 & -0.678 & 0.501501 & 0.25075 \tabularnewline
M4 & -18.3563632168033 & 9.127969 & -2.011 & 0.050773 & 0.025386 \tabularnewline
M5 & 6.48832450184722 & 9.140753 & 0.7098 & 0.481736 & 0.240868 \tabularnewline
M6 & 4.07046168730386 & 9.165552 & 0.4441 & 0.659247 & 0.329623 \tabularnewline
M7 & 11.9911214733882 & 9.282158 & 1.2918 & 0.203474 & 0.101737 \tabularnewline
M8 & 76.9885269423002 & 9.338817 & 8.2439 & 0 & 0 \tabularnewline
M9 & -3.9423174731238 & 9.630967 & -0.4093 & 0.684372 & 0.342186 \tabularnewline
M10 & -9.25381268360943 & 9.620139 & -0.9619 & 0.341595 & 0.170797 \tabularnewline
M11 & 10.0205980226587 & 9.640061 & 1.0395 & 0.304531 & 0.152266 \tabularnewline
t & 0.986956897789507 & 0.156688 & 6.2989 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58538&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]54.4478692187951[/C][C]35.369472[/C][C]1.5394[/C][C]0.131207[/C][C]0.065603[/C][/ROW]
[ROW][C]X[/C][C]4.89094083246159[/C][C]4.104381[/C][C]1.1916[/C][C]0.240093[/C][C]0.120047[/C][/ROW]
[ROW][C]M1[/C][C]8.17504404347599[/C][C]9.210087[/C][C]0.8876[/C][C]0.379801[/C][C]0.1899[/C][/ROW]
[ROW][C]M2[/C][C]35.332449512388[/C][C]9.242163[/C][C]3.823[/C][C]0.00043[/C][C]0.000215[/C][/ROW]
[ROW][C]M3[/C][C]-6.22759448550611[/C][C]9.185475[/C][C]-0.678[/C][C]0.501501[/C][C]0.25075[/C][/ROW]
[ROW][C]M4[/C][C]-18.3563632168033[/C][C]9.127969[/C][C]-2.011[/C][C]0.050773[/C][C]0.025386[/C][/ROW]
[ROW][C]M5[/C][C]6.48832450184722[/C][C]9.140753[/C][C]0.7098[/C][C]0.481736[/C][C]0.240868[/C][/ROW]
[ROW][C]M6[/C][C]4.07046168730386[/C][C]9.165552[/C][C]0.4441[/C][C]0.659247[/C][C]0.329623[/C][/ROW]
[ROW][C]M7[/C][C]11.9911214733882[/C][C]9.282158[/C][C]1.2918[/C][C]0.203474[/C][C]0.101737[/C][/ROW]
[ROW][C]M8[/C][C]76.9885269423002[/C][C]9.338817[/C][C]8.2439[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-3.9423174731238[/C][C]9.630967[/C][C]-0.4093[/C][C]0.684372[/C][C]0.342186[/C][/ROW]
[ROW][C]M10[/C][C]-9.25381268360943[/C][C]9.620139[/C][C]-0.9619[/C][C]0.341595[/C][C]0.170797[/C][/ROW]
[ROW][C]M11[/C][C]10.0205980226587[/C][C]9.640061[/C][C]1.0395[/C][C]0.304531[/C][C]0.152266[/C][/ROW]
[ROW][C]t[/C][C]0.986956897789507[/C][C]0.156688[/C][C]6.2989[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58538&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58538&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)54.447869218795135.3694721.53940.1312070.065603
X4.890940832461594.1043811.19160.2400930.120047
M18.175044043475999.2100870.88760.3798010.1899
M235.3324495123889.2421633.8230.000430.000215
M3-6.227594485506119.185475-0.6780.5015010.25075
M4-18.35636321680339.127969-2.0110.0507730.025386
M56.488324501847229.1407530.70980.4817360.240868
M64.070461687303869.1655520.44410.6592470.329623
M711.99112147338829.2821581.29180.2034740.101737
M876.98852694230029.3388178.243900
M9-3.94231747312389.630967-0.40930.6843720.342186
M10-9.253812683609439.620139-0.96190.3415950.170797
M1110.02059802265879.6400611.03950.3045310.152266
t0.9869568977895070.1566886.298900







Multiple Linear Regression - Regression Statistics
Multiple R0.928748055628976
R-squared0.862572950834603
Adjusted R-squared0.820036007045314
F-TEST (value)20.2782069889044
F-TEST (DF numerator)13
F-TEST (DF denominator)42
p-value5.19584375524573e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.5936681097854
Sum Squared Residuals7761.08813251787

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.928748055628976 \tabularnewline
R-squared & 0.862572950834603 \tabularnewline
Adjusted R-squared & 0.820036007045314 \tabularnewline
F-TEST (value) & 20.2782069889044 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 5.19584375524573e-14 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 13.5936681097854 \tabularnewline
Sum Squared Residuals & 7761.08813251787 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58538&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.928748055628976[/C][/ROW]
[ROW][C]R-squared[/C][C]0.862572950834603[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.820036007045314[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]20.2782069889044[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]5.19584375524573e-14[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]13.5936681097854[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]7761.08813251787[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58538&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58538&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.928748055628976
R-squared0.862572950834603
Adjusted R-squared0.820036007045314
F-TEST (value)20.2782069889044
F-TEST (DF numerator)13
F-TEST (DF denominator)42
p-value5.19584375524573e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.5936681097854
Sum Squared Residuals7761.08813251787







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
199.2105.182867235984-5.98286723598409
2116.5133.816323685932-17.3163236859318
398.492.7541425025815.64585749741893
490.680.145048419334910.4549515806651
5130.5105.48759895252925.0124010474712
6107.4103.0785048692834.32149513071737
7106115.409780135880-9.40978013587954
8196.5181.88323658582714.6167634141728
9107.8101.9393490681935.86065093180723
1090.596.6366225890043-6.13662258900427
11123.8116.4088961098167.39110389018417
12114.7107.8643490681936.83565093180724
13115.3118.004538175951-2.70453817595057
14197146.14890054265250.8510994573479
1588.4105.086719359301-16.6867193593013
1693.893.45581344254750.344186557452507
17111.3118.309269892495-7.0092698924952
18105.9115.411081726003-9.51108172600286
19123.6125.296886576369-1.696886576369
20171190.792154859824-19.7921548598244
2197110.84826734219-13.8482673421899
2299.2106.034634946248-6.8346349462476
23126.6125.8069084670590.793091532940871
24103.4116.77326734219-13.3732673421899
25121.3126.424362366702-5.12436236670156
26129.6154.568724733403-24.9687247334031
27110.8113.506543550052-2.70654355005232
2898.9102.853825799791-3.95382579979078
29122.8127.218188166492-4.41818816649232
30120.9123.341811833508-2.44181183350767
31133.1133.71671076712-0.616710767119976
32203.1198.7228849673294.37711503267079
33110.2117.311715199956-7.11171519995622
34119.5112.9871768872606.5128231127399
35135.1133.2485444913181.85145550868221
36113.9125.193091532941-11.2930915329409
37137.4134.8441865574532.55581344254747
38157.1162.010360757662-4.91036075766174
39126.4119.9699914078196.43000859218135
40112.2106.8718032413265.32819675867367
41128.8131.236165608028-2.43616560802787
42136.8131.7616360242595.03836397574135
43156.5146.5383817070869.96161829291363
44215.2213.5009322402801.69906775971974
45146.7131.60066838966115.0993316103389
46130.8124.3415655774886.45843442251198
47133.1143.135650931807-10.0356509318072
48153.4135.56929205667617.8307079433235
49159.9148.64404566391111.2559543360887
50174.6178.255690280351-3.65569028035125
51145137.6826031802477.31739681975335
52112.9125.073509097000-12.1735090970005
53137.8148.948777380456-11.1487773804558
54150.6148.0069655469482.59303445305181
55162.1160.3382408135451.76175918645488
56226.4227.300791346739-0.900791346738928

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 99.2 & 105.182867235984 & -5.98286723598409 \tabularnewline
2 & 116.5 & 133.816323685932 & -17.3163236859318 \tabularnewline
3 & 98.4 & 92.754142502581 & 5.64585749741893 \tabularnewline
4 & 90.6 & 80.1450484193349 & 10.4549515806651 \tabularnewline
5 & 130.5 & 105.487598952529 & 25.0124010474712 \tabularnewline
6 & 107.4 & 103.078504869283 & 4.32149513071737 \tabularnewline
7 & 106 & 115.409780135880 & -9.40978013587954 \tabularnewline
8 & 196.5 & 181.883236585827 & 14.6167634141728 \tabularnewline
9 & 107.8 & 101.939349068193 & 5.86065093180723 \tabularnewline
10 & 90.5 & 96.6366225890043 & -6.13662258900427 \tabularnewline
11 & 123.8 & 116.408896109816 & 7.39110389018417 \tabularnewline
12 & 114.7 & 107.864349068193 & 6.83565093180724 \tabularnewline
13 & 115.3 & 118.004538175951 & -2.70453817595057 \tabularnewline
14 & 197 & 146.148900542652 & 50.8510994573479 \tabularnewline
15 & 88.4 & 105.086719359301 & -16.6867193593013 \tabularnewline
16 & 93.8 & 93.4558134425475 & 0.344186557452507 \tabularnewline
17 & 111.3 & 118.309269892495 & -7.0092698924952 \tabularnewline
18 & 105.9 & 115.411081726003 & -9.51108172600286 \tabularnewline
19 & 123.6 & 125.296886576369 & -1.696886576369 \tabularnewline
20 & 171 & 190.792154859824 & -19.7921548598244 \tabularnewline
21 & 97 & 110.84826734219 & -13.8482673421899 \tabularnewline
22 & 99.2 & 106.034634946248 & -6.8346349462476 \tabularnewline
23 & 126.6 & 125.806908467059 & 0.793091532940871 \tabularnewline
24 & 103.4 & 116.77326734219 & -13.3732673421899 \tabularnewline
25 & 121.3 & 126.424362366702 & -5.12436236670156 \tabularnewline
26 & 129.6 & 154.568724733403 & -24.9687247334031 \tabularnewline
27 & 110.8 & 113.506543550052 & -2.70654355005232 \tabularnewline
28 & 98.9 & 102.853825799791 & -3.95382579979078 \tabularnewline
29 & 122.8 & 127.218188166492 & -4.41818816649232 \tabularnewline
30 & 120.9 & 123.341811833508 & -2.44181183350767 \tabularnewline
31 & 133.1 & 133.71671076712 & -0.616710767119976 \tabularnewline
32 & 203.1 & 198.722884967329 & 4.37711503267079 \tabularnewline
33 & 110.2 & 117.311715199956 & -7.11171519995622 \tabularnewline
34 & 119.5 & 112.987176887260 & 6.5128231127399 \tabularnewline
35 & 135.1 & 133.248544491318 & 1.85145550868221 \tabularnewline
36 & 113.9 & 125.193091532941 & -11.2930915329409 \tabularnewline
37 & 137.4 & 134.844186557453 & 2.55581344254747 \tabularnewline
38 & 157.1 & 162.010360757662 & -4.91036075766174 \tabularnewline
39 & 126.4 & 119.969991407819 & 6.43000859218135 \tabularnewline
40 & 112.2 & 106.871803241326 & 5.32819675867367 \tabularnewline
41 & 128.8 & 131.236165608028 & -2.43616560802787 \tabularnewline
42 & 136.8 & 131.761636024259 & 5.03836397574135 \tabularnewline
43 & 156.5 & 146.538381707086 & 9.96161829291363 \tabularnewline
44 & 215.2 & 213.500932240280 & 1.69906775971974 \tabularnewline
45 & 146.7 & 131.600668389661 & 15.0993316103389 \tabularnewline
46 & 130.8 & 124.341565577488 & 6.45843442251198 \tabularnewline
47 & 133.1 & 143.135650931807 & -10.0356509318072 \tabularnewline
48 & 153.4 & 135.569292056676 & 17.8307079433235 \tabularnewline
49 & 159.9 & 148.644045663911 & 11.2559543360887 \tabularnewline
50 & 174.6 & 178.255690280351 & -3.65569028035125 \tabularnewline
51 & 145 & 137.682603180247 & 7.31739681975335 \tabularnewline
52 & 112.9 & 125.073509097000 & -12.1735090970005 \tabularnewline
53 & 137.8 & 148.948777380456 & -11.1487773804558 \tabularnewline
54 & 150.6 & 148.006965546948 & 2.59303445305181 \tabularnewline
55 & 162.1 & 160.338240813545 & 1.76175918645488 \tabularnewline
56 & 226.4 & 227.300791346739 & -0.900791346738928 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58538&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]99.2[/C][C]105.182867235984[/C][C]-5.98286723598409[/C][/ROW]
[ROW][C]2[/C][C]116.5[/C][C]133.816323685932[/C][C]-17.3163236859318[/C][/ROW]
[ROW][C]3[/C][C]98.4[/C][C]92.754142502581[/C][C]5.64585749741893[/C][/ROW]
[ROW][C]4[/C][C]90.6[/C][C]80.1450484193349[/C][C]10.4549515806651[/C][/ROW]
[ROW][C]5[/C][C]130.5[/C][C]105.487598952529[/C][C]25.0124010474712[/C][/ROW]
[ROW][C]6[/C][C]107.4[/C][C]103.078504869283[/C][C]4.32149513071737[/C][/ROW]
[ROW][C]7[/C][C]106[/C][C]115.409780135880[/C][C]-9.40978013587954[/C][/ROW]
[ROW][C]8[/C][C]196.5[/C][C]181.883236585827[/C][C]14.6167634141728[/C][/ROW]
[ROW][C]9[/C][C]107.8[/C][C]101.939349068193[/C][C]5.86065093180723[/C][/ROW]
[ROW][C]10[/C][C]90.5[/C][C]96.6366225890043[/C][C]-6.13662258900427[/C][/ROW]
[ROW][C]11[/C][C]123.8[/C][C]116.408896109816[/C][C]7.39110389018417[/C][/ROW]
[ROW][C]12[/C][C]114.7[/C][C]107.864349068193[/C][C]6.83565093180724[/C][/ROW]
[ROW][C]13[/C][C]115.3[/C][C]118.004538175951[/C][C]-2.70453817595057[/C][/ROW]
[ROW][C]14[/C][C]197[/C][C]146.148900542652[/C][C]50.8510994573479[/C][/ROW]
[ROW][C]15[/C][C]88.4[/C][C]105.086719359301[/C][C]-16.6867193593013[/C][/ROW]
[ROW][C]16[/C][C]93.8[/C][C]93.4558134425475[/C][C]0.344186557452507[/C][/ROW]
[ROW][C]17[/C][C]111.3[/C][C]118.309269892495[/C][C]-7.0092698924952[/C][/ROW]
[ROW][C]18[/C][C]105.9[/C][C]115.411081726003[/C][C]-9.51108172600286[/C][/ROW]
[ROW][C]19[/C][C]123.6[/C][C]125.296886576369[/C][C]-1.696886576369[/C][/ROW]
[ROW][C]20[/C][C]171[/C][C]190.792154859824[/C][C]-19.7921548598244[/C][/ROW]
[ROW][C]21[/C][C]97[/C][C]110.84826734219[/C][C]-13.8482673421899[/C][/ROW]
[ROW][C]22[/C][C]99.2[/C][C]106.034634946248[/C][C]-6.8346349462476[/C][/ROW]
[ROW][C]23[/C][C]126.6[/C][C]125.806908467059[/C][C]0.793091532940871[/C][/ROW]
[ROW][C]24[/C][C]103.4[/C][C]116.77326734219[/C][C]-13.3732673421899[/C][/ROW]
[ROW][C]25[/C][C]121.3[/C][C]126.424362366702[/C][C]-5.12436236670156[/C][/ROW]
[ROW][C]26[/C][C]129.6[/C][C]154.568724733403[/C][C]-24.9687247334031[/C][/ROW]
[ROW][C]27[/C][C]110.8[/C][C]113.506543550052[/C][C]-2.70654355005232[/C][/ROW]
[ROW][C]28[/C][C]98.9[/C][C]102.853825799791[/C][C]-3.95382579979078[/C][/ROW]
[ROW][C]29[/C][C]122.8[/C][C]127.218188166492[/C][C]-4.41818816649232[/C][/ROW]
[ROW][C]30[/C][C]120.9[/C][C]123.341811833508[/C][C]-2.44181183350767[/C][/ROW]
[ROW][C]31[/C][C]133.1[/C][C]133.71671076712[/C][C]-0.616710767119976[/C][/ROW]
[ROW][C]32[/C][C]203.1[/C][C]198.722884967329[/C][C]4.37711503267079[/C][/ROW]
[ROW][C]33[/C][C]110.2[/C][C]117.311715199956[/C][C]-7.11171519995622[/C][/ROW]
[ROW][C]34[/C][C]119.5[/C][C]112.987176887260[/C][C]6.5128231127399[/C][/ROW]
[ROW][C]35[/C][C]135.1[/C][C]133.248544491318[/C][C]1.85145550868221[/C][/ROW]
[ROW][C]36[/C][C]113.9[/C][C]125.193091532941[/C][C]-11.2930915329409[/C][/ROW]
[ROW][C]37[/C][C]137.4[/C][C]134.844186557453[/C][C]2.55581344254747[/C][/ROW]
[ROW][C]38[/C][C]157.1[/C][C]162.010360757662[/C][C]-4.91036075766174[/C][/ROW]
[ROW][C]39[/C][C]126.4[/C][C]119.969991407819[/C][C]6.43000859218135[/C][/ROW]
[ROW][C]40[/C][C]112.2[/C][C]106.871803241326[/C][C]5.32819675867367[/C][/ROW]
[ROW][C]41[/C][C]128.8[/C][C]131.236165608028[/C][C]-2.43616560802787[/C][/ROW]
[ROW][C]42[/C][C]136.8[/C][C]131.761636024259[/C][C]5.03836397574135[/C][/ROW]
[ROW][C]43[/C][C]156.5[/C][C]146.538381707086[/C][C]9.96161829291363[/C][/ROW]
[ROW][C]44[/C][C]215.2[/C][C]213.500932240280[/C][C]1.69906775971974[/C][/ROW]
[ROW][C]45[/C][C]146.7[/C][C]131.600668389661[/C][C]15.0993316103389[/C][/ROW]
[ROW][C]46[/C][C]130.8[/C][C]124.341565577488[/C][C]6.45843442251198[/C][/ROW]
[ROW][C]47[/C][C]133.1[/C][C]143.135650931807[/C][C]-10.0356509318072[/C][/ROW]
[ROW][C]48[/C][C]153.4[/C][C]135.569292056676[/C][C]17.8307079433235[/C][/ROW]
[ROW][C]49[/C][C]159.9[/C][C]148.644045663911[/C][C]11.2559543360887[/C][/ROW]
[ROW][C]50[/C][C]174.6[/C][C]178.255690280351[/C][C]-3.65569028035125[/C][/ROW]
[ROW][C]51[/C][C]145[/C][C]137.682603180247[/C][C]7.31739681975335[/C][/ROW]
[ROW][C]52[/C][C]112.9[/C][C]125.073509097000[/C][C]-12.1735090970005[/C][/ROW]
[ROW][C]53[/C][C]137.8[/C][C]148.948777380456[/C][C]-11.1487773804558[/C][/ROW]
[ROW][C]54[/C][C]150.6[/C][C]148.006965546948[/C][C]2.59303445305181[/C][/ROW]
[ROW][C]55[/C][C]162.1[/C][C]160.338240813545[/C][C]1.76175918645488[/C][/ROW]
[ROW][C]56[/C][C]226.4[/C][C]227.300791346739[/C][C]-0.900791346738928[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58538&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58538&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
199.2105.182867235984-5.98286723598409
2116.5133.816323685932-17.3163236859318
398.492.7541425025815.64585749741893
490.680.145048419334910.4549515806651
5130.5105.48759895252925.0124010474712
6107.4103.0785048692834.32149513071737
7106115.409780135880-9.40978013587954
8196.5181.88323658582714.6167634141728
9107.8101.9393490681935.86065093180723
1090.596.6366225890043-6.13662258900427
11123.8116.4088961098167.39110389018417
12114.7107.8643490681936.83565093180724
13115.3118.004538175951-2.70453817595057
14197146.14890054265250.8510994573479
1588.4105.086719359301-16.6867193593013
1693.893.45581344254750.344186557452507
17111.3118.309269892495-7.0092698924952
18105.9115.411081726003-9.51108172600286
19123.6125.296886576369-1.696886576369
20171190.792154859824-19.7921548598244
2197110.84826734219-13.8482673421899
2299.2106.034634946248-6.8346349462476
23126.6125.8069084670590.793091532940871
24103.4116.77326734219-13.3732673421899
25121.3126.424362366702-5.12436236670156
26129.6154.568724733403-24.9687247334031
27110.8113.506543550052-2.70654355005232
2898.9102.853825799791-3.95382579979078
29122.8127.218188166492-4.41818816649232
30120.9123.341811833508-2.44181183350767
31133.1133.71671076712-0.616710767119976
32203.1198.7228849673294.37711503267079
33110.2117.311715199956-7.11171519995622
34119.5112.9871768872606.5128231127399
35135.1133.2485444913181.85145550868221
36113.9125.193091532941-11.2930915329409
37137.4134.8441865574532.55581344254747
38157.1162.010360757662-4.91036075766174
39126.4119.9699914078196.43000859218135
40112.2106.8718032413265.32819675867367
41128.8131.236165608028-2.43616560802787
42136.8131.7616360242595.03836397574135
43156.5146.5383817070869.96161829291363
44215.2213.5009322402801.69906775971974
45146.7131.60066838966115.0993316103389
46130.8124.3415655774886.45843442251198
47133.1143.135650931807-10.0356509318072
48153.4135.56929205667617.8307079433235
49159.9148.64404566391111.2559543360887
50174.6178.255690280351-3.65569028035125
51145137.6826031802477.31739681975335
52112.9125.073509097000-12.1735090970005
53137.8148.948777380456-11.1487773804558
54150.6148.0069655469482.59303445305181
55162.1160.3382408135451.76175918645488
56226.4227.300791346739-0.900791346738928







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.9999814490152073.71019695860039e-051.85509847930020e-05
180.9999681344424276.37311151467366e-053.18655575733683e-05
190.9999332853009830.0001334293980331996.67146990165996e-05
200.999959186190298.16276194210365e-054.08138097105183e-05
210.9998985675417070.0002028649165856990.000101432458292849
220.999746213726320.0005075725473595650.000253786273679782
230.9996621281601010.0006757436797982750.000337871839899138
240.9992531751716660.001493649656669000.000746824828334502
250.9984922508649360.003015498270128460.00150774913506423
260.9990482124238940.001903575152211020.00095178757610551
270.998389362971290.003221274057421730.00161063702871087
280.9964389916434830.00712201671303370.00356100835651685
290.9951762910795080.009647417840983730.00482370892049187
300.9907784570306040.01844308593879180.00922154296939588
310.9836151373303430.03276972533931380.0163848626696569
320.9721945347290240.05561093054195260.0278054652709763
330.9804365442490.03912691150200010.0195634557510000
340.964788856646280.07042228670744110.0352111433537206
350.9921792504992020.01564149900159540.00782074950079772
360.9936352187462450.01272956250751060.00636478125375532
370.9908052303979720.0183895392040570.0091947696020285
380.9795663082085430.0408673835829140.020433691791457
390.9771707417514910.04565851649701750.0228292582485088

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.999981449015207 & 3.71019695860039e-05 & 1.85509847930020e-05 \tabularnewline
18 & 0.999968134442427 & 6.37311151467366e-05 & 3.18655575733683e-05 \tabularnewline
19 & 0.999933285300983 & 0.000133429398033199 & 6.67146990165996e-05 \tabularnewline
20 & 0.99995918619029 & 8.16276194210365e-05 & 4.08138097105183e-05 \tabularnewline
21 & 0.999898567541707 & 0.000202864916585699 & 0.000101432458292849 \tabularnewline
22 & 0.99974621372632 & 0.000507572547359565 & 0.000253786273679782 \tabularnewline
23 & 0.999662128160101 & 0.000675743679798275 & 0.000337871839899138 \tabularnewline
24 & 0.999253175171666 & 0.00149364965666900 & 0.000746824828334502 \tabularnewline
25 & 0.998492250864936 & 0.00301549827012846 & 0.00150774913506423 \tabularnewline
26 & 0.999048212423894 & 0.00190357515221102 & 0.00095178757610551 \tabularnewline
27 & 0.99838936297129 & 0.00322127405742173 & 0.00161063702871087 \tabularnewline
28 & 0.996438991643483 & 0.0071220167130337 & 0.00356100835651685 \tabularnewline
29 & 0.995176291079508 & 0.00964741784098373 & 0.00482370892049187 \tabularnewline
30 & 0.990778457030604 & 0.0184430859387918 & 0.00922154296939588 \tabularnewline
31 & 0.983615137330343 & 0.0327697253393138 & 0.0163848626696569 \tabularnewline
32 & 0.972194534729024 & 0.0556109305419526 & 0.0278054652709763 \tabularnewline
33 & 0.980436544249 & 0.0391269115020001 & 0.0195634557510000 \tabularnewline
34 & 0.96478885664628 & 0.0704222867074411 & 0.0352111433537206 \tabularnewline
35 & 0.992179250499202 & 0.0156414990015954 & 0.00782074950079772 \tabularnewline
36 & 0.993635218746245 & 0.0127295625075106 & 0.00636478125375532 \tabularnewline
37 & 0.990805230397972 & 0.018389539204057 & 0.0091947696020285 \tabularnewline
38 & 0.979566308208543 & 0.040867383582914 & 0.020433691791457 \tabularnewline
39 & 0.977170741751491 & 0.0456585164970175 & 0.0228292582485088 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58538&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.999981449015207[/C][C]3.71019695860039e-05[/C][C]1.85509847930020e-05[/C][/ROW]
[ROW][C]18[/C][C]0.999968134442427[/C][C]6.37311151467366e-05[/C][C]3.18655575733683e-05[/C][/ROW]
[ROW][C]19[/C][C]0.999933285300983[/C][C]0.000133429398033199[/C][C]6.67146990165996e-05[/C][/ROW]
[ROW][C]20[/C][C]0.99995918619029[/C][C]8.16276194210365e-05[/C][C]4.08138097105183e-05[/C][/ROW]
[ROW][C]21[/C][C]0.999898567541707[/C][C]0.000202864916585699[/C][C]0.000101432458292849[/C][/ROW]
[ROW][C]22[/C][C]0.99974621372632[/C][C]0.000507572547359565[/C][C]0.000253786273679782[/C][/ROW]
[ROW][C]23[/C][C]0.999662128160101[/C][C]0.000675743679798275[/C][C]0.000337871839899138[/C][/ROW]
[ROW][C]24[/C][C]0.999253175171666[/C][C]0.00149364965666900[/C][C]0.000746824828334502[/C][/ROW]
[ROW][C]25[/C][C]0.998492250864936[/C][C]0.00301549827012846[/C][C]0.00150774913506423[/C][/ROW]
[ROW][C]26[/C][C]0.999048212423894[/C][C]0.00190357515221102[/C][C]0.00095178757610551[/C][/ROW]
[ROW][C]27[/C][C]0.99838936297129[/C][C]0.00322127405742173[/C][C]0.00161063702871087[/C][/ROW]
[ROW][C]28[/C][C]0.996438991643483[/C][C]0.0071220167130337[/C][C]0.00356100835651685[/C][/ROW]
[ROW][C]29[/C][C]0.995176291079508[/C][C]0.00964741784098373[/C][C]0.00482370892049187[/C][/ROW]
[ROW][C]30[/C][C]0.990778457030604[/C][C]0.0184430859387918[/C][C]0.00922154296939588[/C][/ROW]
[ROW][C]31[/C][C]0.983615137330343[/C][C]0.0327697253393138[/C][C]0.0163848626696569[/C][/ROW]
[ROW][C]32[/C][C]0.972194534729024[/C][C]0.0556109305419526[/C][C]0.0278054652709763[/C][/ROW]
[ROW][C]33[/C][C]0.980436544249[/C][C]0.0391269115020001[/C][C]0.0195634557510000[/C][/ROW]
[ROW][C]34[/C][C]0.96478885664628[/C][C]0.0704222867074411[/C][C]0.0352111433537206[/C][/ROW]
[ROW][C]35[/C][C]0.992179250499202[/C][C]0.0156414990015954[/C][C]0.00782074950079772[/C][/ROW]
[ROW][C]36[/C][C]0.993635218746245[/C][C]0.0127295625075106[/C][C]0.00636478125375532[/C][/ROW]
[ROW][C]37[/C][C]0.990805230397972[/C][C]0.018389539204057[/C][C]0.0091947696020285[/C][/ROW]
[ROW][C]38[/C][C]0.979566308208543[/C][C]0.040867383582914[/C][C]0.020433691791457[/C][/ROW]
[ROW][C]39[/C][C]0.977170741751491[/C][C]0.0456585164970175[/C][C]0.0228292582485088[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58538&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58538&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.9999814490152073.71019695860039e-051.85509847930020e-05
180.9999681344424276.37311151467366e-053.18655575733683e-05
190.9999332853009830.0001334293980331996.67146990165996e-05
200.999959186190298.16276194210365e-054.08138097105183e-05
210.9998985675417070.0002028649165856990.000101432458292849
220.999746213726320.0005075725473595650.000253786273679782
230.9996621281601010.0006757436797982750.000337871839899138
240.9992531751716660.001493649656669000.000746824828334502
250.9984922508649360.003015498270128460.00150774913506423
260.9990482124238940.001903575152211020.00095178757610551
270.998389362971290.003221274057421730.00161063702871087
280.9964389916434830.00712201671303370.00356100835651685
290.9951762910795080.009647417840983730.00482370892049187
300.9907784570306040.01844308593879180.00922154296939588
310.9836151373303430.03276972533931380.0163848626696569
320.9721945347290240.05561093054195260.0278054652709763
330.9804365442490.03912691150200010.0195634557510000
340.964788856646280.07042228670744110.0352111433537206
350.9921792504992020.01564149900159540.00782074950079772
360.9936352187462450.01272956250751060.00636478125375532
370.9908052303979720.0183895392040570.0091947696020285
380.9795663082085430.0408673835829140.020433691791457
390.9771707417514910.04565851649701750.0228292582485088







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.565217391304348NOK
5% type I error level210.91304347826087NOK
10% type I error level231NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58538&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 level130.565217391304348NOK
5% type I error level210.91304347826087NOK
10% type I error level231NOK



Parameters (Session):
par1 = 2 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 2 ; 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')
}