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, 26 Nov 2010 13:19:10 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Nov/26/t1290778120377o60nzpho1s2g.htm/, Retrieved Fri, 03 May 2024 22:59:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=101852, Retrieved Fri, 03 May 2024 22:59:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact145
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [W8 autoregressief...] [2010-11-26 13:19:10] [59f7d3e7fcb6374015f4e6b9053b0f01] [Current]
-             [Multiple Regression] [Paper Autoregress...] [2010-12-11 11:08:51] [56d90b683fcd93137645f9226b43c62b]
Feedback Forum

Post a new message
Dataseries X:
11993	11992	11771	10900	10057
14504	11993	11992	11771	10900
11727	14504	11993	11992	11771
11477	11727	14504	11993	11992
13578	11477	11727	14504	11993
11555	13578	11477	11727	14504
11846	11555	13578	11477	11727
11397	11846	11555	13578	11477
10066	11397	11846	11555	13578
10269	10066	11397	11846	11555
14279	10269	10066	11397	11846
13870	14279	10269	10066	11397
13695	13870	14279	10269	10066
14420	13695	13870	14279	10269
11424	14420	13695	13870	14279
9704	11424	14420	13695	13870
12464	9704	11424	14420	13695
14301	12464	9704	11424	14420
13464	14301	12464	9704	11424
9893	13464	14301	12464	9704
11572	9893	13464	14301	12464
12380	11572	9893	13464	14301
16692	12380	11572	9893	13464
16052	16692	12380	11572	9893
16459	16052	16692	12380	11572
14761	16459	16052	16692	12380
13654	14761	16459	16052	16692
13480	13654	14761	16459	16052
18068	13480	13654	14761	16459
16560	18068	13480	13654	14761
14530	16560	18068	13480	13654
10650	14530	16560	18068	13480
11651	10650	14530	16560	18068
13735	11651	10650	14530	16560
13360	13735	11651	10650	14530
17818	13360	13735	11651	10650
20613	17818	13360	13735	11651
16231	20613	17818	13360	13735
13862	16231	20613	17818	13360
12004	13862	16231	20613	17818
17734	12004	13862	16231	20613
15034	17734	12004	13862	16231
12609	15034	17734	12004	13862
12320	12609	15034	17734	12004
10833	12320	12609	15034	17734
11350	10833	12320	12609	15034
13648	11350	10833	12320	12609
14890	13648	11350	10833	12320
16325	14890	13648	11350	10833
18045	16325	14890	13648	11350
15616	18045	16325	14890	13648
11926	15616	18045	16325	14890
16855	11926	15616	18045	16325
15083	16855	11926	15616	18045
12520	15083	16855	11926	15616
12355	12520	15083	16855	11926




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 6 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=101852&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=101852&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 8911.90701176469 + 0.397503514887048Y1[t] -0.130306574914554Y2[t] + 0.156160419736908Y3[t] -0.00795077215187155Y4[t] + 291.642374490895M1[t] -531.234917189707M2[t] -2825.79570833536M3[t] -3626.86564899572M4[t] + 713.966769798309M5[t] -1985.5007314796M6[t] -2292.53578267656M7[t] -4193.07741914983M8[t] -3505.0043476672M9[t] -2698.69964404757M10[t] -221.276602119008M11[t] + 30.1446737173865t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  8911.90701176469 +  0.397503514887048Y1[t] -0.130306574914554Y2[t] +  0.156160419736908Y3[t] -0.00795077215187155Y4[t] +  291.642374490895M1[t] -531.234917189707M2[t] -2825.79570833536M3[t] -3626.86564899572M4[t] +  713.966769798309M5[t] -1985.5007314796M6[t] -2292.53578267656M7[t] -4193.07741914983M8[t] -3505.0043476672M9[t] -2698.69964404757M10[t] -221.276602119008M11[t] +  30.1446737173865t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=101852&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  8911.90701176469 +  0.397503514887048Y1[t] -0.130306574914554Y2[t] +  0.156160419736908Y3[t] -0.00795077215187155Y4[t] +  291.642374490895M1[t] -531.234917189707M2[t] -2825.79570833536M3[t] -3626.86564899572M4[t] +  713.966769798309M5[t] -1985.5007314796M6[t] -2292.53578267656M7[t] -4193.07741914983M8[t] -3505.0043476672M9[t] -2698.69964404757M10[t] -221.276602119008M11[t] +  30.1446737173865t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=101852&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=101852&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] = + 8911.90701176469 + 0.397503514887048Y1[t] -0.130306574914554Y2[t] + 0.156160419736908Y3[t] -0.00795077215187155Y4[t] + 291.642374490895M1[t] -531.234917189707M2[t] -2825.79570833536M3[t] -3626.86564899572M4[t] + 713.966769798309M5[t] -1985.5007314796M6[t] -2292.53578267656M7[t] -4193.07741914983M8[t] -3505.0043476672M9[t] -2698.69964404757M10[t] -221.276602119008M11[t] + 30.1446737173865t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8911.907011764692560.6047713.48040.0012480.000624
Y10.3975035148870480.1583522.51030.0163230.008161
Y2-0.1303065749145540.172165-0.75690.4536750.226837
Y30.1561604197369080.1712350.9120.3673890.183694
Y4-0.007950772151871550.16044-0.04960.9607290.480365
M1291.6423744908951051.3971650.27740.7829490.391475
M2-531.2349171897071151.1532-0.46150.6470180.323509
M3-2825.795708335361271.435054-2.22250.0321160.016058
M4-3626.865648995721393.118013-2.60340.0129880.006494
M5713.9667697983091409.3963060.50660.6153040.307652
M6-1985.50073147961214.253364-1.63520.1100620.055031
M7-2292.535782676561229.464631-1.86470.0697670.034884
M8-4193.077419149831262.335963-3.32170.0019510.000976
M9-3505.00434766721431.977322-2.44770.0189830.009492
M10-2698.699644047571293.213648-2.08680.043490.021745
M11-221.2766021190081165.530832-0.18990.8504110.425205
t30.144673717386519.0434771.58290.1215120.060756

\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) & 8911.90701176469 & 2560.604771 & 3.4804 & 0.001248 & 0.000624 \tabularnewline
Y1 & 0.397503514887048 & 0.158352 & 2.5103 & 0.016323 & 0.008161 \tabularnewline
Y2 & -0.130306574914554 & 0.172165 & -0.7569 & 0.453675 & 0.226837 \tabularnewline
Y3 & 0.156160419736908 & 0.171235 & 0.912 & 0.367389 & 0.183694 \tabularnewline
Y4 & -0.00795077215187155 & 0.16044 & -0.0496 & 0.960729 & 0.480365 \tabularnewline
M1 & 291.642374490895 & 1051.397165 & 0.2774 & 0.782949 & 0.391475 \tabularnewline
M2 & -531.234917189707 & 1151.1532 & -0.4615 & 0.647018 & 0.323509 \tabularnewline
M3 & -2825.79570833536 & 1271.435054 & -2.2225 & 0.032116 & 0.016058 \tabularnewline
M4 & -3626.86564899572 & 1393.118013 & -2.6034 & 0.012988 & 0.006494 \tabularnewline
M5 & 713.966769798309 & 1409.396306 & 0.5066 & 0.615304 & 0.307652 \tabularnewline
M6 & -1985.5007314796 & 1214.253364 & -1.6352 & 0.110062 & 0.055031 \tabularnewline
M7 & -2292.53578267656 & 1229.464631 & -1.8647 & 0.069767 & 0.034884 \tabularnewline
M8 & -4193.07741914983 & 1262.335963 & -3.3217 & 0.001951 & 0.000976 \tabularnewline
M9 & -3505.0043476672 & 1431.977322 & -2.4477 & 0.018983 & 0.009492 \tabularnewline
M10 & -2698.69964404757 & 1293.213648 & -2.0868 & 0.04349 & 0.021745 \tabularnewline
M11 & -221.276602119008 & 1165.530832 & -0.1899 & 0.850411 & 0.425205 \tabularnewline
t & 30.1446737173865 & 19.043477 & 1.5829 & 0.121512 & 0.060756 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=101852&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]8911.90701176469[/C][C]2560.604771[/C][C]3.4804[/C][C]0.001248[/C][C]0.000624[/C][/ROW]
[ROW][C]Y1[/C][C]0.397503514887048[/C][C]0.158352[/C][C]2.5103[/C][C]0.016323[/C][C]0.008161[/C][/ROW]
[ROW][C]Y2[/C][C]-0.130306574914554[/C][C]0.172165[/C][C]-0.7569[/C][C]0.453675[/C][C]0.226837[/C][/ROW]
[ROW][C]Y3[/C][C]0.156160419736908[/C][C]0.171235[/C][C]0.912[/C][C]0.367389[/C][C]0.183694[/C][/ROW]
[ROW][C]Y4[/C][C]-0.00795077215187155[/C][C]0.16044[/C][C]-0.0496[/C][C]0.960729[/C][C]0.480365[/C][/ROW]
[ROW][C]M1[/C][C]291.642374490895[/C][C]1051.397165[/C][C]0.2774[/C][C]0.782949[/C][C]0.391475[/C][/ROW]
[ROW][C]M2[/C][C]-531.234917189707[/C][C]1151.1532[/C][C]-0.4615[/C][C]0.647018[/C][C]0.323509[/C][/ROW]
[ROW][C]M3[/C][C]-2825.79570833536[/C][C]1271.435054[/C][C]-2.2225[/C][C]0.032116[/C][C]0.016058[/C][/ROW]
[ROW][C]M4[/C][C]-3626.86564899572[/C][C]1393.118013[/C][C]-2.6034[/C][C]0.012988[/C][C]0.006494[/C][/ROW]
[ROW][C]M5[/C][C]713.966769798309[/C][C]1409.396306[/C][C]0.5066[/C][C]0.615304[/C][C]0.307652[/C][/ROW]
[ROW][C]M6[/C][C]-1985.5007314796[/C][C]1214.253364[/C][C]-1.6352[/C][C]0.110062[/C][C]0.055031[/C][/ROW]
[ROW][C]M7[/C][C]-2292.53578267656[/C][C]1229.464631[/C][C]-1.8647[/C][C]0.069767[/C][C]0.034884[/C][/ROW]
[ROW][C]M8[/C][C]-4193.07741914983[/C][C]1262.335963[/C][C]-3.3217[/C][C]0.001951[/C][C]0.000976[/C][/ROW]
[ROW][C]M9[/C][C]-3505.0043476672[/C][C]1431.977322[/C][C]-2.4477[/C][C]0.018983[/C][C]0.009492[/C][/ROW]
[ROW][C]M10[/C][C]-2698.69964404757[/C][C]1293.213648[/C][C]-2.0868[/C][C]0.04349[/C][C]0.021745[/C][/ROW]
[ROW][C]M11[/C][C]-221.276602119008[/C][C]1165.530832[/C][C]-0.1899[/C][C]0.850411[/C][C]0.425205[/C][/ROW]
[ROW][C]t[/C][C]30.1446737173865[/C][C]19.043477[/C][C]1.5829[/C][C]0.121512[/C][C]0.060756[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=101852&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=101852&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)8911.907011764692560.6047713.48040.0012480.000624
Y10.3975035148870480.1583522.51030.0163230.008161
Y2-0.1303065749145540.172165-0.75690.4536750.226837
Y30.1561604197369080.1712350.9120.3673890.183694
Y4-0.007950772151871550.16044-0.04960.9607290.480365
M1291.6423744908951051.3971650.27740.7829490.391475
M2-531.2349171897071151.1532-0.46150.6470180.323509
M3-2825.795708335361271.435054-2.22250.0321160.016058
M4-3626.865648995721393.118013-2.60340.0129880.006494
M5713.9667697983091409.3963060.50660.6153040.307652
M6-1985.50073147961214.253364-1.63520.1100620.055031
M7-2292.535782676561229.464631-1.86470.0697670.034884
M8-4193.077419149831262.335963-3.32170.0019510.000976
M9-3505.00434766721431.977322-2.44770.0189830.009492
M10-2698.699644047571293.213648-2.08680.043490.021745
M11-221.2766021190081165.530832-0.18990.8504110.425205
t30.144673717386519.0434771.58290.1215120.060756







Multiple Linear Regression - Regression Statistics
Multiple R0.856201301737816
R-squared0.73308066909753
Adjusted R-squared0.62357530257344
F-TEST (value)6.69447253926373
F-TEST (DF numerator)16
F-TEST (DF denominator)39
p-value6.4654506637396e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1476.02799666902
Sum Squared Residuals84967687.2310801

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.856201301737816 \tabularnewline
R-squared & 0.73308066909753 \tabularnewline
Adjusted R-squared & 0.62357530257344 \tabularnewline
F-TEST (value) & 6.69447253926373 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 6.4654506637396e-07 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1476.02799666902 \tabularnewline
Sum Squared Residuals & 84967687.2310801 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=101852&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.856201301737816[/C][/ROW]
[ROW][C]R-squared[/C][C]0.73308066909753[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.62357530257344[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]6.69447253926373[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/C][/ROW]
[ROW][C]p-value[/C][C]6.4654506637396e-07[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1476.02799666902[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]84967687.2310801[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=101852&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=101852&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.856201301737816
R-squared0.73308066909753
Adjusted R-squared0.62357530257344
F-TEST (value)6.69447253926373
F-TEST (DF numerator)16
F-TEST (DF denominator)39
p-value6.4654506637396e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1476.02799666902
Sum Squared Residuals84967687.2310801







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11199314088.9051767802-2095.90517678015
21450413397.08553394251106.91446605746
31172712158.2567660383-431.256766038315
4114779954.663468417731522.33653158227
51357814980.2369039323-1402.23690393232
61155512725.0237303954-1170.02373039539
71184611353.2488177354492.751182264642
81139710192.2163137691204.78368623105
91006610361.4186660657-295.418666065704
101026910788.8256114314-519.825611431373
111427913478.0948886526800.905111347399
121387015092.7734025048-1222.77340250477
131369514771.7351906576-1076.73519065762
141442014587.3241231274-167.324123127394
151142412538.1494966009-1114.14949660089
16970410457.7552245994-753.755224599414
171246414650.032459385-2186.03245938495
181430112828.32571442381472.67428557617
191346412677.2277384471786.772261552878
20989310679.4252421878-786.425242187821
211157210352.14709884721219.8529011528
221238012176.0178169367203.982183063327
231669214234.98957074042457.01042925956
241605216385.7438423314-333.743842331428
251645916004.0749626849454.925037315129
261476116123.4619892328-1362.46198923283
271365412996.8237293856657.176270614353
281348012075.76842067771404.23157932227
291806816253.43292305011814.56707694986
301656015271.16039229161288.83960770835
311453013778.6177403923751.38225960767
321065012015.6383974942-1365.63839749424
331165111184.096796413466.90320358699
341373512619.02081515951115.97918484047
351336015234.7866132297-1874.78661322972
361781815252.75074496742565.24925503255
372061317712.95301994282900.04698005716
381623117375.206448554-1144.206448554
391386213703.8677427486158.132257251397
401200412963.2838912254-959.283891225394
411773416197.87836159761536.12163840235
421503415713.2565397439-679.256539743918
431260913345.1393171655-736.139317165528
441232011772.1958228285547.804177171498
451083312224.3374386741-1391.33743867408
461135012150.1357564724-800.135756472419
471364815031.1289273772-1383.12892737724
481489015898.7320101964-1008.73201019635
491632516507.3316499345-182.331649934516
501804516477.92190514321567.07809485677
511561614885.9022652265730.097734773452
521192613139.5289950797-1213.52899507973
531685516617.4193520349237.580647965059
541508315995.2336231452-912.233623145216
551252013814.7663862597-1294.76638625966
561235511955.5242237205399.475776279516

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 11993 & 14088.9051767802 & -2095.90517678015 \tabularnewline
2 & 14504 & 13397.0855339425 & 1106.91446605746 \tabularnewline
3 & 11727 & 12158.2567660383 & -431.256766038315 \tabularnewline
4 & 11477 & 9954.66346841773 & 1522.33653158227 \tabularnewline
5 & 13578 & 14980.2369039323 & -1402.23690393232 \tabularnewline
6 & 11555 & 12725.0237303954 & -1170.02373039539 \tabularnewline
7 & 11846 & 11353.2488177354 & 492.751182264642 \tabularnewline
8 & 11397 & 10192.216313769 & 1204.78368623105 \tabularnewline
9 & 10066 & 10361.4186660657 & -295.418666065704 \tabularnewline
10 & 10269 & 10788.8256114314 & -519.825611431373 \tabularnewline
11 & 14279 & 13478.0948886526 & 800.905111347399 \tabularnewline
12 & 13870 & 15092.7734025048 & -1222.77340250477 \tabularnewline
13 & 13695 & 14771.7351906576 & -1076.73519065762 \tabularnewline
14 & 14420 & 14587.3241231274 & -167.324123127394 \tabularnewline
15 & 11424 & 12538.1494966009 & -1114.14949660089 \tabularnewline
16 & 9704 & 10457.7552245994 & -753.755224599414 \tabularnewline
17 & 12464 & 14650.032459385 & -2186.03245938495 \tabularnewline
18 & 14301 & 12828.3257144238 & 1472.67428557617 \tabularnewline
19 & 13464 & 12677.2277384471 & 786.772261552878 \tabularnewline
20 & 9893 & 10679.4252421878 & -786.425242187821 \tabularnewline
21 & 11572 & 10352.1470988472 & 1219.8529011528 \tabularnewline
22 & 12380 & 12176.0178169367 & 203.982183063327 \tabularnewline
23 & 16692 & 14234.9895707404 & 2457.01042925956 \tabularnewline
24 & 16052 & 16385.7438423314 & -333.743842331428 \tabularnewline
25 & 16459 & 16004.0749626849 & 454.925037315129 \tabularnewline
26 & 14761 & 16123.4619892328 & -1362.46198923283 \tabularnewline
27 & 13654 & 12996.8237293856 & 657.176270614353 \tabularnewline
28 & 13480 & 12075.7684206777 & 1404.23157932227 \tabularnewline
29 & 18068 & 16253.4329230501 & 1814.56707694986 \tabularnewline
30 & 16560 & 15271.1603922916 & 1288.83960770835 \tabularnewline
31 & 14530 & 13778.6177403923 & 751.38225960767 \tabularnewline
32 & 10650 & 12015.6383974942 & -1365.63839749424 \tabularnewline
33 & 11651 & 11184.096796413 & 466.90320358699 \tabularnewline
34 & 13735 & 12619.0208151595 & 1115.97918484047 \tabularnewline
35 & 13360 & 15234.7866132297 & -1874.78661322972 \tabularnewline
36 & 17818 & 15252.7507449674 & 2565.24925503255 \tabularnewline
37 & 20613 & 17712.9530199428 & 2900.04698005716 \tabularnewline
38 & 16231 & 17375.206448554 & -1144.206448554 \tabularnewline
39 & 13862 & 13703.8677427486 & 158.132257251397 \tabularnewline
40 & 12004 & 12963.2838912254 & -959.283891225394 \tabularnewline
41 & 17734 & 16197.8783615976 & 1536.12163840235 \tabularnewline
42 & 15034 & 15713.2565397439 & -679.256539743918 \tabularnewline
43 & 12609 & 13345.1393171655 & -736.139317165528 \tabularnewline
44 & 12320 & 11772.1958228285 & 547.804177171498 \tabularnewline
45 & 10833 & 12224.3374386741 & -1391.33743867408 \tabularnewline
46 & 11350 & 12150.1357564724 & -800.135756472419 \tabularnewline
47 & 13648 & 15031.1289273772 & -1383.12892737724 \tabularnewline
48 & 14890 & 15898.7320101964 & -1008.73201019635 \tabularnewline
49 & 16325 & 16507.3316499345 & -182.331649934516 \tabularnewline
50 & 18045 & 16477.9219051432 & 1567.07809485677 \tabularnewline
51 & 15616 & 14885.9022652265 & 730.097734773452 \tabularnewline
52 & 11926 & 13139.5289950797 & -1213.52899507973 \tabularnewline
53 & 16855 & 16617.4193520349 & 237.580647965059 \tabularnewline
54 & 15083 & 15995.2336231452 & -912.233623145216 \tabularnewline
55 & 12520 & 13814.7663862597 & -1294.76638625966 \tabularnewline
56 & 12355 & 11955.5242237205 & 399.475776279516 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=101852&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]11993[/C][C]14088.9051767802[/C][C]-2095.90517678015[/C][/ROW]
[ROW][C]2[/C][C]14504[/C][C]13397.0855339425[/C][C]1106.91446605746[/C][/ROW]
[ROW][C]3[/C][C]11727[/C][C]12158.2567660383[/C][C]-431.256766038315[/C][/ROW]
[ROW][C]4[/C][C]11477[/C][C]9954.66346841773[/C][C]1522.33653158227[/C][/ROW]
[ROW][C]5[/C][C]13578[/C][C]14980.2369039323[/C][C]-1402.23690393232[/C][/ROW]
[ROW][C]6[/C][C]11555[/C][C]12725.0237303954[/C][C]-1170.02373039539[/C][/ROW]
[ROW][C]7[/C][C]11846[/C][C]11353.2488177354[/C][C]492.751182264642[/C][/ROW]
[ROW][C]8[/C][C]11397[/C][C]10192.216313769[/C][C]1204.78368623105[/C][/ROW]
[ROW][C]9[/C][C]10066[/C][C]10361.4186660657[/C][C]-295.418666065704[/C][/ROW]
[ROW][C]10[/C][C]10269[/C][C]10788.8256114314[/C][C]-519.825611431373[/C][/ROW]
[ROW][C]11[/C][C]14279[/C][C]13478.0948886526[/C][C]800.905111347399[/C][/ROW]
[ROW][C]12[/C][C]13870[/C][C]15092.7734025048[/C][C]-1222.77340250477[/C][/ROW]
[ROW][C]13[/C][C]13695[/C][C]14771.7351906576[/C][C]-1076.73519065762[/C][/ROW]
[ROW][C]14[/C][C]14420[/C][C]14587.3241231274[/C][C]-167.324123127394[/C][/ROW]
[ROW][C]15[/C][C]11424[/C][C]12538.1494966009[/C][C]-1114.14949660089[/C][/ROW]
[ROW][C]16[/C][C]9704[/C][C]10457.7552245994[/C][C]-753.755224599414[/C][/ROW]
[ROW][C]17[/C][C]12464[/C][C]14650.032459385[/C][C]-2186.03245938495[/C][/ROW]
[ROW][C]18[/C][C]14301[/C][C]12828.3257144238[/C][C]1472.67428557617[/C][/ROW]
[ROW][C]19[/C][C]13464[/C][C]12677.2277384471[/C][C]786.772261552878[/C][/ROW]
[ROW][C]20[/C][C]9893[/C][C]10679.4252421878[/C][C]-786.425242187821[/C][/ROW]
[ROW][C]21[/C][C]11572[/C][C]10352.1470988472[/C][C]1219.8529011528[/C][/ROW]
[ROW][C]22[/C][C]12380[/C][C]12176.0178169367[/C][C]203.982183063327[/C][/ROW]
[ROW][C]23[/C][C]16692[/C][C]14234.9895707404[/C][C]2457.01042925956[/C][/ROW]
[ROW][C]24[/C][C]16052[/C][C]16385.7438423314[/C][C]-333.743842331428[/C][/ROW]
[ROW][C]25[/C][C]16459[/C][C]16004.0749626849[/C][C]454.925037315129[/C][/ROW]
[ROW][C]26[/C][C]14761[/C][C]16123.4619892328[/C][C]-1362.46198923283[/C][/ROW]
[ROW][C]27[/C][C]13654[/C][C]12996.8237293856[/C][C]657.176270614353[/C][/ROW]
[ROW][C]28[/C][C]13480[/C][C]12075.7684206777[/C][C]1404.23157932227[/C][/ROW]
[ROW][C]29[/C][C]18068[/C][C]16253.4329230501[/C][C]1814.56707694986[/C][/ROW]
[ROW][C]30[/C][C]16560[/C][C]15271.1603922916[/C][C]1288.83960770835[/C][/ROW]
[ROW][C]31[/C][C]14530[/C][C]13778.6177403923[/C][C]751.38225960767[/C][/ROW]
[ROW][C]32[/C][C]10650[/C][C]12015.6383974942[/C][C]-1365.63839749424[/C][/ROW]
[ROW][C]33[/C][C]11651[/C][C]11184.096796413[/C][C]466.90320358699[/C][/ROW]
[ROW][C]34[/C][C]13735[/C][C]12619.0208151595[/C][C]1115.97918484047[/C][/ROW]
[ROW][C]35[/C][C]13360[/C][C]15234.7866132297[/C][C]-1874.78661322972[/C][/ROW]
[ROW][C]36[/C][C]17818[/C][C]15252.7507449674[/C][C]2565.24925503255[/C][/ROW]
[ROW][C]37[/C][C]20613[/C][C]17712.9530199428[/C][C]2900.04698005716[/C][/ROW]
[ROW][C]38[/C][C]16231[/C][C]17375.206448554[/C][C]-1144.206448554[/C][/ROW]
[ROW][C]39[/C][C]13862[/C][C]13703.8677427486[/C][C]158.132257251397[/C][/ROW]
[ROW][C]40[/C][C]12004[/C][C]12963.2838912254[/C][C]-959.283891225394[/C][/ROW]
[ROW][C]41[/C][C]17734[/C][C]16197.8783615976[/C][C]1536.12163840235[/C][/ROW]
[ROW][C]42[/C][C]15034[/C][C]15713.2565397439[/C][C]-679.256539743918[/C][/ROW]
[ROW][C]43[/C][C]12609[/C][C]13345.1393171655[/C][C]-736.139317165528[/C][/ROW]
[ROW][C]44[/C][C]12320[/C][C]11772.1958228285[/C][C]547.804177171498[/C][/ROW]
[ROW][C]45[/C][C]10833[/C][C]12224.3374386741[/C][C]-1391.33743867408[/C][/ROW]
[ROW][C]46[/C][C]11350[/C][C]12150.1357564724[/C][C]-800.135756472419[/C][/ROW]
[ROW][C]47[/C][C]13648[/C][C]15031.1289273772[/C][C]-1383.12892737724[/C][/ROW]
[ROW][C]48[/C][C]14890[/C][C]15898.7320101964[/C][C]-1008.73201019635[/C][/ROW]
[ROW][C]49[/C][C]16325[/C][C]16507.3316499345[/C][C]-182.331649934516[/C][/ROW]
[ROW][C]50[/C][C]18045[/C][C]16477.9219051432[/C][C]1567.07809485677[/C][/ROW]
[ROW][C]51[/C][C]15616[/C][C]14885.9022652265[/C][C]730.097734773452[/C][/ROW]
[ROW][C]52[/C][C]11926[/C][C]13139.5289950797[/C][C]-1213.52899507973[/C][/ROW]
[ROW][C]53[/C][C]16855[/C][C]16617.4193520349[/C][C]237.580647965059[/C][/ROW]
[ROW][C]54[/C][C]15083[/C][C]15995.2336231452[/C][C]-912.233623145216[/C][/ROW]
[ROW][C]55[/C][C]12520[/C][C]13814.7663862597[/C][C]-1294.76638625966[/C][/ROW]
[ROW][C]56[/C][C]12355[/C][C]11955.5242237205[/C][C]399.475776279516[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=101852&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=101852&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
11199314088.9051767802-2095.90517678015
21450413397.08553394251106.91446605746
31172712158.2567660383-431.256766038315
4114779954.663468417731522.33653158227
51357814980.2369039323-1402.23690393232
61155512725.0237303954-1170.02373039539
71184611353.2488177354492.751182264642
81139710192.2163137691204.78368623105
91006610361.4186660657-295.418666065704
101026910788.8256114314-519.825611431373
111427913478.0948886526800.905111347399
121387015092.7734025048-1222.77340250477
131369514771.7351906576-1076.73519065762
141442014587.3241231274-167.324123127394
151142412538.1494966009-1114.14949660089
16970410457.7552245994-753.755224599414
171246414650.032459385-2186.03245938495
181430112828.32571442381472.67428557617
191346412677.2277384471786.772261552878
20989310679.4252421878-786.425242187821
211157210352.14709884721219.8529011528
221238012176.0178169367203.982183063327
231669214234.98957074042457.01042925956
241605216385.7438423314-333.743842331428
251645916004.0749626849454.925037315129
261476116123.4619892328-1362.46198923283
271365412996.8237293856657.176270614353
281348012075.76842067771404.23157932227
291806816253.43292305011814.56707694986
301656015271.16039229161288.83960770835
311453013778.6177403923751.38225960767
321065012015.6383974942-1365.63839749424
331165111184.096796413466.90320358699
341373512619.02081515951115.97918484047
351336015234.7866132297-1874.78661322972
361781815252.75074496742565.24925503255
372061317712.95301994282900.04698005716
381623117375.206448554-1144.206448554
391386213703.8677427486158.132257251397
401200412963.2838912254-959.283891225394
411773416197.87836159761536.12163840235
421503415713.2565397439-679.256539743918
431260913345.1393171655-736.139317165528
441232011772.1958228285547.804177171498
451083312224.3374386741-1391.33743867408
461135012150.1357564724-800.135756472419
471364815031.1289273772-1383.12892737724
481489015898.7320101964-1008.73201019635
491632516507.3316499345-182.331649934516
501804516477.92190514321567.07809485677
511561614885.9022652265730.097734773452
521192613139.5289950797-1213.52899507973
531685516617.4193520349237.580647965059
541508315995.2336231452-912.233623145216
551252013814.7663862597-1294.76638625966
561235511955.5242237205399.475776279516







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.6515083109382540.6969833781234920.348491689061746
210.5539677888050340.8920644223899320.446032211194966
220.4651645315085540.9303290630171080.534835468491446
230.5885339160853170.8229321678293660.411466083914683
240.5661288519133820.8677422961732360.433871148086618
250.5795666994614330.8408666010771350.420433300538567
260.7622743863922010.4754512272155970.237725613607799
270.718468478406040.563063043187920.28153152159396
280.6247125256089940.7505749487820120.375287474391006
290.6527417153927940.6945165692144130.347258284607206
300.5455905737273020.9088188525453970.454409426272698
310.4226880887877680.8453761775755370.577311911212232
320.4685272129173420.9370544258346840.531472787082658
330.3891532174572320.7783064349144640.610846782542768
340.2630888120665610.5261776241331230.736911187933439
350.3496345891259810.6992691782519620.650365410874019
360.5545166055549320.8909667888901360.445483394445068

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.651508310938254 & 0.696983378123492 & 0.348491689061746 \tabularnewline
21 & 0.553967788805034 & 0.892064422389932 & 0.446032211194966 \tabularnewline
22 & 0.465164531508554 & 0.930329063017108 & 0.534835468491446 \tabularnewline
23 & 0.588533916085317 & 0.822932167829366 & 0.411466083914683 \tabularnewline
24 & 0.566128851913382 & 0.867742296173236 & 0.433871148086618 \tabularnewline
25 & 0.579566699461433 & 0.840866601077135 & 0.420433300538567 \tabularnewline
26 & 0.762274386392201 & 0.475451227215597 & 0.237725613607799 \tabularnewline
27 & 0.71846847840604 & 0.56306304318792 & 0.28153152159396 \tabularnewline
28 & 0.624712525608994 & 0.750574948782012 & 0.375287474391006 \tabularnewline
29 & 0.652741715392794 & 0.694516569214413 & 0.347258284607206 \tabularnewline
30 & 0.545590573727302 & 0.908818852545397 & 0.454409426272698 \tabularnewline
31 & 0.422688088787768 & 0.845376177575537 & 0.577311911212232 \tabularnewline
32 & 0.468527212917342 & 0.937054425834684 & 0.531472787082658 \tabularnewline
33 & 0.389153217457232 & 0.778306434914464 & 0.610846782542768 \tabularnewline
34 & 0.263088812066561 & 0.526177624133123 & 0.736911187933439 \tabularnewline
35 & 0.349634589125981 & 0.699269178251962 & 0.650365410874019 \tabularnewline
36 & 0.554516605554932 & 0.890966788890136 & 0.445483394445068 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=101852&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]20[/C][C]0.651508310938254[/C][C]0.696983378123492[/C][C]0.348491689061746[/C][/ROW]
[ROW][C]21[/C][C]0.553967788805034[/C][C]0.892064422389932[/C][C]0.446032211194966[/C][/ROW]
[ROW][C]22[/C][C]0.465164531508554[/C][C]0.930329063017108[/C][C]0.534835468491446[/C][/ROW]
[ROW][C]23[/C][C]0.588533916085317[/C][C]0.822932167829366[/C][C]0.411466083914683[/C][/ROW]
[ROW][C]24[/C][C]0.566128851913382[/C][C]0.867742296173236[/C][C]0.433871148086618[/C][/ROW]
[ROW][C]25[/C][C]0.579566699461433[/C][C]0.840866601077135[/C][C]0.420433300538567[/C][/ROW]
[ROW][C]26[/C][C]0.762274386392201[/C][C]0.475451227215597[/C][C]0.237725613607799[/C][/ROW]
[ROW][C]27[/C][C]0.71846847840604[/C][C]0.56306304318792[/C][C]0.28153152159396[/C][/ROW]
[ROW][C]28[/C][C]0.624712525608994[/C][C]0.750574948782012[/C][C]0.375287474391006[/C][/ROW]
[ROW][C]29[/C][C]0.652741715392794[/C][C]0.694516569214413[/C][C]0.347258284607206[/C][/ROW]
[ROW][C]30[/C][C]0.545590573727302[/C][C]0.908818852545397[/C][C]0.454409426272698[/C][/ROW]
[ROW][C]31[/C][C]0.422688088787768[/C][C]0.845376177575537[/C][C]0.577311911212232[/C][/ROW]
[ROW][C]32[/C][C]0.468527212917342[/C][C]0.937054425834684[/C][C]0.531472787082658[/C][/ROW]
[ROW][C]33[/C][C]0.389153217457232[/C][C]0.778306434914464[/C][C]0.610846782542768[/C][/ROW]
[ROW][C]34[/C][C]0.263088812066561[/C][C]0.526177624133123[/C][C]0.736911187933439[/C][/ROW]
[ROW][C]35[/C][C]0.349634589125981[/C][C]0.699269178251962[/C][C]0.650365410874019[/C][/ROW]
[ROW][C]36[/C][C]0.554516605554932[/C][C]0.890966788890136[/C][C]0.445483394445068[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=101852&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=101852&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
200.6515083109382540.6969833781234920.348491689061746
210.5539677888050340.8920644223899320.446032211194966
220.4651645315085540.9303290630171080.534835468491446
230.5885339160853170.8229321678293660.411466083914683
240.5661288519133820.8677422961732360.433871148086618
250.5795666994614330.8408666010771350.420433300538567
260.7622743863922010.4754512272155970.237725613607799
270.718468478406040.563063043187920.28153152159396
280.6247125256089940.7505749487820120.375287474391006
290.6527417153927940.6945165692144130.347258284607206
300.5455905737273020.9088188525453970.454409426272698
310.4226880887877680.8453761775755370.577311911212232
320.4685272129173420.9370544258346840.531472787082658
330.3891532174572320.7783064349144640.610846782542768
340.2630888120665610.5261776241331230.736911187933439
350.3496345891259810.6992691782519620.650365410874019
360.5545166055549320.8909667888901360.445483394445068







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 level00OK

\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 & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=101852&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]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=101852&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=101852&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 level00OK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}