Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 23 Nov 2009 12:34:54 -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/23/t1259005813zy0qd8tak4hgde5.htm/, Retrieved Fri, 03 May 2024 09:42:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58885, Retrieved Fri, 03 May 2024 09:42:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact118
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2009-11-23 19:34:54] [208e60166df5802f3c494097313a670f] [Current]
Feedback Forum

Post a new message
Dataseries X:
93.3	121.8
97.3	127.6
127	129.9
111.7	128
96.4	123.5
133	124
72.2	127.4
95.8	127.6
124.1	128.4
127.6	131.4
110.7	135.1
104.6	134
112.7	144.5
115.3	147.3
139.4	150.9
119	148.7
97.4	141.4
154	138.9
81.5	139.8
88.8	145.6
127.7	147.9
105.1	148.5
114.9	151.1
106.4	157.5
104.5	167.5
121.6	172.3
141.4	173.5
99	187.5
126.7	205.5
134.1	195.1
81.3	204.5
88.6	204.5
132.7	201.7
132.9	207
134.4	206.6
103.7	210.6
119.7	211.1
115	215
132.9	223.9
108.5	238.2
113.9	238.9
142	229.6
97.7	232.2
92.2	222.1
128.8	221.6
134.9	227.3
128.2	221
114.8	213.6
117.9	243.4
119.1	253.8
120.7	265.3
129.1	268.2
117.6	268.5
129.2	266.9
100	268.4
87	250.8
128	231.2
127.7	192
93.4	171.4
84.1	160
71.7	148.1




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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58885&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
IPtran[t] = + 87.4011660986683 + 0.087466220745299IGPic[t] + 0.790502037927038M1[t] + 10.2350222607929M2[t] + 28.3739580466937M3[t] + 9.07989113025423M4[t] + 5.893939772381M5[t] + 34.3615323610541M6[t] -17.8698473847992M7[t] -13.5502439867646M8[t] + 24.5761222473868M9[t] + 22.3864560534537M10[t] + 13.4338141805839M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
IPtran[t] =  +  87.4011660986683 +  0.087466220745299IGPic[t] +  0.790502037927038M1[t] +  10.2350222607929M2[t] +  28.3739580466937M3[t] +  9.07989113025423M4[t] +  5.893939772381M5[t] +  34.3615323610541M6[t] -17.8698473847992M7[t] -13.5502439867646M8[t] +  24.5761222473868M9[t] +  22.3864560534537M10[t] +  13.4338141805839M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58885&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]IPtran[t] =  +  87.4011660986683 +  0.087466220745299IGPic[t] +  0.790502037927038M1[t] +  10.2350222607929M2[t] +  28.3739580466937M3[t] +  9.07989113025423M4[t] +  5.893939772381M5[t] +  34.3615323610541M6[t] -17.8698473847992M7[t] -13.5502439867646M8[t] +  24.5761222473868M9[t] +  22.3864560534537M10[t] +  13.4338141805839M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58885&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58885&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
IPtran[t] = + 87.4011660986683 + 0.087466220745299IGPic[t] + 0.790502037927038M1[t] + 10.2350222607929M2[t] + 28.3739580466937M3[t] + 9.07989113025423M4[t] + 5.893939772381M5[t] + 34.3615323610541M6[t] -17.8698473847992M7[t] -13.5502439867646M8[t] + 24.5761222473868M9[t] + 22.3864560534537M10[t] + 13.4338141805839M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)87.40116609866837.24278412.067300
IGPic0.0874662207452990.0305692.86130.0062320.003116
M10.7905020379270386.6051640.11970.9052370.452618
M210.23502226079296.902841.48270.1446830.072342
M328.37395804669376.9108834.10570.0001567.8e-05
M49.079891130254236.9227971.31160.1958970.097948
M55.8939397723816.9266250.85090.3990440.199522
M634.36153236105416.9152434.9699e-064e-06
M7-17.86984738479926.923676-2.5810.0129640.006482
M8-13.55024398676466.913623-1.95990.0558230.027912
M924.57612224738686.9066613.55830.0008530.000426
M1022.38645605345376.9009613.2440.0021490.001074
M1113.43381418058396.8986851.94730.0573620.028681

\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) & 87.4011660986683 & 7.242784 & 12.0673 & 0 & 0 \tabularnewline
IGPic & 0.087466220745299 & 0.030569 & 2.8613 & 0.006232 & 0.003116 \tabularnewline
M1 & 0.790502037927038 & 6.605164 & 0.1197 & 0.905237 & 0.452618 \tabularnewline
M2 & 10.2350222607929 & 6.90284 & 1.4827 & 0.144683 & 0.072342 \tabularnewline
M3 & 28.3739580466937 & 6.910883 & 4.1057 & 0.000156 & 7.8e-05 \tabularnewline
M4 & 9.07989113025423 & 6.922797 & 1.3116 & 0.195897 & 0.097948 \tabularnewline
M5 & 5.893939772381 & 6.926625 & 0.8509 & 0.399044 & 0.199522 \tabularnewline
M6 & 34.3615323610541 & 6.915243 & 4.969 & 9e-06 & 4e-06 \tabularnewline
M7 & -17.8698473847992 & 6.923676 & -2.581 & 0.012964 & 0.006482 \tabularnewline
M8 & -13.5502439867646 & 6.913623 & -1.9599 & 0.055823 & 0.027912 \tabularnewline
M9 & 24.5761222473868 & 6.906661 & 3.5583 & 0.000853 & 0.000426 \tabularnewline
M10 & 22.3864560534537 & 6.900961 & 3.244 & 0.002149 & 0.001074 \tabularnewline
M11 & 13.4338141805839 & 6.898685 & 1.9473 & 0.057362 & 0.028681 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58885&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]87.4011660986683[/C][C]7.242784[/C][C]12.0673[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]IGPic[/C][C]0.087466220745299[/C][C]0.030569[/C][C]2.8613[/C][C]0.006232[/C][C]0.003116[/C][/ROW]
[ROW][C]M1[/C][C]0.790502037927038[/C][C]6.605164[/C][C]0.1197[/C][C]0.905237[/C][C]0.452618[/C][/ROW]
[ROW][C]M2[/C][C]10.2350222607929[/C][C]6.90284[/C][C]1.4827[/C][C]0.144683[/C][C]0.072342[/C][/ROW]
[ROW][C]M3[/C][C]28.3739580466937[/C][C]6.910883[/C][C]4.1057[/C][C]0.000156[/C][C]7.8e-05[/C][/ROW]
[ROW][C]M4[/C][C]9.07989113025423[/C][C]6.922797[/C][C]1.3116[/C][C]0.195897[/C][C]0.097948[/C][/ROW]
[ROW][C]M5[/C][C]5.893939772381[/C][C]6.926625[/C][C]0.8509[/C][C]0.399044[/C][C]0.199522[/C][/ROW]
[ROW][C]M6[/C][C]34.3615323610541[/C][C]6.915243[/C][C]4.969[/C][C]9e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M7[/C][C]-17.8698473847992[/C][C]6.923676[/C][C]-2.581[/C][C]0.012964[/C][C]0.006482[/C][/ROW]
[ROW][C]M8[/C][C]-13.5502439867646[/C][C]6.913623[/C][C]-1.9599[/C][C]0.055823[/C][C]0.027912[/C][/ROW]
[ROW][C]M9[/C][C]24.5761222473868[/C][C]6.906661[/C][C]3.5583[/C][C]0.000853[/C][C]0.000426[/C][/ROW]
[ROW][C]M10[/C][C]22.3864560534537[/C][C]6.900961[/C][C]3.244[/C][C]0.002149[/C][C]0.001074[/C][/ROW]
[ROW][C]M11[/C][C]13.4338141805839[/C][C]6.898685[/C][C]1.9473[/C][C]0.057362[/C][C]0.028681[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58885&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58885&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)87.40116609866837.24278412.067300
IGPic0.0874662207452990.0305692.86130.0062320.003116
M10.7905020379270386.6051640.11970.9052370.452618
M210.23502226079296.902841.48270.1446830.072342
M328.37395804669376.9108834.10570.0001567.8e-05
M49.079891130254236.9227971.31160.1958970.097948
M55.8939397723816.9266250.85090.3990440.199522
M634.36153236105416.9152434.9699e-064e-06
M7-17.86984738479926.923676-2.5810.0129640.006482
M8-13.55024398676466.913623-1.95990.0558230.027912
M924.57612224738686.9066613.55830.0008530.000426
M1022.38645605345376.9009613.2440.0021490.001074
M1113.43381418058396.8986851.94730.0573620.028681







Multiple Linear Regression - Regression Statistics
Multiple R0.852991722337246
R-squared0.727594878375862
Adjusted R-squared0.659493597969827
F-TEST (value)10.6840117254446
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value7.28515914261152e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation10.9073928806020
Sum Squared Residuals5710.61853368671

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.852991722337246 \tabularnewline
R-squared & 0.727594878375862 \tabularnewline
Adjusted R-squared & 0.659493597969827 \tabularnewline
F-TEST (value) & 10.6840117254446 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 7.28515914261152e-10 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 10.9073928806020 \tabularnewline
Sum Squared Residuals & 5710.61853368671 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58885&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.852991722337246[/C][/ROW]
[ROW][C]R-squared[/C][C]0.727594878375862[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.659493597969827[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.6840117254446[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]7.28515914261152e-10[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]10.9073928806020[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]5710.61853368671[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58885&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58885&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.852991722337246
R-squared0.727594878375862
Adjusted R-squared0.659493597969827
F-TEST (value)10.6840117254446
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value7.28515914261152e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation10.9073928806020
Sum Squared Residuals5710.61853368671







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
193.398.8450538233728-5.54505382337281
297.3108.796878126561-11.4968781265614
3127127.136986220176-0.136986220176470
4111.7107.6767334843214.02326651567917
596.4104.097184133094-7.69718413309374
6133132.6085098321400.391490167860499
772.280.6745152368203-8.47451523682025
895.885.01161187900410.7883881209961
9124.1123.2079510897520.892048910248477
10127.6121.2806835580546.3193164419457
11110.7112.651666701942-1.95166670194216
12104.699.12163967853845.47836032146158
13112.7100.83053703429111.8694629657090
14115.3110.5199626752444.78003732475623
15139.4128.97377685582810.4262231441723
16119109.4872842537499.51271574625149
1797.4105.662829484435-8.2628294844346
18154133.91175652124420.0882434787556
1981.581.759096374062-0.259096374061959
2088.886.58600385241932.21399614758071
21127.7124.9135423942852.78645760571514
22105.1122.776355932799-17.6763559327989
23114.9114.0511262338670.84887376613306
24106.4101.1770958660535.22290413394708
25104.5102.8422601114331.65773988856707
26121.6112.7066181938768.89338180612376
27141.4130.95051344467110.4494865553285
2899112.880973618666-13.8809736186661
29126.7111.26941423420815.4305857657917
30134.1138.827358127130-4.72735812713025
3181.387.4181608562828-6.1181608562828
3288.691.7377642543174-3.13776425431741
33132.7129.6192250703823.08077492961804
34132.9127.8931298463995.0068701536011
35134.4118.90550148523115.4944985147690
36103.7105.821552187628-2.12155218762829
37119.7106.65578733592813.0442126640720
38115116.441425819700-1.4414258197005
39132.9135.358810970235-2.45881097023451
40108.5117.315511010453-8.81551101045278
41113.9114.190786007101-0.290786007101257
42142141.8449427428430.155057257156931
4397.789.84097517092767.85902482907242
4492.293.2771697394347-1.07716973943465
45128.8131.359802863213-2.55980286321339
46134.9129.6686941275285.23130587247152
47128.2120.1650150639638.03498493603665
48114.8106.0839508498648.7160491501358
49117.9109.4809462660018.41905373399888
50119.1119.835115184618-0.735115184618108
51120.7138.97991250909-18.2799125090899
52129.1119.9394976328129.16050236718825
53117.6116.7797861411620.82021385883788
54129.2145.107432776643-15.9074327766427
5510093.00725236190746.99274763809259
568795.7874502748247-8.78745027482474
57128132.199478582368-4.19947858236827
58127.7126.5811365352191.11886346478058
5993.4115.826690514997-22.4266905149965
6084.1101.395761417916-17.2957614179162
6171.7101.145415428974-29.4454154289741

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 93.3 & 98.8450538233728 & -5.54505382337281 \tabularnewline
2 & 97.3 & 108.796878126561 & -11.4968781265614 \tabularnewline
3 & 127 & 127.136986220176 & -0.136986220176470 \tabularnewline
4 & 111.7 & 107.676733484321 & 4.02326651567917 \tabularnewline
5 & 96.4 & 104.097184133094 & -7.69718413309374 \tabularnewline
6 & 133 & 132.608509832140 & 0.391490167860499 \tabularnewline
7 & 72.2 & 80.6745152368203 & -8.47451523682025 \tabularnewline
8 & 95.8 & 85.011611879004 & 10.7883881209961 \tabularnewline
9 & 124.1 & 123.207951089752 & 0.892048910248477 \tabularnewline
10 & 127.6 & 121.280683558054 & 6.3193164419457 \tabularnewline
11 & 110.7 & 112.651666701942 & -1.95166670194216 \tabularnewline
12 & 104.6 & 99.1216396785384 & 5.47836032146158 \tabularnewline
13 & 112.7 & 100.830537034291 & 11.8694629657090 \tabularnewline
14 & 115.3 & 110.519962675244 & 4.78003732475623 \tabularnewline
15 & 139.4 & 128.973776855828 & 10.4262231441723 \tabularnewline
16 & 119 & 109.487284253749 & 9.51271574625149 \tabularnewline
17 & 97.4 & 105.662829484435 & -8.2628294844346 \tabularnewline
18 & 154 & 133.911756521244 & 20.0882434787556 \tabularnewline
19 & 81.5 & 81.759096374062 & -0.259096374061959 \tabularnewline
20 & 88.8 & 86.5860038524193 & 2.21399614758071 \tabularnewline
21 & 127.7 & 124.913542394285 & 2.78645760571514 \tabularnewline
22 & 105.1 & 122.776355932799 & -17.6763559327989 \tabularnewline
23 & 114.9 & 114.051126233867 & 0.84887376613306 \tabularnewline
24 & 106.4 & 101.177095866053 & 5.22290413394708 \tabularnewline
25 & 104.5 & 102.842260111433 & 1.65773988856707 \tabularnewline
26 & 121.6 & 112.706618193876 & 8.89338180612376 \tabularnewline
27 & 141.4 & 130.950513444671 & 10.4494865553285 \tabularnewline
28 & 99 & 112.880973618666 & -13.8809736186661 \tabularnewline
29 & 126.7 & 111.269414234208 & 15.4305857657917 \tabularnewline
30 & 134.1 & 138.827358127130 & -4.72735812713025 \tabularnewline
31 & 81.3 & 87.4181608562828 & -6.1181608562828 \tabularnewline
32 & 88.6 & 91.7377642543174 & -3.13776425431741 \tabularnewline
33 & 132.7 & 129.619225070382 & 3.08077492961804 \tabularnewline
34 & 132.9 & 127.893129846399 & 5.0068701536011 \tabularnewline
35 & 134.4 & 118.905501485231 & 15.4944985147690 \tabularnewline
36 & 103.7 & 105.821552187628 & -2.12155218762829 \tabularnewline
37 & 119.7 & 106.655787335928 & 13.0442126640720 \tabularnewline
38 & 115 & 116.441425819700 & -1.4414258197005 \tabularnewline
39 & 132.9 & 135.358810970235 & -2.45881097023451 \tabularnewline
40 & 108.5 & 117.315511010453 & -8.81551101045278 \tabularnewline
41 & 113.9 & 114.190786007101 & -0.290786007101257 \tabularnewline
42 & 142 & 141.844942742843 & 0.155057257156931 \tabularnewline
43 & 97.7 & 89.8409751709276 & 7.85902482907242 \tabularnewline
44 & 92.2 & 93.2771697394347 & -1.07716973943465 \tabularnewline
45 & 128.8 & 131.359802863213 & -2.55980286321339 \tabularnewline
46 & 134.9 & 129.668694127528 & 5.23130587247152 \tabularnewline
47 & 128.2 & 120.165015063963 & 8.03498493603665 \tabularnewline
48 & 114.8 & 106.083950849864 & 8.7160491501358 \tabularnewline
49 & 117.9 & 109.480946266001 & 8.41905373399888 \tabularnewline
50 & 119.1 & 119.835115184618 & -0.735115184618108 \tabularnewline
51 & 120.7 & 138.97991250909 & -18.2799125090899 \tabularnewline
52 & 129.1 & 119.939497632812 & 9.16050236718825 \tabularnewline
53 & 117.6 & 116.779786141162 & 0.82021385883788 \tabularnewline
54 & 129.2 & 145.107432776643 & -15.9074327766427 \tabularnewline
55 & 100 & 93.0072523619074 & 6.99274763809259 \tabularnewline
56 & 87 & 95.7874502748247 & -8.78745027482474 \tabularnewline
57 & 128 & 132.199478582368 & -4.19947858236827 \tabularnewline
58 & 127.7 & 126.581136535219 & 1.11886346478058 \tabularnewline
59 & 93.4 & 115.826690514997 & -22.4266905149965 \tabularnewline
60 & 84.1 & 101.395761417916 & -17.2957614179162 \tabularnewline
61 & 71.7 & 101.145415428974 & -29.4454154289741 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58885&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]93.3[/C][C]98.8450538233728[/C][C]-5.54505382337281[/C][/ROW]
[ROW][C]2[/C][C]97.3[/C][C]108.796878126561[/C][C]-11.4968781265614[/C][/ROW]
[ROW][C]3[/C][C]127[/C][C]127.136986220176[/C][C]-0.136986220176470[/C][/ROW]
[ROW][C]4[/C][C]111.7[/C][C]107.676733484321[/C][C]4.02326651567917[/C][/ROW]
[ROW][C]5[/C][C]96.4[/C][C]104.097184133094[/C][C]-7.69718413309374[/C][/ROW]
[ROW][C]6[/C][C]133[/C][C]132.608509832140[/C][C]0.391490167860499[/C][/ROW]
[ROW][C]7[/C][C]72.2[/C][C]80.6745152368203[/C][C]-8.47451523682025[/C][/ROW]
[ROW][C]8[/C][C]95.8[/C][C]85.011611879004[/C][C]10.7883881209961[/C][/ROW]
[ROW][C]9[/C][C]124.1[/C][C]123.207951089752[/C][C]0.892048910248477[/C][/ROW]
[ROW][C]10[/C][C]127.6[/C][C]121.280683558054[/C][C]6.3193164419457[/C][/ROW]
[ROW][C]11[/C][C]110.7[/C][C]112.651666701942[/C][C]-1.95166670194216[/C][/ROW]
[ROW][C]12[/C][C]104.6[/C][C]99.1216396785384[/C][C]5.47836032146158[/C][/ROW]
[ROW][C]13[/C][C]112.7[/C][C]100.830537034291[/C][C]11.8694629657090[/C][/ROW]
[ROW][C]14[/C][C]115.3[/C][C]110.519962675244[/C][C]4.78003732475623[/C][/ROW]
[ROW][C]15[/C][C]139.4[/C][C]128.973776855828[/C][C]10.4262231441723[/C][/ROW]
[ROW][C]16[/C][C]119[/C][C]109.487284253749[/C][C]9.51271574625149[/C][/ROW]
[ROW][C]17[/C][C]97.4[/C][C]105.662829484435[/C][C]-8.2628294844346[/C][/ROW]
[ROW][C]18[/C][C]154[/C][C]133.911756521244[/C][C]20.0882434787556[/C][/ROW]
[ROW][C]19[/C][C]81.5[/C][C]81.759096374062[/C][C]-0.259096374061959[/C][/ROW]
[ROW][C]20[/C][C]88.8[/C][C]86.5860038524193[/C][C]2.21399614758071[/C][/ROW]
[ROW][C]21[/C][C]127.7[/C][C]124.913542394285[/C][C]2.78645760571514[/C][/ROW]
[ROW][C]22[/C][C]105.1[/C][C]122.776355932799[/C][C]-17.6763559327989[/C][/ROW]
[ROW][C]23[/C][C]114.9[/C][C]114.051126233867[/C][C]0.84887376613306[/C][/ROW]
[ROW][C]24[/C][C]106.4[/C][C]101.177095866053[/C][C]5.22290413394708[/C][/ROW]
[ROW][C]25[/C][C]104.5[/C][C]102.842260111433[/C][C]1.65773988856707[/C][/ROW]
[ROW][C]26[/C][C]121.6[/C][C]112.706618193876[/C][C]8.89338180612376[/C][/ROW]
[ROW][C]27[/C][C]141.4[/C][C]130.950513444671[/C][C]10.4494865553285[/C][/ROW]
[ROW][C]28[/C][C]99[/C][C]112.880973618666[/C][C]-13.8809736186661[/C][/ROW]
[ROW][C]29[/C][C]126.7[/C][C]111.269414234208[/C][C]15.4305857657917[/C][/ROW]
[ROW][C]30[/C][C]134.1[/C][C]138.827358127130[/C][C]-4.72735812713025[/C][/ROW]
[ROW][C]31[/C][C]81.3[/C][C]87.4181608562828[/C][C]-6.1181608562828[/C][/ROW]
[ROW][C]32[/C][C]88.6[/C][C]91.7377642543174[/C][C]-3.13776425431741[/C][/ROW]
[ROW][C]33[/C][C]132.7[/C][C]129.619225070382[/C][C]3.08077492961804[/C][/ROW]
[ROW][C]34[/C][C]132.9[/C][C]127.893129846399[/C][C]5.0068701536011[/C][/ROW]
[ROW][C]35[/C][C]134.4[/C][C]118.905501485231[/C][C]15.4944985147690[/C][/ROW]
[ROW][C]36[/C][C]103.7[/C][C]105.821552187628[/C][C]-2.12155218762829[/C][/ROW]
[ROW][C]37[/C][C]119.7[/C][C]106.655787335928[/C][C]13.0442126640720[/C][/ROW]
[ROW][C]38[/C][C]115[/C][C]116.441425819700[/C][C]-1.4414258197005[/C][/ROW]
[ROW][C]39[/C][C]132.9[/C][C]135.358810970235[/C][C]-2.45881097023451[/C][/ROW]
[ROW][C]40[/C][C]108.5[/C][C]117.315511010453[/C][C]-8.81551101045278[/C][/ROW]
[ROW][C]41[/C][C]113.9[/C][C]114.190786007101[/C][C]-0.290786007101257[/C][/ROW]
[ROW][C]42[/C][C]142[/C][C]141.844942742843[/C][C]0.155057257156931[/C][/ROW]
[ROW][C]43[/C][C]97.7[/C][C]89.8409751709276[/C][C]7.85902482907242[/C][/ROW]
[ROW][C]44[/C][C]92.2[/C][C]93.2771697394347[/C][C]-1.07716973943465[/C][/ROW]
[ROW][C]45[/C][C]128.8[/C][C]131.359802863213[/C][C]-2.55980286321339[/C][/ROW]
[ROW][C]46[/C][C]134.9[/C][C]129.668694127528[/C][C]5.23130587247152[/C][/ROW]
[ROW][C]47[/C][C]128.2[/C][C]120.165015063963[/C][C]8.03498493603665[/C][/ROW]
[ROW][C]48[/C][C]114.8[/C][C]106.083950849864[/C][C]8.7160491501358[/C][/ROW]
[ROW][C]49[/C][C]117.9[/C][C]109.480946266001[/C][C]8.41905373399888[/C][/ROW]
[ROW][C]50[/C][C]119.1[/C][C]119.835115184618[/C][C]-0.735115184618108[/C][/ROW]
[ROW][C]51[/C][C]120.7[/C][C]138.97991250909[/C][C]-18.2799125090899[/C][/ROW]
[ROW][C]52[/C][C]129.1[/C][C]119.939497632812[/C][C]9.16050236718825[/C][/ROW]
[ROW][C]53[/C][C]117.6[/C][C]116.779786141162[/C][C]0.82021385883788[/C][/ROW]
[ROW][C]54[/C][C]129.2[/C][C]145.107432776643[/C][C]-15.9074327766427[/C][/ROW]
[ROW][C]55[/C][C]100[/C][C]93.0072523619074[/C][C]6.99274763809259[/C][/ROW]
[ROW][C]56[/C][C]87[/C][C]95.7874502748247[/C][C]-8.78745027482474[/C][/ROW]
[ROW][C]57[/C][C]128[/C][C]132.199478582368[/C][C]-4.19947858236827[/C][/ROW]
[ROW][C]58[/C][C]127.7[/C][C]126.581136535219[/C][C]1.11886346478058[/C][/ROW]
[ROW][C]59[/C][C]93.4[/C][C]115.826690514997[/C][C]-22.4266905149965[/C][/ROW]
[ROW][C]60[/C][C]84.1[/C][C]101.395761417916[/C][C]-17.2957614179162[/C][/ROW]
[ROW][C]61[/C][C]71.7[/C][C]101.145415428974[/C][C]-29.4454154289741[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58885&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58885&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
193.398.8450538233728-5.54505382337281
297.3108.796878126561-11.4968781265614
3127127.136986220176-0.136986220176470
4111.7107.6767334843214.02326651567917
596.4104.097184133094-7.69718413309374
6133132.6085098321400.391490167860499
772.280.6745152368203-8.47451523682025
895.885.01161187900410.7883881209961
9124.1123.2079510897520.892048910248477
10127.6121.2806835580546.3193164419457
11110.7112.651666701942-1.95166670194216
12104.699.12163967853845.47836032146158
13112.7100.83053703429111.8694629657090
14115.3110.5199626752444.78003732475623
15139.4128.97377685582810.4262231441723
16119109.4872842537499.51271574625149
1797.4105.662829484435-8.2628294844346
18154133.91175652124420.0882434787556
1981.581.759096374062-0.259096374061959
2088.886.58600385241932.21399614758071
21127.7124.9135423942852.78645760571514
22105.1122.776355932799-17.6763559327989
23114.9114.0511262338670.84887376613306
24106.4101.1770958660535.22290413394708
25104.5102.8422601114331.65773988856707
26121.6112.7066181938768.89338180612376
27141.4130.95051344467110.4494865553285
2899112.880973618666-13.8809736186661
29126.7111.26941423420815.4305857657917
30134.1138.827358127130-4.72735812713025
3181.387.4181608562828-6.1181608562828
3288.691.7377642543174-3.13776425431741
33132.7129.6192250703823.08077492961804
34132.9127.8931298463995.0068701536011
35134.4118.90550148523115.4944985147690
36103.7105.821552187628-2.12155218762829
37119.7106.65578733592813.0442126640720
38115116.441425819700-1.4414258197005
39132.9135.358810970235-2.45881097023451
40108.5117.315511010453-8.81551101045278
41113.9114.190786007101-0.290786007101257
42142141.8449427428430.155057257156931
4397.789.84097517092767.85902482907242
4492.293.2771697394347-1.07716973943465
45128.8131.359802863213-2.55980286321339
46134.9129.6686941275285.23130587247152
47128.2120.1650150639638.03498493603665
48114.8106.0839508498648.7160491501358
49117.9109.4809462660018.41905373399888
50119.1119.835115184618-0.735115184618108
51120.7138.97991250909-18.2799125090899
52129.1119.9394976328129.16050236718825
53117.6116.7797861411620.82021385883788
54129.2145.107432776643-15.9074327766427
5510093.00725236190746.99274763809259
568795.7874502748247-8.78745027482474
57128132.199478582368-4.19947858236827
58127.7126.5811365352191.11886346478058
5993.4115.826690514997-22.4266905149965
6084.1101.395761417916-17.2957614179162
6171.7101.145415428974-29.4454154289741







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.04056294524395530.08112589048791050.959437054756045
170.04573179339816430.09146358679632850.954268206601836
180.06681798186209930.1336359637241990.9331820181379
190.02834360218012180.05668720436024350.971656397819878
200.07534239591162870.1506847918232570.924657604088371
210.04789303340972920.09578606681945830.95210696659027
220.2633411120880310.5266822241760620.736658887911969
230.1798426048989540.3596852097979080.820157395101046
240.1330991054753220.2661982109506450.866900894524677
250.1000372682027980.2000745364055970.899962731797202
260.08004308718824760.1600861743764950.919956912811752
270.1032360386884120.2064720773768240.896763961311588
280.2349010569580830.4698021139161650.765098943041917
290.3564194677939630.7128389355879260.643580532206037
300.4558392530753680.9116785061507350.544160746924632
310.3702986389585840.7405972779171690.629701361041416
320.3358095791316410.6716191582632830.664190420868359
330.2900036470600460.5800072941200930.709996352939954
340.2318842128070890.4637684256141780.768115787192911
350.2958712914064270.5917425828128550.704128708593573
360.2386685128424340.4773370256848670.761331487157566
370.2868698765807870.5737397531615750.713130123419213
380.2262718748472470.4525437496944950.773728125152753
390.3897540380539570.7795080761079150.610245961946043
400.3367576575714450.6735153151428890.663242342428555
410.2559544697462590.5119089394925180.744045530253741
420.5510208242966440.8979583514067120.448979175703356
430.5931413442517150.813717311496570.406858655748285
440.8132212363437940.3735575273124120.186778763656206
450.7077534884273310.5844930231453370.292246511572669

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0405629452439553 & 0.0811258904879105 & 0.959437054756045 \tabularnewline
17 & 0.0457317933981643 & 0.0914635867963285 & 0.954268206601836 \tabularnewline
18 & 0.0668179818620993 & 0.133635963724199 & 0.9331820181379 \tabularnewline
19 & 0.0283436021801218 & 0.0566872043602435 & 0.971656397819878 \tabularnewline
20 & 0.0753423959116287 & 0.150684791823257 & 0.924657604088371 \tabularnewline
21 & 0.0478930334097292 & 0.0957860668194583 & 0.95210696659027 \tabularnewline
22 & 0.263341112088031 & 0.526682224176062 & 0.736658887911969 \tabularnewline
23 & 0.179842604898954 & 0.359685209797908 & 0.820157395101046 \tabularnewline
24 & 0.133099105475322 & 0.266198210950645 & 0.866900894524677 \tabularnewline
25 & 0.100037268202798 & 0.200074536405597 & 0.899962731797202 \tabularnewline
26 & 0.0800430871882476 & 0.160086174376495 & 0.919956912811752 \tabularnewline
27 & 0.103236038688412 & 0.206472077376824 & 0.896763961311588 \tabularnewline
28 & 0.234901056958083 & 0.469802113916165 & 0.765098943041917 \tabularnewline
29 & 0.356419467793963 & 0.712838935587926 & 0.643580532206037 \tabularnewline
30 & 0.455839253075368 & 0.911678506150735 & 0.544160746924632 \tabularnewline
31 & 0.370298638958584 & 0.740597277917169 & 0.629701361041416 \tabularnewline
32 & 0.335809579131641 & 0.671619158263283 & 0.664190420868359 \tabularnewline
33 & 0.290003647060046 & 0.580007294120093 & 0.709996352939954 \tabularnewline
34 & 0.231884212807089 & 0.463768425614178 & 0.768115787192911 \tabularnewline
35 & 0.295871291406427 & 0.591742582812855 & 0.704128708593573 \tabularnewline
36 & 0.238668512842434 & 0.477337025684867 & 0.761331487157566 \tabularnewline
37 & 0.286869876580787 & 0.573739753161575 & 0.713130123419213 \tabularnewline
38 & 0.226271874847247 & 0.452543749694495 & 0.773728125152753 \tabularnewline
39 & 0.389754038053957 & 0.779508076107915 & 0.610245961946043 \tabularnewline
40 & 0.336757657571445 & 0.673515315142889 & 0.663242342428555 \tabularnewline
41 & 0.255954469746259 & 0.511908939492518 & 0.744045530253741 \tabularnewline
42 & 0.551020824296644 & 0.897958351406712 & 0.448979175703356 \tabularnewline
43 & 0.593141344251715 & 0.81371731149657 & 0.406858655748285 \tabularnewline
44 & 0.813221236343794 & 0.373557527312412 & 0.186778763656206 \tabularnewline
45 & 0.707753488427331 & 0.584493023145337 & 0.292246511572669 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58885&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.0405629452439553[/C][C]0.0811258904879105[/C][C]0.959437054756045[/C][/ROW]
[ROW][C]17[/C][C]0.0457317933981643[/C][C]0.0914635867963285[/C][C]0.954268206601836[/C][/ROW]
[ROW][C]18[/C][C]0.0668179818620993[/C][C]0.133635963724199[/C][C]0.9331820181379[/C][/ROW]
[ROW][C]19[/C][C]0.0283436021801218[/C][C]0.0566872043602435[/C][C]0.971656397819878[/C][/ROW]
[ROW][C]20[/C][C]0.0753423959116287[/C][C]0.150684791823257[/C][C]0.924657604088371[/C][/ROW]
[ROW][C]21[/C][C]0.0478930334097292[/C][C]0.0957860668194583[/C][C]0.95210696659027[/C][/ROW]
[ROW][C]22[/C][C]0.263341112088031[/C][C]0.526682224176062[/C][C]0.736658887911969[/C][/ROW]
[ROW][C]23[/C][C]0.179842604898954[/C][C]0.359685209797908[/C][C]0.820157395101046[/C][/ROW]
[ROW][C]24[/C][C]0.133099105475322[/C][C]0.266198210950645[/C][C]0.866900894524677[/C][/ROW]
[ROW][C]25[/C][C]0.100037268202798[/C][C]0.200074536405597[/C][C]0.899962731797202[/C][/ROW]
[ROW][C]26[/C][C]0.0800430871882476[/C][C]0.160086174376495[/C][C]0.919956912811752[/C][/ROW]
[ROW][C]27[/C][C]0.103236038688412[/C][C]0.206472077376824[/C][C]0.896763961311588[/C][/ROW]
[ROW][C]28[/C][C]0.234901056958083[/C][C]0.469802113916165[/C][C]0.765098943041917[/C][/ROW]
[ROW][C]29[/C][C]0.356419467793963[/C][C]0.712838935587926[/C][C]0.643580532206037[/C][/ROW]
[ROW][C]30[/C][C]0.455839253075368[/C][C]0.911678506150735[/C][C]0.544160746924632[/C][/ROW]
[ROW][C]31[/C][C]0.370298638958584[/C][C]0.740597277917169[/C][C]0.629701361041416[/C][/ROW]
[ROW][C]32[/C][C]0.335809579131641[/C][C]0.671619158263283[/C][C]0.664190420868359[/C][/ROW]
[ROW][C]33[/C][C]0.290003647060046[/C][C]0.580007294120093[/C][C]0.709996352939954[/C][/ROW]
[ROW][C]34[/C][C]0.231884212807089[/C][C]0.463768425614178[/C][C]0.768115787192911[/C][/ROW]
[ROW][C]35[/C][C]0.295871291406427[/C][C]0.591742582812855[/C][C]0.704128708593573[/C][/ROW]
[ROW][C]36[/C][C]0.238668512842434[/C][C]0.477337025684867[/C][C]0.761331487157566[/C][/ROW]
[ROW][C]37[/C][C]0.286869876580787[/C][C]0.573739753161575[/C][C]0.713130123419213[/C][/ROW]
[ROW][C]38[/C][C]0.226271874847247[/C][C]0.452543749694495[/C][C]0.773728125152753[/C][/ROW]
[ROW][C]39[/C][C]0.389754038053957[/C][C]0.779508076107915[/C][C]0.610245961946043[/C][/ROW]
[ROW][C]40[/C][C]0.336757657571445[/C][C]0.673515315142889[/C][C]0.663242342428555[/C][/ROW]
[ROW][C]41[/C][C]0.255954469746259[/C][C]0.511908939492518[/C][C]0.744045530253741[/C][/ROW]
[ROW][C]42[/C][C]0.551020824296644[/C][C]0.897958351406712[/C][C]0.448979175703356[/C][/ROW]
[ROW][C]43[/C][C]0.593141344251715[/C][C]0.81371731149657[/C][C]0.406858655748285[/C][/ROW]
[ROW][C]44[/C][C]0.813221236343794[/C][C]0.373557527312412[/C][C]0.186778763656206[/C][/ROW]
[ROW][C]45[/C][C]0.707753488427331[/C][C]0.584493023145337[/C][C]0.292246511572669[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58885&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58885&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.04056294524395530.08112589048791050.959437054756045
170.04573179339816430.09146358679632850.954268206601836
180.06681798186209930.1336359637241990.9331820181379
190.02834360218012180.05668720436024350.971656397819878
200.07534239591162870.1506847918232570.924657604088371
210.04789303340972920.09578606681945830.95210696659027
220.2633411120880310.5266822241760620.736658887911969
230.1798426048989540.3596852097979080.820157395101046
240.1330991054753220.2661982109506450.866900894524677
250.1000372682027980.2000745364055970.899962731797202
260.08004308718824760.1600861743764950.919956912811752
270.1032360386884120.2064720773768240.896763961311588
280.2349010569580830.4698021139161650.765098943041917
290.3564194677939630.7128389355879260.643580532206037
300.4558392530753680.9116785061507350.544160746924632
310.3702986389585840.7405972779171690.629701361041416
320.3358095791316410.6716191582632830.664190420868359
330.2900036470600460.5800072941200930.709996352939954
340.2318842128070890.4637684256141780.768115787192911
350.2958712914064270.5917425828128550.704128708593573
360.2386685128424340.4773370256848670.761331487157566
370.2868698765807870.5737397531615750.713130123419213
380.2262718748472470.4525437496944950.773728125152753
390.3897540380539570.7795080761079150.610245961946043
400.3367576575714450.6735153151428890.663242342428555
410.2559544697462590.5119089394925180.744045530253741
420.5510208242966440.8979583514067120.448979175703356
430.5931413442517150.813717311496570.406858655748285
440.8132212363437940.3735575273124120.186778763656206
450.7077534884273310.5844930231453370.292246511572669







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

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

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



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