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:02:39 -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/t1258718636ltp7g9fxfjfxf98.htm/, Retrieved Tue, 16 Apr 2024 14:52:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58058, Retrieved Tue, 16 Apr 2024 14:52:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsmonthly dummies and lineair trend
Estimated Impact152
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:06:21] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [ws 7] [2009-11-19 17:29:47] [b5908418e3090fddbd22f5f0f774653d]
-    D        [Multiple Regression] [workshop 7 seatbe...] [2009-11-20 12:02:39] [ac4f1d4b47349b2602192853b2bc5b72] [Current]
-               [Multiple Regression] [Workshop 7] [2009-11-21 13:45:34] [b6394cb5c2dcec6d17418d3cdf42d699]
Feedback Forum

Post a new message
Dataseries X:
9.3	98.3
9.3	112.3
8.7	113.9
8.2	106.2
8.3	98.6
8.5	96.5
8.6	95.9
8.5	103.7
8.2	103.1
8.1	103.7
7.9	112.1
8.6	86.9
8.7	95
8.7	111.8
8.5	108.8
8.4	109.3
8.5	101.4
8.7	100.5
8.7	100.7
8.6	113.5
8.5	106.1
8.3	111.6
8	114.9
8.2	88.6
8.1	99.5
8.1	115.1
8	118
7.9	111.4
7.9	107.3
8	105.3
8	105.3
7.9	117.9
8	110.2
7.7	112.4
7.2	117.5
7.5	93
7.3	103.5
7	116.3
7	120
7	114.3
7.2	104.7
7.3	109.8
7.1	112.6
6.8	114.4
6.4	115.7
6.1	114.7
6.5	118.4
7.7	94.9
7.9	103.8
7.5	115.1
6.9	113.7
6.6	104
6.9	94.3
7.7	92.5
8	93.2
8	104.7
7.7	94
7.3	98.1
7.4	102.7
8.1	82.4




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 12.9761973202013 -0.0437302424418521X[t] + 0.391874378892299M1[t] + 0.897837711324807M2[t] + 0.660439609582997M3[t] + 0.234421907724963M4[t] + 0.063567535529736M5[t] + 0.358066167101888M6[t] + 0.454545831418218M7[t] + 0.770604000129826M8[t] + 0.380445097074110M9[t] + 0.249516963843914M10[t] + 0.398409694904394M11[t] -0.0293669140023821t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  12.9761973202013 -0.0437302424418521X[t] +  0.391874378892299M1[t] +  0.897837711324807M2[t] +  0.660439609582997M3[t] +  0.234421907724963M4[t] +  0.063567535529736M5[t] +  0.358066167101888M6[t] +  0.454545831418218M7[t] +  0.770604000129826M8[t] +  0.380445097074110M9[t] +  0.249516963843914M10[t] +  0.398409694904394M11[t] -0.0293669140023821t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58058&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  12.9761973202013 -0.0437302424418521X[t] +  0.391874378892299M1[t] +  0.897837711324807M2[t] +  0.660439609582997M3[t] +  0.234421907724963M4[t] +  0.063567535529736M5[t] +  0.358066167101888M6[t] +  0.454545831418218M7[t] +  0.770604000129826M8[t] +  0.380445097074110M9[t] +  0.249516963843914M10[t] +  0.398409694904394M11[t] -0.0293669140023821t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58058&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58058&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] = + 12.9761973202013 -0.0437302424418521X[t] + 0.391874378892299M1[t] + 0.897837711324807M2[t] + 0.660439609582997M3[t] + 0.234421907724963M4[t] + 0.063567535529736M5[t] + 0.358066167101888M6[t] + 0.454545831418218M7[t] + 0.770604000129826M8[t] + 0.380445097074110M9[t] + 0.249516963843914M10[t] + 0.398409694904394M11[t] -0.0293669140023821t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)12.97619732020130.91126514.239800
X-0.04373024244185210.009977-4.3836.7e-053.4e-05
M10.3918743788922990.2782711.40820.1657810.082891
M20.8978377113248070.3573882.51220.0155680.007784
M30.6604396095829970.3624271.82230.0749190.03746
M40.2344219077249630.3233710.72490.4721660.236083
M50.0635675355297360.2820310.22540.8226730.411336
M60.3580661671018880.2803391.27730.207920.10396
M70.4545458314182180.2827781.60740.1148040.057402
M80.7706040001298260.3338432.30830.0255310.012765
M90.3804450970741100.3035911.25310.2164840.108242
M100.2495169638439140.3165140.78830.4345490.217274
M110.3984096949043940.3486671.14270.259090.129545
t-0.02936691400238210.003053-9.619500

\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) & 12.9761973202013 & 0.911265 & 14.2398 & 0 & 0 \tabularnewline
X & -0.0437302424418521 & 0.009977 & -4.383 & 6.7e-05 & 3.4e-05 \tabularnewline
M1 & 0.391874378892299 & 0.278271 & 1.4082 & 0.165781 & 0.082891 \tabularnewline
M2 & 0.897837711324807 & 0.357388 & 2.5122 & 0.015568 & 0.007784 \tabularnewline
M3 & 0.660439609582997 & 0.362427 & 1.8223 & 0.074919 & 0.03746 \tabularnewline
M4 & 0.234421907724963 & 0.323371 & 0.7249 & 0.472166 & 0.236083 \tabularnewline
M5 & 0.063567535529736 & 0.282031 & 0.2254 & 0.822673 & 0.411336 \tabularnewline
M6 & 0.358066167101888 & 0.280339 & 1.2773 & 0.20792 & 0.10396 \tabularnewline
M7 & 0.454545831418218 & 0.282778 & 1.6074 & 0.114804 & 0.057402 \tabularnewline
M8 & 0.770604000129826 & 0.333843 & 2.3083 & 0.025531 & 0.012765 \tabularnewline
M9 & 0.380445097074110 & 0.303591 & 1.2531 & 0.216484 & 0.108242 \tabularnewline
M10 & 0.249516963843914 & 0.316514 & 0.7883 & 0.434549 & 0.217274 \tabularnewline
M11 & 0.398409694904394 & 0.348667 & 1.1427 & 0.25909 & 0.129545 \tabularnewline
t & -0.0293669140023821 & 0.003053 & -9.6195 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58058&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]12.9761973202013[/C][C]0.911265[/C][C]14.2398[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.0437302424418521[/C][C]0.009977[/C][C]-4.383[/C][C]6.7e-05[/C][C]3.4e-05[/C][/ROW]
[ROW][C]M1[/C][C]0.391874378892299[/C][C]0.278271[/C][C]1.4082[/C][C]0.165781[/C][C]0.082891[/C][/ROW]
[ROW][C]M2[/C][C]0.897837711324807[/C][C]0.357388[/C][C]2.5122[/C][C]0.015568[/C][C]0.007784[/C][/ROW]
[ROW][C]M3[/C][C]0.660439609582997[/C][C]0.362427[/C][C]1.8223[/C][C]0.074919[/C][C]0.03746[/C][/ROW]
[ROW][C]M4[/C][C]0.234421907724963[/C][C]0.323371[/C][C]0.7249[/C][C]0.472166[/C][C]0.236083[/C][/ROW]
[ROW][C]M5[/C][C]0.063567535529736[/C][C]0.282031[/C][C]0.2254[/C][C]0.822673[/C][C]0.411336[/C][/ROW]
[ROW][C]M6[/C][C]0.358066167101888[/C][C]0.280339[/C][C]1.2773[/C][C]0.20792[/C][C]0.10396[/C][/ROW]
[ROW][C]M7[/C][C]0.454545831418218[/C][C]0.282778[/C][C]1.6074[/C][C]0.114804[/C][C]0.057402[/C][/ROW]
[ROW][C]M8[/C][C]0.770604000129826[/C][C]0.333843[/C][C]2.3083[/C][C]0.025531[/C][C]0.012765[/C][/ROW]
[ROW][C]M9[/C][C]0.380445097074110[/C][C]0.303591[/C][C]1.2531[/C][C]0.216484[/C][C]0.108242[/C][/ROW]
[ROW][C]M10[/C][C]0.249516963843914[/C][C]0.316514[/C][C]0.7883[/C][C]0.434549[/C][C]0.217274[/C][/ROW]
[ROW][C]M11[/C][C]0.398409694904394[/C][C]0.348667[/C][C]1.1427[/C][C]0.25909[/C][C]0.129545[/C][/ROW]
[ROW][C]t[/C][C]-0.0293669140023821[/C][C]0.003053[/C][C]-9.6195[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58058&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58058&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)12.97619732020130.91126514.239800
X-0.04373024244185210.009977-4.3836.7e-053.4e-05
M10.3918743788922990.2782711.40820.1657810.082891
M20.8978377113248070.3573882.51220.0155680.007784
M30.6604396095829970.3624271.82230.0749190.03746
M40.2344219077249630.3233710.72490.4721660.236083
M50.0635675355297360.2820310.22540.8226730.411336
M60.3580661671018880.2803391.27730.207920.10396
M70.4545458314182180.2827781.60740.1148040.057402
M80.7706040001298260.3338432.30830.0255310.012765
M90.3804450970741100.3035911.25310.2164840.108242
M100.2495169638439140.3165140.78830.4345490.217274
M110.3984096949043940.3486671.14270.259090.129545
t-0.02936691400238210.003053-9.619500







Multiple Linear Regression - Regression Statistics
Multiple R0.865878546514659
R-squared0.749745657314338
Adjusted R-squared0.679021603946651
F-TEST (value)10.6009995413652
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value7.08769265500564e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.401166295786969
Sum Squared Residuals7.40298225627013

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.865878546514659 \tabularnewline
R-squared & 0.749745657314338 \tabularnewline
Adjusted R-squared & 0.679021603946651 \tabularnewline
F-TEST (value) & 10.6009995413652 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 7.08769265500564e-10 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.401166295786969 \tabularnewline
Sum Squared Residuals & 7.40298225627013 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58058&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.865878546514659[/C][/ROW]
[ROW][C]R-squared[/C][C]0.749745657314338[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.679021603946651[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.6009995413652[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]7.08769265500564e-10[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.401166295786969[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]7.40298225627013[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58058&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58058&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.865878546514659
R-squared0.749745657314338
Adjusted R-squared0.679021603946651
F-TEST (value)10.6009995413652
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value7.08769265500564e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.401166295786969
Sum Squared Residuals7.40298225627013







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
19.39.04002195305720.259978046942795
29.38.904394977301340.395605022698658
38.78.567661573650190.132338426349814
48.28.44899982459203-0.248999824592030
58.38.5811283809525-0.281128380952497
68.58.93809360765016-0.438093607650156
78.69.03144450342922-0.431444503429216
88.58.977039867092-0.477039867091993
98.28.58375219549901-0.383752195499008
108.18.39721900280132-0.297219002801319
117.98.14941078334786-0.249410783347860
128.68.82363628397576-0.223636283975755
138.78.83192878508667-0.131928785086671
148.78.573857130493680.126142869506320
158.58.438282842075050.0617171579249544
168.47.96103310499370.438966895006296
178.58.106280734086730.393719265913274
188.78.410769669854160.289230330145837
198.78.469136371679740.230863628320259
208.68.196080523133260.403919476866741
218.58.100158500144870.399841499855133
228.37.69934711948210.600652880517898
2387.674563136482090.325436863517912
248.28.39689190379602-0.196891903796023
258.18.28273972606975-0.182739726069751
268.18.077144362406980.0228556375930144
2787.683561643581420.316438356418579
287.97.516796627837230.383203372162772
297.97.495869335651210.404130664348787
3087.848461538104690.151538461895312
3187.915574288418640.0844257115813641
327.97.651264488360520.248735511639476
3387.568461538104690.431538461895313
347.77.311959957500040.388040042499964
357.27.20846153810469-0.00846153810468793
367.57.85207586902329-0.352075869023288
377.37.75541578827376-0.455415788273757
3877.67226510344818-0.672265103448178
3977.24369819066913-0.243698190669132
4077.03757595672727-0.0375759567272731
417.27.25716499797144-0.057164997971444
427.37.299272479087770.000727520912231643
437.17.24394055056453-0.143940550564531
446.87.45191736887842-0.651917368878422
456.46.97554223664592-0.575542236645916
466.16.8589774318552-0.758977431855192
476.56.81670135187844-0.316701351878436
487.77.416585440355180.283414559644817
497.97.389893747512620.510106252487384
507.57.372338426349820.127661573650185
516.97.16679575002421-0.266795750024215
526.67.13559448584977-0.535594485849765
536.97.35955655133812-0.45955655133812
547.77.70340270530322-0.00340270530322409
5587.739904285907880.260095714092124
5687.52369775253580.476302247464198
577.77.572085529605520.127914470394478
587.37.232496488361350.0675035116386488
597.47.150863190186930.249136809813071
608.17.610810502849750.48918949715025

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 9.3 & 9.0400219530572 & 0.259978046942795 \tabularnewline
2 & 9.3 & 8.90439497730134 & 0.395605022698658 \tabularnewline
3 & 8.7 & 8.56766157365019 & 0.132338426349814 \tabularnewline
4 & 8.2 & 8.44899982459203 & -0.248999824592030 \tabularnewline
5 & 8.3 & 8.5811283809525 & -0.281128380952497 \tabularnewline
6 & 8.5 & 8.93809360765016 & -0.438093607650156 \tabularnewline
7 & 8.6 & 9.03144450342922 & -0.431444503429216 \tabularnewline
8 & 8.5 & 8.977039867092 & -0.477039867091993 \tabularnewline
9 & 8.2 & 8.58375219549901 & -0.383752195499008 \tabularnewline
10 & 8.1 & 8.39721900280132 & -0.297219002801319 \tabularnewline
11 & 7.9 & 8.14941078334786 & -0.249410783347860 \tabularnewline
12 & 8.6 & 8.82363628397576 & -0.223636283975755 \tabularnewline
13 & 8.7 & 8.83192878508667 & -0.131928785086671 \tabularnewline
14 & 8.7 & 8.57385713049368 & 0.126142869506320 \tabularnewline
15 & 8.5 & 8.43828284207505 & 0.0617171579249544 \tabularnewline
16 & 8.4 & 7.9610331049937 & 0.438966895006296 \tabularnewline
17 & 8.5 & 8.10628073408673 & 0.393719265913274 \tabularnewline
18 & 8.7 & 8.41076966985416 & 0.289230330145837 \tabularnewline
19 & 8.7 & 8.46913637167974 & 0.230863628320259 \tabularnewline
20 & 8.6 & 8.19608052313326 & 0.403919476866741 \tabularnewline
21 & 8.5 & 8.10015850014487 & 0.399841499855133 \tabularnewline
22 & 8.3 & 7.6993471194821 & 0.600652880517898 \tabularnewline
23 & 8 & 7.67456313648209 & 0.325436863517912 \tabularnewline
24 & 8.2 & 8.39689190379602 & -0.196891903796023 \tabularnewline
25 & 8.1 & 8.28273972606975 & -0.182739726069751 \tabularnewline
26 & 8.1 & 8.07714436240698 & 0.0228556375930144 \tabularnewline
27 & 8 & 7.68356164358142 & 0.316438356418579 \tabularnewline
28 & 7.9 & 7.51679662783723 & 0.383203372162772 \tabularnewline
29 & 7.9 & 7.49586933565121 & 0.404130664348787 \tabularnewline
30 & 8 & 7.84846153810469 & 0.151538461895312 \tabularnewline
31 & 8 & 7.91557428841864 & 0.0844257115813641 \tabularnewline
32 & 7.9 & 7.65126448836052 & 0.248735511639476 \tabularnewline
33 & 8 & 7.56846153810469 & 0.431538461895313 \tabularnewline
34 & 7.7 & 7.31195995750004 & 0.388040042499964 \tabularnewline
35 & 7.2 & 7.20846153810469 & -0.00846153810468793 \tabularnewline
36 & 7.5 & 7.85207586902329 & -0.352075869023288 \tabularnewline
37 & 7.3 & 7.75541578827376 & -0.455415788273757 \tabularnewline
38 & 7 & 7.67226510344818 & -0.672265103448178 \tabularnewline
39 & 7 & 7.24369819066913 & -0.243698190669132 \tabularnewline
40 & 7 & 7.03757595672727 & -0.0375759567272731 \tabularnewline
41 & 7.2 & 7.25716499797144 & -0.057164997971444 \tabularnewline
42 & 7.3 & 7.29927247908777 & 0.000727520912231643 \tabularnewline
43 & 7.1 & 7.24394055056453 & -0.143940550564531 \tabularnewline
44 & 6.8 & 7.45191736887842 & -0.651917368878422 \tabularnewline
45 & 6.4 & 6.97554223664592 & -0.575542236645916 \tabularnewline
46 & 6.1 & 6.8589774318552 & -0.758977431855192 \tabularnewline
47 & 6.5 & 6.81670135187844 & -0.316701351878436 \tabularnewline
48 & 7.7 & 7.41658544035518 & 0.283414559644817 \tabularnewline
49 & 7.9 & 7.38989374751262 & 0.510106252487384 \tabularnewline
50 & 7.5 & 7.37233842634982 & 0.127661573650185 \tabularnewline
51 & 6.9 & 7.16679575002421 & -0.266795750024215 \tabularnewline
52 & 6.6 & 7.13559448584977 & -0.535594485849765 \tabularnewline
53 & 6.9 & 7.35955655133812 & -0.45955655133812 \tabularnewline
54 & 7.7 & 7.70340270530322 & -0.00340270530322409 \tabularnewline
55 & 8 & 7.73990428590788 & 0.260095714092124 \tabularnewline
56 & 8 & 7.5236977525358 & 0.476302247464198 \tabularnewline
57 & 7.7 & 7.57208552960552 & 0.127914470394478 \tabularnewline
58 & 7.3 & 7.23249648836135 & 0.0675035116386488 \tabularnewline
59 & 7.4 & 7.15086319018693 & 0.249136809813071 \tabularnewline
60 & 8.1 & 7.61081050284975 & 0.48918949715025 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58058&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]9.3[/C][C]9.0400219530572[/C][C]0.259978046942795[/C][/ROW]
[ROW][C]2[/C][C]9.3[/C][C]8.90439497730134[/C][C]0.395605022698658[/C][/ROW]
[ROW][C]3[/C][C]8.7[/C][C]8.56766157365019[/C][C]0.132338426349814[/C][/ROW]
[ROW][C]4[/C][C]8.2[/C][C]8.44899982459203[/C][C]-0.248999824592030[/C][/ROW]
[ROW][C]5[/C][C]8.3[/C][C]8.5811283809525[/C][C]-0.281128380952497[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.93809360765016[/C][C]-0.438093607650156[/C][/ROW]
[ROW][C]7[/C][C]8.6[/C][C]9.03144450342922[/C][C]-0.431444503429216[/C][/ROW]
[ROW][C]8[/C][C]8.5[/C][C]8.977039867092[/C][C]-0.477039867091993[/C][/ROW]
[ROW][C]9[/C][C]8.2[/C][C]8.58375219549901[/C][C]-0.383752195499008[/C][/ROW]
[ROW][C]10[/C][C]8.1[/C][C]8.39721900280132[/C][C]-0.297219002801319[/C][/ROW]
[ROW][C]11[/C][C]7.9[/C][C]8.14941078334786[/C][C]-0.249410783347860[/C][/ROW]
[ROW][C]12[/C][C]8.6[/C][C]8.82363628397576[/C][C]-0.223636283975755[/C][/ROW]
[ROW][C]13[/C][C]8.7[/C][C]8.83192878508667[/C][C]-0.131928785086671[/C][/ROW]
[ROW][C]14[/C][C]8.7[/C][C]8.57385713049368[/C][C]0.126142869506320[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.43828284207505[/C][C]0.0617171579249544[/C][/ROW]
[ROW][C]16[/C][C]8.4[/C][C]7.9610331049937[/C][C]0.438966895006296[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]8.10628073408673[/C][C]0.393719265913274[/C][/ROW]
[ROW][C]18[/C][C]8.7[/C][C]8.41076966985416[/C][C]0.289230330145837[/C][/ROW]
[ROW][C]19[/C][C]8.7[/C][C]8.46913637167974[/C][C]0.230863628320259[/C][/ROW]
[ROW][C]20[/C][C]8.6[/C][C]8.19608052313326[/C][C]0.403919476866741[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]8.10015850014487[/C][C]0.399841499855133[/C][/ROW]
[ROW][C]22[/C][C]8.3[/C][C]7.6993471194821[/C][C]0.600652880517898[/C][/ROW]
[ROW][C]23[/C][C]8[/C][C]7.67456313648209[/C][C]0.325436863517912[/C][/ROW]
[ROW][C]24[/C][C]8.2[/C][C]8.39689190379602[/C][C]-0.196891903796023[/C][/ROW]
[ROW][C]25[/C][C]8.1[/C][C]8.28273972606975[/C][C]-0.182739726069751[/C][/ROW]
[ROW][C]26[/C][C]8.1[/C][C]8.07714436240698[/C][C]0.0228556375930144[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]7.68356164358142[/C][C]0.316438356418579[/C][/ROW]
[ROW][C]28[/C][C]7.9[/C][C]7.51679662783723[/C][C]0.383203372162772[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]7.49586933565121[/C][C]0.404130664348787[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.84846153810469[/C][C]0.151538461895312[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.91557428841864[/C][C]0.0844257115813641[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]7.65126448836052[/C][C]0.248735511639476[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.56846153810469[/C][C]0.431538461895313[/C][/ROW]
[ROW][C]34[/C][C]7.7[/C][C]7.31195995750004[/C][C]0.388040042499964[/C][/ROW]
[ROW][C]35[/C][C]7.2[/C][C]7.20846153810469[/C][C]-0.00846153810468793[/C][/ROW]
[ROW][C]36[/C][C]7.5[/C][C]7.85207586902329[/C][C]-0.352075869023288[/C][/ROW]
[ROW][C]37[/C][C]7.3[/C][C]7.75541578827376[/C][C]-0.455415788273757[/C][/ROW]
[ROW][C]38[/C][C]7[/C][C]7.67226510344818[/C][C]-0.672265103448178[/C][/ROW]
[ROW][C]39[/C][C]7[/C][C]7.24369819066913[/C][C]-0.243698190669132[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]7.03757595672727[/C][C]-0.0375759567272731[/C][/ROW]
[ROW][C]41[/C][C]7.2[/C][C]7.25716499797144[/C][C]-0.057164997971444[/C][/ROW]
[ROW][C]42[/C][C]7.3[/C][C]7.29927247908777[/C][C]0.000727520912231643[/C][/ROW]
[ROW][C]43[/C][C]7.1[/C][C]7.24394055056453[/C][C]-0.143940550564531[/C][/ROW]
[ROW][C]44[/C][C]6.8[/C][C]7.45191736887842[/C][C]-0.651917368878422[/C][/ROW]
[ROW][C]45[/C][C]6.4[/C][C]6.97554223664592[/C][C]-0.575542236645916[/C][/ROW]
[ROW][C]46[/C][C]6.1[/C][C]6.8589774318552[/C][C]-0.758977431855192[/C][/ROW]
[ROW][C]47[/C][C]6.5[/C][C]6.81670135187844[/C][C]-0.316701351878436[/C][/ROW]
[ROW][C]48[/C][C]7.7[/C][C]7.41658544035518[/C][C]0.283414559644817[/C][/ROW]
[ROW][C]49[/C][C]7.9[/C][C]7.38989374751262[/C][C]0.510106252487384[/C][/ROW]
[ROW][C]50[/C][C]7.5[/C][C]7.37233842634982[/C][C]0.127661573650185[/C][/ROW]
[ROW][C]51[/C][C]6.9[/C][C]7.16679575002421[/C][C]-0.266795750024215[/C][/ROW]
[ROW][C]52[/C][C]6.6[/C][C]7.13559448584977[/C][C]-0.535594485849765[/C][/ROW]
[ROW][C]53[/C][C]6.9[/C][C]7.35955655133812[/C][C]-0.45955655133812[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]7.70340270530322[/C][C]-0.00340270530322409[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]7.73990428590788[/C][C]0.260095714092124[/C][/ROW]
[ROW][C]56[/C][C]8[/C][C]7.5236977525358[/C][C]0.476302247464198[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]7.57208552960552[/C][C]0.127914470394478[/C][/ROW]
[ROW][C]58[/C][C]7.3[/C][C]7.23249648836135[/C][C]0.0675035116386488[/C][/ROW]
[ROW][C]59[/C][C]7.4[/C][C]7.15086319018693[/C][C]0.249136809813071[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]7.61081050284975[/C][C]0.48918949715025[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58058&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58058&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
19.39.04002195305720.259978046942795
29.38.904394977301340.395605022698658
38.78.567661573650190.132338426349814
48.28.44899982459203-0.248999824592030
58.38.5811283809525-0.281128380952497
68.58.93809360765016-0.438093607650156
78.69.03144450342922-0.431444503429216
88.58.977039867092-0.477039867091993
98.28.58375219549901-0.383752195499008
108.18.39721900280132-0.297219002801319
117.98.14941078334786-0.249410783347860
128.68.82363628397576-0.223636283975755
138.78.83192878508667-0.131928785086671
148.78.573857130493680.126142869506320
158.58.438282842075050.0617171579249544
168.47.96103310499370.438966895006296
178.58.106280734086730.393719265913274
188.78.410769669854160.289230330145837
198.78.469136371679740.230863628320259
208.68.196080523133260.403919476866741
218.58.100158500144870.399841499855133
228.37.69934711948210.600652880517898
2387.674563136482090.325436863517912
248.28.39689190379602-0.196891903796023
258.18.28273972606975-0.182739726069751
268.18.077144362406980.0228556375930144
2787.683561643581420.316438356418579
287.97.516796627837230.383203372162772
297.97.495869335651210.404130664348787
3087.848461538104690.151538461895312
3187.915574288418640.0844257115813641
327.97.651264488360520.248735511639476
3387.568461538104690.431538461895313
347.77.311959957500040.388040042499964
357.27.20846153810469-0.00846153810468793
367.57.85207586902329-0.352075869023288
377.37.75541578827376-0.455415788273757
3877.67226510344818-0.672265103448178
3977.24369819066913-0.243698190669132
4077.03757595672727-0.0375759567272731
417.27.25716499797144-0.057164997971444
427.37.299272479087770.000727520912231643
437.17.24394055056453-0.143940550564531
446.87.45191736887842-0.651917368878422
456.46.97554223664592-0.575542236645916
466.16.8589774318552-0.758977431855192
476.56.81670135187844-0.316701351878436
487.77.416585440355180.283414559644817
497.97.389893747512620.510106252487384
507.57.372338426349820.127661573650185
516.97.16679575002421-0.266795750024215
526.67.13559448584977-0.535594485849765
536.97.35955655133812-0.45955655133812
547.77.70340270530322-0.00340270530322409
5587.739904285907880.260095714092124
5687.52369775253580.476302247464198
577.77.572085529605520.127914470394478
587.37.232496488361350.0675035116386488
597.47.150863190186930.249136809813071
608.17.610810502849750.48918949715025







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2288831995748390.4577663991496790.771116800425161
180.1078848807481690.2157697614963380.892115119251831
190.04868223044559690.09736446089119380.951317769554403
200.03366135426414610.06732270852829210.966338645735854
210.02267801099529990.04535602199059970.9773219890047
220.01085461130493050.02170922260986100.98914538869507
230.004547492454977220.009094984909954440.995452507545023
240.004542383953234410.009084767906468830.995457616046766
250.03546363947831310.07092727895662630.964536360521687
260.05400223387386880.1080044677477380.945997766126131
270.04835023741694680.09670047483389360.951649762583053
280.03193727275695000.06387454551389990.96806272724305
290.03085863794327450.0617172758865490.969141362056726
300.02153054231991420.04306108463982830.978469457680086
310.01478510470296760.02957020940593520.985214895297032
320.01281911652738920.02563823305477840.98718088347261
330.01440218616582460.02880437233164920.985597813834175
340.04329613076488810.08659226152977630.956703869235112
350.05413354712043170.1082670942408630.945866452879568
360.04447134523386570.08894269046773130.955528654766134
370.09110906553630410.1822181310726080.908890934463696
380.2262986106987530.4525972213975060.773701389301247
390.1889826084845580.3779652169691170.811017391515442
400.2441529244597420.4883058489194840.755847075540258
410.5084922982170970.9830154035658070.491507701782903
420.6180882234712930.7638235530574150.381911776528708
430.5182572694237540.963485461152490.481742730576246

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.228883199574839 & 0.457766399149679 & 0.771116800425161 \tabularnewline
18 & 0.107884880748169 & 0.215769761496338 & 0.892115119251831 \tabularnewline
19 & 0.0486822304455969 & 0.0973644608911938 & 0.951317769554403 \tabularnewline
20 & 0.0336613542641461 & 0.0673227085282921 & 0.966338645735854 \tabularnewline
21 & 0.0226780109952999 & 0.0453560219905997 & 0.9773219890047 \tabularnewline
22 & 0.0108546113049305 & 0.0217092226098610 & 0.98914538869507 \tabularnewline
23 & 0.00454749245497722 & 0.00909498490995444 & 0.995452507545023 \tabularnewline
24 & 0.00454238395323441 & 0.00908476790646883 & 0.995457616046766 \tabularnewline
25 & 0.0354636394783131 & 0.0709272789566263 & 0.964536360521687 \tabularnewline
26 & 0.0540022338738688 & 0.108004467747738 & 0.945997766126131 \tabularnewline
27 & 0.0483502374169468 & 0.0967004748338936 & 0.951649762583053 \tabularnewline
28 & 0.0319372727569500 & 0.0638745455138999 & 0.96806272724305 \tabularnewline
29 & 0.0308586379432745 & 0.061717275886549 & 0.969141362056726 \tabularnewline
30 & 0.0215305423199142 & 0.0430610846398283 & 0.978469457680086 \tabularnewline
31 & 0.0147851047029676 & 0.0295702094059352 & 0.985214895297032 \tabularnewline
32 & 0.0128191165273892 & 0.0256382330547784 & 0.98718088347261 \tabularnewline
33 & 0.0144021861658246 & 0.0288043723316492 & 0.985597813834175 \tabularnewline
34 & 0.0432961307648881 & 0.0865922615297763 & 0.956703869235112 \tabularnewline
35 & 0.0541335471204317 & 0.108267094240863 & 0.945866452879568 \tabularnewline
36 & 0.0444713452338657 & 0.0889426904677313 & 0.955528654766134 \tabularnewline
37 & 0.0911090655363041 & 0.182218131072608 & 0.908890934463696 \tabularnewline
38 & 0.226298610698753 & 0.452597221397506 & 0.773701389301247 \tabularnewline
39 & 0.188982608484558 & 0.377965216969117 & 0.811017391515442 \tabularnewline
40 & 0.244152924459742 & 0.488305848919484 & 0.755847075540258 \tabularnewline
41 & 0.508492298217097 & 0.983015403565807 & 0.491507701782903 \tabularnewline
42 & 0.618088223471293 & 0.763823553057415 & 0.381911776528708 \tabularnewline
43 & 0.518257269423754 & 0.96348546115249 & 0.481742730576246 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58058&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.228883199574839[/C][C]0.457766399149679[/C][C]0.771116800425161[/C][/ROW]
[ROW][C]18[/C][C]0.107884880748169[/C][C]0.215769761496338[/C][C]0.892115119251831[/C][/ROW]
[ROW][C]19[/C][C]0.0486822304455969[/C][C]0.0973644608911938[/C][C]0.951317769554403[/C][/ROW]
[ROW][C]20[/C][C]0.0336613542641461[/C][C]0.0673227085282921[/C][C]0.966338645735854[/C][/ROW]
[ROW][C]21[/C][C]0.0226780109952999[/C][C]0.0453560219905997[/C][C]0.9773219890047[/C][/ROW]
[ROW][C]22[/C][C]0.0108546113049305[/C][C]0.0217092226098610[/C][C]0.98914538869507[/C][/ROW]
[ROW][C]23[/C][C]0.00454749245497722[/C][C]0.00909498490995444[/C][C]0.995452507545023[/C][/ROW]
[ROW][C]24[/C][C]0.00454238395323441[/C][C]0.00908476790646883[/C][C]0.995457616046766[/C][/ROW]
[ROW][C]25[/C][C]0.0354636394783131[/C][C]0.0709272789566263[/C][C]0.964536360521687[/C][/ROW]
[ROW][C]26[/C][C]0.0540022338738688[/C][C]0.108004467747738[/C][C]0.945997766126131[/C][/ROW]
[ROW][C]27[/C][C]0.0483502374169468[/C][C]0.0967004748338936[/C][C]0.951649762583053[/C][/ROW]
[ROW][C]28[/C][C]0.0319372727569500[/C][C]0.0638745455138999[/C][C]0.96806272724305[/C][/ROW]
[ROW][C]29[/C][C]0.0308586379432745[/C][C]0.061717275886549[/C][C]0.969141362056726[/C][/ROW]
[ROW][C]30[/C][C]0.0215305423199142[/C][C]0.0430610846398283[/C][C]0.978469457680086[/C][/ROW]
[ROW][C]31[/C][C]0.0147851047029676[/C][C]0.0295702094059352[/C][C]0.985214895297032[/C][/ROW]
[ROW][C]32[/C][C]0.0128191165273892[/C][C]0.0256382330547784[/C][C]0.98718088347261[/C][/ROW]
[ROW][C]33[/C][C]0.0144021861658246[/C][C]0.0288043723316492[/C][C]0.985597813834175[/C][/ROW]
[ROW][C]34[/C][C]0.0432961307648881[/C][C]0.0865922615297763[/C][C]0.956703869235112[/C][/ROW]
[ROW][C]35[/C][C]0.0541335471204317[/C][C]0.108267094240863[/C][C]0.945866452879568[/C][/ROW]
[ROW][C]36[/C][C]0.0444713452338657[/C][C]0.0889426904677313[/C][C]0.955528654766134[/C][/ROW]
[ROW][C]37[/C][C]0.0911090655363041[/C][C]0.182218131072608[/C][C]0.908890934463696[/C][/ROW]
[ROW][C]38[/C][C]0.226298610698753[/C][C]0.452597221397506[/C][C]0.773701389301247[/C][/ROW]
[ROW][C]39[/C][C]0.188982608484558[/C][C]0.377965216969117[/C][C]0.811017391515442[/C][/ROW]
[ROW][C]40[/C][C]0.244152924459742[/C][C]0.488305848919484[/C][C]0.755847075540258[/C][/ROW]
[ROW][C]41[/C][C]0.508492298217097[/C][C]0.983015403565807[/C][C]0.491507701782903[/C][/ROW]
[ROW][C]42[/C][C]0.618088223471293[/C][C]0.763823553057415[/C][C]0.381911776528708[/C][/ROW]
[ROW][C]43[/C][C]0.518257269423754[/C][C]0.96348546115249[/C][C]0.481742730576246[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58058&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2288831995748390.4577663991496790.771116800425161
180.1078848807481690.2157697614963380.892115119251831
190.04868223044559690.09736446089119380.951317769554403
200.03366135426414610.06732270852829210.966338645735854
210.02267801099529990.04535602199059970.9773219890047
220.01085461130493050.02170922260986100.98914538869507
230.004547492454977220.009094984909954440.995452507545023
240.004542383953234410.009084767906468830.995457616046766
250.03546363947831310.07092727895662630.964536360521687
260.05400223387386880.1080044677477380.945997766126131
270.04835023741694680.09670047483389360.951649762583053
280.03193727275695000.06387454551389990.96806272724305
290.03085863794327450.0617172758865490.969141362056726
300.02153054231991420.04306108463982830.978469457680086
310.01478510470296760.02957020940593520.985214895297032
320.01281911652738920.02563823305477840.98718088347261
330.01440218616582460.02880437233164920.985597813834175
340.04329613076488810.08659226152977630.956703869235112
350.05413354712043170.1082670942408630.945866452879568
360.04447134523386570.08894269046773130.955528654766134
370.09110906553630410.1822181310726080.908890934463696
380.2262986106987530.4525972213975060.773701389301247
390.1889826084845580.3779652169691170.811017391515442
400.2441529244597420.4883058489194840.755847075540258
410.5084922982170970.9830154035658070.491507701782903
420.6180882234712930.7638235530574150.381911776528708
430.5182572694237540.963485461152490.481742730576246







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0740740740740741NOK
5% type I error level80.296296296296296NOK
10% type I error level160.592592592592593NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58058&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 level20.0740740740740741NOK
5% type I error level80.296296296296296NOK
10% type I error level160.592592592592593NOK



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