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 computationThu, 11 Dec 2008 13:55:56 -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/2008/Dec/11/t1229029052v52u0m57e7i9k5s.htm/, Retrieved Wed, 22 May 2024 04:17:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=32444, Retrieved Wed, 22 May 2024 04:17:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact186
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [paper multiple li...] [2008-12-11 20:14:55] [491a70d26f8c977398d8a0c1c87d3dd4]
-   PD    [Multiple Regression] [berekening 1 stap 2] [2008-12-11 20:55:56] [2ba2a74112fb2c960057a572bf2825d3] [Current]
-   P       [Multiple Regression] [Berekening 1 stap 3] [2008-12-11 21:57:33] [491a70d26f8c977398d8a0c1c87d3dd4]
Feedback Forum

Post a new message
Dataseries X:
103.3	0
101.2	0
107.7	0
110.4	0
101.9	0
115.9	0
89.9	0
88.6	0
117.2	0
123.9	0
100	0
103.6	0
94.1	0
98.7	0
119.5	0
112.7	0
104.4	0
124.7	0
89.1	0
97	0
121.6	0
118.8	0
114	0
111.5	0
97.2	0
102.5	0
113.4	0
109.8	0
104.9	0
126.1	0
80	0
96.8	0
117.2	1
112.3	1
117.3	1
111.1	1
102.2	1
104.3	1
122.9	1
107.6	1
121.3	1
131.5	1
89	1
104.4	1
128.9	1
135.9	1
133.3	1
121.3	1
120.5	1
120.4	1
137.9	1
126.1	1
133.2	1
151.1	1
105	1
119	1
140.4	1
156.6	1
137.1	1
122.7	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time8 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 8 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32444&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]8 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32444&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32444&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 time8 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
metaal[t] = + 105.323333333333 + 14.5277777777778conjunctuur[t] -7.67444444444447M1[t] -5.71444444444444M2[t] + 9.14555555555556M3[t] + 2.18555555555556M4[t] + 2.00555555555556M5[t] + 18.7255555555556M6[t] -20.5344444444444M7[t] -9.97444444444444M8[t] + 11.02M9[t] + 15.46M10[t] + 6.3M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
metaal[t] =  +  105.323333333333 +  14.5277777777778conjunctuur[t] -7.67444444444447M1[t] -5.71444444444444M2[t] +  9.14555555555556M3[t] +  2.18555555555556M4[t] +  2.00555555555556M5[t] +  18.7255555555556M6[t] -20.5344444444444M7[t] -9.97444444444444M8[t] +  11.02M9[t] +  15.46M10[t] +  6.3M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32444&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]metaal[t] =  +  105.323333333333 +  14.5277777777778conjunctuur[t] -7.67444444444447M1[t] -5.71444444444444M2[t] +  9.14555555555556M3[t] +  2.18555555555556M4[t] +  2.00555555555556M5[t] +  18.7255555555556M6[t] -20.5344444444444M7[t] -9.97444444444444M8[t] +  11.02M9[t] +  15.46M10[t] +  6.3M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32444&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32444&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
metaal[t] = + 105.323333333333 + 14.5277777777778conjunctuur[t] -7.67444444444447M1[t] -5.71444444444444M2[t] + 9.14555555555556M3[t] + 2.18555555555556M4[t] + 2.00555555555556M5[t] + 18.7255555555556M6[t] -20.5344444444444M7[t] -9.97444444444444M8[t] + 11.02M9[t] + 15.46M10[t] + 6.3M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)105.3233333333334.07044325.875200
conjunctuur14.52777777777782.2613576.424400
M1-7.674444444444475.446069-1.40920.1653670.082683
M2-5.714444444444445.446069-1.04930.2994160.149708
M39.145555555555565.4460691.67930.0997320.049866
M42.185555555555565.4460690.40130.6900120.345006
M52.005555555555565.4460690.36830.7143350.357167
M618.72555555555565.4460693.43840.0012360.000618
M7-20.53444444444445.446069-3.77050.0004550.000227
M8-9.974444444444445.446069-1.83150.0733690.036684
M911.025.4272572.03050.0479860.023993
M1015.465.4272572.84860.0064960.003248
M116.35.4272571.16080.2515820.125791

\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) & 105.323333333333 & 4.070443 & 25.8752 & 0 & 0 \tabularnewline
conjunctuur & 14.5277777777778 & 2.261357 & 6.4244 & 0 & 0 \tabularnewline
M1 & -7.67444444444447 & 5.446069 & -1.4092 & 0.165367 & 0.082683 \tabularnewline
M2 & -5.71444444444444 & 5.446069 & -1.0493 & 0.299416 & 0.149708 \tabularnewline
M3 & 9.14555555555556 & 5.446069 & 1.6793 & 0.099732 & 0.049866 \tabularnewline
M4 & 2.18555555555556 & 5.446069 & 0.4013 & 0.690012 & 0.345006 \tabularnewline
M5 & 2.00555555555556 & 5.446069 & 0.3683 & 0.714335 & 0.357167 \tabularnewline
M6 & 18.7255555555556 & 5.446069 & 3.4384 & 0.001236 & 0.000618 \tabularnewline
M7 & -20.5344444444444 & 5.446069 & -3.7705 & 0.000455 & 0.000227 \tabularnewline
M8 & -9.97444444444444 & 5.446069 & -1.8315 & 0.073369 & 0.036684 \tabularnewline
M9 & 11.02 & 5.427257 & 2.0305 & 0.047986 & 0.023993 \tabularnewline
M10 & 15.46 & 5.427257 & 2.8486 & 0.006496 & 0.003248 \tabularnewline
M11 & 6.3 & 5.427257 & 1.1608 & 0.251582 & 0.125791 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32444&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]105.323333333333[/C][C]4.070443[/C][C]25.8752[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]conjunctuur[/C][C]14.5277777777778[/C][C]2.261357[/C][C]6.4244[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-7.67444444444447[/C][C]5.446069[/C][C]-1.4092[/C][C]0.165367[/C][C]0.082683[/C][/ROW]
[ROW][C]M2[/C][C]-5.71444444444444[/C][C]5.446069[/C][C]-1.0493[/C][C]0.299416[/C][C]0.149708[/C][/ROW]
[ROW][C]M3[/C][C]9.14555555555556[/C][C]5.446069[/C][C]1.6793[/C][C]0.099732[/C][C]0.049866[/C][/ROW]
[ROW][C]M4[/C][C]2.18555555555556[/C][C]5.446069[/C][C]0.4013[/C][C]0.690012[/C][C]0.345006[/C][/ROW]
[ROW][C]M5[/C][C]2.00555555555556[/C][C]5.446069[/C][C]0.3683[/C][C]0.714335[/C][C]0.357167[/C][/ROW]
[ROW][C]M6[/C][C]18.7255555555556[/C][C]5.446069[/C][C]3.4384[/C][C]0.001236[/C][C]0.000618[/C][/ROW]
[ROW][C]M7[/C][C]-20.5344444444444[/C][C]5.446069[/C][C]-3.7705[/C][C]0.000455[/C][C]0.000227[/C][/ROW]
[ROW][C]M8[/C][C]-9.97444444444444[/C][C]5.446069[/C][C]-1.8315[/C][C]0.073369[/C][C]0.036684[/C][/ROW]
[ROW][C]M9[/C][C]11.02[/C][C]5.427257[/C][C]2.0305[/C][C]0.047986[/C][C]0.023993[/C][/ROW]
[ROW][C]M10[/C][C]15.46[/C][C]5.427257[/C][C]2.8486[/C][C]0.006496[/C][C]0.003248[/C][/ROW]
[ROW][C]M11[/C][C]6.3[/C][C]5.427257[/C][C]1.1608[/C][C]0.251582[/C][C]0.125791[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32444&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32444&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)105.3233333333334.07044325.875200
conjunctuur14.52777777777782.2613576.424400
M1-7.674444444444475.446069-1.40920.1653670.082683
M2-5.714444444444445.446069-1.04930.2994160.149708
M39.145555555555565.4460691.67930.0997320.049866
M42.185555555555565.4460690.40130.6900120.345006
M52.005555555555565.4460690.36830.7143350.357167
M618.72555555555565.4460693.43840.0012360.000618
M7-20.53444444444445.446069-3.77050.0004550.000227
M8-9.974444444444445.446069-1.83150.0733690.036684
M911.025.4272572.03050.0479860.023993
M1015.465.4272572.84860.0064960.003248
M116.35.4272571.16080.2515820.125791







Multiple Linear Regression - Regression Statistics
Multiple R0.872146156682372
R-squared0.760638918615832
Adjusted R-squared0.699525451028385
F-TEST (value)12.4463387309423
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value7.51571027635123e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.58124735376927
Sum Squared Residuals3460.97688888889

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.872146156682372 \tabularnewline
R-squared & 0.760638918615832 \tabularnewline
Adjusted R-squared & 0.699525451028385 \tabularnewline
F-TEST (value) & 12.4463387309423 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 7.51571027635123e-11 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 8.58124735376927 \tabularnewline
Sum Squared Residuals & 3460.97688888889 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32444&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.872146156682372[/C][/ROW]
[ROW][C]R-squared[/C][C]0.760638918615832[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.699525451028385[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]12.4463387309423[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]7.51571027635123e-11[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]8.58124735376927[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3460.97688888889[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32444&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32444&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.872146156682372
R-squared0.760638918615832
Adjusted R-squared0.699525451028385
F-TEST (value)12.4463387309423
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value7.51571027635123e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.58124735376927
Sum Squared Residuals3460.97688888889







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1103.397.6488888888895.65111111111099
2101.299.60888888888891.59111111111111
3107.7114.468888888889-6.76888888888889
4110.4107.5088888888892.89111111111112
5101.9107.328888888889-5.42888888888889
6115.9124.048888888889-8.14888888888888
789.984.78888888888895.11111111111112
888.695.3488888888889-6.7488888888889
9117.2116.3433333333330.856666666666672
10123.9120.7833333333333.11666666666667
11100111.623333333333-11.6233333333333
12103.6105.323333333333-1.72333333333334
1394.197.6488888888889-3.54888888888886
1498.799.6088888888889-0.908888888888885
15119.5114.4688888888895.03111111111111
16112.7107.5088888888895.19111111111112
17104.4107.328888888889-2.92888888888888
18124.7124.0488888888890.651111111111117
1989.184.78888888888894.31111111111111
209795.34888888888891.65111111111111
21121.6116.3433333333335.25666666666666
22118.8120.783333333333-1.98333333333333
23114111.6233333333332.37666666666667
24111.5105.3233333333336.17666666666667
2597.297.6488888888889-0.448888888888854
26102.599.60888888888892.89111111111111
27113.4114.468888888889-1.06888888888889
28109.8107.5088888888892.29111111111111
29104.9107.328888888889-2.42888888888888
30126.1124.0488888888892.05111111111111
318084.7888888888889-4.78888888888889
3296.895.34888888888891.45111111111111
33117.2130.871111111111-13.6711111111111
34112.3135.311111111111-23.0111111111111
35117.3126.151111111111-8.85111111111112
36111.1119.851111111111-8.75111111111112
37102.2112.176666666667-9.97666666666664
38104.3114.136666666667-9.83666666666668
39122.9128.996666666667-6.09666666666666
40107.6122.036666666667-14.4366666666667
41121.3121.856666666667-0.556666666666668
42131.5138.576666666667-7.07666666666667
438999.3166666666667-10.3166666666667
44104.4109.876666666667-5.47666666666666
45128.9130.871111111111-1.97111111111111
46135.9135.3111111111110.58888888888889
47133.3126.1511111111117.1488888888889
48121.3119.8511111111111.44888888888889
49120.5112.1766666666678.32333333333336
50120.4114.1366666666676.26333333333334
51137.9128.9966666666678.90333333333333
52126.1122.0366666666674.06333333333333
53133.2121.85666666666711.3433333333333
54151.1138.57666666666712.5233333333333
5510599.31666666666675.68333333333334
56119109.8766666666679.12333333333333
57140.4130.8711111111119.5288888888889
58156.6135.31111111111121.2888888888889
59137.1126.15111111111110.9488888888889
60122.7119.8511111111112.84888888888889

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 103.3 & 97.648888888889 & 5.65111111111099 \tabularnewline
2 & 101.2 & 99.6088888888889 & 1.59111111111111 \tabularnewline
3 & 107.7 & 114.468888888889 & -6.76888888888889 \tabularnewline
4 & 110.4 & 107.508888888889 & 2.89111111111112 \tabularnewline
5 & 101.9 & 107.328888888889 & -5.42888888888889 \tabularnewline
6 & 115.9 & 124.048888888889 & -8.14888888888888 \tabularnewline
7 & 89.9 & 84.7888888888889 & 5.11111111111112 \tabularnewline
8 & 88.6 & 95.3488888888889 & -6.7488888888889 \tabularnewline
9 & 117.2 & 116.343333333333 & 0.856666666666672 \tabularnewline
10 & 123.9 & 120.783333333333 & 3.11666666666667 \tabularnewline
11 & 100 & 111.623333333333 & -11.6233333333333 \tabularnewline
12 & 103.6 & 105.323333333333 & -1.72333333333334 \tabularnewline
13 & 94.1 & 97.6488888888889 & -3.54888888888886 \tabularnewline
14 & 98.7 & 99.6088888888889 & -0.908888888888885 \tabularnewline
15 & 119.5 & 114.468888888889 & 5.03111111111111 \tabularnewline
16 & 112.7 & 107.508888888889 & 5.19111111111112 \tabularnewline
17 & 104.4 & 107.328888888889 & -2.92888888888888 \tabularnewline
18 & 124.7 & 124.048888888889 & 0.651111111111117 \tabularnewline
19 & 89.1 & 84.7888888888889 & 4.31111111111111 \tabularnewline
20 & 97 & 95.3488888888889 & 1.65111111111111 \tabularnewline
21 & 121.6 & 116.343333333333 & 5.25666666666666 \tabularnewline
22 & 118.8 & 120.783333333333 & -1.98333333333333 \tabularnewline
23 & 114 & 111.623333333333 & 2.37666666666667 \tabularnewline
24 & 111.5 & 105.323333333333 & 6.17666666666667 \tabularnewline
25 & 97.2 & 97.6488888888889 & -0.448888888888854 \tabularnewline
26 & 102.5 & 99.6088888888889 & 2.89111111111111 \tabularnewline
27 & 113.4 & 114.468888888889 & -1.06888888888889 \tabularnewline
28 & 109.8 & 107.508888888889 & 2.29111111111111 \tabularnewline
29 & 104.9 & 107.328888888889 & -2.42888888888888 \tabularnewline
30 & 126.1 & 124.048888888889 & 2.05111111111111 \tabularnewline
31 & 80 & 84.7888888888889 & -4.78888888888889 \tabularnewline
32 & 96.8 & 95.3488888888889 & 1.45111111111111 \tabularnewline
33 & 117.2 & 130.871111111111 & -13.6711111111111 \tabularnewline
34 & 112.3 & 135.311111111111 & -23.0111111111111 \tabularnewline
35 & 117.3 & 126.151111111111 & -8.85111111111112 \tabularnewline
36 & 111.1 & 119.851111111111 & -8.75111111111112 \tabularnewline
37 & 102.2 & 112.176666666667 & -9.97666666666664 \tabularnewline
38 & 104.3 & 114.136666666667 & -9.83666666666668 \tabularnewline
39 & 122.9 & 128.996666666667 & -6.09666666666666 \tabularnewline
40 & 107.6 & 122.036666666667 & -14.4366666666667 \tabularnewline
41 & 121.3 & 121.856666666667 & -0.556666666666668 \tabularnewline
42 & 131.5 & 138.576666666667 & -7.07666666666667 \tabularnewline
43 & 89 & 99.3166666666667 & -10.3166666666667 \tabularnewline
44 & 104.4 & 109.876666666667 & -5.47666666666666 \tabularnewline
45 & 128.9 & 130.871111111111 & -1.97111111111111 \tabularnewline
46 & 135.9 & 135.311111111111 & 0.58888888888889 \tabularnewline
47 & 133.3 & 126.151111111111 & 7.1488888888889 \tabularnewline
48 & 121.3 & 119.851111111111 & 1.44888888888889 \tabularnewline
49 & 120.5 & 112.176666666667 & 8.32333333333336 \tabularnewline
50 & 120.4 & 114.136666666667 & 6.26333333333334 \tabularnewline
51 & 137.9 & 128.996666666667 & 8.90333333333333 \tabularnewline
52 & 126.1 & 122.036666666667 & 4.06333333333333 \tabularnewline
53 & 133.2 & 121.856666666667 & 11.3433333333333 \tabularnewline
54 & 151.1 & 138.576666666667 & 12.5233333333333 \tabularnewline
55 & 105 & 99.3166666666667 & 5.68333333333334 \tabularnewline
56 & 119 & 109.876666666667 & 9.12333333333333 \tabularnewline
57 & 140.4 & 130.871111111111 & 9.5288888888889 \tabularnewline
58 & 156.6 & 135.311111111111 & 21.2888888888889 \tabularnewline
59 & 137.1 & 126.151111111111 & 10.9488888888889 \tabularnewline
60 & 122.7 & 119.851111111111 & 2.84888888888889 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32444&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]103.3[/C][C]97.648888888889[/C][C]5.65111111111099[/C][/ROW]
[ROW][C]2[/C][C]101.2[/C][C]99.6088888888889[/C][C]1.59111111111111[/C][/ROW]
[ROW][C]3[/C][C]107.7[/C][C]114.468888888889[/C][C]-6.76888888888889[/C][/ROW]
[ROW][C]4[/C][C]110.4[/C][C]107.508888888889[/C][C]2.89111111111112[/C][/ROW]
[ROW][C]5[/C][C]101.9[/C][C]107.328888888889[/C][C]-5.42888888888889[/C][/ROW]
[ROW][C]6[/C][C]115.9[/C][C]124.048888888889[/C][C]-8.14888888888888[/C][/ROW]
[ROW][C]7[/C][C]89.9[/C][C]84.7888888888889[/C][C]5.11111111111112[/C][/ROW]
[ROW][C]8[/C][C]88.6[/C][C]95.3488888888889[/C][C]-6.7488888888889[/C][/ROW]
[ROW][C]9[/C][C]117.2[/C][C]116.343333333333[/C][C]0.856666666666672[/C][/ROW]
[ROW][C]10[/C][C]123.9[/C][C]120.783333333333[/C][C]3.11666666666667[/C][/ROW]
[ROW][C]11[/C][C]100[/C][C]111.623333333333[/C][C]-11.6233333333333[/C][/ROW]
[ROW][C]12[/C][C]103.6[/C][C]105.323333333333[/C][C]-1.72333333333334[/C][/ROW]
[ROW][C]13[/C][C]94.1[/C][C]97.6488888888889[/C][C]-3.54888888888886[/C][/ROW]
[ROW][C]14[/C][C]98.7[/C][C]99.6088888888889[/C][C]-0.908888888888885[/C][/ROW]
[ROW][C]15[/C][C]119.5[/C][C]114.468888888889[/C][C]5.03111111111111[/C][/ROW]
[ROW][C]16[/C][C]112.7[/C][C]107.508888888889[/C][C]5.19111111111112[/C][/ROW]
[ROW][C]17[/C][C]104.4[/C][C]107.328888888889[/C][C]-2.92888888888888[/C][/ROW]
[ROW][C]18[/C][C]124.7[/C][C]124.048888888889[/C][C]0.651111111111117[/C][/ROW]
[ROW][C]19[/C][C]89.1[/C][C]84.7888888888889[/C][C]4.31111111111111[/C][/ROW]
[ROW][C]20[/C][C]97[/C][C]95.3488888888889[/C][C]1.65111111111111[/C][/ROW]
[ROW][C]21[/C][C]121.6[/C][C]116.343333333333[/C][C]5.25666666666666[/C][/ROW]
[ROW][C]22[/C][C]118.8[/C][C]120.783333333333[/C][C]-1.98333333333333[/C][/ROW]
[ROW][C]23[/C][C]114[/C][C]111.623333333333[/C][C]2.37666666666667[/C][/ROW]
[ROW][C]24[/C][C]111.5[/C][C]105.323333333333[/C][C]6.17666666666667[/C][/ROW]
[ROW][C]25[/C][C]97.2[/C][C]97.6488888888889[/C][C]-0.448888888888854[/C][/ROW]
[ROW][C]26[/C][C]102.5[/C][C]99.6088888888889[/C][C]2.89111111111111[/C][/ROW]
[ROW][C]27[/C][C]113.4[/C][C]114.468888888889[/C][C]-1.06888888888889[/C][/ROW]
[ROW][C]28[/C][C]109.8[/C][C]107.508888888889[/C][C]2.29111111111111[/C][/ROW]
[ROW][C]29[/C][C]104.9[/C][C]107.328888888889[/C][C]-2.42888888888888[/C][/ROW]
[ROW][C]30[/C][C]126.1[/C][C]124.048888888889[/C][C]2.05111111111111[/C][/ROW]
[ROW][C]31[/C][C]80[/C][C]84.7888888888889[/C][C]-4.78888888888889[/C][/ROW]
[ROW][C]32[/C][C]96.8[/C][C]95.3488888888889[/C][C]1.45111111111111[/C][/ROW]
[ROW][C]33[/C][C]117.2[/C][C]130.871111111111[/C][C]-13.6711111111111[/C][/ROW]
[ROW][C]34[/C][C]112.3[/C][C]135.311111111111[/C][C]-23.0111111111111[/C][/ROW]
[ROW][C]35[/C][C]117.3[/C][C]126.151111111111[/C][C]-8.85111111111112[/C][/ROW]
[ROW][C]36[/C][C]111.1[/C][C]119.851111111111[/C][C]-8.75111111111112[/C][/ROW]
[ROW][C]37[/C][C]102.2[/C][C]112.176666666667[/C][C]-9.97666666666664[/C][/ROW]
[ROW][C]38[/C][C]104.3[/C][C]114.136666666667[/C][C]-9.83666666666668[/C][/ROW]
[ROW][C]39[/C][C]122.9[/C][C]128.996666666667[/C][C]-6.09666666666666[/C][/ROW]
[ROW][C]40[/C][C]107.6[/C][C]122.036666666667[/C][C]-14.4366666666667[/C][/ROW]
[ROW][C]41[/C][C]121.3[/C][C]121.856666666667[/C][C]-0.556666666666668[/C][/ROW]
[ROW][C]42[/C][C]131.5[/C][C]138.576666666667[/C][C]-7.07666666666667[/C][/ROW]
[ROW][C]43[/C][C]89[/C][C]99.3166666666667[/C][C]-10.3166666666667[/C][/ROW]
[ROW][C]44[/C][C]104.4[/C][C]109.876666666667[/C][C]-5.47666666666666[/C][/ROW]
[ROW][C]45[/C][C]128.9[/C][C]130.871111111111[/C][C]-1.97111111111111[/C][/ROW]
[ROW][C]46[/C][C]135.9[/C][C]135.311111111111[/C][C]0.58888888888889[/C][/ROW]
[ROW][C]47[/C][C]133.3[/C][C]126.151111111111[/C][C]7.1488888888889[/C][/ROW]
[ROW][C]48[/C][C]121.3[/C][C]119.851111111111[/C][C]1.44888888888889[/C][/ROW]
[ROW][C]49[/C][C]120.5[/C][C]112.176666666667[/C][C]8.32333333333336[/C][/ROW]
[ROW][C]50[/C][C]120.4[/C][C]114.136666666667[/C][C]6.26333333333334[/C][/ROW]
[ROW][C]51[/C][C]137.9[/C][C]128.996666666667[/C][C]8.90333333333333[/C][/ROW]
[ROW][C]52[/C][C]126.1[/C][C]122.036666666667[/C][C]4.06333333333333[/C][/ROW]
[ROW][C]53[/C][C]133.2[/C][C]121.856666666667[/C][C]11.3433333333333[/C][/ROW]
[ROW][C]54[/C][C]151.1[/C][C]138.576666666667[/C][C]12.5233333333333[/C][/ROW]
[ROW][C]55[/C][C]105[/C][C]99.3166666666667[/C][C]5.68333333333334[/C][/ROW]
[ROW][C]56[/C][C]119[/C][C]109.876666666667[/C][C]9.12333333333333[/C][/ROW]
[ROW][C]57[/C][C]140.4[/C][C]130.871111111111[/C][C]9.5288888888889[/C][/ROW]
[ROW][C]58[/C][C]156.6[/C][C]135.311111111111[/C][C]21.2888888888889[/C][/ROW]
[ROW][C]59[/C][C]137.1[/C][C]126.151111111111[/C][C]10.9488888888889[/C][/ROW]
[ROW][C]60[/C][C]122.7[/C][C]119.851111111111[/C][C]2.84888888888889[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32444&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32444&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
1103.397.6488888888895.65111111111099
2101.299.60888888888891.59111111111111
3107.7114.468888888889-6.76888888888889
4110.4107.5088888888892.89111111111112
5101.9107.328888888889-5.42888888888889
6115.9124.048888888889-8.14888888888888
789.984.78888888888895.11111111111112
888.695.3488888888889-6.7488888888889
9117.2116.3433333333330.856666666666672
10123.9120.7833333333333.11666666666667
11100111.623333333333-11.6233333333333
12103.6105.323333333333-1.72333333333334
1394.197.6488888888889-3.54888888888886
1498.799.6088888888889-0.908888888888885
15119.5114.4688888888895.03111111111111
16112.7107.5088888888895.19111111111112
17104.4107.328888888889-2.92888888888888
18124.7124.0488888888890.651111111111117
1989.184.78888888888894.31111111111111
209795.34888888888891.65111111111111
21121.6116.3433333333335.25666666666666
22118.8120.783333333333-1.98333333333333
23114111.6233333333332.37666666666667
24111.5105.3233333333336.17666666666667
2597.297.6488888888889-0.448888888888854
26102.599.60888888888892.89111111111111
27113.4114.468888888889-1.06888888888889
28109.8107.5088888888892.29111111111111
29104.9107.328888888889-2.42888888888888
30126.1124.0488888888892.05111111111111
318084.7888888888889-4.78888888888889
3296.895.34888888888891.45111111111111
33117.2130.871111111111-13.6711111111111
34112.3135.311111111111-23.0111111111111
35117.3126.151111111111-8.85111111111112
36111.1119.851111111111-8.75111111111112
37102.2112.176666666667-9.97666666666664
38104.3114.136666666667-9.83666666666668
39122.9128.996666666667-6.09666666666666
40107.6122.036666666667-14.4366666666667
41121.3121.856666666667-0.556666666666668
42131.5138.576666666667-7.07666666666667
438999.3166666666667-10.3166666666667
44104.4109.876666666667-5.47666666666666
45128.9130.871111111111-1.97111111111111
46135.9135.3111111111110.58888888888889
47133.3126.1511111111117.1488888888889
48121.3119.8511111111111.44888888888889
49120.5112.1766666666678.32333333333336
50120.4114.1366666666676.26333333333334
51137.9128.9966666666678.90333333333333
52126.1122.0366666666674.06333333333333
53133.2121.85666666666711.3433333333333
54151.1138.57666666666712.5233333333333
5510599.31666666666675.68333333333334
56119109.8766666666679.12333333333333
57140.4130.8711111111119.5288888888889
58156.6135.31111111111121.2888888888889
59137.1126.15111111111110.9488888888889
60122.7119.8511111111112.84888888888889







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2617482264648260.5234964529296520.738251773535174
170.1364225543096150.2728451086192310.863577445690385
180.1065168073963760.2130336147927530.893483192603624
190.05161813863368390.1032362772673680.948381861366316
200.03883677003923820.07767354007847630.961163229960762
210.02076213358264640.04152426716529280.979237866417354
220.01102844712098980.02205689424197960.98897155287901
230.01861295382433600.03722590764867210.981387046175664
240.01320562020676240.02641124041352480.986794379793238
250.006128008580673080.01225601716134620.993871991419327
260.002894537956952780.005789075913905550.997105462043047
270.001190535005726800.002381070011453590.998809464994273
280.0005385434006705960.001077086801341190.99946145659933
290.0002178982337034070.0004357964674068140.999782101766297
300.0001152702286528410.0002305404573056820.999884729771347
310.0001105738879081110.0002211477758162210.999889426112092
324.57660706174084e-059.15321412348168e-050.999954233929383
332.80995078445192e-055.61990156890383e-050.999971900492155
340.0002157451745141550.0004314903490283090.999784254825486
350.001002923169144770.002005846338289540.998997076830855
360.00067041788929230.00134083577858460.999329582110708
370.0007313694292864710.001462738858572940.999268630570714
380.0006768359035733980.001353671807146800.999323164096427
390.0008804588254054750.001760917650810950.999119541174595
400.001696525764389640.003393051528779280.99830347423561
410.004550648709919780.009101297419839570.99544935129008
420.01133590314545210.02267180629090430.988664096854548
430.01767392212945440.03534784425890880.982326077870546
440.02816390738461670.05632781476923350.971836092615383

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.261748226464826 & 0.523496452929652 & 0.738251773535174 \tabularnewline
17 & 0.136422554309615 & 0.272845108619231 & 0.863577445690385 \tabularnewline
18 & 0.106516807396376 & 0.213033614792753 & 0.893483192603624 \tabularnewline
19 & 0.0516181386336839 & 0.103236277267368 & 0.948381861366316 \tabularnewline
20 & 0.0388367700392382 & 0.0776735400784763 & 0.961163229960762 \tabularnewline
21 & 0.0207621335826464 & 0.0415242671652928 & 0.979237866417354 \tabularnewline
22 & 0.0110284471209898 & 0.0220568942419796 & 0.98897155287901 \tabularnewline
23 & 0.0186129538243360 & 0.0372259076486721 & 0.981387046175664 \tabularnewline
24 & 0.0132056202067624 & 0.0264112404135248 & 0.986794379793238 \tabularnewline
25 & 0.00612800858067308 & 0.0122560171613462 & 0.993871991419327 \tabularnewline
26 & 0.00289453795695278 & 0.00578907591390555 & 0.997105462043047 \tabularnewline
27 & 0.00119053500572680 & 0.00238107001145359 & 0.998809464994273 \tabularnewline
28 & 0.000538543400670596 & 0.00107708680134119 & 0.99946145659933 \tabularnewline
29 & 0.000217898233703407 & 0.000435796467406814 & 0.999782101766297 \tabularnewline
30 & 0.000115270228652841 & 0.000230540457305682 & 0.999884729771347 \tabularnewline
31 & 0.000110573887908111 & 0.000221147775816221 & 0.999889426112092 \tabularnewline
32 & 4.57660706174084e-05 & 9.15321412348168e-05 & 0.999954233929383 \tabularnewline
33 & 2.80995078445192e-05 & 5.61990156890383e-05 & 0.999971900492155 \tabularnewline
34 & 0.000215745174514155 & 0.000431490349028309 & 0.999784254825486 \tabularnewline
35 & 0.00100292316914477 & 0.00200584633828954 & 0.998997076830855 \tabularnewline
36 & 0.0006704178892923 & 0.0013408357785846 & 0.999329582110708 \tabularnewline
37 & 0.000731369429286471 & 0.00146273885857294 & 0.999268630570714 \tabularnewline
38 & 0.000676835903573398 & 0.00135367180714680 & 0.999323164096427 \tabularnewline
39 & 0.000880458825405475 & 0.00176091765081095 & 0.999119541174595 \tabularnewline
40 & 0.00169652576438964 & 0.00339305152877928 & 0.99830347423561 \tabularnewline
41 & 0.00455064870991978 & 0.00910129741983957 & 0.99544935129008 \tabularnewline
42 & 0.0113359031454521 & 0.0226718062909043 & 0.988664096854548 \tabularnewline
43 & 0.0176739221294544 & 0.0353478442589088 & 0.982326077870546 \tabularnewline
44 & 0.0281639073846167 & 0.0563278147692335 & 0.971836092615383 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32444&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.261748226464826[/C][C]0.523496452929652[/C][C]0.738251773535174[/C][/ROW]
[ROW][C]17[/C][C]0.136422554309615[/C][C]0.272845108619231[/C][C]0.863577445690385[/C][/ROW]
[ROW][C]18[/C][C]0.106516807396376[/C][C]0.213033614792753[/C][C]0.893483192603624[/C][/ROW]
[ROW][C]19[/C][C]0.0516181386336839[/C][C]0.103236277267368[/C][C]0.948381861366316[/C][/ROW]
[ROW][C]20[/C][C]0.0388367700392382[/C][C]0.0776735400784763[/C][C]0.961163229960762[/C][/ROW]
[ROW][C]21[/C][C]0.0207621335826464[/C][C]0.0415242671652928[/C][C]0.979237866417354[/C][/ROW]
[ROW][C]22[/C][C]0.0110284471209898[/C][C]0.0220568942419796[/C][C]0.98897155287901[/C][/ROW]
[ROW][C]23[/C][C]0.0186129538243360[/C][C]0.0372259076486721[/C][C]0.981387046175664[/C][/ROW]
[ROW][C]24[/C][C]0.0132056202067624[/C][C]0.0264112404135248[/C][C]0.986794379793238[/C][/ROW]
[ROW][C]25[/C][C]0.00612800858067308[/C][C]0.0122560171613462[/C][C]0.993871991419327[/C][/ROW]
[ROW][C]26[/C][C]0.00289453795695278[/C][C]0.00578907591390555[/C][C]0.997105462043047[/C][/ROW]
[ROW][C]27[/C][C]0.00119053500572680[/C][C]0.00238107001145359[/C][C]0.998809464994273[/C][/ROW]
[ROW][C]28[/C][C]0.000538543400670596[/C][C]0.00107708680134119[/C][C]0.99946145659933[/C][/ROW]
[ROW][C]29[/C][C]0.000217898233703407[/C][C]0.000435796467406814[/C][C]0.999782101766297[/C][/ROW]
[ROW][C]30[/C][C]0.000115270228652841[/C][C]0.000230540457305682[/C][C]0.999884729771347[/C][/ROW]
[ROW][C]31[/C][C]0.000110573887908111[/C][C]0.000221147775816221[/C][C]0.999889426112092[/C][/ROW]
[ROW][C]32[/C][C]4.57660706174084e-05[/C][C]9.15321412348168e-05[/C][C]0.999954233929383[/C][/ROW]
[ROW][C]33[/C][C]2.80995078445192e-05[/C][C]5.61990156890383e-05[/C][C]0.999971900492155[/C][/ROW]
[ROW][C]34[/C][C]0.000215745174514155[/C][C]0.000431490349028309[/C][C]0.999784254825486[/C][/ROW]
[ROW][C]35[/C][C]0.00100292316914477[/C][C]0.00200584633828954[/C][C]0.998997076830855[/C][/ROW]
[ROW][C]36[/C][C]0.0006704178892923[/C][C]0.0013408357785846[/C][C]0.999329582110708[/C][/ROW]
[ROW][C]37[/C][C]0.000731369429286471[/C][C]0.00146273885857294[/C][C]0.999268630570714[/C][/ROW]
[ROW][C]38[/C][C]0.000676835903573398[/C][C]0.00135367180714680[/C][C]0.999323164096427[/C][/ROW]
[ROW][C]39[/C][C]0.000880458825405475[/C][C]0.00176091765081095[/C][C]0.999119541174595[/C][/ROW]
[ROW][C]40[/C][C]0.00169652576438964[/C][C]0.00339305152877928[/C][C]0.99830347423561[/C][/ROW]
[ROW][C]41[/C][C]0.00455064870991978[/C][C]0.00910129741983957[/C][C]0.99544935129008[/C][/ROW]
[ROW][C]42[/C][C]0.0113359031454521[/C][C]0.0226718062909043[/C][C]0.988664096854548[/C][/ROW]
[ROW][C]43[/C][C]0.0176739221294544[/C][C]0.0353478442589088[/C][C]0.982326077870546[/C][/ROW]
[ROW][C]44[/C][C]0.0281639073846167[/C][C]0.0563278147692335[/C][C]0.971836092615383[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32444&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2617482264648260.5234964529296520.738251773535174
170.1364225543096150.2728451086192310.863577445690385
180.1065168073963760.2130336147927530.893483192603624
190.05161813863368390.1032362772673680.948381861366316
200.03883677003923820.07767354007847630.961163229960762
210.02076213358264640.04152426716529280.979237866417354
220.01102844712098980.02205689424197960.98897155287901
230.01861295382433600.03722590764867210.981387046175664
240.01320562020676240.02641124041352480.986794379793238
250.006128008580673080.01225601716134620.993871991419327
260.002894537956952780.005789075913905550.997105462043047
270.001190535005726800.002381070011453590.998809464994273
280.0005385434006705960.001077086801341190.99946145659933
290.0002178982337034070.0004357964674068140.999782101766297
300.0001152702286528410.0002305404573056820.999884729771347
310.0001105738879081110.0002211477758162210.999889426112092
324.57660706174084e-059.15321412348168e-050.999954233929383
332.80995078445192e-055.61990156890383e-050.999971900492155
340.0002157451745141550.0004314903490283090.999784254825486
350.001002923169144770.002005846338289540.998997076830855
360.00067041788929230.00134083577858460.999329582110708
370.0007313694292864710.001462738858572940.999268630570714
380.0006768359035733980.001353671807146800.999323164096427
390.0008804588254054750.001760917650810950.999119541174595
400.001696525764389640.003393051528779280.99830347423561
410.004550648709919780.009101297419839570.99544935129008
420.01133590314545210.02267180629090430.988664096854548
430.01767392212945440.03534784425890880.982326077870546
440.02816390738461670.05632781476923350.971836092615383







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level160.551724137931034NOK
5% type I error level230.793103448275862NOK
10% type I error level250.862068965517241NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32444&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 level160.551724137931034NOK
5% type I error level230.793103448275862NOK
10% type I error level250.862068965517241NOK



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