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:21:05 -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/t122782448369c6txfmfl0abxq.htm/, Retrieved Sun, 19 May 2024 10:25:50 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25925, Retrieved Sun, 19 May 2024 10:25:50 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact152
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2008-11-27 22:21:05] [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 time4 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 4 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25925&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25925&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25925&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 time4 seconds
R Server'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
Consumtieindex[t] = + 116.251111111111 + 3.22222222222223Dummy[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Consumtieindex[t] =  +  116.251111111111 +  3.22222222222223Dummy[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25925&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Consumtieindex[t] =  +  116.251111111111 +  3.22222222222223Dummy[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25925&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25925&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
Consumtieindex[t] = + 116.251111111111 + 3.22222222222223Dummy[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)116.2511111111111.25515492.61900
Dummy3.222222222222232.5103071.28360.2043880.102194

\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) & 116.251111111111 & 1.255154 & 92.619 & 0 & 0 \tabularnewline
Dummy & 3.22222222222223 & 2.510307 & 1.2836 & 0.204388 & 0.102194 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25925&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]116.251111111111[/C][C]1.255154[/C][C]92.619[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]3.22222222222223[/C][C]2.510307[/C][C]1.2836[/C][C]0.204388[/C][C]0.102194[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25925&T=2

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







Multiple Linear Regression - Regression Statistics
Multiple R0.166200391832115
R-squared0.0276225702451487
Adjusted R-squared0.0108574421459272
F-TEST (value)1.64762058969482
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.204387768219214
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.41982653783337
Sum Squared Residuals4111.82177777777

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.166200391832115 \tabularnewline
R-squared & 0.0276225702451487 \tabularnewline
Adjusted R-squared & 0.0108574421459272 \tabularnewline
F-TEST (value) & 1.64762058969482 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0.204387768219214 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 8.41982653783337 \tabularnewline
Sum Squared Residuals & 4111.82177777777 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25925&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.166200391832115[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0276225702451487[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0108574421459272[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.64762058969482[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]0.204387768219214[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]8.41982653783337[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]4111.82177777777[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25925&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25925&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.166200391832115
R-squared0.0276225702451487
Adjusted R-squared0.0108574421459272
F-TEST (value)1.64762058969482
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.204387768219214
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.41982653783337
Sum Squared Residuals4111.82177777777







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1123.9116.2511111111117.64888888888865
2124.9116.2511111111118.6488888888889
3112.7116.251111111111-3.5511111111111
4121.9116.2511111111115.6488888888889
5100.6116.251111111111-15.6511111111111
6104.3116.251111111111-11.9511111111111
7120.4116.2511111111114.1488888888889
8107.5116.251111111111-8.7511111111111
9102.9116.251111111111-13.3511111111111
10125.6116.2511111111119.34888888888889
11107.5116.251111111111-8.7511111111111
12108.8116.251111111111-7.4511111111111
13128.4116.25111111111112.1488888888889
14121.1116.2511111111114.84888888888889
15119.5116.2511111111113.24888888888889
16128.7116.25111111111112.4488888888889
17108.7116.251111111111-7.5511111111111
18105.5116.251111111111-10.7511111111111
19119.8116.2511111111113.54888888888889
20111.3116.251111111111-4.95111111111111
21110.6116.251111111111-5.65111111111111
22120.1116.2511111111113.84888888888889
2397.5116.251111111111-18.7511111111111
24107.7116.251111111111-8.5511111111111
25127.3116.25111111111111.0488888888889
26117.2116.2511111111110.948888888888898
27119.8116.2511111111113.54888888888889
28116.2116.251111111111-0.0511111111111024
29111116.251111111111-5.25111111111111
30112.4116.251111111111-3.8511111111111
31130.6116.25111111111114.3488888888889
32109.1116.251111111111-7.15111111111111
33118.8116.2511111111112.54888888888889
34123.9116.2511111111117.6488888888889
35101.6116.251111111111-14.6511111111111
36112.8116.251111111111-3.45111111111111
37128116.25111111111111.7488888888889
38129.6116.25111111111113.3488888888889
39125.8116.2511111111119.5488888888889
40119.5116.2511111111113.24888888888889
41115.7116.251111111111-0.551111111111102
42113.6116.251111111111-2.65111111111111
43129.7116.25111111111113.4488888888889
44112116.251111111111-4.25111111111111
45116.8116.2511111111110.548888888888892
46127119.4733333333337.52666666666667
47112.1119.473333333333-7.37333333333334
48114.2119.473333333333-5.27333333333333
49121.1119.4733333333331.62666666666666
50131.6119.47333333333312.1266666666667
51125119.4733333333335.52666666666667
52120.4119.4733333333330.926666666666673
53117.7119.473333333333-1.77333333333333
54117.5119.473333333333-1.97333333333333
55120.6119.4733333333331.12666666666666
56127.5119.4733333333338.02666666666667
57112.3119.473333333333-7.17333333333334
58124.5119.4733333333335.02666666666667
59115.2119.473333333333-4.27333333333333
60105.4119.473333333333-14.0733333333333

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 123.9 & 116.251111111111 & 7.64888888888865 \tabularnewline
2 & 124.9 & 116.251111111111 & 8.6488888888889 \tabularnewline
3 & 112.7 & 116.251111111111 & -3.5511111111111 \tabularnewline
4 & 121.9 & 116.251111111111 & 5.6488888888889 \tabularnewline
5 & 100.6 & 116.251111111111 & -15.6511111111111 \tabularnewline
6 & 104.3 & 116.251111111111 & -11.9511111111111 \tabularnewline
7 & 120.4 & 116.251111111111 & 4.1488888888889 \tabularnewline
8 & 107.5 & 116.251111111111 & -8.7511111111111 \tabularnewline
9 & 102.9 & 116.251111111111 & -13.3511111111111 \tabularnewline
10 & 125.6 & 116.251111111111 & 9.34888888888889 \tabularnewline
11 & 107.5 & 116.251111111111 & -8.7511111111111 \tabularnewline
12 & 108.8 & 116.251111111111 & -7.4511111111111 \tabularnewline
13 & 128.4 & 116.251111111111 & 12.1488888888889 \tabularnewline
14 & 121.1 & 116.251111111111 & 4.84888888888889 \tabularnewline
15 & 119.5 & 116.251111111111 & 3.24888888888889 \tabularnewline
16 & 128.7 & 116.251111111111 & 12.4488888888889 \tabularnewline
17 & 108.7 & 116.251111111111 & -7.5511111111111 \tabularnewline
18 & 105.5 & 116.251111111111 & -10.7511111111111 \tabularnewline
19 & 119.8 & 116.251111111111 & 3.54888888888889 \tabularnewline
20 & 111.3 & 116.251111111111 & -4.95111111111111 \tabularnewline
21 & 110.6 & 116.251111111111 & -5.65111111111111 \tabularnewline
22 & 120.1 & 116.251111111111 & 3.84888888888889 \tabularnewline
23 & 97.5 & 116.251111111111 & -18.7511111111111 \tabularnewline
24 & 107.7 & 116.251111111111 & -8.5511111111111 \tabularnewline
25 & 127.3 & 116.251111111111 & 11.0488888888889 \tabularnewline
26 & 117.2 & 116.251111111111 & 0.948888888888898 \tabularnewline
27 & 119.8 & 116.251111111111 & 3.54888888888889 \tabularnewline
28 & 116.2 & 116.251111111111 & -0.0511111111111024 \tabularnewline
29 & 111 & 116.251111111111 & -5.25111111111111 \tabularnewline
30 & 112.4 & 116.251111111111 & -3.8511111111111 \tabularnewline
31 & 130.6 & 116.251111111111 & 14.3488888888889 \tabularnewline
32 & 109.1 & 116.251111111111 & -7.15111111111111 \tabularnewline
33 & 118.8 & 116.251111111111 & 2.54888888888889 \tabularnewline
34 & 123.9 & 116.251111111111 & 7.6488888888889 \tabularnewline
35 & 101.6 & 116.251111111111 & -14.6511111111111 \tabularnewline
36 & 112.8 & 116.251111111111 & -3.45111111111111 \tabularnewline
37 & 128 & 116.251111111111 & 11.7488888888889 \tabularnewline
38 & 129.6 & 116.251111111111 & 13.3488888888889 \tabularnewline
39 & 125.8 & 116.251111111111 & 9.5488888888889 \tabularnewline
40 & 119.5 & 116.251111111111 & 3.24888888888889 \tabularnewline
41 & 115.7 & 116.251111111111 & -0.551111111111102 \tabularnewline
42 & 113.6 & 116.251111111111 & -2.65111111111111 \tabularnewline
43 & 129.7 & 116.251111111111 & 13.4488888888889 \tabularnewline
44 & 112 & 116.251111111111 & -4.25111111111111 \tabularnewline
45 & 116.8 & 116.251111111111 & 0.548888888888892 \tabularnewline
46 & 127 & 119.473333333333 & 7.52666666666667 \tabularnewline
47 & 112.1 & 119.473333333333 & -7.37333333333334 \tabularnewline
48 & 114.2 & 119.473333333333 & -5.27333333333333 \tabularnewline
49 & 121.1 & 119.473333333333 & 1.62666666666666 \tabularnewline
50 & 131.6 & 119.473333333333 & 12.1266666666667 \tabularnewline
51 & 125 & 119.473333333333 & 5.52666666666667 \tabularnewline
52 & 120.4 & 119.473333333333 & 0.926666666666673 \tabularnewline
53 & 117.7 & 119.473333333333 & -1.77333333333333 \tabularnewline
54 & 117.5 & 119.473333333333 & -1.97333333333333 \tabularnewline
55 & 120.6 & 119.473333333333 & 1.12666666666666 \tabularnewline
56 & 127.5 & 119.473333333333 & 8.02666666666667 \tabularnewline
57 & 112.3 & 119.473333333333 & -7.17333333333334 \tabularnewline
58 & 124.5 & 119.473333333333 & 5.02666666666667 \tabularnewline
59 & 115.2 & 119.473333333333 & -4.27333333333333 \tabularnewline
60 & 105.4 & 119.473333333333 & -14.0733333333333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25925&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]116.251111111111[/C][C]7.64888888888865[/C][/ROW]
[ROW][C]2[/C][C]124.9[/C][C]116.251111111111[/C][C]8.6488888888889[/C][/ROW]
[ROW][C]3[/C][C]112.7[/C][C]116.251111111111[/C][C]-3.5511111111111[/C][/ROW]
[ROW][C]4[/C][C]121.9[/C][C]116.251111111111[/C][C]5.6488888888889[/C][/ROW]
[ROW][C]5[/C][C]100.6[/C][C]116.251111111111[/C][C]-15.6511111111111[/C][/ROW]
[ROW][C]6[/C][C]104.3[/C][C]116.251111111111[/C][C]-11.9511111111111[/C][/ROW]
[ROW][C]7[/C][C]120.4[/C][C]116.251111111111[/C][C]4.1488888888889[/C][/ROW]
[ROW][C]8[/C][C]107.5[/C][C]116.251111111111[/C][C]-8.7511111111111[/C][/ROW]
[ROW][C]9[/C][C]102.9[/C][C]116.251111111111[/C][C]-13.3511111111111[/C][/ROW]
[ROW][C]10[/C][C]125.6[/C][C]116.251111111111[/C][C]9.34888888888889[/C][/ROW]
[ROW][C]11[/C][C]107.5[/C][C]116.251111111111[/C][C]-8.7511111111111[/C][/ROW]
[ROW][C]12[/C][C]108.8[/C][C]116.251111111111[/C][C]-7.4511111111111[/C][/ROW]
[ROW][C]13[/C][C]128.4[/C][C]116.251111111111[/C][C]12.1488888888889[/C][/ROW]
[ROW][C]14[/C][C]121.1[/C][C]116.251111111111[/C][C]4.84888888888889[/C][/ROW]
[ROW][C]15[/C][C]119.5[/C][C]116.251111111111[/C][C]3.24888888888889[/C][/ROW]
[ROW][C]16[/C][C]128.7[/C][C]116.251111111111[/C][C]12.4488888888889[/C][/ROW]
[ROW][C]17[/C][C]108.7[/C][C]116.251111111111[/C][C]-7.5511111111111[/C][/ROW]
[ROW][C]18[/C][C]105.5[/C][C]116.251111111111[/C][C]-10.7511111111111[/C][/ROW]
[ROW][C]19[/C][C]119.8[/C][C]116.251111111111[/C][C]3.54888888888889[/C][/ROW]
[ROW][C]20[/C][C]111.3[/C][C]116.251111111111[/C][C]-4.95111111111111[/C][/ROW]
[ROW][C]21[/C][C]110.6[/C][C]116.251111111111[/C][C]-5.65111111111111[/C][/ROW]
[ROW][C]22[/C][C]120.1[/C][C]116.251111111111[/C][C]3.84888888888889[/C][/ROW]
[ROW][C]23[/C][C]97.5[/C][C]116.251111111111[/C][C]-18.7511111111111[/C][/ROW]
[ROW][C]24[/C][C]107.7[/C][C]116.251111111111[/C][C]-8.5511111111111[/C][/ROW]
[ROW][C]25[/C][C]127.3[/C][C]116.251111111111[/C][C]11.0488888888889[/C][/ROW]
[ROW][C]26[/C][C]117.2[/C][C]116.251111111111[/C][C]0.948888888888898[/C][/ROW]
[ROW][C]27[/C][C]119.8[/C][C]116.251111111111[/C][C]3.54888888888889[/C][/ROW]
[ROW][C]28[/C][C]116.2[/C][C]116.251111111111[/C][C]-0.0511111111111024[/C][/ROW]
[ROW][C]29[/C][C]111[/C][C]116.251111111111[/C][C]-5.25111111111111[/C][/ROW]
[ROW][C]30[/C][C]112.4[/C][C]116.251111111111[/C][C]-3.8511111111111[/C][/ROW]
[ROW][C]31[/C][C]130.6[/C][C]116.251111111111[/C][C]14.3488888888889[/C][/ROW]
[ROW][C]32[/C][C]109.1[/C][C]116.251111111111[/C][C]-7.15111111111111[/C][/ROW]
[ROW][C]33[/C][C]118.8[/C][C]116.251111111111[/C][C]2.54888888888889[/C][/ROW]
[ROW][C]34[/C][C]123.9[/C][C]116.251111111111[/C][C]7.6488888888889[/C][/ROW]
[ROW][C]35[/C][C]101.6[/C][C]116.251111111111[/C][C]-14.6511111111111[/C][/ROW]
[ROW][C]36[/C][C]112.8[/C][C]116.251111111111[/C][C]-3.45111111111111[/C][/ROW]
[ROW][C]37[/C][C]128[/C][C]116.251111111111[/C][C]11.7488888888889[/C][/ROW]
[ROW][C]38[/C][C]129.6[/C][C]116.251111111111[/C][C]13.3488888888889[/C][/ROW]
[ROW][C]39[/C][C]125.8[/C][C]116.251111111111[/C][C]9.5488888888889[/C][/ROW]
[ROW][C]40[/C][C]119.5[/C][C]116.251111111111[/C][C]3.24888888888889[/C][/ROW]
[ROW][C]41[/C][C]115.7[/C][C]116.251111111111[/C][C]-0.551111111111102[/C][/ROW]
[ROW][C]42[/C][C]113.6[/C][C]116.251111111111[/C][C]-2.65111111111111[/C][/ROW]
[ROW][C]43[/C][C]129.7[/C][C]116.251111111111[/C][C]13.4488888888889[/C][/ROW]
[ROW][C]44[/C][C]112[/C][C]116.251111111111[/C][C]-4.25111111111111[/C][/ROW]
[ROW][C]45[/C][C]116.8[/C][C]116.251111111111[/C][C]0.548888888888892[/C][/ROW]
[ROW][C]46[/C][C]127[/C][C]119.473333333333[/C][C]7.52666666666667[/C][/ROW]
[ROW][C]47[/C][C]112.1[/C][C]119.473333333333[/C][C]-7.37333333333334[/C][/ROW]
[ROW][C]48[/C][C]114.2[/C][C]119.473333333333[/C][C]-5.27333333333333[/C][/ROW]
[ROW][C]49[/C][C]121.1[/C][C]119.473333333333[/C][C]1.62666666666666[/C][/ROW]
[ROW][C]50[/C][C]131.6[/C][C]119.473333333333[/C][C]12.1266666666667[/C][/ROW]
[ROW][C]51[/C][C]125[/C][C]119.473333333333[/C][C]5.52666666666667[/C][/ROW]
[ROW][C]52[/C][C]120.4[/C][C]119.473333333333[/C][C]0.926666666666673[/C][/ROW]
[ROW][C]53[/C][C]117.7[/C][C]119.473333333333[/C][C]-1.77333333333333[/C][/ROW]
[ROW][C]54[/C][C]117.5[/C][C]119.473333333333[/C][C]-1.97333333333333[/C][/ROW]
[ROW][C]55[/C][C]120.6[/C][C]119.473333333333[/C][C]1.12666666666666[/C][/ROW]
[ROW][C]56[/C][C]127.5[/C][C]119.473333333333[/C][C]8.02666666666667[/C][/ROW]
[ROW][C]57[/C][C]112.3[/C][C]119.473333333333[/C][C]-7.17333333333334[/C][/ROW]
[ROW][C]58[/C][C]124.5[/C][C]119.473333333333[/C][C]5.02666666666667[/C][/ROW]
[ROW][C]59[/C][C]115.2[/C][C]119.473333333333[/C][C]-4.27333333333333[/C][/ROW]
[ROW][C]60[/C][C]105.4[/C][C]119.473333333333[/C][C]-14.0733333333333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25925&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25925&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.9116.2511111111117.64888888888865
2124.9116.2511111111118.6488888888889
3112.7116.251111111111-3.5511111111111
4121.9116.2511111111115.6488888888889
5100.6116.251111111111-15.6511111111111
6104.3116.251111111111-11.9511111111111
7120.4116.2511111111114.1488888888889
8107.5116.251111111111-8.7511111111111
9102.9116.251111111111-13.3511111111111
10125.6116.2511111111119.34888888888889
11107.5116.251111111111-8.7511111111111
12108.8116.251111111111-7.4511111111111
13128.4116.25111111111112.1488888888889
14121.1116.2511111111114.84888888888889
15119.5116.2511111111113.24888888888889
16128.7116.25111111111112.4488888888889
17108.7116.251111111111-7.5511111111111
18105.5116.251111111111-10.7511111111111
19119.8116.2511111111113.54888888888889
20111.3116.251111111111-4.95111111111111
21110.6116.251111111111-5.65111111111111
22120.1116.2511111111113.84888888888889
2397.5116.251111111111-18.7511111111111
24107.7116.251111111111-8.5511111111111
25127.3116.25111111111111.0488888888889
26117.2116.2511111111110.948888888888898
27119.8116.2511111111113.54888888888889
28116.2116.251111111111-0.0511111111111024
29111116.251111111111-5.25111111111111
30112.4116.251111111111-3.8511111111111
31130.6116.25111111111114.3488888888889
32109.1116.251111111111-7.15111111111111
33118.8116.2511111111112.54888888888889
34123.9116.2511111111117.6488888888889
35101.6116.251111111111-14.6511111111111
36112.8116.251111111111-3.45111111111111
37128116.25111111111111.7488888888889
38129.6116.25111111111113.3488888888889
39125.8116.2511111111119.5488888888889
40119.5116.2511111111113.24888888888889
41115.7116.251111111111-0.551111111111102
42113.6116.251111111111-2.65111111111111
43129.7116.25111111111113.4488888888889
44112116.251111111111-4.25111111111111
45116.8116.2511111111110.548888888888892
46127119.4733333333337.52666666666667
47112.1119.473333333333-7.37333333333334
48114.2119.473333333333-5.27333333333333
49121.1119.4733333333331.62666666666666
50131.6119.47333333333312.1266666666667
51125119.4733333333335.52666666666667
52120.4119.4733333333330.926666666666673
53117.7119.473333333333-1.77333333333333
54117.5119.473333333333-1.97333333333333
55120.6119.4733333333331.12666666666666
56127.5119.4733333333338.02666666666667
57112.3119.473333333333-7.17333333333334
58124.5119.4733333333335.02666666666667
59115.2119.473333333333-4.27333333333333
60105.4119.473333333333-14.0733333333333







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.8774256414225360.2451487171549290.122574358577464
60.8952345263712810.2095309472574380.104765473628719
70.8423326131061040.3153347737877920.157667386893896
80.8142575451652680.3714849096694640.185742454834732
90.8495896595918620.3008206808162750.150410340408138
100.873906677144220.252186645711560.12609332285578
110.85244176716240.2951164656752020.147558232837601
120.8160076471259050.3679847057481910.183992352874095
130.8834003810745570.2331992378508850.116599618925443
140.8539123745636570.2921752508726870.146087625436343
150.8079882756570590.3840234486858820.192011724342941
160.8605978963961860.2788042072076290.139402103603814
170.8445825048666640.3108349902666720.155417495133336
180.8617599540968770.2764800918062460.138240045903123
190.8220028125267860.3559943749464270.177997187473214
200.781476103876270.4370477922474580.218523896123729
210.7430018989486590.5139962021026820.256998101051341
220.6916327652385640.6167344695228720.308367234761436
230.8873530442968580.2252939114062840.112646955703142
240.8901123647156390.2197752705687230.109887635284361
250.9122052658931390.1755894682137230.0877947341068615
260.87910792090350.2417841581929990.120892079096499
270.8440293184720980.3119413630558030.155970681527902
280.7957960040654260.4084079918691470.204203995934574
290.7689663282717320.4620673434565350.231033671728268
300.7305920265866730.5388159468266530.269407973413327
310.819762222798490.3604755544030210.180237777201511
320.8197881668358570.3604236663282870.180211833164143
330.768659688763640.4626806224727220.231340311236361
340.744585854291360.5108282914172790.255414145708639
350.8947824857403280.2104350285193430.105217514259672
360.884064513889040.2318709722219210.115935486110961
370.894767187020320.2104656259593590.105232812979679
380.9245049428091650.150990114381670.075495057190835
390.924256257542910.1514874849141810.0757437424570907
400.8922153410921060.2155693178157890.107784658907894
410.8495383520523940.3009232958952110.150461647947606
420.8126044766845560.3747910466308880.187395523315444
430.8883496315410480.2233007369179040.111650368458952
440.8491276480313590.3017447039372820.150872351968641
450.7873491224990730.4253017550018530.212650877500927
460.7709791107633060.4580417784733870.229020889236694
470.7633630949244880.4732738101510240.236636905075512
480.7152583284333920.5694833431332150.284741671566608
490.6218101390343860.7563797219312280.378189860965614
500.7467965995541980.5064068008916040.253203400445802
510.7129689133502250.574062173299550.287031086649775
520.6069786518971190.7860426962057610.393021348102881
530.4737185469664820.9474370939329640.526281453033518
540.3335604131631140.6671208263262290.666439586836886
550.2143446952908190.4286893905816380.78565530470918

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.877425641422536 & 0.245148717154929 & 0.122574358577464 \tabularnewline
6 & 0.895234526371281 & 0.209530947257438 & 0.104765473628719 \tabularnewline
7 & 0.842332613106104 & 0.315334773787792 & 0.157667386893896 \tabularnewline
8 & 0.814257545165268 & 0.371484909669464 & 0.185742454834732 \tabularnewline
9 & 0.849589659591862 & 0.300820680816275 & 0.150410340408138 \tabularnewline
10 & 0.87390667714422 & 0.25218664571156 & 0.12609332285578 \tabularnewline
11 & 0.8524417671624 & 0.295116465675202 & 0.147558232837601 \tabularnewline
12 & 0.816007647125905 & 0.367984705748191 & 0.183992352874095 \tabularnewline
13 & 0.883400381074557 & 0.233199237850885 & 0.116599618925443 \tabularnewline
14 & 0.853912374563657 & 0.292175250872687 & 0.146087625436343 \tabularnewline
15 & 0.807988275657059 & 0.384023448685882 & 0.192011724342941 \tabularnewline
16 & 0.860597896396186 & 0.278804207207629 & 0.139402103603814 \tabularnewline
17 & 0.844582504866664 & 0.310834990266672 & 0.155417495133336 \tabularnewline
18 & 0.861759954096877 & 0.276480091806246 & 0.138240045903123 \tabularnewline
19 & 0.822002812526786 & 0.355994374946427 & 0.177997187473214 \tabularnewline
20 & 0.78147610387627 & 0.437047792247458 & 0.218523896123729 \tabularnewline
21 & 0.743001898948659 & 0.513996202102682 & 0.256998101051341 \tabularnewline
22 & 0.691632765238564 & 0.616734469522872 & 0.308367234761436 \tabularnewline
23 & 0.887353044296858 & 0.225293911406284 & 0.112646955703142 \tabularnewline
24 & 0.890112364715639 & 0.219775270568723 & 0.109887635284361 \tabularnewline
25 & 0.912205265893139 & 0.175589468213723 & 0.0877947341068615 \tabularnewline
26 & 0.8791079209035 & 0.241784158192999 & 0.120892079096499 \tabularnewline
27 & 0.844029318472098 & 0.311941363055803 & 0.155970681527902 \tabularnewline
28 & 0.795796004065426 & 0.408407991869147 & 0.204203995934574 \tabularnewline
29 & 0.768966328271732 & 0.462067343456535 & 0.231033671728268 \tabularnewline
30 & 0.730592026586673 & 0.538815946826653 & 0.269407973413327 \tabularnewline
31 & 0.81976222279849 & 0.360475554403021 & 0.180237777201511 \tabularnewline
32 & 0.819788166835857 & 0.360423666328287 & 0.180211833164143 \tabularnewline
33 & 0.76865968876364 & 0.462680622472722 & 0.231340311236361 \tabularnewline
34 & 0.74458585429136 & 0.510828291417279 & 0.255414145708639 \tabularnewline
35 & 0.894782485740328 & 0.210435028519343 & 0.105217514259672 \tabularnewline
36 & 0.88406451388904 & 0.231870972221921 & 0.115935486110961 \tabularnewline
37 & 0.89476718702032 & 0.210465625959359 & 0.105232812979679 \tabularnewline
38 & 0.924504942809165 & 0.15099011438167 & 0.075495057190835 \tabularnewline
39 & 0.92425625754291 & 0.151487484914181 & 0.0757437424570907 \tabularnewline
40 & 0.892215341092106 & 0.215569317815789 & 0.107784658907894 \tabularnewline
41 & 0.849538352052394 & 0.300923295895211 & 0.150461647947606 \tabularnewline
42 & 0.812604476684556 & 0.374791046630888 & 0.187395523315444 \tabularnewline
43 & 0.888349631541048 & 0.223300736917904 & 0.111650368458952 \tabularnewline
44 & 0.849127648031359 & 0.301744703937282 & 0.150872351968641 \tabularnewline
45 & 0.787349122499073 & 0.425301755001853 & 0.212650877500927 \tabularnewline
46 & 0.770979110763306 & 0.458041778473387 & 0.229020889236694 \tabularnewline
47 & 0.763363094924488 & 0.473273810151024 & 0.236636905075512 \tabularnewline
48 & 0.715258328433392 & 0.569483343133215 & 0.284741671566608 \tabularnewline
49 & 0.621810139034386 & 0.756379721931228 & 0.378189860965614 \tabularnewline
50 & 0.746796599554198 & 0.506406800891604 & 0.253203400445802 \tabularnewline
51 & 0.712968913350225 & 0.57406217329955 & 0.287031086649775 \tabularnewline
52 & 0.606978651897119 & 0.786042696205761 & 0.393021348102881 \tabularnewline
53 & 0.473718546966482 & 0.947437093932964 & 0.526281453033518 \tabularnewline
54 & 0.333560413163114 & 0.667120826326229 & 0.666439586836886 \tabularnewline
55 & 0.214344695290819 & 0.428689390581638 & 0.78565530470918 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25925&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]5[/C][C]0.877425641422536[/C][C]0.245148717154929[/C][C]0.122574358577464[/C][/ROW]
[ROW][C]6[/C][C]0.895234526371281[/C][C]0.209530947257438[/C][C]0.104765473628719[/C][/ROW]
[ROW][C]7[/C][C]0.842332613106104[/C][C]0.315334773787792[/C][C]0.157667386893896[/C][/ROW]
[ROW][C]8[/C][C]0.814257545165268[/C][C]0.371484909669464[/C][C]0.185742454834732[/C][/ROW]
[ROW][C]9[/C][C]0.849589659591862[/C][C]0.300820680816275[/C][C]0.150410340408138[/C][/ROW]
[ROW][C]10[/C][C]0.87390667714422[/C][C]0.25218664571156[/C][C]0.12609332285578[/C][/ROW]
[ROW][C]11[/C][C]0.8524417671624[/C][C]0.295116465675202[/C][C]0.147558232837601[/C][/ROW]
[ROW][C]12[/C][C]0.816007647125905[/C][C]0.367984705748191[/C][C]0.183992352874095[/C][/ROW]
[ROW][C]13[/C][C]0.883400381074557[/C][C]0.233199237850885[/C][C]0.116599618925443[/C][/ROW]
[ROW][C]14[/C][C]0.853912374563657[/C][C]0.292175250872687[/C][C]0.146087625436343[/C][/ROW]
[ROW][C]15[/C][C]0.807988275657059[/C][C]0.384023448685882[/C][C]0.192011724342941[/C][/ROW]
[ROW][C]16[/C][C]0.860597896396186[/C][C]0.278804207207629[/C][C]0.139402103603814[/C][/ROW]
[ROW][C]17[/C][C]0.844582504866664[/C][C]0.310834990266672[/C][C]0.155417495133336[/C][/ROW]
[ROW][C]18[/C][C]0.861759954096877[/C][C]0.276480091806246[/C][C]0.138240045903123[/C][/ROW]
[ROW][C]19[/C][C]0.822002812526786[/C][C]0.355994374946427[/C][C]0.177997187473214[/C][/ROW]
[ROW][C]20[/C][C]0.78147610387627[/C][C]0.437047792247458[/C][C]0.218523896123729[/C][/ROW]
[ROW][C]21[/C][C]0.743001898948659[/C][C]0.513996202102682[/C][C]0.256998101051341[/C][/ROW]
[ROW][C]22[/C][C]0.691632765238564[/C][C]0.616734469522872[/C][C]0.308367234761436[/C][/ROW]
[ROW][C]23[/C][C]0.887353044296858[/C][C]0.225293911406284[/C][C]0.112646955703142[/C][/ROW]
[ROW][C]24[/C][C]0.890112364715639[/C][C]0.219775270568723[/C][C]0.109887635284361[/C][/ROW]
[ROW][C]25[/C][C]0.912205265893139[/C][C]0.175589468213723[/C][C]0.0877947341068615[/C][/ROW]
[ROW][C]26[/C][C]0.8791079209035[/C][C]0.241784158192999[/C][C]0.120892079096499[/C][/ROW]
[ROW][C]27[/C][C]0.844029318472098[/C][C]0.311941363055803[/C][C]0.155970681527902[/C][/ROW]
[ROW][C]28[/C][C]0.795796004065426[/C][C]0.408407991869147[/C][C]0.204203995934574[/C][/ROW]
[ROW][C]29[/C][C]0.768966328271732[/C][C]0.462067343456535[/C][C]0.231033671728268[/C][/ROW]
[ROW][C]30[/C][C]0.730592026586673[/C][C]0.538815946826653[/C][C]0.269407973413327[/C][/ROW]
[ROW][C]31[/C][C]0.81976222279849[/C][C]0.360475554403021[/C][C]0.180237777201511[/C][/ROW]
[ROW][C]32[/C][C]0.819788166835857[/C][C]0.360423666328287[/C][C]0.180211833164143[/C][/ROW]
[ROW][C]33[/C][C]0.76865968876364[/C][C]0.462680622472722[/C][C]0.231340311236361[/C][/ROW]
[ROW][C]34[/C][C]0.74458585429136[/C][C]0.510828291417279[/C][C]0.255414145708639[/C][/ROW]
[ROW][C]35[/C][C]0.894782485740328[/C][C]0.210435028519343[/C][C]0.105217514259672[/C][/ROW]
[ROW][C]36[/C][C]0.88406451388904[/C][C]0.231870972221921[/C][C]0.115935486110961[/C][/ROW]
[ROW][C]37[/C][C]0.89476718702032[/C][C]0.210465625959359[/C][C]0.105232812979679[/C][/ROW]
[ROW][C]38[/C][C]0.924504942809165[/C][C]0.15099011438167[/C][C]0.075495057190835[/C][/ROW]
[ROW][C]39[/C][C]0.92425625754291[/C][C]0.151487484914181[/C][C]0.0757437424570907[/C][/ROW]
[ROW][C]40[/C][C]0.892215341092106[/C][C]0.215569317815789[/C][C]0.107784658907894[/C][/ROW]
[ROW][C]41[/C][C]0.849538352052394[/C][C]0.300923295895211[/C][C]0.150461647947606[/C][/ROW]
[ROW][C]42[/C][C]0.812604476684556[/C][C]0.374791046630888[/C][C]0.187395523315444[/C][/ROW]
[ROW][C]43[/C][C]0.888349631541048[/C][C]0.223300736917904[/C][C]0.111650368458952[/C][/ROW]
[ROW][C]44[/C][C]0.849127648031359[/C][C]0.301744703937282[/C][C]0.150872351968641[/C][/ROW]
[ROW][C]45[/C][C]0.787349122499073[/C][C]0.425301755001853[/C][C]0.212650877500927[/C][/ROW]
[ROW][C]46[/C][C]0.770979110763306[/C][C]0.458041778473387[/C][C]0.229020889236694[/C][/ROW]
[ROW][C]47[/C][C]0.763363094924488[/C][C]0.473273810151024[/C][C]0.236636905075512[/C][/ROW]
[ROW][C]48[/C][C]0.715258328433392[/C][C]0.569483343133215[/C][C]0.284741671566608[/C][/ROW]
[ROW][C]49[/C][C]0.621810139034386[/C][C]0.756379721931228[/C][C]0.378189860965614[/C][/ROW]
[ROW][C]50[/C][C]0.746796599554198[/C][C]0.506406800891604[/C][C]0.253203400445802[/C][/ROW]
[ROW][C]51[/C][C]0.712968913350225[/C][C]0.57406217329955[/C][C]0.287031086649775[/C][/ROW]
[ROW][C]52[/C][C]0.606978651897119[/C][C]0.786042696205761[/C][C]0.393021348102881[/C][/ROW]
[ROW][C]53[/C][C]0.473718546966482[/C][C]0.947437093932964[/C][C]0.526281453033518[/C][/ROW]
[ROW][C]54[/C][C]0.333560413163114[/C][C]0.667120826326229[/C][C]0.666439586836886[/C][/ROW]
[ROW][C]55[/C][C]0.214344695290819[/C][C]0.428689390581638[/C][C]0.78565530470918[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25925&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25925&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
50.8774256414225360.2451487171549290.122574358577464
60.8952345263712810.2095309472574380.104765473628719
70.8423326131061040.3153347737877920.157667386893896
80.8142575451652680.3714849096694640.185742454834732
90.8495896595918620.3008206808162750.150410340408138
100.873906677144220.252186645711560.12609332285578
110.85244176716240.2951164656752020.147558232837601
120.8160076471259050.3679847057481910.183992352874095
130.8834003810745570.2331992378508850.116599618925443
140.8539123745636570.2921752508726870.146087625436343
150.8079882756570590.3840234486858820.192011724342941
160.8605978963961860.2788042072076290.139402103603814
170.8445825048666640.3108349902666720.155417495133336
180.8617599540968770.2764800918062460.138240045903123
190.8220028125267860.3559943749464270.177997187473214
200.781476103876270.4370477922474580.218523896123729
210.7430018989486590.5139962021026820.256998101051341
220.6916327652385640.6167344695228720.308367234761436
230.8873530442968580.2252939114062840.112646955703142
240.8901123647156390.2197752705687230.109887635284361
250.9122052658931390.1755894682137230.0877947341068615
260.87910792090350.2417841581929990.120892079096499
270.8440293184720980.3119413630558030.155970681527902
280.7957960040654260.4084079918691470.204203995934574
290.7689663282717320.4620673434565350.231033671728268
300.7305920265866730.5388159468266530.269407973413327
310.819762222798490.3604755544030210.180237777201511
320.8197881668358570.3604236663282870.180211833164143
330.768659688763640.4626806224727220.231340311236361
340.744585854291360.5108282914172790.255414145708639
350.8947824857403280.2104350285193430.105217514259672
360.884064513889040.2318709722219210.115935486110961
370.894767187020320.2104656259593590.105232812979679
380.9245049428091650.150990114381670.075495057190835
390.924256257542910.1514874849141810.0757437424570907
400.8922153410921060.2155693178157890.107784658907894
410.8495383520523940.3009232958952110.150461647947606
420.8126044766845560.3747910466308880.187395523315444
430.8883496315410480.2233007369179040.111650368458952
440.8491276480313590.3017447039372820.150872351968641
450.7873491224990730.4253017550018530.212650877500927
460.7709791107633060.4580417784733870.229020889236694
470.7633630949244880.4732738101510240.236636905075512
480.7152583284333920.5694833431332150.284741671566608
490.6218101390343860.7563797219312280.378189860965614
500.7467965995541980.5064068008916040.253203400445802
510.7129689133502250.574062173299550.287031086649775
520.6069786518971190.7860426962057610.393021348102881
530.4737185469664820.9474370939329640.526281453033518
540.3335604131631140.6671208263262290.666439586836886
550.2143446952908190.4286893905816380.78565530470918







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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25925&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 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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')
}