Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 27 Nov 2008 15:25:06 -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/Nov/27/t1227824734fvvhktejipdj72l.htm/, Retrieved Sun, 19 May 2024 07:55:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25927, Retrieved Sun, 19 May 2024 07:55:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact158
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2008-11-27 22:25:06] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
123,9	0
124,9	0
112,7	0
121,9	0
100,6	0
104,3	0
120,4	0
107,5	0
102,9	0
125,6	0
107,5	0
108,8	0
128,4	0
121,1	0
119,5	0
128,7	0
108,7	0
105,5	0
119,8	0
111,3	0
110,6	0
120,1	0
97,5	0
107,7	0
127,3	0
117,2	0
119,8	0
116,2	0
111	0
112,4	0
130,6	0
109,1	0
118,8	0
123,9	0
101,6	0
112,8	0
128	0
129,6	0
125,8	0
119,5	0
115,7	0
113,6	0
129,7	0
112	0
116,8	0
127	1
112,1	1
114,2	1
121,1	1
131,6	1
125	1
120,4	1
117,7	1
117,5	1
120,6	1
127,5	1
112,3	1
124,5	1
115,2	1
105,4	1




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Consumptieindex[t] = + 108.052592592593 + 4.31851851851852Dummy[t] + 16.8237037037037M1[t] + 15.9637037037037M2[t] + 11.6437037037037M3[t] + 12.4237037037037M4[t] + 1.82370370370369M5[t] + 1.7437037037037M6[t] + 15.3037037037037M7[t] + 4.5637037037037M8[t] + 3.36370370370369M9[t] + 14.44M10[t] -3.00000000000001M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Consumptieindex[t] =  +  108.052592592593 +  4.31851851851852Dummy[t] +  16.8237037037037M1[t] +  15.9637037037037M2[t] +  11.6437037037037M3[t] +  12.4237037037037M4[t] +  1.82370370370369M5[t] +  1.7437037037037M6[t] +  15.3037037037037M7[t] +  4.5637037037037M8[t] +  3.36370370370369M9[t] +  14.44M10[t] -3.00000000000001M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25927&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Consumptieindex[t] =  +  108.052592592593 +  4.31851851851852Dummy[t] +  16.8237037037037M1[t] +  15.9637037037037M2[t] +  11.6437037037037M3[t] +  12.4237037037037M4[t] +  1.82370370370369M5[t] +  1.7437037037037M6[t] +  15.3037037037037M7[t] +  4.5637037037037M8[t] +  3.36370370370369M9[t] +  14.44M10[t] -3.00000000000001M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25927&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25927&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
Consumptieindex[t] = + 108.052592592593 + 4.31851851851852Dummy[t] + 16.8237037037037M1[t] + 15.9637037037037M2[t] + 11.6437037037037M3[t] + 12.4237037037037M4[t] + 1.82370370370369M5[t] + 1.7437037037037M6[t] + 15.3037037037037M7[t] + 4.5637037037037M8[t] + 3.36370370370369M9[t] + 14.44M10[t] -3.00000000000001M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)108.0525925925932.44038744.276800
Dummy4.318518518518521.6021932.69540.0097240.004862
M116.82370370370373.3454775.02888e-064e-06
M215.96370370370373.3454774.77171.8e-059e-06
M311.64370370370373.3454773.48040.0010910.000546
M412.42370370370373.3454773.71360.0005410.000271
M51.823703703703693.3454770.54510.5882450.294123
M61.74370370370373.3454770.52120.6046660.302333
M715.30370370370373.3454774.57443.5e-051.7e-05
M84.56370370370373.3454771.36410.179020.08951
M93.363703703703693.3454771.00540.319830.159915
M1014.443.3300954.33627.6e-053.8e-05
M11-3.000000000000013.330095-0.90090.3722480.186124

\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) & 108.052592592593 & 2.440387 & 44.2768 & 0 & 0 \tabularnewline
Dummy & 4.31851851851852 & 1.602193 & 2.6954 & 0.009724 & 0.004862 \tabularnewline
M1 & 16.8237037037037 & 3.345477 & 5.0288 & 8e-06 & 4e-06 \tabularnewline
M2 & 15.9637037037037 & 3.345477 & 4.7717 & 1.8e-05 & 9e-06 \tabularnewline
M3 & 11.6437037037037 & 3.345477 & 3.4804 & 0.001091 & 0.000546 \tabularnewline
M4 & 12.4237037037037 & 3.345477 & 3.7136 & 0.000541 & 0.000271 \tabularnewline
M5 & 1.82370370370369 & 3.345477 & 0.5451 & 0.588245 & 0.294123 \tabularnewline
M6 & 1.7437037037037 & 3.345477 & 0.5212 & 0.604666 & 0.302333 \tabularnewline
M7 & 15.3037037037037 & 3.345477 & 4.5744 & 3.5e-05 & 1.7e-05 \tabularnewline
M8 & 4.5637037037037 & 3.345477 & 1.3641 & 0.17902 & 0.08951 \tabularnewline
M9 & 3.36370370370369 & 3.345477 & 1.0054 & 0.31983 & 0.159915 \tabularnewline
M10 & 14.44 & 3.330095 & 4.3362 & 7.6e-05 & 3.8e-05 \tabularnewline
M11 & -3.00000000000001 & 3.330095 & -0.9009 & 0.372248 & 0.186124 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25927&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]108.052592592593[/C][C]2.440387[/C][C]44.2768[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]4.31851851851852[/C][C]1.602193[/C][C]2.6954[/C][C]0.009724[/C][C]0.004862[/C][/ROW]
[ROW][C]M1[/C][C]16.8237037037037[/C][C]3.345477[/C][C]5.0288[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M2[/C][C]15.9637037037037[/C][C]3.345477[/C][C]4.7717[/C][C]1.8e-05[/C][C]9e-06[/C][/ROW]
[ROW][C]M3[/C][C]11.6437037037037[/C][C]3.345477[/C][C]3.4804[/C][C]0.001091[/C][C]0.000546[/C][/ROW]
[ROW][C]M4[/C][C]12.4237037037037[/C][C]3.345477[/C][C]3.7136[/C][C]0.000541[/C][C]0.000271[/C][/ROW]
[ROW][C]M5[/C][C]1.82370370370369[/C][C]3.345477[/C][C]0.5451[/C][C]0.588245[/C][C]0.294123[/C][/ROW]
[ROW][C]M6[/C][C]1.7437037037037[/C][C]3.345477[/C][C]0.5212[/C][C]0.604666[/C][C]0.302333[/C][/ROW]
[ROW][C]M7[/C][C]15.3037037037037[/C][C]3.345477[/C][C]4.5744[/C][C]3.5e-05[/C][C]1.7e-05[/C][/ROW]
[ROW][C]M8[/C][C]4.5637037037037[/C][C]3.345477[/C][C]1.3641[/C][C]0.17902[/C][C]0.08951[/C][/ROW]
[ROW][C]M9[/C][C]3.36370370370369[/C][C]3.345477[/C][C]1.0054[/C][C]0.31983[/C][C]0.159915[/C][/ROW]
[ROW][C]M10[/C][C]14.44[/C][C]3.330095[/C][C]4.3362[/C][C]7.6e-05[/C][C]3.8e-05[/C][/ROW]
[ROW][C]M11[/C][C]-3.00000000000001[/C][C]3.330095[/C][C]-0.9009[/C][C]0.372248[/C][C]0.186124[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25927&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25927&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)108.0525925925932.44038744.276800
Dummy4.318518518518521.6021932.69540.0097240.004862
M116.82370370370373.3454775.02888e-064e-06
M215.96370370370373.3454774.77171.8e-059e-06
M311.64370370370373.3454773.48040.0010910.000546
M412.42370370370373.3454773.71360.0005410.000271
M51.823703703703693.3454770.54510.5882450.294123
M61.74370370370373.3454770.52120.6046660.302333
M715.30370370370373.3454774.57443.5e-051.7e-05
M84.56370370370373.3454771.36410.179020.08951
M93.363703703703693.3454771.00540.319830.159915
M1014.443.3300954.33627.6e-053.8e-05
M11-3.000000000000013.330095-0.90090.3722480.186124







Multiple Linear Regression - Regression Statistics
Multiple R0.831779647608548
R-squared0.6918573821758
Adjusted R-squared0.613182671241963
F-TEST (value)8.79389798785052
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value1.82025579054113e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.26534292248953
Sum Squared Residuals1303.02029629630

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.831779647608548 \tabularnewline
R-squared & 0.6918573821758 \tabularnewline
Adjusted R-squared & 0.613182671241963 \tabularnewline
F-TEST (value) & 8.79389798785052 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 1.82025579054113e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.26534292248953 \tabularnewline
Sum Squared Residuals & 1303.02029629630 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25927&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.831779647608548[/C][/ROW]
[ROW][C]R-squared[/C][C]0.6918573821758[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.613182671241963[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]8.79389798785052[/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]1.82025579054113e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.26534292248953[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1303.02029629630[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25927&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25927&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.831779647608548
R-squared0.6918573821758
Adjusted R-squared0.613182671241963
F-TEST (value)8.79389798785052
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value1.82025579054113e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.26534292248953
Sum Squared Residuals1303.02029629630







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1123.9124.876296296296-0.97629629629647
2124.9124.0162962962960.883703703703711
3112.7119.696296296296-6.99629629629627
4121.9120.4762962962961.42370370370371
5100.6109.876296296296-9.27629629629632
6104.3109.796296296296-5.4962962962963
7120.4123.356296296296-2.95629629629628
8107.5112.616296296296-5.11629629629629
9102.9111.416296296296-8.5162962962963
10125.6122.4925925925933.1074074074074
11107.5105.0525925925932.44740740740741
12108.8108.0525925925930.747407407407402
13128.4124.8762962962963.52370370370375
14121.1124.016296296296-2.91629629629630
15119.5119.696296296296-0.196296296296296
16128.7120.4762962962968.2237037037037
17108.7109.876296296296-1.17629629629629
18105.5109.796296296296-4.29629629629629
19119.8123.356296296296-3.55629629629630
20111.3112.616296296296-1.31629629629630
21110.6111.416296296296-0.816296296296294
22120.1122.492592592593-2.39259259259259
2397.5105.052592592593-7.5525925925926
24107.7108.052592592593-0.352592592592591
25127.3124.8762962962962.42370370370374
26117.2124.016296296296-6.81629629629629
27119.8119.6962962962960.103703703703701
28116.2120.476296296296-4.27629629629629
29111109.8762962962961.12370370370371
30112.4109.7962962962962.60370370370371
31130.6123.3562962962967.2437037037037
32109.1112.616296296296-3.5162962962963
33118.8111.4162962962967.38370370370371
34123.9122.4925925925931.40740740740742
35101.6105.052592592593-3.4525925925926
36112.8108.0525925925934.7474074074074
37128124.8762962962963.12370370370375
38129.6124.0162962962965.5837037037037
39125.8119.6962962962966.1037037037037
40119.5120.476296296296-0.976296296296296
41115.7109.8762962962965.82370370370371
42113.6109.7962962962963.8037037037037
43129.7123.3562962962966.3437037037037
44112112.616296296296-0.616296296296293
45116.8111.4162962962965.38370370370371
46127126.8111111111110.188888888888886
47112.1109.3711111111112.72888888888888
48114.2112.3711111111111.82888888888889
49121.1129.194814814815-8.09481481481478
50131.6128.3348148148153.26518518518518
51125124.0148148148150.98518518518518
52120.4124.794814814815-4.39481481481481
53117.7114.1948148148153.50518518518519
54117.5114.1148148148153.38518518518518
55120.6127.674814814815-7.07481481481482
56127.5116.93481481481510.5651851851852
57112.3115.734814814815-3.43481481481481
58124.5126.811111111111-2.31111111111111
59115.2109.3711111111115.82888888888889
60105.4112.371111111111-6.97111111111111

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 123.9 & 124.876296296296 & -0.97629629629647 \tabularnewline
2 & 124.9 & 124.016296296296 & 0.883703703703711 \tabularnewline
3 & 112.7 & 119.696296296296 & -6.99629629629627 \tabularnewline
4 & 121.9 & 120.476296296296 & 1.42370370370371 \tabularnewline
5 & 100.6 & 109.876296296296 & -9.27629629629632 \tabularnewline
6 & 104.3 & 109.796296296296 & -5.4962962962963 \tabularnewline
7 & 120.4 & 123.356296296296 & -2.95629629629628 \tabularnewline
8 & 107.5 & 112.616296296296 & -5.11629629629629 \tabularnewline
9 & 102.9 & 111.416296296296 & -8.5162962962963 \tabularnewline
10 & 125.6 & 122.492592592593 & 3.1074074074074 \tabularnewline
11 & 107.5 & 105.052592592593 & 2.44740740740741 \tabularnewline
12 & 108.8 & 108.052592592593 & 0.747407407407402 \tabularnewline
13 & 128.4 & 124.876296296296 & 3.52370370370375 \tabularnewline
14 & 121.1 & 124.016296296296 & -2.91629629629630 \tabularnewline
15 & 119.5 & 119.696296296296 & -0.196296296296296 \tabularnewline
16 & 128.7 & 120.476296296296 & 8.2237037037037 \tabularnewline
17 & 108.7 & 109.876296296296 & -1.17629629629629 \tabularnewline
18 & 105.5 & 109.796296296296 & -4.29629629629629 \tabularnewline
19 & 119.8 & 123.356296296296 & -3.55629629629630 \tabularnewline
20 & 111.3 & 112.616296296296 & -1.31629629629630 \tabularnewline
21 & 110.6 & 111.416296296296 & -0.816296296296294 \tabularnewline
22 & 120.1 & 122.492592592593 & -2.39259259259259 \tabularnewline
23 & 97.5 & 105.052592592593 & -7.5525925925926 \tabularnewline
24 & 107.7 & 108.052592592593 & -0.352592592592591 \tabularnewline
25 & 127.3 & 124.876296296296 & 2.42370370370374 \tabularnewline
26 & 117.2 & 124.016296296296 & -6.81629629629629 \tabularnewline
27 & 119.8 & 119.696296296296 & 0.103703703703701 \tabularnewline
28 & 116.2 & 120.476296296296 & -4.27629629629629 \tabularnewline
29 & 111 & 109.876296296296 & 1.12370370370371 \tabularnewline
30 & 112.4 & 109.796296296296 & 2.60370370370371 \tabularnewline
31 & 130.6 & 123.356296296296 & 7.2437037037037 \tabularnewline
32 & 109.1 & 112.616296296296 & -3.5162962962963 \tabularnewline
33 & 118.8 & 111.416296296296 & 7.38370370370371 \tabularnewline
34 & 123.9 & 122.492592592593 & 1.40740740740742 \tabularnewline
35 & 101.6 & 105.052592592593 & -3.4525925925926 \tabularnewline
36 & 112.8 & 108.052592592593 & 4.7474074074074 \tabularnewline
37 & 128 & 124.876296296296 & 3.12370370370375 \tabularnewline
38 & 129.6 & 124.016296296296 & 5.5837037037037 \tabularnewline
39 & 125.8 & 119.696296296296 & 6.1037037037037 \tabularnewline
40 & 119.5 & 120.476296296296 & -0.976296296296296 \tabularnewline
41 & 115.7 & 109.876296296296 & 5.82370370370371 \tabularnewline
42 & 113.6 & 109.796296296296 & 3.8037037037037 \tabularnewline
43 & 129.7 & 123.356296296296 & 6.3437037037037 \tabularnewline
44 & 112 & 112.616296296296 & -0.616296296296293 \tabularnewline
45 & 116.8 & 111.416296296296 & 5.38370370370371 \tabularnewline
46 & 127 & 126.811111111111 & 0.188888888888886 \tabularnewline
47 & 112.1 & 109.371111111111 & 2.72888888888888 \tabularnewline
48 & 114.2 & 112.371111111111 & 1.82888888888889 \tabularnewline
49 & 121.1 & 129.194814814815 & -8.09481481481478 \tabularnewline
50 & 131.6 & 128.334814814815 & 3.26518518518518 \tabularnewline
51 & 125 & 124.014814814815 & 0.98518518518518 \tabularnewline
52 & 120.4 & 124.794814814815 & -4.39481481481481 \tabularnewline
53 & 117.7 & 114.194814814815 & 3.50518518518519 \tabularnewline
54 & 117.5 & 114.114814814815 & 3.38518518518518 \tabularnewline
55 & 120.6 & 127.674814814815 & -7.07481481481482 \tabularnewline
56 & 127.5 & 116.934814814815 & 10.5651851851852 \tabularnewline
57 & 112.3 & 115.734814814815 & -3.43481481481481 \tabularnewline
58 & 124.5 & 126.811111111111 & -2.31111111111111 \tabularnewline
59 & 115.2 & 109.371111111111 & 5.82888888888889 \tabularnewline
60 & 105.4 & 112.371111111111 & -6.97111111111111 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25927&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]123.9[/C][C]124.876296296296[/C][C]-0.97629629629647[/C][/ROW]
[ROW][C]2[/C][C]124.9[/C][C]124.016296296296[/C][C]0.883703703703711[/C][/ROW]
[ROW][C]3[/C][C]112.7[/C][C]119.696296296296[/C][C]-6.99629629629627[/C][/ROW]
[ROW][C]4[/C][C]121.9[/C][C]120.476296296296[/C][C]1.42370370370371[/C][/ROW]
[ROW][C]5[/C][C]100.6[/C][C]109.876296296296[/C][C]-9.27629629629632[/C][/ROW]
[ROW][C]6[/C][C]104.3[/C][C]109.796296296296[/C][C]-5.4962962962963[/C][/ROW]
[ROW][C]7[/C][C]120.4[/C][C]123.356296296296[/C][C]-2.95629629629628[/C][/ROW]
[ROW][C]8[/C][C]107.5[/C][C]112.616296296296[/C][C]-5.11629629629629[/C][/ROW]
[ROW][C]9[/C][C]102.9[/C][C]111.416296296296[/C][C]-8.5162962962963[/C][/ROW]
[ROW][C]10[/C][C]125.6[/C][C]122.492592592593[/C][C]3.1074074074074[/C][/ROW]
[ROW][C]11[/C][C]107.5[/C][C]105.052592592593[/C][C]2.44740740740741[/C][/ROW]
[ROW][C]12[/C][C]108.8[/C][C]108.052592592593[/C][C]0.747407407407402[/C][/ROW]
[ROW][C]13[/C][C]128.4[/C][C]124.876296296296[/C][C]3.52370370370375[/C][/ROW]
[ROW][C]14[/C][C]121.1[/C][C]124.016296296296[/C][C]-2.91629629629630[/C][/ROW]
[ROW][C]15[/C][C]119.5[/C][C]119.696296296296[/C][C]-0.196296296296296[/C][/ROW]
[ROW][C]16[/C][C]128.7[/C][C]120.476296296296[/C][C]8.2237037037037[/C][/ROW]
[ROW][C]17[/C][C]108.7[/C][C]109.876296296296[/C][C]-1.17629629629629[/C][/ROW]
[ROW][C]18[/C][C]105.5[/C][C]109.796296296296[/C][C]-4.29629629629629[/C][/ROW]
[ROW][C]19[/C][C]119.8[/C][C]123.356296296296[/C][C]-3.55629629629630[/C][/ROW]
[ROW][C]20[/C][C]111.3[/C][C]112.616296296296[/C][C]-1.31629629629630[/C][/ROW]
[ROW][C]21[/C][C]110.6[/C][C]111.416296296296[/C][C]-0.816296296296294[/C][/ROW]
[ROW][C]22[/C][C]120.1[/C][C]122.492592592593[/C][C]-2.39259259259259[/C][/ROW]
[ROW][C]23[/C][C]97.5[/C][C]105.052592592593[/C][C]-7.5525925925926[/C][/ROW]
[ROW][C]24[/C][C]107.7[/C][C]108.052592592593[/C][C]-0.352592592592591[/C][/ROW]
[ROW][C]25[/C][C]127.3[/C][C]124.876296296296[/C][C]2.42370370370374[/C][/ROW]
[ROW][C]26[/C][C]117.2[/C][C]124.016296296296[/C][C]-6.81629629629629[/C][/ROW]
[ROW][C]27[/C][C]119.8[/C][C]119.696296296296[/C][C]0.103703703703701[/C][/ROW]
[ROW][C]28[/C][C]116.2[/C][C]120.476296296296[/C][C]-4.27629629629629[/C][/ROW]
[ROW][C]29[/C][C]111[/C][C]109.876296296296[/C][C]1.12370370370371[/C][/ROW]
[ROW][C]30[/C][C]112.4[/C][C]109.796296296296[/C][C]2.60370370370371[/C][/ROW]
[ROW][C]31[/C][C]130.6[/C][C]123.356296296296[/C][C]7.2437037037037[/C][/ROW]
[ROW][C]32[/C][C]109.1[/C][C]112.616296296296[/C][C]-3.5162962962963[/C][/ROW]
[ROW][C]33[/C][C]118.8[/C][C]111.416296296296[/C][C]7.38370370370371[/C][/ROW]
[ROW][C]34[/C][C]123.9[/C][C]122.492592592593[/C][C]1.40740740740742[/C][/ROW]
[ROW][C]35[/C][C]101.6[/C][C]105.052592592593[/C][C]-3.4525925925926[/C][/ROW]
[ROW][C]36[/C][C]112.8[/C][C]108.052592592593[/C][C]4.7474074074074[/C][/ROW]
[ROW][C]37[/C][C]128[/C][C]124.876296296296[/C][C]3.12370370370375[/C][/ROW]
[ROW][C]38[/C][C]129.6[/C][C]124.016296296296[/C][C]5.5837037037037[/C][/ROW]
[ROW][C]39[/C][C]125.8[/C][C]119.696296296296[/C][C]6.1037037037037[/C][/ROW]
[ROW][C]40[/C][C]119.5[/C][C]120.476296296296[/C][C]-0.976296296296296[/C][/ROW]
[ROW][C]41[/C][C]115.7[/C][C]109.876296296296[/C][C]5.82370370370371[/C][/ROW]
[ROW][C]42[/C][C]113.6[/C][C]109.796296296296[/C][C]3.8037037037037[/C][/ROW]
[ROW][C]43[/C][C]129.7[/C][C]123.356296296296[/C][C]6.3437037037037[/C][/ROW]
[ROW][C]44[/C][C]112[/C][C]112.616296296296[/C][C]-0.616296296296293[/C][/ROW]
[ROW][C]45[/C][C]116.8[/C][C]111.416296296296[/C][C]5.38370370370371[/C][/ROW]
[ROW][C]46[/C][C]127[/C][C]126.811111111111[/C][C]0.188888888888886[/C][/ROW]
[ROW][C]47[/C][C]112.1[/C][C]109.371111111111[/C][C]2.72888888888888[/C][/ROW]
[ROW][C]48[/C][C]114.2[/C][C]112.371111111111[/C][C]1.82888888888889[/C][/ROW]
[ROW][C]49[/C][C]121.1[/C][C]129.194814814815[/C][C]-8.09481481481478[/C][/ROW]
[ROW][C]50[/C][C]131.6[/C][C]128.334814814815[/C][C]3.26518518518518[/C][/ROW]
[ROW][C]51[/C][C]125[/C][C]124.014814814815[/C][C]0.98518518518518[/C][/ROW]
[ROW][C]52[/C][C]120.4[/C][C]124.794814814815[/C][C]-4.39481481481481[/C][/ROW]
[ROW][C]53[/C][C]117.7[/C][C]114.194814814815[/C][C]3.50518518518519[/C][/ROW]
[ROW][C]54[/C][C]117.5[/C][C]114.114814814815[/C][C]3.38518518518518[/C][/ROW]
[ROW][C]55[/C][C]120.6[/C][C]127.674814814815[/C][C]-7.07481481481482[/C][/ROW]
[ROW][C]56[/C][C]127.5[/C][C]116.934814814815[/C][C]10.5651851851852[/C][/ROW]
[ROW][C]57[/C][C]112.3[/C][C]115.734814814815[/C][C]-3.43481481481481[/C][/ROW]
[ROW][C]58[/C][C]124.5[/C][C]126.811111111111[/C][C]-2.31111111111111[/C][/ROW]
[ROW][C]59[/C][C]115.2[/C][C]109.371111111111[/C][C]5.82888888888889[/C][/ROW]
[ROW][C]60[/C][C]105.4[/C][C]112.371111111111[/C][C]-6.97111111111111[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25927&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25927&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
1123.9124.876296296296-0.97629629629647
2124.9124.0162962962960.883703703703711
3112.7119.696296296296-6.99629629629627
4121.9120.4762962962961.42370370370371
5100.6109.876296296296-9.27629629629632
6104.3109.796296296296-5.4962962962963
7120.4123.356296296296-2.95629629629628
8107.5112.616296296296-5.11629629629629
9102.9111.416296296296-8.5162962962963
10125.6122.4925925925933.1074074074074
11107.5105.0525925925932.44740740740741
12108.8108.0525925925930.747407407407402
13128.4124.8762962962963.52370370370375
14121.1124.016296296296-2.91629629629630
15119.5119.696296296296-0.196296296296296
16128.7120.4762962962968.2237037037037
17108.7109.876296296296-1.17629629629629
18105.5109.796296296296-4.29629629629629
19119.8123.356296296296-3.55629629629630
20111.3112.616296296296-1.31629629629630
21110.6111.416296296296-0.816296296296294
22120.1122.492592592593-2.39259259259259
2397.5105.052592592593-7.5525925925926
24107.7108.052592592593-0.352592592592591
25127.3124.8762962962962.42370370370374
26117.2124.016296296296-6.81629629629629
27119.8119.6962962962960.103703703703701
28116.2120.476296296296-4.27629629629629
29111109.8762962962961.12370370370371
30112.4109.7962962962962.60370370370371
31130.6123.3562962962967.2437037037037
32109.1112.616296296296-3.5162962962963
33118.8111.4162962962967.38370370370371
34123.9122.4925925925931.40740740740742
35101.6105.052592592593-3.4525925925926
36112.8108.0525925925934.7474074074074
37128124.8762962962963.12370370370375
38129.6124.0162962962965.5837037037037
39125.8119.6962962962966.1037037037037
40119.5120.476296296296-0.976296296296296
41115.7109.8762962962965.82370370370371
42113.6109.7962962962963.8037037037037
43129.7123.3562962962966.3437037037037
44112112.616296296296-0.616296296296293
45116.8111.4162962962965.38370370370371
46127126.8111111111110.188888888888886
47112.1109.3711111111112.72888888888888
48114.2112.3711111111111.82888888888889
49121.1129.194814814815-8.09481481481478
50131.6128.3348148148153.26518518518518
51125124.0148148148150.98518518518518
52120.4124.794814814815-4.39481481481481
53117.7114.1948148148153.50518518518519
54117.5114.1148148148153.38518518518518
55120.6127.674814814815-7.07481481481482
56127.5116.93481481481510.5651851851852
57112.3115.734814814815-3.43481481481481
58124.5126.811111111111-2.31111111111111
59115.2109.3711111111115.82888888888889
60105.4112.371111111111-6.97111111111111







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.5033407390561780.9933185218876440.496659260943822
170.5313001333881520.9373997332236970.468699866611848
180.4106869504876330.8213739009752660.589313049512367
190.2961621470770060.5923242941540110.703837852922994
200.2257138733164850.4514277466329690.774286126683515
210.2529947222627580.5059894445255160.747005277737242
220.2172789319076350.4345578638152710.782721068092365
230.3581879280412110.7163758560824220.641812071958789
240.2646163799686810.5292327599373620.735383620031319
250.1948105752659110.3896211505318210.80518942473409
260.2810828004422030.5621656008844050.718917199557797
270.2409780876437910.4819561752875820.759021912356209
280.3032391110951360.6064782221902720.696760888904864
290.3022531694953880.6045063389907760.697746830504612
300.3007994708135820.6015989416271630.699200529186418
310.3937756848211220.7875513696422430.606224315178878
320.429111216315680.858222432631360.57088878368432
330.5282693797767230.9434612404465550.471730620223277
340.4287517386339330.8575034772678650.571248261366067
350.5509627272696510.8980745454606980.449037272730349
360.4845026018386070.9690052036772140.515497398161393
370.470804813543770.941609627087540.52919518645623
380.43128040540760.86256081081520.5687195945924
390.3858381564465420.7716763128930840.614161843553458
400.2834542622681640.5669085245363280.716545737731836
410.2309451576298310.4618903152596620.769054842370169
420.1656558435187810.3313116870375620.83434415648122
430.2485531313727220.4971062627454450.751446868627277
440.6061875405538740.7876249188922530.393812459446126

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.503340739056178 & 0.993318521887644 & 0.496659260943822 \tabularnewline
17 & 0.531300133388152 & 0.937399733223697 & 0.468699866611848 \tabularnewline
18 & 0.410686950487633 & 0.821373900975266 & 0.589313049512367 \tabularnewline
19 & 0.296162147077006 & 0.592324294154011 & 0.703837852922994 \tabularnewline
20 & 0.225713873316485 & 0.451427746632969 & 0.774286126683515 \tabularnewline
21 & 0.252994722262758 & 0.505989444525516 & 0.747005277737242 \tabularnewline
22 & 0.217278931907635 & 0.434557863815271 & 0.782721068092365 \tabularnewline
23 & 0.358187928041211 & 0.716375856082422 & 0.641812071958789 \tabularnewline
24 & 0.264616379968681 & 0.529232759937362 & 0.735383620031319 \tabularnewline
25 & 0.194810575265911 & 0.389621150531821 & 0.80518942473409 \tabularnewline
26 & 0.281082800442203 & 0.562165600884405 & 0.718917199557797 \tabularnewline
27 & 0.240978087643791 & 0.481956175287582 & 0.759021912356209 \tabularnewline
28 & 0.303239111095136 & 0.606478222190272 & 0.696760888904864 \tabularnewline
29 & 0.302253169495388 & 0.604506338990776 & 0.697746830504612 \tabularnewline
30 & 0.300799470813582 & 0.601598941627163 & 0.699200529186418 \tabularnewline
31 & 0.393775684821122 & 0.787551369642243 & 0.606224315178878 \tabularnewline
32 & 0.42911121631568 & 0.85822243263136 & 0.57088878368432 \tabularnewline
33 & 0.528269379776723 & 0.943461240446555 & 0.471730620223277 \tabularnewline
34 & 0.428751738633933 & 0.857503477267865 & 0.571248261366067 \tabularnewline
35 & 0.550962727269651 & 0.898074545460698 & 0.449037272730349 \tabularnewline
36 & 0.484502601838607 & 0.969005203677214 & 0.515497398161393 \tabularnewline
37 & 0.47080481354377 & 0.94160962708754 & 0.52919518645623 \tabularnewline
38 & 0.4312804054076 & 0.8625608108152 & 0.5687195945924 \tabularnewline
39 & 0.385838156446542 & 0.771676312893084 & 0.614161843553458 \tabularnewline
40 & 0.283454262268164 & 0.566908524536328 & 0.716545737731836 \tabularnewline
41 & 0.230945157629831 & 0.461890315259662 & 0.769054842370169 \tabularnewline
42 & 0.165655843518781 & 0.331311687037562 & 0.83434415648122 \tabularnewline
43 & 0.248553131372722 & 0.497106262745445 & 0.751446868627277 \tabularnewline
44 & 0.606187540553874 & 0.787624918892253 & 0.393812459446126 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25927&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.503340739056178[/C][C]0.993318521887644[/C][C]0.496659260943822[/C][/ROW]
[ROW][C]17[/C][C]0.531300133388152[/C][C]0.937399733223697[/C][C]0.468699866611848[/C][/ROW]
[ROW][C]18[/C][C]0.410686950487633[/C][C]0.821373900975266[/C][C]0.589313049512367[/C][/ROW]
[ROW][C]19[/C][C]0.296162147077006[/C][C]0.592324294154011[/C][C]0.703837852922994[/C][/ROW]
[ROW][C]20[/C][C]0.225713873316485[/C][C]0.451427746632969[/C][C]0.774286126683515[/C][/ROW]
[ROW][C]21[/C][C]0.252994722262758[/C][C]0.505989444525516[/C][C]0.747005277737242[/C][/ROW]
[ROW][C]22[/C][C]0.217278931907635[/C][C]0.434557863815271[/C][C]0.782721068092365[/C][/ROW]
[ROW][C]23[/C][C]0.358187928041211[/C][C]0.716375856082422[/C][C]0.641812071958789[/C][/ROW]
[ROW][C]24[/C][C]0.264616379968681[/C][C]0.529232759937362[/C][C]0.735383620031319[/C][/ROW]
[ROW][C]25[/C][C]0.194810575265911[/C][C]0.389621150531821[/C][C]0.80518942473409[/C][/ROW]
[ROW][C]26[/C][C]0.281082800442203[/C][C]0.562165600884405[/C][C]0.718917199557797[/C][/ROW]
[ROW][C]27[/C][C]0.240978087643791[/C][C]0.481956175287582[/C][C]0.759021912356209[/C][/ROW]
[ROW][C]28[/C][C]0.303239111095136[/C][C]0.606478222190272[/C][C]0.696760888904864[/C][/ROW]
[ROW][C]29[/C][C]0.302253169495388[/C][C]0.604506338990776[/C][C]0.697746830504612[/C][/ROW]
[ROW][C]30[/C][C]0.300799470813582[/C][C]0.601598941627163[/C][C]0.699200529186418[/C][/ROW]
[ROW][C]31[/C][C]0.393775684821122[/C][C]0.787551369642243[/C][C]0.606224315178878[/C][/ROW]
[ROW][C]32[/C][C]0.42911121631568[/C][C]0.85822243263136[/C][C]0.57088878368432[/C][/ROW]
[ROW][C]33[/C][C]0.528269379776723[/C][C]0.943461240446555[/C][C]0.471730620223277[/C][/ROW]
[ROW][C]34[/C][C]0.428751738633933[/C][C]0.857503477267865[/C][C]0.571248261366067[/C][/ROW]
[ROW][C]35[/C][C]0.550962727269651[/C][C]0.898074545460698[/C][C]0.449037272730349[/C][/ROW]
[ROW][C]36[/C][C]0.484502601838607[/C][C]0.969005203677214[/C][C]0.515497398161393[/C][/ROW]
[ROW][C]37[/C][C]0.47080481354377[/C][C]0.94160962708754[/C][C]0.52919518645623[/C][/ROW]
[ROW][C]38[/C][C]0.4312804054076[/C][C]0.8625608108152[/C][C]0.5687195945924[/C][/ROW]
[ROW][C]39[/C][C]0.385838156446542[/C][C]0.771676312893084[/C][C]0.614161843553458[/C][/ROW]
[ROW][C]40[/C][C]0.283454262268164[/C][C]0.566908524536328[/C][C]0.716545737731836[/C][/ROW]
[ROW][C]41[/C][C]0.230945157629831[/C][C]0.461890315259662[/C][C]0.769054842370169[/C][/ROW]
[ROW][C]42[/C][C]0.165655843518781[/C][C]0.331311687037562[/C][C]0.83434415648122[/C][/ROW]
[ROW][C]43[/C][C]0.248553131372722[/C][C]0.497106262745445[/C][C]0.751446868627277[/C][/ROW]
[ROW][C]44[/C][C]0.606187540553874[/C][C]0.787624918892253[/C][C]0.393812459446126[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25927&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25927&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.5033407390561780.9933185218876440.496659260943822
170.5313001333881520.9373997332236970.468699866611848
180.4106869504876330.8213739009752660.589313049512367
190.2961621470770060.5923242941540110.703837852922994
200.2257138733164850.4514277466329690.774286126683515
210.2529947222627580.5059894445255160.747005277737242
220.2172789319076350.4345578638152710.782721068092365
230.3581879280412110.7163758560824220.641812071958789
240.2646163799686810.5292327599373620.735383620031319
250.1948105752659110.3896211505318210.80518942473409
260.2810828004422030.5621656008844050.718917199557797
270.2409780876437910.4819561752875820.759021912356209
280.3032391110951360.6064782221902720.696760888904864
290.3022531694953880.6045063389907760.697746830504612
300.3007994708135820.6015989416271630.699200529186418
310.3937756848211220.7875513696422430.606224315178878
320.429111216315680.858222432631360.57088878368432
330.5282693797767230.9434612404465550.471730620223277
340.4287517386339330.8575034772678650.571248261366067
350.5509627272696510.8980745454606980.449037272730349
360.4845026018386070.9690052036772140.515497398161393
370.470804813543770.941609627087540.52919518645623
380.43128040540760.86256081081520.5687195945924
390.3858381564465420.7716763128930840.614161843553458
400.2834542622681640.5669085245363280.716545737731836
410.2309451576298310.4618903152596620.769054842370169
420.1656558435187810.3313116870375620.83434415648122
430.2485531313727220.4971062627454450.751446868627277
440.6061875405538740.7876249188922530.393812459446126







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

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