Free Statistics

of Irreproducible Research!

Author's title

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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact113
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-20 12:55:29] [ed082d38031561faed979d8cebfeba4d] [Current]
Feedback Forum

Post a new message
Dataseries X:
10144	112
10751	304
11752	794
13808	901
16203	1232
17432	1240
18014	1032
16956	1145
17982	1588
19435	2264
19990	2209
20154	2917
10327	243
9807	558
10862	1238
13743	1502
16458	2000
18466	2146
18810	2066
17361	2046
17411	1952
18517	2771
18525	3278
17859	4000
9499	410
9490	1107
9255	1622
10758	1986
12375	2036
14617	2400
15427	2736
14136	2901
14308	2883
15293	3747
15679	4075
16319	4996
11196	575
11169	999
12158	1411
14251	1493
16237	1846
19706	2899
18960	2372
18537	2856
19103	3468
19691	4193
19464	4440
17264	4186
8957	655
9703	1453
9166	1989
9519	2209
10535	2667
11526	3005
9630	2195
7061	2236
6021	2489
4728	2651
2657	2636
1264	2819




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 13159.5925557422 + 0.373297241848464X[t] -3283.9381552397M1[t] -3305.66197698457M2[t] -3047.64030454197M3[t] -1347.86215250134M4[t] + 471.763379753883M5[t] + 2317.03849281614M6[t] + 2232.07452176467M7[t] + 815.616173691201M8[t] + 881.123473441051M9[t] + 1206.57890403303M10[t] + 861.223542282898M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  13159.5925557422 +  0.373297241848464X[t] -3283.9381552397M1[t] -3305.66197698457M2[t] -3047.64030454197M3[t] -1347.86215250134M4[t] +  471.763379753883M5[t] +  2317.03849281614M6[t] +  2232.07452176467M7[t] +  815.616173691201M8[t] +  881.123473441051M9[t] +  1206.57890403303M10[t] +  861.223542282898M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58113&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  13159.5925557422 +  0.373297241848464X[t] -3283.9381552397M1[t] -3305.66197698457M2[t] -3047.64030454197M3[t] -1347.86215250134M4[t] +  471.763379753883M5[t] +  2317.03849281614M6[t] +  2232.07452176467M7[t] +  815.616173691201M8[t] +  881.123473441051M9[t] +  1206.57890403303M10[t] +  861.223542282898M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58113&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58113&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] = + 13159.5925557422 + 0.373297241848464X[t] -3283.9381552397M1[t] -3305.66197698457M2[t] -3047.64030454197M3[t] -1347.86215250134M4[t] + 471.763379753883M5[t] + 2317.03849281614M6[t] + 2232.07452176467M7[t] + 815.616173691201M8[t] + 881.123473441051M9[t] + 1206.57890403303M10[t] + 861.223542282898M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)13159.59255574224215.5892793.12160.0030740.001537
X0.3732972418484640.9780750.38170.704430.352215
M1-3283.93815523974371.676915-0.75120.4562860.228143
M2-3305.661976984574024.276034-0.82140.4155490.207774
M3-3047.640304541973679.519981-0.82830.4117030.205852
M4-1347.862152501343555.061961-0.37910.7062920.353146
M5471.7633797538833368.5946620.140.8892210.44461
M62317.038492816143186.2195870.72720.4707070.235353
M72232.074521764673305.843170.67520.5028630.251431
M8815.6161736912013231.3607540.25240.8018280.400914
M9881.1234734410513128.6629360.28160.7794640.389732
M101206.578904033032927.0392940.41220.6820540.341027
M11861.2235422828982889.9458110.2980.7670110.383506

\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) & 13159.5925557422 & 4215.589279 & 3.1216 & 0.003074 & 0.001537 \tabularnewline
X & 0.373297241848464 & 0.978075 & 0.3817 & 0.70443 & 0.352215 \tabularnewline
M1 & -3283.9381552397 & 4371.676915 & -0.7512 & 0.456286 & 0.228143 \tabularnewline
M2 & -3305.66197698457 & 4024.276034 & -0.8214 & 0.415549 & 0.207774 \tabularnewline
M3 & -3047.64030454197 & 3679.519981 & -0.8283 & 0.411703 & 0.205852 \tabularnewline
M4 & -1347.86215250134 & 3555.061961 & -0.3791 & 0.706292 & 0.353146 \tabularnewline
M5 & 471.763379753883 & 3368.594662 & 0.14 & 0.889221 & 0.44461 \tabularnewline
M6 & 2317.03849281614 & 3186.219587 & 0.7272 & 0.470707 & 0.235353 \tabularnewline
M7 & 2232.07452176467 & 3305.84317 & 0.6752 & 0.502863 & 0.251431 \tabularnewline
M8 & 815.616173691201 & 3231.360754 & 0.2524 & 0.801828 & 0.400914 \tabularnewline
M9 & 881.123473441051 & 3128.662936 & 0.2816 & 0.779464 & 0.389732 \tabularnewline
M10 & 1206.57890403303 & 2927.039294 & 0.4122 & 0.682054 & 0.341027 \tabularnewline
M11 & 861.223542282898 & 2889.945811 & 0.298 & 0.767011 & 0.383506 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58113&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]13159.5925557422[/C][C]4215.589279[/C][C]3.1216[/C][C]0.003074[/C][C]0.001537[/C][/ROW]
[ROW][C]X[/C][C]0.373297241848464[/C][C]0.978075[/C][C]0.3817[/C][C]0.70443[/C][C]0.352215[/C][/ROW]
[ROW][C]M1[/C][C]-3283.9381552397[/C][C]4371.676915[/C][C]-0.7512[/C][C]0.456286[/C][C]0.228143[/C][/ROW]
[ROW][C]M2[/C][C]-3305.66197698457[/C][C]4024.276034[/C][C]-0.8214[/C][C]0.415549[/C][C]0.207774[/C][/ROW]
[ROW][C]M3[/C][C]-3047.64030454197[/C][C]3679.519981[/C][C]-0.8283[/C][C]0.411703[/C][C]0.205852[/C][/ROW]
[ROW][C]M4[/C][C]-1347.86215250134[/C][C]3555.061961[/C][C]-0.3791[/C][C]0.706292[/C][C]0.353146[/C][/ROW]
[ROW][C]M5[/C][C]471.763379753883[/C][C]3368.594662[/C][C]0.14[/C][C]0.889221[/C][C]0.44461[/C][/ROW]
[ROW][C]M6[/C][C]2317.03849281614[/C][C]3186.219587[/C][C]0.7272[/C][C]0.470707[/C][C]0.235353[/C][/ROW]
[ROW][C]M7[/C][C]2232.07452176467[/C][C]3305.84317[/C][C]0.6752[/C][C]0.502863[/C][C]0.251431[/C][/ROW]
[ROW][C]M8[/C][C]815.616173691201[/C][C]3231.360754[/C][C]0.2524[/C][C]0.801828[/C][C]0.400914[/C][/ROW]
[ROW][C]M9[/C][C]881.123473441051[/C][C]3128.662936[/C][C]0.2816[/C][C]0.779464[/C][C]0.389732[/C][/ROW]
[ROW][C]M10[/C][C]1206.57890403303[/C][C]2927.039294[/C][C]0.4122[/C][C]0.682054[/C][C]0.341027[/C][/ROW]
[ROW][C]M11[/C][C]861.223542282898[/C][C]2889.945811[/C][C]0.298[/C][C]0.767011[/C][C]0.383506[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58113&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58113&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)13159.59255574224215.5892793.12160.0030740.001537
X0.3732972418484640.9780750.38170.704430.352215
M1-3283.93815523974371.676915-0.75120.4562860.228143
M2-3305.661976984574024.276034-0.82140.4155490.207774
M3-3047.640304541973679.519981-0.82830.4117030.205852
M4-1347.862152501343555.061961-0.37910.7062920.353146
M5471.7633797538833368.5946620.140.8892210.44461
M62317.038492816143186.2195870.72720.4707070.235353
M72232.074521764673305.843170.67520.5028630.251431
M8815.6161736912013231.3607540.25240.8018280.400914
M9881.1234734410513128.6629360.28160.7794640.389732
M101206.578904033032927.0392940.41220.6820540.341027
M11861.2235422828982889.9458110.2980.7670110.383506







Multiple Linear Regression - Regression Statistics
Multiple R0.489473303827329
R-squared0.239584115159641
Adjusted R-squared0.0454353786046553
F-TEST (value)1.23402356054883
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.289347308080491
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4514.66194796345
Sum Squared Residuals957962107.70629

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.489473303827329 \tabularnewline
R-squared & 0.239584115159641 \tabularnewline
Adjusted R-squared & 0.0454353786046553 \tabularnewline
F-TEST (value) & 1.23402356054883 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.289347308080491 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4514.66194796345 \tabularnewline
Sum Squared Residuals & 957962107.70629 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58113&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.489473303827329[/C][/ROW]
[ROW][C]R-squared[/C][C]0.239584115159641[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0454353786046553[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.23402356054883[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.289347308080491[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4514.66194796345[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]957962107.70629[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58113&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58113&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.489473303827329
R-squared0.239584115159641
Adjusted R-squared0.0454353786046553
F-TEST (value)1.23402356054883
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.289347308080491
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4514.66194796345
Sum Squared Residuals957962107.70629







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1101449917.46369158953226.536308410474
2107519967.41294027952783.587059720477
31175210408.35026122791343.64973877213
41380812148.07121814631659.92878185372
51620314091.25813745332111.74186254666
61743215939.51962845041492.48037154961
71801415776.90983109442237.09016890555
81695614402.63407134982553.36592865015
91798214633.51204923863348.48795076144
101943515211.31641532014223.6835846799
111999014845.42970526835144.57029473169
122015414248.50061021415905.49938978588
13103279966.36563027163360.634369728369
14980710062.2304397090-255.230439709031
151086210574.0942366086287.905763391415
161374312372.42286049721370.57713950279
171645814377.95041919302080.04958080704
181846616277.72692956512188.27307043490
191881016162.89917916582647.10082083425
201736114738.97488625532622.02511374469
211741114769.39224527142641.60775472859
221851715400.57811693733116.42188306272
231852515244.48445680433280.51554319568
241785914652.7815231363206.21847686399
25949910028.7062696603-529.706269660324
26949010267.1706254838-777.170625483837
27925510717.4403774784-1462.44037747840
281075812553.0987255519-1795.09872555186
291237514391.3891198995-2016.38911989951
301461716372.5444289946-1755.54442899461
311542716413.0083312042-986.008331204222
321413615058.1440280357-922.144028035748
331430815116.9319774323-808.931977432325
341529315764.9162249814-471.916224981375
351567915542.0023585575136.997641442459
361631915024.58557601711294.41442398292
371119610090.30031456531105.69968543468
381116910226.8545233642942.145476635797
391215810638.67465944841519.32534055163
401425112369.06318532061881.93681467943
411623714320.46264394831916.5373560517
421970616558.8197526773147.18024732301
431896016277.12813517142682.87186482862
441853715041.34565215263495.65434784743
451910315335.31086391373767.68913608632
461969115931.40679484583759.59320515421
471946415678.25585183223785.74414816777
481726414722.21481011982541.78518988018
49895710120.1640939132-1163.16409391320
50970310396.3314711634-693.331471163406
51916610854.4404652368-1688.44046523678
52951912636.3440104841-3117.34401048407
531053514626.9396795059-4091.93967950589
541152616598.3892603129-5072.38926031292
55963016211.0545233642-6581.0545233642
56706114809.9013622065-7748.90136220652
57602114969.8528641440-8948.85286414403
58472815355.7824479155-10627.7824479155
59265715004.8276275376-12347.8276275376
60126414211.9174805130-12947.9174805130

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 10144 & 9917.46369158953 & 226.536308410474 \tabularnewline
2 & 10751 & 9967.41294027952 & 783.587059720477 \tabularnewline
3 & 11752 & 10408.3502612279 & 1343.64973877213 \tabularnewline
4 & 13808 & 12148.0712181463 & 1659.92878185372 \tabularnewline
5 & 16203 & 14091.2581374533 & 2111.74186254666 \tabularnewline
6 & 17432 & 15939.5196284504 & 1492.48037154961 \tabularnewline
7 & 18014 & 15776.9098310944 & 2237.09016890555 \tabularnewline
8 & 16956 & 14402.6340713498 & 2553.36592865015 \tabularnewline
9 & 17982 & 14633.5120492386 & 3348.48795076144 \tabularnewline
10 & 19435 & 15211.3164153201 & 4223.6835846799 \tabularnewline
11 & 19990 & 14845.4297052683 & 5144.57029473169 \tabularnewline
12 & 20154 & 14248.5006102141 & 5905.49938978588 \tabularnewline
13 & 10327 & 9966.36563027163 & 360.634369728369 \tabularnewline
14 & 9807 & 10062.2304397090 & -255.230439709031 \tabularnewline
15 & 10862 & 10574.0942366086 & 287.905763391415 \tabularnewline
16 & 13743 & 12372.4228604972 & 1370.57713950279 \tabularnewline
17 & 16458 & 14377.9504191930 & 2080.04958080704 \tabularnewline
18 & 18466 & 16277.7269295651 & 2188.27307043490 \tabularnewline
19 & 18810 & 16162.8991791658 & 2647.10082083425 \tabularnewline
20 & 17361 & 14738.9748862553 & 2622.02511374469 \tabularnewline
21 & 17411 & 14769.3922452714 & 2641.60775472859 \tabularnewline
22 & 18517 & 15400.5781169373 & 3116.42188306272 \tabularnewline
23 & 18525 & 15244.4844568043 & 3280.51554319568 \tabularnewline
24 & 17859 & 14652.781523136 & 3206.21847686399 \tabularnewline
25 & 9499 & 10028.7062696603 & -529.706269660324 \tabularnewline
26 & 9490 & 10267.1706254838 & -777.170625483837 \tabularnewline
27 & 9255 & 10717.4403774784 & -1462.44037747840 \tabularnewline
28 & 10758 & 12553.0987255519 & -1795.09872555186 \tabularnewline
29 & 12375 & 14391.3891198995 & -2016.38911989951 \tabularnewline
30 & 14617 & 16372.5444289946 & -1755.54442899461 \tabularnewline
31 & 15427 & 16413.0083312042 & -986.008331204222 \tabularnewline
32 & 14136 & 15058.1440280357 & -922.144028035748 \tabularnewline
33 & 14308 & 15116.9319774323 & -808.931977432325 \tabularnewline
34 & 15293 & 15764.9162249814 & -471.916224981375 \tabularnewline
35 & 15679 & 15542.0023585575 & 136.997641442459 \tabularnewline
36 & 16319 & 15024.5855760171 & 1294.41442398292 \tabularnewline
37 & 11196 & 10090.3003145653 & 1105.69968543468 \tabularnewline
38 & 11169 & 10226.8545233642 & 942.145476635797 \tabularnewline
39 & 12158 & 10638.6746594484 & 1519.32534055163 \tabularnewline
40 & 14251 & 12369.0631853206 & 1881.93681467943 \tabularnewline
41 & 16237 & 14320.4626439483 & 1916.5373560517 \tabularnewline
42 & 19706 & 16558.819752677 & 3147.18024732301 \tabularnewline
43 & 18960 & 16277.1281351714 & 2682.87186482862 \tabularnewline
44 & 18537 & 15041.3456521526 & 3495.65434784743 \tabularnewline
45 & 19103 & 15335.3108639137 & 3767.68913608632 \tabularnewline
46 & 19691 & 15931.4067948458 & 3759.59320515421 \tabularnewline
47 & 19464 & 15678.2558518322 & 3785.74414816777 \tabularnewline
48 & 17264 & 14722.2148101198 & 2541.78518988018 \tabularnewline
49 & 8957 & 10120.1640939132 & -1163.16409391320 \tabularnewline
50 & 9703 & 10396.3314711634 & -693.331471163406 \tabularnewline
51 & 9166 & 10854.4404652368 & -1688.44046523678 \tabularnewline
52 & 9519 & 12636.3440104841 & -3117.34401048407 \tabularnewline
53 & 10535 & 14626.9396795059 & -4091.93967950589 \tabularnewline
54 & 11526 & 16598.3892603129 & -5072.38926031292 \tabularnewline
55 & 9630 & 16211.0545233642 & -6581.0545233642 \tabularnewline
56 & 7061 & 14809.9013622065 & -7748.90136220652 \tabularnewline
57 & 6021 & 14969.8528641440 & -8948.85286414403 \tabularnewline
58 & 4728 & 15355.7824479155 & -10627.7824479155 \tabularnewline
59 & 2657 & 15004.8276275376 & -12347.8276275376 \tabularnewline
60 & 1264 & 14211.9174805130 & -12947.9174805130 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58113&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]10144[/C][C]9917.46369158953[/C][C]226.536308410474[/C][/ROW]
[ROW][C]2[/C][C]10751[/C][C]9967.41294027952[/C][C]783.587059720477[/C][/ROW]
[ROW][C]3[/C][C]11752[/C][C]10408.3502612279[/C][C]1343.64973877213[/C][/ROW]
[ROW][C]4[/C][C]13808[/C][C]12148.0712181463[/C][C]1659.92878185372[/C][/ROW]
[ROW][C]5[/C][C]16203[/C][C]14091.2581374533[/C][C]2111.74186254666[/C][/ROW]
[ROW][C]6[/C][C]17432[/C][C]15939.5196284504[/C][C]1492.48037154961[/C][/ROW]
[ROW][C]7[/C][C]18014[/C][C]15776.9098310944[/C][C]2237.09016890555[/C][/ROW]
[ROW][C]8[/C][C]16956[/C][C]14402.6340713498[/C][C]2553.36592865015[/C][/ROW]
[ROW][C]9[/C][C]17982[/C][C]14633.5120492386[/C][C]3348.48795076144[/C][/ROW]
[ROW][C]10[/C][C]19435[/C][C]15211.3164153201[/C][C]4223.6835846799[/C][/ROW]
[ROW][C]11[/C][C]19990[/C][C]14845.4297052683[/C][C]5144.57029473169[/C][/ROW]
[ROW][C]12[/C][C]20154[/C][C]14248.5006102141[/C][C]5905.49938978588[/C][/ROW]
[ROW][C]13[/C][C]10327[/C][C]9966.36563027163[/C][C]360.634369728369[/C][/ROW]
[ROW][C]14[/C][C]9807[/C][C]10062.2304397090[/C][C]-255.230439709031[/C][/ROW]
[ROW][C]15[/C][C]10862[/C][C]10574.0942366086[/C][C]287.905763391415[/C][/ROW]
[ROW][C]16[/C][C]13743[/C][C]12372.4228604972[/C][C]1370.57713950279[/C][/ROW]
[ROW][C]17[/C][C]16458[/C][C]14377.9504191930[/C][C]2080.04958080704[/C][/ROW]
[ROW][C]18[/C][C]18466[/C][C]16277.7269295651[/C][C]2188.27307043490[/C][/ROW]
[ROW][C]19[/C][C]18810[/C][C]16162.8991791658[/C][C]2647.10082083425[/C][/ROW]
[ROW][C]20[/C][C]17361[/C][C]14738.9748862553[/C][C]2622.02511374469[/C][/ROW]
[ROW][C]21[/C][C]17411[/C][C]14769.3922452714[/C][C]2641.60775472859[/C][/ROW]
[ROW][C]22[/C][C]18517[/C][C]15400.5781169373[/C][C]3116.42188306272[/C][/ROW]
[ROW][C]23[/C][C]18525[/C][C]15244.4844568043[/C][C]3280.51554319568[/C][/ROW]
[ROW][C]24[/C][C]17859[/C][C]14652.781523136[/C][C]3206.21847686399[/C][/ROW]
[ROW][C]25[/C][C]9499[/C][C]10028.7062696603[/C][C]-529.706269660324[/C][/ROW]
[ROW][C]26[/C][C]9490[/C][C]10267.1706254838[/C][C]-777.170625483837[/C][/ROW]
[ROW][C]27[/C][C]9255[/C][C]10717.4403774784[/C][C]-1462.44037747840[/C][/ROW]
[ROW][C]28[/C][C]10758[/C][C]12553.0987255519[/C][C]-1795.09872555186[/C][/ROW]
[ROW][C]29[/C][C]12375[/C][C]14391.3891198995[/C][C]-2016.38911989951[/C][/ROW]
[ROW][C]30[/C][C]14617[/C][C]16372.5444289946[/C][C]-1755.54442899461[/C][/ROW]
[ROW][C]31[/C][C]15427[/C][C]16413.0083312042[/C][C]-986.008331204222[/C][/ROW]
[ROW][C]32[/C][C]14136[/C][C]15058.1440280357[/C][C]-922.144028035748[/C][/ROW]
[ROW][C]33[/C][C]14308[/C][C]15116.9319774323[/C][C]-808.931977432325[/C][/ROW]
[ROW][C]34[/C][C]15293[/C][C]15764.9162249814[/C][C]-471.916224981375[/C][/ROW]
[ROW][C]35[/C][C]15679[/C][C]15542.0023585575[/C][C]136.997641442459[/C][/ROW]
[ROW][C]36[/C][C]16319[/C][C]15024.5855760171[/C][C]1294.41442398292[/C][/ROW]
[ROW][C]37[/C][C]11196[/C][C]10090.3003145653[/C][C]1105.69968543468[/C][/ROW]
[ROW][C]38[/C][C]11169[/C][C]10226.8545233642[/C][C]942.145476635797[/C][/ROW]
[ROW][C]39[/C][C]12158[/C][C]10638.6746594484[/C][C]1519.32534055163[/C][/ROW]
[ROW][C]40[/C][C]14251[/C][C]12369.0631853206[/C][C]1881.93681467943[/C][/ROW]
[ROW][C]41[/C][C]16237[/C][C]14320.4626439483[/C][C]1916.5373560517[/C][/ROW]
[ROW][C]42[/C][C]19706[/C][C]16558.819752677[/C][C]3147.18024732301[/C][/ROW]
[ROW][C]43[/C][C]18960[/C][C]16277.1281351714[/C][C]2682.87186482862[/C][/ROW]
[ROW][C]44[/C][C]18537[/C][C]15041.3456521526[/C][C]3495.65434784743[/C][/ROW]
[ROW][C]45[/C][C]19103[/C][C]15335.3108639137[/C][C]3767.68913608632[/C][/ROW]
[ROW][C]46[/C][C]19691[/C][C]15931.4067948458[/C][C]3759.59320515421[/C][/ROW]
[ROW][C]47[/C][C]19464[/C][C]15678.2558518322[/C][C]3785.74414816777[/C][/ROW]
[ROW][C]48[/C][C]17264[/C][C]14722.2148101198[/C][C]2541.78518988018[/C][/ROW]
[ROW][C]49[/C][C]8957[/C][C]10120.1640939132[/C][C]-1163.16409391320[/C][/ROW]
[ROW][C]50[/C][C]9703[/C][C]10396.3314711634[/C][C]-693.331471163406[/C][/ROW]
[ROW][C]51[/C][C]9166[/C][C]10854.4404652368[/C][C]-1688.44046523678[/C][/ROW]
[ROW][C]52[/C][C]9519[/C][C]12636.3440104841[/C][C]-3117.34401048407[/C][/ROW]
[ROW][C]53[/C][C]10535[/C][C]14626.9396795059[/C][C]-4091.93967950589[/C][/ROW]
[ROW][C]54[/C][C]11526[/C][C]16598.3892603129[/C][C]-5072.38926031292[/C][/ROW]
[ROW][C]55[/C][C]9630[/C][C]16211.0545233642[/C][C]-6581.0545233642[/C][/ROW]
[ROW][C]56[/C][C]7061[/C][C]14809.9013622065[/C][C]-7748.90136220652[/C][/ROW]
[ROW][C]57[/C][C]6021[/C][C]14969.8528641440[/C][C]-8948.85286414403[/C][/ROW]
[ROW][C]58[/C][C]4728[/C][C]15355.7824479155[/C][C]-10627.7824479155[/C][/ROW]
[ROW][C]59[/C][C]2657[/C][C]15004.8276275376[/C][C]-12347.8276275376[/C][/ROW]
[ROW][C]60[/C][C]1264[/C][C]14211.9174805130[/C][C]-12947.9174805130[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58113&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58113&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
1101449917.46369158953226.536308410474
2107519967.41294027952783.587059720477
31175210408.35026122791343.64973877213
41380812148.07121814631659.92878185372
51620314091.25813745332111.74186254666
61743215939.51962845041492.48037154961
71801415776.90983109442237.09016890555
81695614402.63407134982553.36592865015
91798214633.51204923863348.48795076144
101943515211.31641532014223.6835846799
111999014845.42970526835144.57029473169
122015414248.50061021415905.49938978588
13103279966.36563027163360.634369728369
14980710062.2304397090-255.230439709031
151086210574.0942366086287.905763391415
161374312372.42286049721370.57713950279
171645814377.95041919302080.04958080704
181846616277.72692956512188.27307043490
191881016162.89917916582647.10082083425
201736114738.97488625532622.02511374469
211741114769.39224527142641.60775472859
221851715400.57811693733116.42188306272
231852515244.48445680433280.51554319568
241785914652.7815231363206.21847686399
25949910028.7062696603-529.706269660324
26949010267.1706254838-777.170625483837
27925510717.4403774784-1462.44037747840
281075812553.0987255519-1795.09872555186
291237514391.3891198995-2016.38911989951
301461716372.5444289946-1755.54442899461
311542716413.0083312042-986.008331204222
321413615058.1440280357-922.144028035748
331430815116.9319774323-808.931977432325
341529315764.9162249814-471.916224981375
351567915542.0023585575136.997641442459
361631915024.58557601711294.41442398292
371119610090.30031456531105.69968543468
381116910226.8545233642942.145476635797
391215810638.67465944841519.32534055163
401425112369.06318532061881.93681467943
411623714320.46264394831916.5373560517
421970616558.8197526773147.18024732301
431896016277.12813517142682.87186482862
441853715041.34565215263495.65434784743
451910315335.31086391373767.68913608632
461969115931.40679484583759.59320515421
471946415678.25585183223785.74414816777
481726414722.21481011982541.78518988018
49895710120.1640939132-1163.16409391320
50970310396.3314711634-693.331471163406
51916610854.4404652368-1688.44046523678
52951912636.3440104841-3117.34401048407
531053514626.9396795059-4091.93967950589
541152616598.3892603129-5072.38926031292
55963016211.0545233642-6581.0545233642
56706114809.9013622065-7748.90136220652
57602114969.8528641440-8948.85286414403
58472815355.7824479155-10627.7824479155
59265715004.8276275376-12347.8276275376
60126414211.9174805130-12947.9174805130







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.001033662755992870.002067325511985740.998966337244007
170.0001783976863238170.0003567953726476330.999821602313676
185.79883848532718e-050.0001159767697065440.999942011615147
197.71903337609848e-061.54380667521970e-050.999992280966624
208.93142023945345e-071.78628404789069e-060.999999106857976
212.50123982539330e-075.00247965078659e-070.999999749876017
221.73845984559699e-073.47691969119398e-070.999999826154016
232.98466520761952e-075.96933041523904e-070.99999970153348
246.95049547053567e-071.39009909410713e-060.999999304950453
251.53168588365488e-073.06337176730976e-070.999999846831412
262.82517266609663e-085.65034533219326e-080.999999971748273
272.78995018220803e-085.57990036441606e-080.999999972100498
287.63208124319172e-081.52641624863834e-070.999999923679188
297.68390189708954e-071.53678037941791e-060.99999923160981
307.81644607664256e-071.56328921532851e-060.999999218355392
312.71394374472201e-075.42788748944403e-070.999999728605625
327.54328461012669e-081.50865692202534e-070.999999924567154
332.8857189387646e-085.7714378775292e-080.99999997114281
349.19055057678535e-091.83811011535707e-080.99999999080945
352.25882142378441e-094.51764284756882e-090.999999997741179
367.18331622083155e-101.43666324416631e-090.999999999281668
374.07623712871066e-108.15247425742133e-100.999999999592376
383.00874112913403e-106.01748225826806e-100.999999999699126
394.96748352579322e-109.93496705158644e-100.999999999503252
404.02797482465117e-098.05594964930234e-090.999999995972025
412.45484616495969e-064.90969232991938e-060.999997545153835
420.001773773216182410.003547546432364810.998226226783818
430.05415563019456030.1083112603891210.94584436980544
440.3057390120630590.6114780241261180.694260987936941

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.00103366275599287 & 0.00206732551198574 & 0.998966337244007 \tabularnewline
17 & 0.000178397686323817 & 0.000356795372647633 & 0.999821602313676 \tabularnewline
18 & 5.79883848532718e-05 & 0.000115976769706544 & 0.999942011615147 \tabularnewline
19 & 7.71903337609848e-06 & 1.54380667521970e-05 & 0.999992280966624 \tabularnewline
20 & 8.93142023945345e-07 & 1.78628404789069e-06 & 0.999999106857976 \tabularnewline
21 & 2.50123982539330e-07 & 5.00247965078659e-07 & 0.999999749876017 \tabularnewline
22 & 1.73845984559699e-07 & 3.47691969119398e-07 & 0.999999826154016 \tabularnewline
23 & 2.98466520761952e-07 & 5.96933041523904e-07 & 0.99999970153348 \tabularnewline
24 & 6.95049547053567e-07 & 1.39009909410713e-06 & 0.999999304950453 \tabularnewline
25 & 1.53168588365488e-07 & 3.06337176730976e-07 & 0.999999846831412 \tabularnewline
26 & 2.82517266609663e-08 & 5.65034533219326e-08 & 0.999999971748273 \tabularnewline
27 & 2.78995018220803e-08 & 5.57990036441606e-08 & 0.999999972100498 \tabularnewline
28 & 7.63208124319172e-08 & 1.52641624863834e-07 & 0.999999923679188 \tabularnewline
29 & 7.68390189708954e-07 & 1.53678037941791e-06 & 0.99999923160981 \tabularnewline
30 & 7.81644607664256e-07 & 1.56328921532851e-06 & 0.999999218355392 \tabularnewline
31 & 2.71394374472201e-07 & 5.42788748944403e-07 & 0.999999728605625 \tabularnewline
32 & 7.54328461012669e-08 & 1.50865692202534e-07 & 0.999999924567154 \tabularnewline
33 & 2.8857189387646e-08 & 5.7714378775292e-08 & 0.99999997114281 \tabularnewline
34 & 9.19055057678535e-09 & 1.83811011535707e-08 & 0.99999999080945 \tabularnewline
35 & 2.25882142378441e-09 & 4.51764284756882e-09 & 0.999999997741179 \tabularnewline
36 & 7.18331622083155e-10 & 1.43666324416631e-09 & 0.999999999281668 \tabularnewline
37 & 4.07623712871066e-10 & 8.15247425742133e-10 & 0.999999999592376 \tabularnewline
38 & 3.00874112913403e-10 & 6.01748225826806e-10 & 0.999999999699126 \tabularnewline
39 & 4.96748352579322e-10 & 9.93496705158644e-10 & 0.999999999503252 \tabularnewline
40 & 4.02797482465117e-09 & 8.05594964930234e-09 & 0.999999995972025 \tabularnewline
41 & 2.45484616495969e-06 & 4.90969232991938e-06 & 0.999997545153835 \tabularnewline
42 & 0.00177377321618241 & 0.00354754643236481 & 0.998226226783818 \tabularnewline
43 & 0.0541556301945603 & 0.108311260389121 & 0.94584436980544 \tabularnewline
44 & 0.305739012063059 & 0.611478024126118 & 0.694260987936941 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58113&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.00103366275599287[/C][C]0.00206732551198574[/C][C]0.998966337244007[/C][/ROW]
[ROW][C]17[/C][C]0.000178397686323817[/C][C]0.000356795372647633[/C][C]0.999821602313676[/C][/ROW]
[ROW][C]18[/C][C]5.79883848532718e-05[/C][C]0.000115976769706544[/C][C]0.999942011615147[/C][/ROW]
[ROW][C]19[/C][C]7.71903337609848e-06[/C][C]1.54380667521970e-05[/C][C]0.999992280966624[/C][/ROW]
[ROW][C]20[/C][C]8.93142023945345e-07[/C][C]1.78628404789069e-06[/C][C]0.999999106857976[/C][/ROW]
[ROW][C]21[/C][C]2.50123982539330e-07[/C][C]5.00247965078659e-07[/C][C]0.999999749876017[/C][/ROW]
[ROW][C]22[/C][C]1.73845984559699e-07[/C][C]3.47691969119398e-07[/C][C]0.999999826154016[/C][/ROW]
[ROW][C]23[/C][C]2.98466520761952e-07[/C][C]5.96933041523904e-07[/C][C]0.99999970153348[/C][/ROW]
[ROW][C]24[/C][C]6.95049547053567e-07[/C][C]1.39009909410713e-06[/C][C]0.999999304950453[/C][/ROW]
[ROW][C]25[/C][C]1.53168588365488e-07[/C][C]3.06337176730976e-07[/C][C]0.999999846831412[/C][/ROW]
[ROW][C]26[/C][C]2.82517266609663e-08[/C][C]5.65034533219326e-08[/C][C]0.999999971748273[/C][/ROW]
[ROW][C]27[/C][C]2.78995018220803e-08[/C][C]5.57990036441606e-08[/C][C]0.999999972100498[/C][/ROW]
[ROW][C]28[/C][C]7.63208124319172e-08[/C][C]1.52641624863834e-07[/C][C]0.999999923679188[/C][/ROW]
[ROW][C]29[/C][C]7.68390189708954e-07[/C][C]1.53678037941791e-06[/C][C]0.99999923160981[/C][/ROW]
[ROW][C]30[/C][C]7.81644607664256e-07[/C][C]1.56328921532851e-06[/C][C]0.999999218355392[/C][/ROW]
[ROW][C]31[/C][C]2.71394374472201e-07[/C][C]5.42788748944403e-07[/C][C]0.999999728605625[/C][/ROW]
[ROW][C]32[/C][C]7.54328461012669e-08[/C][C]1.50865692202534e-07[/C][C]0.999999924567154[/C][/ROW]
[ROW][C]33[/C][C]2.8857189387646e-08[/C][C]5.7714378775292e-08[/C][C]0.99999997114281[/C][/ROW]
[ROW][C]34[/C][C]9.19055057678535e-09[/C][C]1.83811011535707e-08[/C][C]0.99999999080945[/C][/ROW]
[ROW][C]35[/C][C]2.25882142378441e-09[/C][C]4.51764284756882e-09[/C][C]0.999999997741179[/C][/ROW]
[ROW][C]36[/C][C]7.18331622083155e-10[/C][C]1.43666324416631e-09[/C][C]0.999999999281668[/C][/ROW]
[ROW][C]37[/C][C]4.07623712871066e-10[/C][C]8.15247425742133e-10[/C][C]0.999999999592376[/C][/ROW]
[ROW][C]38[/C][C]3.00874112913403e-10[/C][C]6.01748225826806e-10[/C][C]0.999999999699126[/C][/ROW]
[ROW][C]39[/C][C]4.96748352579322e-10[/C][C]9.93496705158644e-10[/C][C]0.999999999503252[/C][/ROW]
[ROW][C]40[/C][C]4.02797482465117e-09[/C][C]8.05594964930234e-09[/C][C]0.999999995972025[/C][/ROW]
[ROW][C]41[/C][C]2.45484616495969e-06[/C][C]4.90969232991938e-06[/C][C]0.999997545153835[/C][/ROW]
[ROW][C]42[/C][C]0.00177377321618241[/C][C]0.00354754643236481[/C][C]0.998226226783818[/C][/ROW]
[ROW][C]43[/C][C]0.0541556301945603[/C][C]0.108311260389121[/C][C]0.94584436980544[/C][/ROW]
[ROW][C]44[/C][C]0.305739012063059[/C][C]0.611478024126118[/C][C]0.694260987936941[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58113&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58113&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.001033662755992870.002067325511985740.998966337244007
170.0001783976863238170.0003567953726476330.999821602313676
185.79883848532718e-050.0001159767697065440.999942011615147
197.71903337609848e-061.54380667521970e-050.999992280966624
208.93142023945345e-071.78628404789069e-060.999999106857976
212.50123982539330e-075.00247965078659e-070.999999749876017
221.73845984559699e-073.47691969119398e-070.999999826154016
232.98466520761952e-075.96933041523904e-070.99999970153348
246.95049547053567e-071.39009909410713e-060.999999304950453
251.53168588365488e-073.06337176730976e-070.999999846831412
262.82517266609663e-085.65034533219326e-080.999999971748273
272.78995018220803e-085.57990036441606e-080.999999972100498
287.63208124319172e-081.52641624863834e-070.999999923679188
297.68390189708954e-071.53678037941791e-060.99999923160981
307.81644607664256e-071.56328921532851e-060.999999218355392
312.71394374472201e-075.42788748944403e-070.999999728605625
327.54328461012669e-081.50865692202534e-070.999999924567154
332.8857189387646e-085.7714378775292e-080.99999997114281
349.19055057678535e-091.83811011535707e-080.99999999080945
352.25882142378441e-094.51764284756882e-090.999999997741179
367.18331622083155e-101.43666324416631e-090.999999999281668
374.07623712871066e-108.15247425742133e-100.999999999592376
383.00874112913403e-106.01748225826806e-100.999999999699126
394.96748352579322e-109.93496705158644e-100.999999999503252
404.02797482465117e-098.05594964930234e-090.999999995972025
412.45484616495969e-064.90969232991938e-060.999997545153835
420.001773773216182410.003547546432364810.998226226783818
430.05415563019456030.1083112603891210.94584436980544
440.3057390120630590.6114780241261180.694260987936941







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

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

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



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