Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSat, 28 Nov 2009 01:23:38 -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/28/t1259396690nty8d6xsrioti6w.htm/, Retrieved Sat, 27 Apr 2024 10:16:54 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61370, Retrieved Sat, 27 Apr 2024 10:16:54 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact175
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [Workshop 7] [2009-11-19 16:33:52] [85be98bd9ebcfd4d73e77f8552419c9a]
-    D      [Multiple Regression] [1e link] [2009-11-20 15:40:59] [4fe1472705bb0a32f118ba3ca90ffa8e]
-   PD          [Multiple Regression] [4e link] [2009-11-28 08:23:38] [ee8fc1691ecec7724e0ca78f0c288737] [Current]
Feedback Forum

Post a new message
Dataseries X:
140.4	139.5	138.1	136.7	130	0
144.6	140.4	139.5	138.1	136.7	0
151.4	144.6	140.4	139.5	138.1	0
147.9	151.4	144.6	140.4	139.5	0
141.5	147.9	151.4	144.6	140.4	0
143.8	141.5	147.9	151.4	144.6	0
143.6	143.8	141.5	147.9	151.4	0
150.5	143.6	143.8	141.5	147.9	0
150.1	150.5	143.6	143.8	141.5	0
154.9	150.1	150.5	143.6	143.8	0
162.1	154.9	150.1	150.5	143.6	0
176.7	162.1	154.9	150.1	150.5	0
186.6	176.7	162.1	154.9	150.1	0
194.8	186.6	176.7	162.1	154.9	0
196.3	194.8	186.6	176.7	162.1	0
228.8	196.3	194.8	186.6	176.7	0
267.2	228.8	196.3	194.8	186.6	0
237.2	267.2	228.8	196.3	194.8	0
254.7	237.2	267.2	228.8	196.3	0
258.2	254.7	237.2	267.2	228.8	0
257.9	258.2	254.7	237.2	267.2	0
269.6	257.9	258.2	254.7	237.2	0
266.9	269.6	257.9	258.2	254.7	0
269.6	266.9	269.6	257.9	258.2	0
253.9	269.6	266.9	269.6	257.9	0
258.6	253.9	269.6	266.9	269.6	0
274.2	258.6	253.9	269.6	266.9	0
301.5	274.2	258.6	253.9	269.6	0
304.5	301.5	274.2	258.6	253.9	0
285.1	304.5	301.5	274.2	258.6	0
287.7	285.1	304.5	301.5	274.2	0
265.5	287.7	285.1	304.5	301.5	0
264.1	265.5	287.7	285.1	304.5	0
276.1	264.1	265.5	287.7	285.1	0
258.9	276.1	264.1	265.5	287.7	0
239.1	258.9	276.1	264.1	265.5	0
250.1	239.1	258.9	276.1	264.1	1
276.8	250.1	239.1	258.9	276.1	1
297.6	276.8	250.1	239.1	258.9	1
295.4	297.6	276.8	250.1	239.1	1
283	295.4	297.6	276.8	250.1	1
275.8	283	295.4	297.6	276.8	1
279.7	275.8	283	295.4	297.6	1
254.6	279.7	275.8	283	295.4	1
234.6	254.6	279.7	275.8	283	1
176.9	234.6	254.6	279.7	275.8	1
148.1	176.9	234.6	254.6	279.7	1
122.7	148.1	176.9	234.6	254.6	1
124.9	122.7	148.1	176.9	234.6	1
121.6	124.9	122.7	148.1	176.9	1
128.4	121.6	124.9	122.7	148.1	1
144.5	128.4	121.6	124.9	122.7	1
151.8	144.5	128.4	121.6	124.9	1
167.1	151.8	144.5	128.4	121.6	1
173.8	167.1	151.8	144.5	128.4	1
203.7	173.8	167.1	151.8	144.5	1
199.8	203.7	173.8	167.1	151.8	1




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

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







Multiple Linear Regression - Estimated Regression Equation
Y(t)[t] = + 7.29385563015886 + 1.16542650415886`Y(t-1)`[t] -0.129112947395121`Y(t-2)`[t] -0.0368990439218969`Y(t-3)`[t] -0.070065492642836`Y(t-4)`[t] -9.6442854673581`X(t)`[t] + 8.60005373467613M1[t] + 13.2524044882671M2[t] + 13.3517695343097M3[t] + 15.9060791381124M4[t] + 7.05102777228139M5[t] -5.17540387752344M6[t] + 11.8092378520582M7[t] + 3.27991340720070M8[t] + 0.412761016381833M9[t] -0.38427936608232M10[t] -3.10603649820027M11[t] + 0.217517579164888t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y(t)[t] =  +  7.29385563015886 +  1.16542650415886`Y(t-1)`[t] -0.129112947395121`Y(t-2)`[t] -0.0368990439218969`Y(t-3)`[t] -0.070065492642836`Y(t-4)`[t] -9.6442854673581`X(t)`[t] +  8.60005373467613M1[t] +  13.2524044882671M2[t] +  13.3517695343097M3[t] +  15.9060791381124M4[t] +  7.05102777228139M5[t] -5.17540387752344M6[t] +  11.8092378520582M7[t] +  3.27991340720070M8[t] +  0.412761016381833M9[t] -0.38427936608232M10[t] -3.10603649820027M11[t] +  0.217517579164888t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61370&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y(t)[t] =  +  7.29385563015886 +  1.16542650415886`Y(t-1)`[t] -0.129112947395121`Y(t-2)`[t] -0.0368990439218969`Y(t-3)`[t] -0.070065492642836`Y(t-4)`[t] -9.6442854673581`X(t)`[t] +  8.60005373467613M1[t] +  13.2524044882671M2[t] +  13.3517695343097M3[t] +  15.9060791381124M4[t] +  7.05102777228139M5[t] -5.17540387752344M6[t] +  11.8092378520582M7[t] +  3.27991340720070M8[t] +  0.412761016381833M9[t] -0.38427936608232M10[t] -3.10603649820027M11[t] +  0.217517579164888t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61370&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61370&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)[t] = + 7.29385563015886 + 1.16542650415886`Y(t-1)`[t] -0.129112947395121`Y(t-2)`[t] -0.0368990439218969`Y(t-3)`[t] -0.070065492642836`Y(t-4)`[t] -9.6442854673581`X(t)`[t] + 8.60005373467613M1[t] + 13.2524044882671M2[t] + 13.3517695343097M3[t] + 15.9060791381124M4[t] + 7.05102777228139M5[t] -5.17540387752344M6[t] + 11.8092378520582M7[t] + 3.27991340720070M8[t] + 0.412761016381833M9[t] -0.38427936608232M10[t] -3.10603649820027M11[t] + 0.217517579164888t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)7.2938556301588612.2874070.59360.5562040.278102
`Y(t-1)`1.165426504158860.1619987.194100
`Y(t-2)`-0.1291129473951210.256751-0.50290.6178830.308941
`Y(t-3)`-0.03689904392189690.265336-0.13910.8901140.445057
`Y(t-4)`-0.0700654926428360.170284-0.41150.6829860.341493
`X(t)`-9.64428546735819.799208-0.98420.3310890.165544
M18.6000537346761311.5184150.74660.4597610.229881
M213.252404488267111.6309621.13940.2614830.130742
M313.351769534309711.8351171.12810.266150.133075
M415.906079138112411.9998061.32550.1927090.096354
M57.0510277722813912.2435330.57590.5679930.283996
M6-5.1754038775234412.130701-0.42660.671990.335995
M711.809237852058211.8268930.99850.3241890.162094
M83.2799134072007011.7127460.280.7809350.390467
M90.41276101638183311.5757290.03570.9717370.485869
M10-0.3842793660823212.000398-0.0320.9746180.487309
M11-3.1060364982002711.849186-0.26210.79460.3973
t0.2175175791648880.291440.74640.4599290.229964

\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) & 7.29385563015886 & 12.287407 & 0.5936 & 0.556204 & 0.278102 \tabularnewline
`Y(t-1)` & 1.16542650415886 & 0.161998 & 7.1941 & 0 & 0 \tabularnewline
`Y(t-2)` & -0.129112947395121 & 0.256751 & -0.5029 & 0.617883 & 0.308941 \tabularnewline
`Y(t-3)` & -0.0368990439218969 & 0.265336 & -0.1391 & 0.890114 & 0.445057 \tabularnewline
`Y(t-4)` & -0.070065492642836 & 0.170284 & -0.4115 & 0.682986 & 0.341493 \tabularnewline
`X(t)` & -9.6442854673581 & 9.799208 & -0.9842 & 0.331089 & 0.165544 \tabularnewline
M1 & 8.60005373467613 & 11.518415 & 0.7466 & 0.459761 & 0.229881 \tabularnewline
M2 & 13.2524044882671 & 11.630962 & 1.1394 & 0.261483 & 0.130742 \tabularnewline
M3 & 13.3517695343097 & 11.835117 & 1.1281 & 0.26615 & 0.133075 \tabularnewline
M4 & 15.9060791381124 & 11.999806 & 1.3255 & 0.192709 & 0.096354 \tabularnewline
M5 & 7.05102777228139 & 12.243533 & 0.5759 & 0.567993 & 0.283996 \tabularnewline
M6 & -5.17540387752344 & 12.130701 & -0.4266 & 0.67199 & 0.335995 \tabularnewline
M7 & 11.8092378520582 & 11.826893 & 0.9985 & 0.324189 & 0.162094 \tabularnewline
M8 & 3.27991340720070 & 11.712746 & 0.28 & 0.780935 & 0.390467 \tabularnewline
M9 & 0.412761016381833 & 11.575729 & 0.0357 & 0.971737 & 0.485869 \tabularnewline
M10 & -0.38427936608232 & 12.000398 & -0.032 & 0.974618 & 0.487309 \tabularnewline
M11 & -3.10603649820027 & 11.849186 & -0.2621 & 0.7946 & 0.3973 \tabularnewline
t & 0.217517579164888 & 0.29144 & 0.7464 & 0.459929 & 0.229964 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61370&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]7.29385563015886[/C][C]12.287407[/C][C]0.5936[/C][C]0.556204[/C][C]0.278102[/C][/ROW]
[ROW][C]`Y(t-1)`[/C][C]1.16542650415886[/C][C]0.161998[/C][C]7.1941[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]`Y(t-2)`[/C][C]-0.129112947395121[/C][C]0.256751[/C][C]-0.5029[/C][C]0.617883[/C][C]0.308941[/C][/ROW]
[ROW][C]`Y(t-3)`[/C][C]-0.0368990439218969[/C][C]0.265336[/C][C]-0.1391[/C][C]0.890114[/C][C]0.445057[/C][/ROW]
[ROW][C]`Y(t-4)`[/C][C]-0.070065492642836[/C][C]0.170284[/C][C]-0.4115[/C][C]0.682986[/C][C]0.341493[/C][/ROW]
[ROW][C]`X(t)`[/C][C]-9.6442854673581[/C][C]9.799208[/C][C]-0.9842[/C][C]0.331089[/C][C]0.165544[/C][/ROW]
[ROW][C]M1[/C][C]8.60005373467613[/C][C]11.518415[/C][C]0.7466[/C][C]0.459761[/C][C]0.229881[/C][/ROW]
[ROW][C]M2[/C][C]13.2524044882671[/C][C]11.630962[/C][C]1.1394[/C][C]0.261483[/C][C]0.130742[/C][/ROW]
[ROW][C]M3[/C][C]13.3517695343097[/C][C]11.835117[/C][C]1.1281[/C][C]0.26615[/C][C]0.133075[/C][/ROW]
[ROW][C]M4[/C][C]15.9060791381124[/C][C]11.999806[/C][C]1.3255[/C][C]0.192709[/C][C]0.096354[/C][/ROW]
[ROW][C]M5[/C][C]7.05102777228139[/C][C]12.243533[/C][C]0.5759[/C][C]0.567993[/C][C]0.283996[/C][/ROW]
[ROW][C]M6[/C][C]-5.17540387752344[/C][C]12.130701[/C][C]-0.4266[/C][C]0.67199[/C][C]0.335995[/C][/ROW]
[ROW][C]M7[/C][C]11.8092378520582[/C][C]11.826893[/C][C]0.9985[/C][C]0.324189[/C][C]0.162094[/C][/ROW]
[ROW][C]M8[/C][C]3.27991340720070[/C][C]11.712746[/C][C]0.28[/C][C]0.780935[/C][C]0.390467[/C][/ROW]
[ROW][C]M9[/C][C]0.412761016381833[/C][C]11.575729[/C][C]0.0357[/C][C]0.971737[/C][C]0.485869[/C][/ROW]
[ROW][C]M10[/C][C]-0.38427936608232[/C][C]12.000398[/C][C]-0.032[/C][C]0.974618[/C][C]0.487309[/C][/ROW]
[ROW][C]M11[/C][C]-3.10603649820027[/C][C]11.849186[/C][C]-0.2621[/C][C]0.7946[/C][C]0.3973[/C][/ROW]
[ROW][C]t[/C][C]0.217517579164888[/C][C]0.29144[/C][C]0.7464[/C][C]0.459929[/C][C]0.229964[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61370&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61370&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)7.2938556301588612.2874070.59360.5562040.278102
`Y(t-1)`1.165426504158860.1619987.194100
`Y(t-2)`-0.1291129473951210.256751-0.50290.6178830.308941
`Y(t-3)`-0.03689904392189690.265336-0.13910.8901140.445057
`Y(t-4)`-0.0700654926428360.170284-0.41150.6829860.341493
`X(t)`-9.64428546735819.799208-0.98420.3310890.165544
M18.6000537346761311.5184150.74660.4597610.229881
M213.252404488267111.6309621.13940.2614830.130742
M313.351769534309711.8351171.12810.266150.133075
M415.906079138112411.9998061.32550.1927090.096354
M57.0510277722813912.2435330.57590.5679930.283996
M6-5.1754038775234412.130701-0.42660.671990.335995
M711.809237852058211.8268930.99850.3241890.162094
M83.2799134072007011.7127460.280.7809350.390467
M90.41276101638183311.5757290.03570.9717370.485869
M10-0.3842793660823212.000398-0.0320.9746180.487309
M11-3.1060364982002711.849186-0.26210.79460.3973
t0.2175175791648880.291440.74640.4599290.229964







Multiple Linear Regression - Regression Statistics
Multiple R0.972300937502626
R-squared0.945369113068485
Adjusted R-squared0.921555649534235
F-TEST (value)39.6989338282856
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.6752372297033
Sum Squared Residuals10844.4779300084

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.972300937502626 \tabularnewline
R-squared & 0.945369113068485 \tabularnewline
Adjusted R-squared & 0.921555649534235 \tabularnewline
F-TEST (value) & 39.6989338282856 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 16.6752372297033 \tabularnewline
Sum Squared Residuals & 10844.4779300084 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61370&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.972300937502626[/C][/ROW]
[ROW][C]R-squared[/C][C]0.945369113068485[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.921555649534235[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]39.6989338282856[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]16.6752372297033[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]10844.4779300084[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61370&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61370&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.972300937502626
R-squared0.945369113068485
Adjusted R-squared0.921555649534235
F-TEST (value)39.6989338282856
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.6752372297033
Sum Squared Residuals10844.4779300084







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1140.4146.705312891202-6.30531289120248
2144.6151.922209489150-7.32220948915017
3151.4156.867931427979-5.46793142797879
4147.9166.891083630937-18.9910836309374
5141.5153.078554109578-11.5785541095779
6143.8133.51761716043510.2823828395646
7143.6153.879281595831-10.2792815958315
8150.5145.5188127556484.98118724435165
9150.1151.299994764063-1.19999476406328
10154.9149.209651197785.69034880221999
11162.1152.1105137392159.989486260785
12176.7162.73670421736113.9632957826394
13186.6187.490800056908-0.890800056908018
14194.8201.411354267945-6.61135426794451
15196.3208.963318459755-12.6633184597549
16228.8211.03630250290917.7636974970915
17267.2239.08524014298928.1147598570110
18237.2267.002647436154-29.8026474361536
19254.7242.97975727373611.7202427262642
20258.2255.2422508551842.95774914481612
21257.9252.8285886288435.07141137115671
22269.6252.90377406906516.6962259309347
23266.9262.7184657240134.18153427598678
24269.6261.1505872445538.44941275544693
25253.9273.052715911497-19.1527159114966
26258.6258.5566443256590.0433556743405659
27274.2266.4676542060647.73234579393643
28301.5287.20344216059014.2965578394097
29304.5309.294492686157-4.79449268615674
30285.1296.352141763504-11.2521417635036
31287.7288.457322465087-0.75732246508697
32265.5283.656930608758-18.1569306087576
33264.1255.3047787157068.79522128429407
34276.1257.2232992818318.8767007181699
35258.9269.521924399331-10.6219243993313
36239.1252.857899834584-13.7578998345841
37250.1230.83178675655519.268213243445
38276.8250.87166063722425.9283393627757
39297.6282.82091604523714.7790839547627
40295.4307.367706090447-11.9677060904467
41283291.724759797027-8.72475979702665
42275.8262.91035679194712.8896432080530
43279.7271.9462614681067.75373853189355
44254.6269.720923418324-15.120923418324
45234.6238.450028082451-3.85002808245054
46176.9218.163275451325-41.2632754513247
47148.1151.649096137441-3.54909613744054
48122.7131.354808703502-8.6548087035022
49124.9117.8193843838387.08061561616208
50121.6133.638131280022-12.0381312800216
51128.4132.780179860965-4.38017986096548
52144.5145.601465615117-1.10146561511707
53151.8154.816953264250-3.01695326424972
54167.1149.21723684796017.8827631520395
55173.8182.237377197239-8.43737719723928
56203.7178.36108236208625.3389176379138
57199.8208.616609808937-8.81660980893696

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 140.4 & 146.705312891202 & -6.30531289120248 \tabularnewline
2 & 144.6 & 151.922209489150 & -7.32220948915017 \tabularnewline
3 & 151.4 & 156.867931427979 & -5.46793142797879 \tabularnewline
4 & 147.9 & 166.891083630937 & -18.9910836309374 \tabularnewline
5 & 141.5 & 153.078554109578 & -11.5785541095779 \tabularnewline
6 & 143.8 & 133.517617160435 & 10.2823828395646 \tabularnewline
7 & 143.6 & 153.879281595831 & -10.2792815958315 \tabularnewline
8 & 150.5 & 145.518812755648 & 4.98118724435165 \tabularnewline
9 & 150.1 & 151.299994764063 & -1.19999476406328 \tabularnewline
10 & 154.9 & 149.20965119778 & 5.69034880221999 \tabularnewline
11 & 162.1 & 152.110513739215 & 9.989486260785 \tabularnewline
12 & 176.7 & 162.736704217361 & 13.9632957826394 \tabularnewline
13 & 186.6 & 187.490800056908 & -0.890800056908018 \tabularnewline
14 & 194.8 & 201.411354267945 & -6.61135426794451 \tabularnewline
15 & 196.3 & 208.963318459755 & -12.6633184597549 \tabularnewline
16 & 228.8 & 211.036302502909 & 17.7636974970915 \tabularnewline
17 & 267.2 & 239.085240142989 & 28.1147598570110 \tabularnewline
18 & 237.2 & 267.002647436154 & -29.8026474361536 \tabularnewline
19 & 254.7 & 242.979757273736 & 11.7202427262642 \tabularnewline
20 & 258.2 & 255.242250855184 & 2.95774914481612 \tabularnewline
21 & 257.9 & 252.828588628843 & 5.07141137115671 \tabularnewline
22 & 269.6 & 252.903774069065 & 16.6962259309347 \tabularnewline
23 & 266.9 & 262.718465724013 & 4.18153427598678 \tabularnewline
24 & 269.6 & 261.150587244553 & 8.44941275544693 \tabularnewline
25 & 253.9 & 273.052715911497 & -19.1527159114966 \tabularnewline
26 & 258.6 & 258.556644325659 & 0.0433556743405659 \tabularnewline
27 & 274.2 & 266.467654206064 & 7.73234579393643 \tabularnewline
28 & 301.5 & 287.203442160590 & 14.2965578394097 \tabularnewline
29 & 304.5 & 309.294492686157 & -4.79449268615674 \tabularnewline
30 & 285.1 & 296.352141763504 & -11.2521417635036 \tabularnewline
31 & 287.7 & 288.457322465087 & -0.75732246508697 \tabularnewline
32 & 265.5 & 283.656930608758 & -18.1569306087576 \tabularnewline
33 & 264.1 & 255.304778715706 & 8.79522128429407 \tabularnewline
34 & 276.1 & 257.22329928183 & 18.8767007181699 \tabularnewline
35 & 258.9 & 269.521924399331 & -10.6219243993313 \tabularnewline
36 & 239.1 & 252.857899834584 & -13.7578998345841 \tabularnewline
37 & 250.1 & 230.831786756555 & 19.268213243445 \tabularnewline
38 & 276.8 & 250.871660637224 & 25.9283393627757 \tabularnewline
39 & 297.6 & 282.820916045237 & 14.7790839547627 \tabularnewline
40 & 295.4 & 307.367706090447 & -11.9677060904467 \tabularnewline
41 & 283 & 291.724759797027 & -8.72475979702665 \tabularnewline
42 & 275.8 & 262.910356791947 & 12.8896432080530 \tabularnewline
43 & 279.7 & 271.946261468106 & 7.75373853189355 \tabularnewline
44 & 254.6 & 269.720923418324 & -15.120923418324 \tabularnewline
45 & 234.6 & 238.450028082451 & -3.85002808245054 \tabularnewline
46 & 176.9 & 218.163275451325 & -41.2632754513247 \tabularnewline
47 & 148.1 & 151.649096137441 & -3.54909613744054 \tabularnewline
48 & 122.7 & 131.354808703502 & -8.6548087035022 \tabularnewline
49 & 124.9 & 117.819384383838 & 7.08061561616208 \tabularnewline
50 & 121.6 & 133.638131280022 & -12.0381312800216 \tabularnewline
51 & 128.4 & 132.780179860965 & -4.38017986096548 \tabularnewline
52 & 144.5 & 145.601465615117 & -1.10146561511707 \tabularnewline
53 & 151.8 & 154.816953264250 & -3.01695326424972 \tabularnewline
54 & 167.1 & 149.217236847960 & 17.8827631520395 \tabularnewline
55 & 173.8 & 182.237377197239 & -8.43737719723928 \tabularnewline
56 & 203.7 & 178.361082362086 & 25.3389176379138 \tabularnewline
57 & 199.8 & 208.616609808937 & -8.81660980893696 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61370&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]140.4[/C][C]146.705312891202[/C][C]-6.30531289120248[/C][/ROW]
[ROW][C]2[/C][C]144.6[/C][C]151.922209489150[/C][C]-7.32220948915017[/C][/ROW]
[ROW][C]3[/C][C]151.4[/C][C]156.867931427979[/C][C]-5.46793142797879[/C][/ROW]
[ROW][C]4[/C][C]147.9[/C][C]166.891083630937[/C][C]-18.9910836309374[/C][/ROW]
[ROW][C]5[/C][C]141.5[/C][C]153.078554109578[/C][C]-11.5785541095779[/C][/ROW]
[ROW][C]6[/C][C]143.8[/C][C]133.517617160435[/C][C]10.2823828395646[/C][/ROW]
[ROW][C]7[/C][C]143.6[/C][C]153.879281595831[/C][C]-10.2792815958315[/C][/ROW]
[ROW][C]8[/C][C]150.5[/C][C]145.518812755648[/C][C]4.98118724435165[/C][/ROW]
[ROW][C]9[/C][C]150.1[/C][C]151.299994764063[/C][C]-1.19999476406328[/C][/ROW]
[ROW][C]10[/C][C]154.9[/C][C]149.20965119778[/C][C]5.69034880221999[/C][/ROW]
[ROW][C]11[/C][C]162.1[/C][C]152.110513739215[/C][C]9.989486260785[/C][/ROW]
[ROW][C]12[/C][C]176.7[/C][C]162.736704217361[/C][C]13.9632957826394[/C][/ROW]
[ROW][C]13[/C][C]186.6[/C][C]187.490800056908[/C][C]-0.890800056908018[/C][/ROW]
[ROW][C]14[/C][C]194.8[/C][C]201.411354267945[/C][C]-6.61135426794451[/C][/ROW]
[ROW][C]15[/C][C]196.3[/C][C]208.963318459755[/C][C]-12.6633184597549[/C][/ROW]
[ROW][C]16[/C][C]228.8[/C][C]211.036302502909[/C][C]17.7636974970915[/C][/ROW]
[ROW][C]17[/C][C]267.2[/C][C]239.085240142989[/C][C]28.1147598570110[/C][/ROW]
[ROW][C]18[/C][C]237.2[/C][C]267.002647436154[/C][C]-29.8026474361536[/C][/ROW]
[ROW][C]19[/C][C]254.7[/C][C]242.979757273736[/C][C]11.7202427262642[/C][/ROW]
[ROW][C]20[/C][C]258.2[/C][C]255.242250855184[/C][C]2.95774914481612[/C][/ROW]
[ROW][C]21[/C][C]257.9[/C][C]252.828588628843[/C][C]5.07141137115671[/C][/ROW]
[ROW][C]22[/C][C]269.6[/C][C]252.903774069065[/C][C]16.6962259309347[/C][/ROW]
[ROW][C]23[/C][C]266.9[/C][C]262.718465724013[/C][C]4.18153427598678[/C][/ROW]
[ROW][C]24[/C][C]269.6[/C][C]261.150587244553[/C][C]8.44941275544693[/C][/ROW]
[ROW][C]25[/C][C]253.9[/C][C]273.052715911497[/C][C]-19.1527159114966[/C][/ROW]
[ROW][C]26[/C][C]258.6[/C][C]258.556644325659[/C][C]0.0433556743405659[/C][/ROW]
[ROW][C]27[/C][C]274.2[/C][C]266.467654206064[/C][C]7.73234579393643[/C][/ROW]
[ROW][C]28[/C][C]301.5[/C][C]287.203442160590[/C][C]14.2965578394097[/C][/ROW]
[ROW][C]29[/C][C]304.5[/C][C]309.294492686157[/C][C]-4.79449268615674[/C][/ROW]
[ROW][C]30[/C][C]285.1[/C][C]296.352141763504[/C][C]-11.2521417635036[/C][/ROW]
[ROW][C]31[/C][C]287.7[/C][C]288.457322465087[/C][C]-0.75732246508697[/C][/ROW]
[ROW][C]32[/C][C]265.5[/C][C]283.656930608758[/C][C]-18.1569306087576[/C][/ROW]
[ROW][C]33[/C][C]264.1[/C][C]255.304778715706[/C][C]8.79522128429407[/C][/ROW]
[ROW][C]34[/C][C]276.1[/C][C]257.22329928183[/C][C]18.8767007181699[/C][/ROW]
[ROW][C]35[/C][C]258.9[/C][C]269.521924399331[/C][C]-10.6219243993313[/C][/ROW]
[ROW][C]36[/C][C]239.1[/C][C]252.857899834584[/C][C]-13.7578998345841[/C][/ROW]
[ROW][C]37[/C][C]250.1[/C][C]230.831786756555[/C][C]19.268213243445[/C][/ROW]
[ROW][C]38[/C][C]276.8[/C][C]250.871660637224[/C][C]25.9283393627757[/C][/ROW]
[ROW][C]39[/C][C]297.6[/C][C]282.820916045237[/C][C]14.7790839547627[/C][/ROW]
[ROW][C]40[/C][C]295.4[/C][C]307.367706090447[/C][C]-11.9677060904467[/C][/ROW]
[ROW][C]41[/C][C]283[/C][C]291.724759797027[/C][C]-8.72475979702665[/C][/ROW]
[ROW][C]42[/C][C]275.8[/C][C]262.910356791947[/C][C]12.8896432080530[/C][/ROW]
[ROW][C]43[/C][C]279.7[/C][C]271.946261468106[/C][C]7.75373853189355[/C][/ROW]
[ROW][C]44[/C][C]254.6[/C][C]269.720923418324[/C][C]-15.120923418324[/C][/ROW]
[ROW][C]45[/C][C]234.6[/C][C]238.450028082451[/C][C]-3.85002808245054[/C][/ROW]
[ROW][C]46[/C][C]176.9[/C][C]218.163275451325[/C][C]-41.2632754513247[/C][/ROW]
[ROW][C]47[/C][C]148.1[/C][C]151.649096137441[/C][C]-3.54909613744054[/C][/ROW]
[ROW][C]48[/C][C]122.7[/C][C]131.354808703502[/C][C]-8.6548087035022[/C][/ROW]
[ROW][C]49[/C][C]124.9[/C][C]117.819384383838[/C][C]7.08061561616208[/C][/ROW]
[ROW][C]50[/C][C]121.6[/C][C]133.638131280022[/C][C]-12.0381312800216[/C][/ROW]
[ROW][C]51[/C][C]128.4[/C][C]132.780179860965[/C][C]-4.38017986096548[/C][/ROW]
[ROW][C]52[/C][C]144.5[/C][C]145.601465615117[/C][C]-1.10146561511707[/C][/ROW]
[ROW][C]53[/C][C]151.8[/C][C]154.816953264250[/C][C]-3.01695326424972[/C][/ROW]
[ROW][C]54[/C][C]167.1[/C][C]149.217236847960[/C][C]17.8827631520395[/C][/ROW]
[ROW][C]55[/C][C]173.8[/C][C]182.237377197239[/C][C]-8.43737719723928[/C][/ROW]
[ROW][C]56[/C][C]203.7[/C][C]178.361082362086[/C][C]25.3389176379138[/C][/ROW]
[ROW][C]57[/C][C]199.8[/C][C]208.616609808937[/C][C]-8.81660980893696[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61370&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61370&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
1140.4146.705312891202-6.30531289120248
2144.6151.922209489150-7.32220948915017
3151.4156.867931427979-5.46793142797879
4147.9166.891083630937-18.9910836309374
5141.5153.078554109578-11.5785541095779
6143.8133.51761716043510.2823828395646
7143.6153.879281595831-10.2792815958315
8150.5145.5188127556484.98118724435165
9150.1151.299994764063-1.19999476406328
10154.9149.209651197785.69034880221999
11162.1152.1105137392159.989486260785
12176.7162.73670421736113.9632957826394
13186.6187.490800056908-0.890800056908018
14194.8201.411354267945-6.61135426794451
15196.3208.963318459755-12.6633184597549
16228.8211.03630250290917.7636974970915
17267.2239.08524014298928.1147598570110
18237.2267.002647436154-29.8026474361536
19254.7242.97975727373611.7202427262642
20258.2255.2422508551842.95774914481612
21257.9252.8285886288435.07141137115671
22269.6252.90377406906516.6962259309347
23266.9262.7184657240134.18153427598678
24269.6261.1505872445538.44941275544693
25253.9273.052715911497-19.1527159114966
26258.6258.5566443256590.0433556743405659
27274.2266.4676542060647.73234579393643
28301.5287.20344216059014.2965578394097
29304.5309.294492686157-4.79449268615674
30285.1296.352141763504-11.2521417635036
31287.7288.457322465087-0.75732246508697
32265.5283.656930608758-18.1569306087576
33264.1255.3047787157068.79522128429407
34276.1257.2232992818318.8767007181699
35258.9269.521924399331-10.6219243993313
36239.1252.857899834584-13.7578998345841
37250.1230.83178675655519.268213243445
38276.8250.87166063722425.9283393627757
39297.6282.82091604523714.7790839547627
40295.4307.367706090447-11.9677060904467
41283291.724759797027-8.72475979702665
42275.8262.91035679194712.8896432080530
43279.7271.9462614681067.75373853189355
44254.6269.720923418324-15.120923418324
45234.6238.450028082451-3.85002808245054
46176.9218.163275451325-41.2632754513247
47148.1151.649096137441-3.54909613744054
48122.7131.354808703502-8.6548087035022
49124.9117.8193843838387.08061561616208
50121.6133.638131280022-12.0381312800216
51128.4132.780179860965-4.38017986096548
52144.5145.601465615117-1.10146561511707
53151.8154.816953264250-3.01695326424972
54167.1149.21723684796017.8827631520395
55173.8182.237377197239-8.43737719723928
56203.7178.36108236208625.3389176379138
57199.8208.616609808937-8.81660980893696







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.7609534562021540.4780930875956920.239046543797846
220.6092424438931440.7815151122137130.390757556106856
230.4729381907926240.9458763815852480.527061809207376
240.3622365914420210.7244731828840420.63776340855798
250.4942015111855710.9884030223711420.505798488814429
260.3755851328485420.7511702656970850.624414867151458
270.2644176375071380.5288352750142760.735582362492862
280.2001557745728580.4003115491457160.799844225427142
290.1442902968618430.2885805937236850.855709703138157
300.1552945794961350.310589158992270.844705420503865
310.1025721316772180.2051442633544360.897427868322782
320.1804933078201320.3609866156402640.819506692179868
330.1241349320236210.2482698640472430.875865067976379
340.2011010033377620.4022020066755230.798898996662238
350.1286993825097550.2573987650195110.871300617490245
360.08949272125221880.1789854425044380.910507278747781

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.760953456202154 & 0.478093087595692 & 0.239046543797846 \tabularnewline
22 & 0.609242443893144 & 0.781515112213713 & 0.390757556106856 \tabularnewline
23 & 0.472938190792624 & 0.945876381585248 & 0.527061809207376 \tabularnewline
24 & 0.362236591442021 & 0.724473182884042 & 0.63776340855798 \tabularnewline
25 & 0.494201511185571 & 0.988403022371142 & 0.505798488814429 \tabularnewline
26 & 0.375585132848542 & 0.751170265697085 & 0.624414867151458 \tabularnewline
27 & 0.264417637507138 & 0.528835275014276 & 0.735582362492862 \tabularnewline
28 & 0.200155774572858 & 0.400311549145716 & 0.799844225427142 \tabularnewline
29 & 0.144290296861843 & 0.288580593723685 & 0.855709703138157 \tabularnewline
30 & 0.155294579496135 & 0.31058915899227 & 0.844705420503865 \tabularnewline
31 & 0.102572131677218 & 0.205144263354436 & 0.897427868322782 \tabularnewline
32 & 0.180493307820132 & 0.360986615640264 & 0.819506692179868 \tabularnewline
33 & 0.124134932023621 & 0.248269864047243 & 0.875865067976379 \tabularnewline
34 & 0.201101003337762 & 0.402202006675523 & 0.798898996662238 \tabularnewline
35 & 0.128699382509755 & 0.257398765019511 & 0.871300617490245 \tabularnewline
36 & 0.0894927212522188 & 0.178985442504438 & 0.910507278747781 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61370&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]21[/C][C]0.760953456202154[/C][C]0.478093087595692[/C][C]0.239046543797846[/C][/ROW]
[ROW][C]22[/C][C]0.609242443893144[/C][C]0.781515112213713[/C][C]0.390757556106856[/C][/ROW]
[ROW][C]23[/C][C]0.472938190792624[/C][C]0.945876381585248[/C][C]0.527061809207376[/C][/ROW]
[ROW][C]24[/C][C]0.362236591442021[/C][C]0.724473182884042[/C][C]0.63776340855798[/C][/ROW]
[ROW][C]25[/C][C]0.494201511185571[/C][C]0.988403022371142[/C][C]0.505798488814429[/C][/ROW]
[ROW][C]26[/C][C]0.375585132848542[/C][C]0.751170265697085[/C][C]0.624414867151458[/C][/ROW]
[ROW][C]27[/C][C]0.264417637507138[/C][C]0.528835275014276[/C][C]0.735582362492862[/C][/ROW]
[ROW][C]28[/C][C]0.200155774572858[/C][C]0.400311549145716[/C][C]0.799844225427142[/C][/ROW]
[ROW][C]29[/C][C]0.144290296861843[/C][C]0.288580593723685[/C][C]0.855709703138157[/C][/ROW]
[ROW][C]30[/C][C]0.155294579496135[/C][C]0.31058915899227[/C][C]0.844705420503865[/C][/ROW]
[ROW][C]31[/C][C]0.102572131677218[/C][C]0.205144263354436[/C][C]0.897427868322782[/C][/ROW]
[ROW][C]32[/C][C]0.180493307820132[/C][C]0.360986615640264[/C][C]0.819506692179868[/C][/ROW]
[ROW][C]33[/C][C]0.124134932023621[/C][C]0.248269864047243[/C][C]0.875865067976379[/C][/ROW]
[ROW][C]34[/C][C]0.201101003337762[/C][C]0.402202006675523[/C][C]0.798898996662238[/C][/ROW]
[ROW][C]35[/C][C]0.128699382509755[/C][C]0.257398765019511[/C][C]0.871300617490245[/C][/ROW]
[ROW][C]36[/C][C]0.0894927212522188[/C][C]0.178985442504438[/C][C]0.910507278747781[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61370&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61370&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
210.7609534562021540.4780930875956920.239046543797846
220.6092424438931440.7815151122137130.390757556106856
230.4729381907926240.9458763815852480.527061809207376
240.3622365914420210.7244731828840420.63776340855798
250.4942015111855710.9884030223711420.505798488814429
260.3755851328485420.7511702656970850.624414867151458
270.2644176375071380.5288352750142760.735582362492862
280.2001557745728580.4003115491457160.799844225427142
290.1442902968618430.2885805937236850.855709703138157
300.1552945794961350.310589158992270.844705420503865
310.1025721316772180.2051442633544360.897427868322782
320.1804933078201320.3609866156402640.819506692179868
330.1241349320236210.2482698640472430.875865067976379
340.2011010033377620.4022020066755230.798898996662238
350.1286993825097550.2573987650195110.871300617490245
360.08949272125221880.1789854425044380.910507278747781







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=61370&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=61370&T=6

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