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 14:57:33 -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/t1229032752tla7fpf4rk7mf9x.htm/, Retrieved Sat, 25 May 2024 04:52:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=32449, Retrieved Sat, 25 May 2024 04:52:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact194
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] [491a70d26f8c977398d8a0c1c87d3dd4]
-   P       [Multiple Regression] [Berekening 1 stap 3] [2008-12-11 21:57:33] [2ba2a74112fb2c960057a572bf2825d3] [Current]
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'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32449&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]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32449&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32449&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'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
metaal[t] = + 96.0083333333333 -0.997222222222228conjunctuur[t] -5.08694444444447M1[t] -3.64444444444444M2[t] + 10.6980555555556M3[t] + 3.22055555555556M4[t] + 2.52305555555556M5[t] + 18.7255555555556M6[t] -21.0519444444444M7[t] -11.0094444444444M8[t] + 12.5725M9[t] + 16.495M10[t] + 6.8175M11[t] + 0.5175t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
metaal[t] =  +  96.0083333333333 -0.997222222222228conjunctuur[t] -5.08694444444447M1[t] -3.64444444444444M2[t] +  10.6980555555556M3[t] +  3.22055555555556M4[t] +  2.52305555555556M5[t] +  18.7255555555556M6[t] -21.0519444444444M7[t] -11.0094444444444M8[t] +  12.5725M9[t] +  16.495M10[t] +  6.8175M11[t] +  0.5175t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32449&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]metaal[t] =  +  96.0083333333333 -0.997222222222228conjunctuur[t] -5.08694444444447M1[t] -3.64444444444444M2[t] +  10.6980555555556M3[t] +  3.22055555555556M4[t] +  2.52305555555556M5[t] +  18.7255555555556M6[t] -21.0519444444444M7[t] -11.0094444444444M8[t] +  12.5725M9[t] +  16.495M10[t] +  6.8175M11[t] +  0.5175t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32449&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32449&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] = + 96.0083333333333 -0.997222222222228conjunctuur[t] -5.08694444444447M1[t] -3.64444444444444M2[t] + 10.6980555555556M3[t] + 3.22055555555556M4[t] + 2.52305555555556M5[t] + 18.7255555555556M6[t] -21.0519444444444M7[t] -11.0094444444444M8[t] + 12.5725M9[t] + 16.495M10[t] + 6.8175M11[t] + 0.5175t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)96.00833333333333.87639524.767400
conjunctuur-0.9972222222222283.730063-0.26730.7903970.395198
M1-5.086944444444474.523743-1.12450.2666350.133318
M2-3.644444444444444.512194-0.80770.4234270.211714
M310.69805555555564.5031922.37570.021740.01087
M43.220555555555564.496750.71620.4774910.238745
M52.523055555555564.4928810.56160.5771370.288568
M618.72555555555564.491594.1690.0001346.7e-05
M7-21.05194444444444.492881-4.68562.5e-051.3e-05
M8-11.00944444444444.49675-2.44830.0182260.009113
M912.57254.4877172.80150.0074160.003708
M1016.4954.4812533.68090.0006090.000304
M116.81754.477371.52270.134690.067345
t0.51750.1076784.8061.7e-058e-06

\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) & 96.0083333333333 & 3.876395 & 24.7674 & 0 & 0 \tabularnewline
conjunctuur & -0.997222222222228 & 3.730063 & -0.2673 & 0.790397 & 0.395198 \tabularnewline
M1 & -5.08694444444447 & 4.523743 & -1.1245 & 0.266635 & 0.133318 \tabularnewline
M2 & -3.64444444444444 & 4.512194 & -0.8077 & 0.423427 & 0.211714 \tabularnewline
M3 & 10.6980555555556 & 4.503192 & 2.3757 & 0.02174 & 0.01087 \tabularnewline
M4 & 3.22055555555556 & 4.49675 & 0.7162 & 0.477491 & 0.238745 \tabularnewline
M5 & 2.52305555555556 & 4.492881 & 0.5616 & 0.577137 & 0.288568 \tabularnewline
M6 & 18.7255555555556 & 4.49159 & 4.169 & 0.000134 & 6.7e-05 \tabularnewline
M7 & -21.0519444444444 & 4.492881 & -4.6856 & 2.5e-05 & 1.3e-05 \tabularnewline
M8 & -11.0094444444444 & 4.49675 & -2.4483 & 0.018226 & 0.009113 \tabularnewline
M9 & 12.5725 & 4.487717 & 2.8015 & 0.007416 & 0.003708 \tabularnewline
M10 & 16.495 & 4.481253 & 3.6809 & 0.000609 & 0.000304 \tabularnewline
M11 & 6.8175 & 4.47737 & 1.5227 & 0.13469 & 0.067345 \tabularnewline
t & 0.5175 & 0.107678 & 4.806 & 1.7e-05 & 8e-06 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32449&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]96.0083333333333[/C][C]3.876395[/C][C]24.7674[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]conjunctuur[/C][C]-0.997222222222228[/C][C]3.730063[/C][C]-0.2673[/C][C]0.790397[/C][C]0.395198[/C][/ROW]
[ROW][C]M1[/C][C]-5.08694444444447[/C][C]4.523743[/C][C]-1.1245[/C][C]0.266635[/C][C]0.133318[/C][/ROW]
[ROW][C]M2[/C][C]-3.64444444444444[/C][C]4.512194[/C][C]-0.8077[/C][C]0.423427[/C][C]0.211714[/C][/ROW]
[ROW][C]M3[/C][C]10.6980555555556[/C][C]4.503192[/C][C]2.3757[/C][C]0.02174[/C][C]0.01087[/C][/ROW]
[ROW][C]M4[/C][C]3.22055555555556[/C][C]4.49675[/C][C]0.7162[/C][C]0.477491[/C][C]0.238745[/C][/ROW]
[ROW][C]M5[/C][C]2.52305555555556[/C][C]4.492881[/C][C]0.5616[/C][C]0.577137[/C][C]0.288568[/C][/ROW]
[ROW][C]M6[/C][C]18.7255555555556[/C][C]4.49159[/C][C]4.169[/C][C]0.000134[/C][C]6.7e-05[/C][/ROW]
[ROW][C]M7[/C][C]-21.0519444444444[/C][C]4.492881[/C][C]-4.6856[/C][C]2.5e-05[/C][C]1.3e-05[/C][/ROW]
[ROW][C]M8[/C][C]-11.0094444444444[/C][C]4.49675[/C][C]-2.4483[/C][C]0.018226[/C][C]0.009113[/C][/ROW]
[ROW][C]M9[/C][C]12.5725[/C][C]4.487717[/C][C]2.8015[/C][C]0.007416[/C][C]0.003708[/C][/ROW]
[ROW][C]M10[/C][C]16.495[/C][C]4.481253[/C][C]3.6809[/C][C]0.000609[/C][C]0.000304[/C][/ROW]
[ROW][C]M11[/C][C]6.8175[/C][C]4.47737[/C][C]1.5227[/C][C]0.13469[/C][C]0.067345[/C][/ROW]
[ROW][C]t[/C][C]0.5175[/C][C]0.107678[/C][C]4.806[/C][C]1.7e-05[/C][C]8e-06[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32449&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32449&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)96.00833333333333.87639524.767400
conjunctuur-0.9972222222222283.730063-0.26730.7903970.395198
M1-5.086944444444474.523743-1.12450.2666350.133318
M2-3.644444444444444.512194-0.80770.4234270.211714
M310.69805555555564.5031922.37570.021740.01087
M43.220555555555564.496750.71620.4774910.238745
M52.523055555555564.4928810.56160.5771370.288568
M618.72555555555564.491594.1690.0001346.7e-05
M7-21.05194444444444.492881-4.68562.5e-051.3e-05
M8-11.00944444444444.49675-2.44830.0182260.009113
M912.57254.4877172.80150.0074160.003708
M1016.4954.4812533.68090.0006090.000304
M116.81754.477371.52270.134690.067345
t0.51750.1076784.8061.7e-058e-06







Multiple Linear Regression - Regression Statistics
Multiple R0.916870594178745
R-squared0.840651686469685
Adjusted R-squared0.795618467428509
F-TEST (value)18.6673683198404
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value3.98570065840431e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.07729666040103
Sum Squared Residuals2304.05388888889

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.916870594178745 \tabularnewline
R-squared & 0.840651686469685 \tabularnewline
Adjusted R-squared & 0.795618467428509 \tabularnewline
F-TEST (value) & 18.6673683198404 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 3.98570065840431e-14 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 7.07729666040103 \tabularnewline
Sum Squared Residuals & 2304.05388888889 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32449&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.916870594178745[/C][/ROW]
[ROW][C]R-squared[/C][C]0.840651686469685[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.795618467428509[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]18.6673683198404[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]3.98570065840431e-14[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]7.07729666040103[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2304.05388888889[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32449&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32449&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.916870594178745
R-squared0.840651686469685
Adjusted R-squared0.795618467428509
F-TEST (value)18.6673683198404
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value3.98570065840431e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.07729666040103
Sum Squared Residuals2304.05388888889







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1103.391.43888888888911.861111111111
2101.293.39888888888897.80111111111112
3107.7108.258888888889-0.558888888888885
4110.4101.2988888888899.10111111111113
5101.9101.1188888888890.781111111111119
6115.9117.838888888889-1.93888888888887
789.978.578888888888911.3211111111111
888.689.1388888888889-0.53888888888889
9117.2113.2383333333333.96166666666667
10123.9117.6783333333336.22166666666668
11100108.518333333333-8.51833333333334
12103.6102.2183333333331.38166666666666
1394.197.6488888888889-3.54888888888887
1498.799.6088888888889-0.908888888888883
15119.5114.4688888888895.03111111111111
16112.7107.5088888888895.19111111111111
17104.4107.328888888889-2.92888888888888
18124.7124.0488888888890.651111111111116
1989.184.78888888888894.31111111111111
209795.34888888888891.65111111111111
21121.6119.4483333333332.15166666666666
22118.8123.888333333333-5.08833333333333
23114114.728333333333-0.72833333333333
24111.5108.4283333333333.07166666666667
2597.2103.858888888889-6.65888888888886
26102.5105.818888888889-3.31888888888889
27113.4120.678888888889-7.27888888888889
28109.8113.718888888889-3.91888888888889
29104.9113.538888888889-8.63888888888889
30126.1130.258888888889-4.15888888888890
318090.9988888888889-10.9988888888889
3296.8101.558888888889-4.7588888888889
33117.2124.661111111111-7.46111111111111
34112.3129.101111111111-16.8011111111111
35117.3119.941111111111-2.64111111111111
36111.1113.641111111111-2.54111111111111
37102.2109.071666666667-6.87166666666663
38104.3111.031666666667-6.73166666666667
39122.9125.891666666667-2.99166666666666
40107.6118.931666666667-11.3316666666667
41121.3118.7516666666672.54833333333333
42131.5135.471666666667-3.97166666666667
438996.2116666666667-7.21166666666667
44104.4106.771666666667-2.37166666666666
45128.9130.871111111111-1.97111111111111
46135.9135.3111111111110.588888888888891
47133.3126.1511111111117.1488888888889
48121.3119.8511111111111.44888888888889
49120.5115.2816666666675.21833333333336
50120.4117.2416666666673.15833333333333
51137.9132.1016666666675.79833333333333
52126.1125.1416666666670.958333333333324
53133.2124.9616666666678.23833333333332
54151.1141.6816666666679.41833333333332
55105102.4216666666672.57833333333333
56119112.9816666666676.01833333333333
57140.4137.0811111111113.31888888888889
58156.6141.52111111111115.0788888888889
59137.1132.3611111111114.73888888888888
60122.7126.061111111111-3.36111111111111

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 103.3 & 91.438888888889 & 11.861111111111 \tabularnewline
2 & 101.2 & 93.3988888888889 & 7.80111111111112 \tabularnewline
3 & 107.7 & 108.258888888889 & -0.558888888888885 \tabularnewline
4 & 110.4 & 101.298888888889 & 9.10111111111113 \tabularnewline
5 & 101.9 & 101.118888888889 & 0.781111111111119 \tabularnewline
6 & 115.9 & 117.838888888889 & -1.93888888888887 \tabularnewline
7 & 89.9 & 78.5788888888889 & 11.3211111111111 \tabularnewline
8 & 88.6 & 89.1388888888889 & -0.53888888888889 \tabularnewline
9 & 117.2 & 113.238333333333 & 3.96166666666667 \tabularnewline
10 & 123.9 & 117.678333333333 & 6.22166666666668 \tabularnewline
11 & 100 & 108.518333333333 & -8.51833333333334 \tabularnewline
12 & 103.6 & 102.218333333333 & 1.38166666666666 \tabularnewline
13 & 94.1 & 97.6488888888889 & -3.54888888888887 \tabularnewline
14 & 98.7 & 99.6088888888889 & -0.908888888888883 \tabularnewline
15 & 119.5 & 114.468888888889 & 5.03111111111111 \tabularnewline
16 & 112.7 & 107.508888888889 & 5.19111111111111 \tabularnewline
17 & 104.4 & 107.328888888889 & -2.92888888888888 \tabularnewline
18 & 124.7 & 124.048888888889 & 0.651111111111116 \tabularnewline
19 & 89.1 & 84.7888888888889 & 4.31111111111111 \tabularnewline
20 & 97 & 95.3488888888889 & 1.65111111111111 \tabularnewline
21 & 121.6 & 119.448333333333 & 2.15166666666666 \tabularnewline
22 & 118.8 & 123.888333333333 & -5.08833333333333 \tabularnewline
23 & 114 & 114.728333333333 & -0.72833333333333 \tabularnewline
24 & 111.5 & 108.428333333333 & 3.07166666666667 \tabularnewline
25 & 97.2 & 103.858888888889 & -6.65888888888886 \tabularnewline
26 & 102.5 & 105.818888888889 & -3.31888888888889 \tabularnewline
27 & 113.4 & 120.678888888889 & -7.27888888888889 \tabularnewline
28 & 109.8 & 113.718888888889 & -3.91888888888889 \tabularnewline
29 & 104.9 & 113.538888888889 & -8.63888888888889 \tabularnewline
30 & 126.1 & 130.258888888889 & -4.15888888888890 \tabularnewline
31 & 80 & 90.9988888888889 & -10.9988888888889 \tabularnewline
32 & 96.8 & 101.558888888889 & -4.7588888888889 \tabularnewline
33 & 117.2 & 124.661111111111 & -7.46111111111111 \tabularnewline
34 & 112.3 & 129.101111111111 & -16.8011111111111 \tabularnewline
35 & 117.3 & 119.941111111111 & -2.64111111111111 \tabularnewline
36 & 111.1 & 113.641111111111 & -2.54111111111111 \tabularnewline
37 & 102.2 & 109.071666666667 & -6.87166666666663 \tabularnewline
38 & 104.3 & 111.031666666667 & -6.73166666666667 \tabularnewline
39 & 122.9 & 125.891666666667 & -2.99166666666666 \tabularnewline
40 & 107.6 & 118.931666666667 & -11.3316666666667 \tabularnewline
41 & 121.3 & 118.751666666667 & 2.54833333333333 \tabularnewline
42 & 131.5 & 135.471666666667 & -3.97166666666667 \tabularnewline
43 & 89 & 96.2116666666667 & -7.21166666666667 \tabularnewline
44 & 104.4 & 106.771666666667 & -2.37166666666666 \tabularnewline
45 & 128.9 & 130.871111111111 & -1.97111111111111 \tabularnewline
46 & 135.9 & 135.311111111111 & 0.588888888888891 \tabularnewline
47 & 133.3 & 126.151111111111 & 7.1488888888889 \tabularnewline
48 & 121.3 & 119.851111111111 & 1.44888888888889 \tabularnewline
49 & 120.5 & 115.281666666667 & 5.21833333333336 \tabularnewline
50 & 120.4 & 117.241666666667 & 3.15833333333333 \tabularnewline
51 & 137.9 & 132.101666666667 & 5.79833333333333 \tabularnewline
52 & 126.1 & 125.141666666667 & 0.958333333333324 \tabularnewline
53 & 133.2 & 124.961666666667 & 8.23833333333332 \tabularnewline
54 & 151.1 & 141.681666666667 & 9.41833333333332 \tabularnewline
55 & 105 & 102.421666666667 & 2.57833333333333 \tabularnewline
56 & 119 & 112.981666666667 & 6.01833333333333 \tabularnewline
57 & 140.4 & 137.081111111111 & 3.31888888888889 \tabularnewline
58 & 156.6 & 141.521111111111 & 15.0788888888889 \tabularnewline
59 & 137.1 & 132.361111111111 & 4.73888888888888 \tabularnewline
60 & 122.7 & 126.061111111111 & -3.36111111111111 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32449&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]91.438888888889[/C][C]11.861111111111[/C][/ROW]
[ROW][C]2[/C][C]101.2[/C][C]93.3988888888889[/C][C]7.80111111111112[/C][/ROW]
[ROW][C]3[/C][C]107.7[/C][C]108.258888888889[/C][C]-0.558888888888885[/C][/ROW]
[ROW][C]4[/C][C]110.4[/C][C]101.298888888889[/C][C]9.10111111111113[/C][/ROW]
[ROW][C]5[/C][C]101.9[/C][C]101.118888888889[/C][C]0.781111111111119[/C][/ROW]
[ROW][C]6[/C][C]115.9[/C][C]117.838888888889[/C][C]-1.93888888888887[/C][/ROW]
[ROW][C]7[/C][C]89.9[/C][C]78.5788888888889[/C][C]11.3211111111111[/C][/ROW]
[ROW][C]8[/C][C]88.6[/C][C]89.1388888888889[/C][C]-0.53888888888889[/C][/ROW]
[ROW][C]9[/C][C]117.2[/C][C]113.238333333333[/C][C]3.96166666666667[/C][/ROW]
[ROW][C]10[/C][C]123.9[/C][C]117.678333333333[/C][C]6.22166666666668[/C][/ROW]
[ROW][C]11[/C][C]100[/C][C]108.518333333333[/C][C]-8.51833333333334[/C][/ROW]
[ROW][C]12[/C][C]103.6[/C][C]102.218333333333[/C][C]1.38166666666666[/C][/ROW]
[ROW][C]13[/C][C]94.1[/C][C]97.6488888888889[/C][C]-3.54888888888887[/C][/ROW]
[ROW][C]14[/C][C]98.7[/C][C]99.6088888888889[/C][C]-0.908888888888883[/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.19111111111111[/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.651111111111116[/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]119.448333333333[/C][C]2.15166666666666[/C][/ROW]
[ROW][C]22[/C][C]118.8[/C][C]123.888333333333[/C][C]-5.08833333333333[/C][/ROW]
[ROW][C]23[/C][C]114[/C][C]114.728333333333[/C][C]-0.72833333333333[/C][/ROW]
[ROW][C]24[/C][C]111.5[/C][C]108.428333333333[/C][C]3.07166666666667[/C][/ROW]
[ROW][C]25[/C][C]97.2[/C][C]103.858888888889[/C][C]-6.65888888888886[/C][/ROW]
[ROW][C]26[/C][C]102.5[/C][C]105.818888888889[/C][C]-3.31888888888889[/C][/ROW]
[ROW][C]27[/C][C]113.4[/C][C]120.678888888889[/C][C]-7.27888888888889[/C][/ROW]
[ROW][C]28[/C][C]109.8[/C][C]113.718888888889[/C][C]-3.91888888888889[/C][/ROW]
[ROW][C]29[/C][C]104.9[/C][C]113.538888888889[/C][C]-8.63888888888889[/C][/ROW]
[ROW][C]30[/C][C]126.1[/C][C]130.258888888889[/C][C]-4.15888888888890[/C][/ROW]
[ROW][C]31[/C][C]80[/C][C]90.9988888888889[/C][C]-10.9988888888889[/C][/ROW]
[ROW][C]32[/C][C]96.8[/C][C]101.558888888889[/C][C]-4.7588888888889[/C][/ROW]
[ROW][C]33[/C][C]117.2[/C][C]124.661111111111[/C][C]-7.46111111111111[/C][/ROW]
[ROW][C]34[/C][C]112.3[/C][C]129.101111111111[/C][C]-16.8011111111111[/C][/ROW]
[ROW][C]35[/C][C]117.3[/C][C]119.941111111111[/C][C]-2.64111111111111[/C][/ROW]
[ROW][C]36[/C][C]111.1[/C][C]113.641111111111[/C][C]-2.54111111111111[/C][/ROW]
[ROW][C]37[/C][C]102.2[/C][C]109.071666666667[/C][C]-6.87166666666663[/C][/ROW]
[ROW][C]38[/C][C]104.3[/C][C]111.031666666667[/C][C]-6.73166666666667[/C][/ROW]
[ROW][C]39[/C][C]122.9[/C][C]125.891666666667[/C][C]-2.99166666666666[/C][/ROW]
[ROW][C]40[/C][C]107.6[/C][C]118.931666666667[/C][C]-11.3316666666667[/C][/ROW]
[ROW][C]41[/C][C]121.3[/C][C]118.751666666667[/C][C]2.54833333333333[/C][/ROW]
[ROW][C]42[/C][C]131.5[/C][C]135.471666666667[/C][C]-3.97166666666667[/C][/ROW]
[ROW][C]43[/C][C]89[/C][C]96.2116666666667[/C][C]-7.21166666666667[/C][/ROW]
[ROW][C]44[/C][C]104.4[/C][C]106.771666666667[/C][C]-2.37166666666666[/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.588888888888891[/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]115.281666666667[/C][C]5.21833333333336[/C][/ROW]
[ROW][C]50[/C][C]120.4[/C][C]117.241666666667[/C][C]3.15833333333333[/C][/ROW]
[ROW][C]51[/C][C]137.9[/C][C]132.101666666667[/C][C]5.79833333333333[/C][/ROW]
[ROW][C]52[/C][C]126.1[/C][C]125.141666666667[/C][C]0.958333333333324[/C][/ROW]
[ROW][C]53[/C][C]133.2[/C][C]124.961666666667[/C][C]8.23833333333332[/C][/ROW]
[ROW][C]54[/C][C]151.1[/C][C]141.681666666667[/C][C]9.41833333333332[/C][/ROW]
[ROW][C]55[/C][C]105[/C][C]102.421666666667[/C][C]2.57833333333333[/C][/ROW]
[ROW][C]56[/C][C]119[/C][C]112.981666666667[/C][C]6.01833333333333[/C][/ROW]
[ROW][C]57[/C][C]140.4[/C][C]137.081111111111[/C][C]3.31888888888889[/C][/ROW]
[ROW][C]58[/C][C]156.6[/C][C]141.521111111111[/C][C]15.0788888888889[/C][/ROW]
[ROW][C]59[/C][C]137.1[/C][C]132.361111111111[/C][C]4.73888888888888[/C][/ROW]
[ROW][C]60[/C][C]122.7[/C][C]126.061111111111[/C][C]-3.36111111111111[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32449&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=32449&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.391.43888888888911.861111111111
2101.293.39888888888897.80111111111112
3107.7108.258888888889-0.558888888888885
4110.4101.2988888888899.10111111111113
5101.9101.1188888888890.781111111111119
6115.9117.838888888889-1.93888888888887
789.978.578888888888911.3211111111111
888.689.1388888888889-0.53888888888889
9117.2113.2383333333333.96166666666667
10123.9117.6783333333336.22166666666668
11100108.518333333333-8.51833333333334
12103.6102.2183333333331.38166666666666
1394.197.6488888888889-3.54888888888887
1498.799.6088888888889-0.908888888888883
15119.5114.4688888888895.03111111111111
16112.7107.5088888888895.19111111111111
17104.4107.328888888889-2.92888888888888
18124.7124.0488888888890.651111111111116
1989.184.78888888888894.31111111111111
209795.34888888888891.65111111111111
21121.6119.4483333333332.15166666666666
22118.8123.888333333333-5.08833333333333
23114114.728333333333-0.72833333333333
24111.5108.4283333333333.07166666666667
2597.2103.858888888889-6.65888888888886
26102.5105.818888888889-3.31888888888889
27113.4120.678888888889-7.27888888888889
28109.8113.718888888889-3.91888888888889
29104.9113.538888888889-8.63888888888889
30126.1130.258888888889-4.15888888888890
318090.9988888888889-10.9988888888889
3296.8101.558888888889-4.7588888888889
33117.2124.661111111111-7.46111111111111
34112.3129.101111111111-16.8011111111111
35117.3119.941111111111-2.64111111111111
36111.1113.641111111111-2.54111111111111
37102.2109.071666666667-6.87166666666663
38104.3111.031666666667-6.73166666666667
39122.9125.891666666667-2.99166666666666
40107.6118.931666666667-11.3316666666667
41121.3118.7516666666672.54833333333333
42131.5135.471666666667-3.97166666666667
438996.2116666666667-7.21166666666667
44104.4106.771666666667-2.37166666666666
45128.9130.871111111111-1.97111111111111
46135.9135.3111111111110.588888888888891
47133.3126.1511111111117.1488888888889
48121.3119.8511111111111.44888888888889
49120.5115.2816666666675.21833333333336
50120.4117.2416666666673.15833333333333
51137.9132.1016666666675.79833333333333
52126.1125.1416666666670.958333333333324
53133.2124.9616666666678.23833333333332
54151.1141.6816666666679.41833333333332
55105102.4216666666672.57833333333333
56119112.9816666666676.01833333333333
57140.4137.0811111111113.31888888888889
58156.6141.52111111111115.0788888888889
59137.1132.3611111111114.73888888888888
60122.7126.061111111111-3.36111111111111







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.628974126225040.7420517475499210.371025873774960
180.5676008337260230.8647983325479530.432399166273977
190.5507881099708930.8984237800582140.449211890029107
200.5394916059842220.9210167880315550.460508394015778
210.4942792676213120.9885585352426240.505720732378688
220.4786481835191380.9572963670382760.521351816480862
230.570813299397590.858373401204820.42918670060241
240.663513220411110.672973559177780.33648677958889
250.6234482127234130.7531035745531750.376551787276587
260.5510267400984540.8979465198030920.448973259901546
270.4708769882764130.9417539765528270.529123011723587
280.5006126266736140.9987747466527710.499387373326386
290.4414024192403380.8828048384806750.558597580759662
300.3584561922237810.7169123844475610.641543807776219
310.4494758769458590.8989517538917190.550524123054141
320.3560687985023480.7121375970046960.643931201497652
330.2768267550793960.5536535101587930.723173244920604
340.5107318269731090.9785363460537820.489268173026891
350.5755145194886990.8489709610226030.424485480511301
360.643229787481980.7135404250360410.356770212518020
370.5740160029449340.8519679941101330.425983997055066
380.4715240775112270.9430481550224540.528475922488773
390.394035872738330.788071745476660.60596412726167
400.3580764045093710.7161528090187420.641923595490629
410.3539006150222030.7078012300444070.646099384977797
420.3271412263130130.6542824526260260.672858773686987
430.2323456299444710.4646912598889430.767654370055529

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.62897412622504 & 0.742051747549921 & 0.371025873774960 \tabularnewline
18 & 0.567600833726023 & 0.864798332547953 & 0.432399166273977 \tabularnewline
19 & 0.550788109970893 & 0.898423780058214 & 0.449211890029107 \tabularnewline
20 & 0.539491605984222 & 0.921016788031555 & 0.460508394015778 \tabularnewline
21 & 0.494279267621312 & 0.988558535242624 & 0.505720732378688 \tabularnewline
22 & 0.478648183519138 & 0.957296367038276 & 0.521351816480862 \tabularnewline
23 & 0.57081329939759 & 0.85837340120482 & 0.42918670060241 \tabularnewline
24 & 0.66351322041111 & 0.67297355917778 & 0.33648677958889 \tabularnewline
25 & 0.623448212723413 & 0.753103574553175 & 0.376551787276587 \tabularnewline
26 & 0.551026740098454 & 0.897946519803092 & 0.448973259901546 \tabularnewline
27 & 0.470876988276413 & 0.941753976552827 & 0.529123011723587 \tabularnewline
28 & 0.500612626673614 & 0.998774746652771 & 0.499387373326386 \tabularnewline
29 & 0.441402419240338 & 0.882804838480675 & 0.558597580759662 \tabularnewline
30 & 0.358456192223781 & 0.716912384447561 & 0.641543807776219 \tabularnewline
31 & 0.449475876945859 & 0.898951753891719 & 0.550524123054141 \tabularnewline
32 & 0.356068798502348 & 0.712137597004696 & 0.643931201497652 \tabularnewline
33 & 0.276826755079396 & 0.553653510158793 & 0.723173244920604 \tabularnewline
34 & 0.510731826973109 & 0.978536346053782 & 0.489268173026891 \tabularnewline
35 & 0.575514519488699 & 0.848970961022603 & 0.424485480511301 \tabularnewline
36 & 0.64322978748198 & 0.713540425036041 & 0.356770212518020 \tabularnewline
37 & 0.574016002944934 & 0.851967994110133 & 0.425983997055066 \tabularnewline
38 & 0.471524077511227 & 0.943048155022454 & 0.528475922488773 \tabularnewline
39 & 0.39403587273833 & 0.78807174547666 & 0.60596412726167 \tabularnewline
40 & 0.358076404509371 & 0.716152809018742 & 0.641923595490629 \tabularnewline
41 & 0.353900615022203 & 0.707801230044407 & 0.646099384977797 \tabularnewline
42 & 0.327141226313013 & 0.654282452626026 & 0.672858773686987 \tabularnewline
43 & 0.232345629944471 & 0.464691259888943 & 0.767654370055529 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=32449&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.62897412622504[/C][C]0.742051747549921[/C][C]0.371025873774960[/C][/ROW]
[ROW][C]18[/C][C]0.567600833726023[/C][C]0.864798332547953[/C][C]0.432399166273977[/C][/ROW]
[ROW][C]19[/C][C]0.550788109970893[/C][C]0.898423780058214[/C][C]0.449211890029107[/C][/ROW]
[ROW][C]20[/C][C]0.539491605984222[/C][C]0.921016788031555[/C][C]0.460508394015778[/C][/ROW]
[ROW][C]21[/C][C]0.494279267621312[/C][C]0.988558535242624[/C][C]0.505720732378688[/C][/ROW]
[ROW][C]22[/C][C]0.478648183519138[/C][C]0.957296367038276[/C][C]0.521351816480862[/C][/ROW]
[ROW][C]23[/C][C]0.57081329939759[/C][C]0.85837340120482[/C][C]0.42918670060241[/C][/ROW]
[ROW][C]24[/C][C]0.66351322041111[/C][C]0.67297355917778[/C][C]0.33648677958889[/C][/ROW]
[ROW][C]25[/C][C]0.623448212723413[/C][C]0.753103574553175[/C][C]0.376551787276587[/C][/ROW]
[ROW][C]26[/C][C]0.551026740098454[/C][C]0.897946519803092[/C][C]0.448973259901546[/C][/ROW]
[ROW][C]27[/C][C]0.470876988276413[/C][C]0.941753976552827[/C][C]0.529123011723587[/C][/ROW]
[ROW][C]28[/C][C]0.500612626673614[/C][C]0.998774746652771[/C][C]0.499387373326386[/C][/ROW]
[ROW][C]29[/C][C]0.441402419240338[/C][C]0.882804838480675[/C][C]0.558597580759662[/C][/ROW]
[ROW][C]30[/C][C]0.358456192223781[/C][C]0.716912384447561[/C][C]0.641543807776219[/C][/ROW]
[ROW][C]31[/C][C]0.449475876945859[/C][C]0.898951753891719[/C][C]0.550524123054141[/C][/ROW]
[ROW][C]32[/C][C]0.356068798502348[/C][C]0.712137597004696[/C][C]0.643931201497652[/C][/ROW]
[ROW][C]33[/C][C]0.276826755079396[/C][C]0.553653510158793[/C][C]0.723173244920604[/C][/ROW]
[ROW][C]34[/C][C]0.510731826973109[/C][C]0.978536346053782[/C][C]0.489268173026891[/C][/ROW]
[ROW][C]35[/C][C]0.575514519488699[/C][C]0.848970961022603[/C][C]0.424485480511301[/C][/ROW]
[ROW][C]36[/C][C]0.64322978748198[/C][C]0.713540425036041[/C][C]0.356770212518020[/C][/ROW]
[ROW][C]37[/C][C]0.574016002944934[/C][C]0.851967994110133[/C][C]0.425983997055066[/C][/ROW]
[ROW][C]38[/C][C]0.471524077511227[/C][C]0.943048155022454[/C][C]0.528475922488773[/C][/ROW]
[ROW][C]39[/C][C]0.39403587273833[/C][C]0.78807174547666[/C][C]0.60596412726167[/C][/ROW]
[ROW][C]40[/C][C]0.358076404509371[/C][C]0.716152809018742[/C][C]0.641923595490629[/C][/ROW]
[ROW][C]41[/C][C]0.353900615022203[/C][C]0.707801230044407[/C][C]0.646099384977797[/C][/ROW]
[ROW][C]42[/C][C]0.327141226313013[/C][C]0.654282452626026[/C][C]0.672858773686987[/C][/ROW]
[ROW][C]43[/C][C]0.232345629944471[/C][C]0.464691259888943[/C][C]0.767654370055529[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=32449&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.628974126225040.7420517475499210.371025873774960
180.5676008337260230.8647983325479530.432399166273977
190.5507881099708930.8984237800582140.449211890029107
200.5394916059842220.9210167880315550.460508394015778
210.4942792676213120.9885585352426240.505720732378688
220.4786481835191380.9572963670382760.521351816480862
230.570813299397590.858373401204820.42918670060241
240.663513220411110.672973559177780.33648677958889
250.6234482127234130.7531035745531750.376551787276587
260.5510267400984540.8979465198030920.448973259901546
270.4708769882764130.9417539765528270.529123011723587
280.5006126266736140.9987747466527710.499387373326386
290.4414024192403380.8828048384806750.558597580759662
300.3584561922237810.7169123844475610.641543807776219
310.4494758769458590.8989517538917190.550524123054141
320.3560687985023480.7121375970046960.643931201497652
330.2768267550793960.5536535101587930.723173244920604
340.5107318269731090.9785363460537820.489268173026891
350.5755145194886990.8489709610226030.424485480511301
360.643229787481980.7135404250360410.356770212518020
370.5740160029449340.8519679941101330.425983997055066
380.4715240775112270.9430481550224540.528475922488773
390.394035872738330.788071745476660.60596412726167
400.3580764045093710.7161528090187420.641923595490629
410.3539006150222030.7078012300444070.646099384977797
420.3271412263130130.6542824526260260.672858773686987
430.2323456299444710.4646912598889430.767654370055529







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

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