Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 26 Nov 2008 14:33:12 -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/26/t12277353270l8csgzw6bvoynh.htm/, Retrieved Sun, 19 May 2024 03:09:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25717, Retrieved Sun, 19 May 2024 03:09:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact150
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
F R  D  [Multiple Regression] [Blok 11 - Opdrach...] [2008-11-20 18:30:31] [8094ad203a218aaca2d1cea2c78c2d6e]
-    D      [Multiple Regression] [Opdracht 1 - Blok...] [2008-11-26 21:33:12] [1351baa662f198be3bff32f9007a9a6d] [Current]
Feedback Forum

Post a new message
Dataseries X:
13	0
8	0
7	0
3	0
3	0
4	0
4	0
0	0
-4	0
-14	1
-18	1
-8	1
-1	1
1	1
2	1
0	1
1	1
0	1
-1	1
-3	1
-3	1
-3	1
-4	1
-8	1
-9	1
-13	1
-18	1
-11	1
-9	1
-10	1
-13	1
-11	1
-5	1
-15	1
-6	1
-6	1
-3	1
-1	1
-3	1
-4	1
-6	1
0	1
-4	1
-2	1
-2	1
-6	1
-7	1
-6	1
-6	1
-3	1
-2	1
-5	1
-11	1
-11	1
-11	1
-10	1
-14	1
-8	1
-9	1
-5	1
-1	1




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

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







Multiple Linear Regression - Estimated Regression Equation
X[t] = + 3.32137931034485 -8.79827586206899D[t] + 3.8109674329502M1[t] + 2.92837164750959M2[t] + 1.75956896551725M3[t] + 1.19076628352491M4[t] + 0.221963601532572M5[t] + 1.25316091954024M6[t] -0.315641762452104M7[t] -0.484444444444441M8[t] -0.853247126436776M9[t] -2.66239463601532M10[t] -2.23119731800765M11[t] -0.0311973180076629t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
X[t] =  +  3.32137931034485 -8.79827586206899D[t] +  3.8109674329502M1[t] +  2.92837164750959M2[t] +  1.75956896551725M3[t] +  1.19076628352491M4[t] +  0.221963601532572M5[t] +  1.25316091954024M6[t] -0.315641762452104M7[t] -0.484444444444441M8[t] -0.853247126436776M9[t] -2.66239463601532M10[t] -2.23119731800765M11[t] -0.0311973180076629t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25717&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]X[t] =  +  3.32137931034485 -8.79827586206899D[t] +  3.8109674329502M1[t] +  2.92837164750959M2[t] +  1.75956896551725M3[t] +  1.19076628352491M4[t] +  0.221963601532572M5[t] +  1.25316091954024M6[t] -0.315641762452104M7[t] -0.484444444444441M8[t] -0.853247126436776M9[t] -2.66239463601532M10[t] -2.23119731800765M11[t] -0.0311973180076629t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25717&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25717&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
X[t] = + 3.32137931034485 -8.79827586206899D[t] + 3.8109674329502M1[t] + 2.92837164750959M2[t] + 1.75956896551725M3[t] + 1.19076628352491M4[t] + 0.221963601532572M5[t] + 1.25316091954024M6[t] -0.315641762452104M7[t] -0.484444444444441M8[t] -0.853247126436776M9[t] -2.66239463601532M10[t] -2.23119731800765M11[t] -0.0311973180076629t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3.321379310344852.9951211.10890.2731030.136551
D-8.798275862068992.405891-3.6570.0006430.000322
M13.81096743295023.1234441.22010.2285070.114254
M22.928371647509593.2729310.89470.3754940.187747
M31.759568965517253.2705880.5380.5931170.296559
M41.190766283524913.2689410.36430.7172930.358646
M50.2219636015325723.2679910.06790.9461370.473069
M61.253160919540243.2677380.38350.7030820.351541
M7-0.3156417624521043.268183-0.09660.923470.461735
M8-0.4844444444444413.269326-0.14820.8828360.441418
M9-0.8532471264367763.271166-0.26080.7953560.397678
M10-2.662394636015323.24678-0.820.4163490.208175
M11-2.231197318007653.245726-0.68740.4951930.247596
t-0.03119731800766290.047754-0.65330.516750.258375

\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) & 3.32137931034485 & 2.995121 & 1.1089 & 0.273103 & 0.136551 \tabularnewline
D & -8.79827586206899 & 2.405891 & -3.657 & 0.000643 & 0.000322 \tabularnewline
M1 & 3.8109674329502 & 3.123444 & 1.2201 & 0.228507 & 0.114254 \tabularnewline
M2 & 2.92837164750959 & 3.272931 & 0.8947 & 0.375494 & 0.187747 \tabularnewline
M3 & 1.75956896551725 & 3.270588 & 0.538 & 0.593117 & 0.296559 \tabularnewline
M4 & 1.19076628352491 & 3.268941 & 0.3643 & 0.717293 & 0.358646 \tabularnewline
M5 & 0.221963601532572 & 3.267991 & 0.0679 & 0.946137 & 0.473069 \tabularnewline
M6 & 1.25316091954024 & 3.267738 & 0.3835 & 0.703082 & 0.351541 \tabularnewline
M7 & -0.315641762452104 & 3.268183 & -0.0966 & 0.92347 & 0.461735 \tabularnewline
M8 & -0.484444444444441 & 3.269326 & -0.1482 & 0.882836 & 0.441418 \tabularnewline
M9 & -0.853247126436776 & 3.271166 & -0.2608 & 0.795356 & 0.397678 \tabularnewline
M10 & -2.66239463601532 & 3.24678 & -0.82 & 0.416349 & 0.208175 \tabularnewline
M11 & -2.23119731800765 & 3.245726 & -0.6874 & 0.495193 & 0.247596 \tabularnewline
t & -0.0311973180076629 & 0.047754 & -0.6533 & 0.51675 & 0.258375 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25717&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]3.32137931034485[/C][C]2.995121[/C][C]1.1089[/C][C]0.273103[/C][C]0.136551[/C][/ROW]
[ROW][C]D[/C][C]-8.79827586206899[/C][C]2.405891[/C][C]-3.657[/C][C]0.000643[/C][C]0.000322[/C][/ROW]
[ROW][C]M1[/C][C]3.8109674329502[/C][C]3.123444[/C][C]1.2201[/C][C]0.228507[/C][C]0.114254[/C][/ROW]
[ROW][C]M2[/C][C]2.92837164750959[/C][C]3.272931[/C][C]0.8947[/C][C]0.375494[/C][C]0.187747[/C][/ROW]
[ROW][C]M3[/C][C]1.75956896551725[/C][C]3.270588[/C][C]0.538[/C][C]0.593117[/C][C]0.296559[/C][/ROW]
[ROW][C]M4[/C][C]1.19076628352491[/C][C]3.268941[/C][C]0.3643[/C][C]0.717293[/C][C]0.358646[/C][/ROW]
[ROW][C]M5[/C][C]0.221963601532572[/C][C]3.267991[/C][C]0.0679[/C][C]0.946137[/C][C]0.473069[/C][/ROW]
[ROW][C]M6[/C][C]1.25316091954024[/C][C]3.267738[/C][C]0.3835[/C][C]0.703082[/C][C]0.351541[/C][/ROW]
[ROW][C]M7[/C][C]-0.315641762452104[/C][C]3.268183[/C][C]-0.0966[/C][C]0.92347[/C][C]0.461735[/C][/ROW]
[ROW][C]M8[/C][C]-0.484444444444441[/C][C]3.269326[/C][C]-0.1482[/C][C]0.882836[/C][C]0.441418[/C][/ROW]
[ROW][C]M9[/C][C]-0.853247126436776[/C][C]3.271166[/C][C]-0.2608[/C][C]0.795356[/C][C]0.397678[/C][/ROW]
[ROW][C]M10[/C][C]-2.66239463601532[/C][C]3.24678[/C][C]-0.82[/C][C]0.416349[/C][C]0.208175[/C][/ROW]
[ROW][C]M11[/C][C]-2.23119731800765[/C][C]3.245726[/C][C]-0.6874[/C][C]0.495193[/C][C]0.247596[/C][/ROW]
[ROW][C]t[/C][C]-0.0311973180076629[/C][C]0.047754[/C][C]-0.6533[/C][C]0.51675[/C][C]0.258375[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25717&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25717&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)3.321379310344852.9951211.10890.2731030.136551
D-8.798275862068992.405891-3.6570.0006430.000322
M13.81096743295023.1234441.22010.2285070.114254
M22.928371647509593.2729310.89470.3754940.187747
M31.759568965517253.2705880.5380.5931170.296559
M41.190766283524913.2689410.36430.7172930.358646
M50.2219636015325723.2679910.06790.9461370.473069
M61.253160919540243.2677380.38350.7030820.351541
M7-0.3156417624521043.268183-0.09660.923470.461735
M8-0.4844444444444413.269326-0.14820.8828360.441418
M9-0.8532471264367763.271166-0.26080.7953560.397678
M10-2.662394636015323.24678-0.820.4163490.208175
M11-2.231197318007653.245726-0.68740.4951930.247596
t-0.03119731800766290.047754-0.65330.516750.258375







Multiple Linear Regression - Regression Statistics
Multiple R0.680458196061591
R-squared0.463023356587394
Adjusted R-squared0.31449790202646
F-TEST (value)3.1174680323731
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.00210479876690073
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.13138840663048
Sum Squared Residuals1237.56390804598

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.680458196061591 \tabularnewline
R-squared & 0.463023356587394 \tabularnewline
Adjusted R-squared & 0.31449790202646 \tabularnewline
F-TEST (value) & 3.1174680323731 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.00210479876690073 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.13138840663048 \tabularnewline
Sum Squared Residuals & 1237.56390804598 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25717&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.680458196061591[/C][/ROW]
[ROW][C]R-squared[/C][C]0.463023356587394[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.31449790202646[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.1174680323731[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.00210479876690073[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.13138840663048[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1237.56390804598[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25717&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25717&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.680458196061591
R-squared0.463023356587394
Adjusted R-squared0.31449790202646
F-TEST (value)3.1174680323731
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.00210479876690073
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.13138840663048
Sum Squared Residuals1237.56390804598







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1137.101149425287335.89885057471267
286.187356321839051.81264367816095
374.987356321839092.01264367816091
434.38735632183909-1.38735632183909
533.38735632183908-0.387356321839084
644.38735632183908-0.387356321839079
742.787356321839081.21264367816092
802.58735632183908-2.58735632183908
9-42.18735632183908-6.18735632183908
10-14-8.45126436781609-5.54873563218391
11-18-8.05126436781609-9.94873563218391
12-8-5.85126436781609-2.14873563218391
13-1-2.071494252873561.07149425287356
141-2.985287356321823.98528735632182
152-4.185287356321846.18528735632184
160-4.785287356321844.78528735632184
171-5.785287356321846.78528735632184
180-4.785287356321844.78528735632184
19-1-6.385287356321845.38528735632184
20-3-6.585287356321843.58528735632184
21-3-6.985287356321843.98528735632184
22-3-8.825632183908045.82563218390804
23-4-8.425632183908044.42563218390804
24-8-6.22563218390805-1.77436781609195
25-9-2.44586206896551-6.55413793103449
26-13-3.35965517241379-9.64034482758621
27-18-4.55965517241379-13.4403448275862
28-11-5.1596551724138-5.8403448275862
29-9-6.15965517241379-2.84034482758621
30-10-5.15965517241379-4.84034482758621
31-13-6.7596551724138-6.24034482758621
32-11-6.9596551724138-4.0403448275862
33-5-7.35965517241382.35965517241379
34-15-9.2-5.8
35-6-8.82.80000000000000
36-6-6.60.600000000000005
37-3-2.82022988505747-0.179770114942532
38-1-3.734022988505742.73402298850574
39-3-4.934022988505751.93402298850575
40-4-5.534022988505751.53402298850575
41-6-6.534022988505750.534022988505747
420-5.534022988505755.53402298850575
43-4-7.134022988505753.13402298850575
44-2-7.334022988505755.33402298850575
45-2-7.734022988505755.73402298850575
46-6-9.574367816091953.57436781609195
47-7-9.174367816091952.17436781609195
48-6-6.974367816091960.97436781609196
49-6-3.19459770114942-2.80540229885058
50-3-4.108390804597691.10839080459769
51-2-5.30839080459773.30839080459770
52-5-5.90839080459770.908390804597704
53-11-6.9083908045977-4.0916091954023
54-11-5.9083908045977-5.0916091954023
55-11-7.5083908045977-3.49160919540230
56-10-7.7083908045977-2.29160919540230
57-14-8.1083908045977-5.8916091954023
58-8-9.94873563218391.94873563218391
59-9-9.54873563218390.548735632183907
60-5-7.348735632183922.34873563218392
61-1-3.568965517241382.56896551724138

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 13 & 7.10114942528733 & 5.89885057471267 \tabularnewline
2 & 8 & 6.18735632183905 & 1.81264367816095 \tabularnewline
3 & 7 & 4.98735632183909 & 2.01264367816091 \tabularnewline
4 & 3 & 4.38735632183909 & -1.38735632183909 \tabularnewline
5 & 3 & 3.38735632183908 & -0.387356321839084 \tabularnewline
6 & 4 & 4.38735632183908 & -0.387356321839079 \tabularnewline
7 & 4 & 2.78735632183908 & 1.21264367816092 \tabularnewline
8 & 0 & 2.58735632183908 & -2.58735632183908 \tabularnewline
9 & -4 & 2.18735632183908 & -6.18735632183908 \tabularnewline
10 & -14 & -8.45126436781609 & -5.54873563218391 \tabularnewline
11 & -18 & -8.05126436781609 & -9.94873563218391 \tabularnewline
12 & -8 & -5.85126436781609 & -2.14873563218391 \tabularnewline
13 & -1 & -2.07149425287356 & 1.07149425287356 \tabularnewline
14 & 1 & -2.98528735632182 & 3.98528735632182 \tabularnewline
15 & 2 & -4.18528735632184 & 6.18528735632184 \tabularnewline
16 & 0 & -4.78528735632184 & 4.78528735632184 \tabularnewline
17 & 1 & -5.78528735632184 & 6.78528735632184 \tabularnewline
18 & 0 & -4.78528735632184 & 4.78528735632184 \tabularnewline
19 & -1 & -6.38528735632184 & 5.38528735632184 \tabularnewline
20 & -3 & -6.58528735632184 & 3.58528735632184 \tabularnewline
21 & -3 & -6.98528735632184 & 3.98528735632184 \tabularnewline
22 & -3 & -8.82563218390804 & 5.82563218390804 \tabularnewline
23 & -4 & -8.42563218390804 & 4.42563218390804 \tabularnewline
24 & -8 & -6.22563218390805 & -1.77436781609195 \tabularnewline
25 & -9 & -2.44586206896551 & -6.55413793103449 \tabularnewline
26 & -13 & -3.35965517241379 & -9.64034482758621 \tabularnewline
27 & -18 & -4.55965517241379 & -13.4403448275862 \tabularnewline
28 & -11 & -5.1596551724138 & -5.8403448275862 \tabularnewline
29 & -9 & -6.15965517241379 & -2.84034482758621 \tabularnewline
30 & -10 & -5.15965517241379 & -4.84034482758621 \tabularnewline
31 & -13 & -6.7596551724138 & -6.24034482758621 \tabularnewline
32 & -11 & -6.9596551724138 & -4.0403448275862 \tabularnewline
33 & -5 & -7.3596551724138 & 2.35965517241379 \tabularnewline
34 & -15 & -9.2 & -5.8 \tabularnewline
35 & -6 & -8.8 & 2.80000000000000 \tabularnewline
36 & -6 & -6.6 & 0.600000000000005 \tabularnewline
37 & -3 & -2.82022988505747 & -0.179770114942532 \tabularnewline
38 & -1 & -3.73402298850574 & 2.73402298850574 \tabularnewline
39 & -3 & -4.93402298850575 & 1.93402298850575 \tabularnewline
40 & -4 & -5.53402298850575 & 1.53402298850575 \tabularnewline
41 & -6 & -6.53402298850575 & 0.534022988505747 \tabularnewline
42 & 0 & -5.53402298850575 & 5.53402298850575 \tabularnewline
43 & -4 & -7.13402298850575 & 3.13402298850575 \tabularnewline
44 & -2 & -7.33402298850575 & 5.33402298850575 \tabularnewline
45 & -2 & -7.73402298850575 & 5.73402298850575 \tabularnewline
46 & -6 & -9.57436781609195 & 3.57436781609195 \tabularnewline
47 & -7 & -9.17436781609195 & 2.17436781609195 \tabularnewline
48 & -6 & -6.97436781609196 & 0.97436781609196 \tabularnewline
49 & -6 & -3.19459770114942 & -2.80540229885058 \tabularnewline
50 & -3 & -4.10839080459769 & 1.10839080459769 \tabularnewline
51 & -2 & -5.3083908045977 & 3.30839080459770 \tabularnewline
52 & -5 & -5.9083908045977 & 0.908390804597704 \tabularnewline
53 & -11 & -6.9083908045977 & -4.0916091954023 \tabularnewline
54 & -11 & -5.9083908045977 & -5.0916091954023 \tabularnewline
55 & -11 & -7.5083908045977 & -3.49160919540230 \tabularnewline
56 & -10 & -7.7083908045977 & -2.29160919540230 \tabularnewline
57 & -14 & -8.1083908045977 & -5.8916091954023 \tabularnewline
58 & -8 & -9.9487356321839 & 1.94873563218391 \tabularnewline
59 & -9 & -9.5487356321839 & 0.548735632183907 \tabularnewline
60 & -5 & -7.34873563218392 & 2.34873563218392 \tabularnewline
61 & -1 & -3.56896551724138 & 2.56896551724138 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25717&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]13[/C][C]7.10114942528733[/C][C]5.89885057471267[/C][/ROW]
[ROW][C]2[/C][C]8[/C][C]6.18735632183905[/C][C]1.81264367816095[/C][/ROW]
[ROW][C]3[/C][C]7[/C][C]4.98735632183909[/C][C]2.01264367816091[/C][/ROW]
[ROW][C]4[/C][C]3[/C][C]4.38735632183909[/C][C]-1.38735632183909[/C][/ROW]
[ROW][C]5[/C][C]3[/C][C]3.38735632183908[/C][C]-0.387356321839084[/C][/ROW]
[ROW][C]6[/C][C]4[/C][C]4.38735632183908[/C][C]-0.387356321839079[/C][/ROW]
[ROW][C]7[/C][C]4[/C][C]2.78735632183908[/C][C]1.21264367816092[/C][/ROW]
[ROW][C]8[/C][C]0[/C][C]2.58735632183908[/C][C]-2.58735632183908[/C][/ROW]
[ROW][C]9[/C][C]-4[/C][C]2.18735632183908[/C][C]-6.18735632183908[/C][/ROW]
[ROW][C]10[/C][C]-14[/C][C]-8.45126436781609[/C][C]-5.54873563218391[/C][/ROW]
[ROW][C]11[/C][C]-18[/C][C]-8.05126436781609[/C][C]-9.94873563218391[/C][/ROW]
[ROW][C]12[/C][C]-8[/C][C]-5.85126436781609[/C][C]-2.14873563218391[/C][/ROW]
[ROW][C]13[/C][C]-1[/C][C]-2.07149425287356[/C][C]1.07149425287356[/C][/ROW]
[ROW][C]14[/C][C]1[/C][C]-2.98528735632182[/C][C]3.98528735632182[/C][/ROW]
[ROW][C]15[/C][C]2[/C][C]-4.18528735632184[/C][C]6.18528735632184[/C][/ROW]
[ROW][C]16[/C][C]0[/C][C]-4.78528735632184[/C][C]4.78528735632184[/C][/ROW]
[ROW][C]17[/C][C]1[/C][C]-5.78528735632184[/C][C]6.78528735632184[/C][/ROW]
[ROW][C]18[/C][C]0[/C][C]-4.78528735632184[/C][C]4.78528735632184[/C][/ROW]
[ROW][C]19[/C][C]-1[/C][C]-6.38528735632184[/C][C]5.38528735632184[/C][/ROW]
[ROW][C]20[/C][C]-3[/C][C]-6.58528735632184[/C][C]3.58528735632184[/C][/ROW]
[ROW][C]21[/C][C]-3[/C][C]-6.98528735632184[/C][C]3.98528735632184[/C][/ROW]
[ROW][C]22[/C][C]-3[/C][C]-8.82563218390804[/C][C]5.82563218390804[/C][/ROW]
[ROW][C]23[/C][C]-4[/C][C]-8.42563218390804[/C][C]4.42563218390804[/C][/ROW]
[ROW][C]24[/C][C]-8[/C][C]-6.22563218390805[/C][C]-1.77436781609195[/C][/ROW]
[ROW][C]25[/C][C]-9[/C][C]-2.44586206896551[/C][C]-6.55413793103449[/C][/ROW]
[ROW][C]26[/C][C]-13[/C][C]-3.35965517241379[/C][C]-9.64034482758621[/C][/ROW]
[ROW][C]27[/C][C]-18[/C][C]-4.55965517241379[/C][C]-13.4403448275862[/C][/ROW]
[ROW][C]28[/C][C]-11[/C][C]-5.1596551724138[/C][C]-5.8403448275862[/C][/ROW]
[ROW][C]29[/C][C]-9[/C][C]-6.15965517241379[/C][C]-2.84034482758621[/C][/ROW]
[ROW][C]30[/C][C]-10[/C][C]-5.15965517241379[/C][C]-4.84034482758621[/C][/ROW]
[ROW][C]31[/C][C]-13[/C][C]-6.7596551724138[/C][C]-6.24034482758621[/C][/ROW]
[ROW][C]32[/C][C]-11[/C][C]-6.9596551724138[/C][C]-4.0403448275862[/C][/ROW]
[ROW][C]33[/C][C]-5[/C][C]-7.3596551724138[/C][C]2.35965517241379[/C][/ROW]
[ROW][C]34[/C][C]-15[/C][C]-9.2[/C][C]-5.8[/C][/ROW]
[ROW][C]35[/C][C]-6[/C][C]-8.8[/C][C]2.80000000000000[/C][/ROW]
[ROW][C]36[/C][C]-6[/C][C]-6.6[/C][C]0.600000000000005[/C][/ROW]
[ROW][C]37[/C][C]-3[/C][C]-2.82022988505747[/C][C]-0.179770114942532[/C][/ROW]
[ROW][C]38[/C][C]-1[/C][C]-3.73402298850574[/C][C]2.73402298850574[/C][/ROW]
[ROW][C]39[/C][C]-3[/C][C]-4.93402298850575[/C][C]1.93402298850575[/C][/ROW]
[ROW][C]40[/C][C]-4[/C][C]-5.53402298850575[/C][C]1.53402298850575[/C][/ROW]
[ROW][C]41[/C][C]-6[/C][C]-6.53402298850575[/C][C]0.534022988505747[/C][/ROW]
[ROW][C]42[/C][C]0[/C][C]-5.53402298850575[/C][C]5.53402298850575[/C][/ROW]
[ROW][C]43[/C][C]-4[/C][C]-7.13402298850575[/C][C]3.13402298850575[/C][/ROW]
[ROW][C]44[/C][C]-2[/C][C]-7.33402298850575[/C][C]5.33402298850575[/C][/ROW]
[ROW][C]45[/C][C]-2[/C][C]-7.73402298850575[/C][C]5.73402298850575[/C][/ROW]
[ROW][C]46[/C][C]-6[/C][C]-9.57436781609195[/C][C]3.57436781609195[/C][/ROW]
[ROW][C]47[/C][C]-7[/C][C]-9.17436781609195[/C][C]2.17436781609195[/C][/ROW]
[ROW][C]48[/C][C]-6[/C][C]-6.97436781609196[/C][C]0.97436781609196[/C][/ROW]
[ROW][C]49[/C][C]-6[/C][C]-3.19459770114942[/C][C]-2.80540229885058[/C][/ROW]
[ROW][C]50[/C][C]-3[/C][C]-4.10839080459769[/C][C]1.10839080459769[/C][/ROW]
[ROW][C]51[/C][C]-2[/C][C]-5.3083908045977[/C][C]3.30839080459770[/C][/ROW]
[ROW][C]52[/C][C]-5[/C][C]-5.9083908045977[/C][C]0.908390804597704[/C][/ROW]
[ROW][C]53[/C][C]-11[/C][C]-6.9083908045977[/C][C]-4.0916091954023[/C][/ROW]
[ROW][C]54[/C][C]-11[/C][C]-5.9083908045977[/C][C]-5.0916091954023[/C][/ROW]
[ROW][C]55[/C][C]-11[/C][C]-7.5083908045977[/C][C]-3.49160919540230[/C][/ROW]
[ROW][C]56[/C][C]-10[/C][C]-7.7083908045977[/C][C]-2.29160919540230[/C][/ROW]
[ROW][C]57[/C][C]-14[/C][C]-8.1083908045977[/C][C]-5.8916091954023[/C][/ROW]
[ROW][C]58[/C][C]-8[/C][C]-9.9487356321839[/C][C]1.94873563218391[/C][/ROW]
[ROW][C]59[/C][C]-9[/C][C]-9.5487356321839[/C][C]0.548735632183907[/C][/ROW]
[ROW][C]60[/C][C]-5[/C][C]-7.34873563218392[/C][C]2.34873563218392[/C][/ROW]
[ROW][C]61[/C][C]-1[/C][C]-3.56896551724138[/C][C]2.56896551724138[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25717&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25717&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
1137.101149425287335.89885057471267
286.187356321839051.81264367816095
374.987356321839092.01264367816091
434.38735632183909-1.38735632183909
533.38735632183908-0.387356321839084
644.38735632183908-0.387356321839079
742.787356321839081.21264367816092
802.58735632183908-2.58735632183908
9-42.18735632183908-6.18735632183908
10-14-8.45126436781609-5.54873563218391
11-18-8.05126436781609-9.94873563218391
12-8-5.85126436781609-2.14873563218391
13-1-2.071494252873561.07149425287356
141-2.985287356321823.98528735632182
152-4.185287356321846.18528735632184
160-4.785287356321844.78528735632184
171-5.785287356321846.78528735632184
180-4.785287356321844.78528735632184
19-1-6.385287356321845.38528735632184
20-3-6.585287356321843.58528735632184
21-3-6.985287356321843.98528735632184
22-3-8.825632183908045.82563218390804
23-4-8.425632183908044.42563218390804
24-8-6.22563218390805-1.77436781609195
25-9-2.44586206896551-6.55413793103449
26-13-3.35965517241379-9.64034482758621
27-18-4.55965517241379-13.4403448275862
28-11-5.1596551724138-5.8403448275862
29-9-6.15965517241379-2.84034482758621
30-10-5.15965517241379-4.84034482758621
31-13-6.7596551724138-6.24034482758621
32-11-6.9596551724138-4.0403448275862
33-5-7.35965517241382.35965517241379
34-15-9.2-5.8
35-6-8.82.80000000000000
36-6-6.60.600000000000005
37-3-2.82022988505747-0.179770114942532
38-1-3.734022988505742.73402298850574
39-3-4.934022988505751.93402298850575
40-4-5.534022988505751.53402298850575
41-6-6.534022988505750.534022988505747
420-5.534022988505755.53402298850575
43-4-7.134022988505753.13402298850575
44-2-7.334022988505755.33402298850575
45-2-7.734022988505755.73402298850575
46-6-9.574367816091953.57436781609195
47-7-9.174367816091952.17436781609195
48-6-6.974367816091960.97436781609196
49-6-3.19459770114942-2.80540229885058
50-3-4.108390804597691.10839080459769
51-2-5.30839080459773.30839080459770
52-5-5.90839080459770.908390804597704
53-11-6.9083908045977-4.0916091954023
54-11-5.9083908045977-5.0916091954023
55-11-7.5083908045977-3.49160919540230
56-10-7.7083908045977-2.29160919540230
57-14-8.1083908045977-5.8916091954023
58-8-9.94873563218391.94873563218391
59-9-9.54873563218390.548735632183907
60-5-7.348735632183922.34873563218392
61-1-3.568965517241382.56896551724138







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.3695713388739530.7391426777479070.630428661126047
180.2375754203173670.4751508406347350.762424579682633
190.1481791830172290.2963583660344570.851820816982771
200.09378140539945970.1875628107989190.90621859460054
210.1058520021697430.2117040043394860.894147997830257
220.07176875991616860.1435375198323370.928231240083831
230.04710522098355770.09421044196711540.952894779016442
240.1308658785382870.2617317570765740.869134121461713
250.6327616879837980.7344766240324040.367238312016202
260.8418987382407290.3162025235185420.158101261759271
270.9793691546916160.04126169061676870.0206308453083844
280.9761214404333050.04775711913339060.0238785595666953
290.9585734926071370.0828530147857270.0414265073928635
300.944754648698340.1104907026033210.0552453513016607
310.9416865747127920.1166268505744160.0583134252872081
320.9366524304104380.1266951391791240.0633475695895619
330.9184438203675370.1631123592649260.0815561796324628
340.962979928491650.07404014301669940.0370200715083497
350.9598017169936250.08039656601274990.0401982830063750
360.9530127692881950.09397446142360990.0469872307118049
370.9380388521191340.1239222957617330.0619611478808663
380.907297029653170.1854059406936590.0927029703468294
390.8833103428375780.2333793143248440.116689657162422
400.8283065299168650.3433869401662690.171693470083134
410.7272577430766850.5454845138466310.272742256923315
420.7144557389777580.5710885220444840.285544261022242
430.6029897365104420.7940205269791160.397010263489558
440.5165233659527550.966953268094490.483476634047245

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.369571338873953 & 0.739142677747907 & 0.630428661126047 \tabularnewline
18 & 0.237575420317367 & 0.475150840634735 & 0.762424579682633 \tabularnewline
19 & 0.148179183017229 & 0.296358366034457 & 0.851820816982771 \tabularnewline
20 & 0.0937814053994597 & 0.187562810798919 & 0.90621859460054 \tabularnewline
21 & 0.105852002169743 & 0.211704004339486 & 0.894147997830257 \tabularnewline
22 & 0.0717687599161686 & 0.143537519832337 & 0.928231240083831 \tabularnewline
23 & 0.0471052209835577 & 0.0942104419671154 & 0.952894779016442 \tabularnewline
24 & 0.130865878538287 & 0.261731757076574 & 0.869134121461713 \tabularnewline
25 & 0.632761687983798 & 0.734476624032404 & 0.367238312016202 \tabularnewline
26 & 0.841898738240729 & 0.316202523518542 & 0.158101261759271 \tabularnewline
27 & 0.979369154691616 & 0.0412616906167687 & 0.0206308453083844 \tabularnewline
28 & 0.976121440433305 & 0.0477571191333906 & 0.0238785595666953 \tabularnewline
29 & 0.958573492607137 & 0.082853014785727 & 0.0414265073928635 \tabularnewline
30 & 0.94475464869834 & 0.110490702603321 & 0.0552453513016607 \tabularnewline
31 & 0.941686574712792 & 0.116626850574416 & 0.0583134252872081 \tabularnewline
32 & 0.936652430410438 & 0.126695139179124 & 0.0633475695895619 \tabularnewline
33 & 0.918443820367537 & 0.163112359264926 & 0.0815561796324628 \tabularnewline
34 & 0.96297992849165 & 0.0740401430166994 & 0.0370200715083497 \tabularnewline
35 & 0.959801716993625 & 0.0803965660127499 & 0.0401982830063750 \tabularnewline
36 & 0.953012769288195 & 0.0939744614236099 & 0.0469872307118049 \tabularnewline
37 & 0.938038852119134 & 0.123922295761733 & 0.0619611478808663 \tabularnewline
38 & 0.90729702965317 & 0.185405940693659 & 0.0927029703468294 \tabularnewline
39 & 0.883310342837578 & 0.233379314324844 & 0.116689657162422 \tabularnewline
40 & 0.828306529916865 & 0.343386940166269 & 0.171693470083134 \tabularnewline
41 & 0.727257743076685 & 0.545484513846631 & 0.272742256923315 \tabularnewline
42 & 0.714455738977758 & 0.571088522044484 & 0.285544261022242 \tabularnewline
43 & 0.602989736510442 & 0.794020526979116 & 0.397010263489558 \tabularnewline
44 & 0.516523365952755 & 0.96695326809449 & 0.483476634047245 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25717&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.369571338873953[/C][C]0.739142677747907[/C][C]0.630428661126047[/C][/ROW]
[ROW][C]18[/C][C]0.237575420317367[/C][C]0.475150840634735[/C][C]0.762424579682633[/C][/ROW]
[ROW][C]19[/C][C]0.148179183017229[/C][C]0.296358366034457[/C][C]0.851820816982771[/C][/ROW]
[ROW][C]20[/C][C]0.0937814053994597[/C][C]0.187562810798919[/C][C]0.90621859460054[/C][/ROW]
[ROW][C]21[/C][C]0.105852002169743[/C][C]0.211704004339486[/C][C]0.894147997830257[/C][/ROW]
[ROW][C]22[/C][C]0.0717687599161686[/C][C]0.143537519832337[/C][C]0.928231240083831[/C][/ROW]
[ROW][C]23[/C][C]0.0471052209835577[/C][C]0.0942104419671154[/C][C]0.952894779016442[/C][/ROW]
[ROW][C]24[/C][C]0.130865878538287[/C][C]0.261731757076574[/C][C]0.869134121461713[/C][/ROW]
[ROW][C]25[/C][C]0.632761687983798[/C][C]0.734476624032404[/C][C]0.367238312016202[/C][/ROW]
[ROW][C]26[/C][C]0.841898738240729[/C][C]0.316202523518542[/C][C]0.158101261759271[/C][/ROW]
[ROW][C]27[/C][C]0.979369154691616[/C][C]0.0412616906167687[/C][C]0.0206308453083844[/C][/ROW]
[ROW][C]28[/C][C]0.976121440433305[/C][C]0.0477571191333906[/C][C]0.0238785595666953[/C][/ROW]
[ROW][C]29[/C][C]0.958573492607137[/C][C]0.082853014785727[/C][C]0.0414265073928635[/C][/ROW]
[ROW][C]30[/C][C]0.94475464869834[/C][C]0.110490702603321[/C][C]0.0552453513016607[/C][/ROW]
[ROW][C]31[/C][C]0.941686574712792[/C][C]0.116626850574416[/C][C]0.0583134252872081[/C][/ROW]
[ROW][C]32[/C][C]0.936652430410438[/C][C]0.126695139179124[/C][C]0.0633475695895619[/C][/ROW]
[ROW][C]33[/C][C]0.918443820367537[/C][C]0.163112359264926[/C][C]0.0815561796324628[/C][/ROW]
[ROW][C]34[/C][C]0.96297992849165[/C][C]0.0740401430166994[/C][C]0.0370200715083497[/C][/ROW]
[ROW][C]35[/C][C]0.959801716993625[/C][C]0.0803965660127499[/C][C]0.0401982830063750[/C][/ROW]
[ROW][C]36[/C][C]0.953012769288195[/C][C]0.0939744614236099[/C][C]0.0469872307118049[/C][/ROW]
[ROW][C]37[/C][C]0.938038852119134[/C][C]0.123922295761733[/C][C]0.0619611478808663[/C][/ROW]
[ROW][C]38[/C][C]0.90729702965317[/C][C]0.185405940693659[/C][C]0.0927029703468294[/C][/ROW]
[ROW][C]39[/C][C]0.883310342837578[/C][C]0.233379314324844[/C][C]0.116689657162422[/C][/ROW]
[ROW][C]40[/C][C]0.828306529916865[/C][C]0.343386940166269[/C][C]0.171693470083134[/C][/ROW]
[ROW][C]41[/C][C]0.727257743076685[/C][C]0.545484513846631[/C][C]0.272742256923315[/C][/ROW]
[ROW][C]42[/C][C]0.714455738977758[/C][C]0.571088522044484[/C][C]0.285544261022242[/C][/ROW]
[ROW][C]43[/C][C]0.602989736510442[/C][C]0.794020526979116[/C][C]0.397010263489558[/C][/ROW]
[ROW][C]44[/C][C]0.516523365952755[/C][C]0.96695326809449[/C][C]0.483476634047245[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25717&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.3695713388739530.7391426777479070.630428661126047
180.2375754203173670.4751508406347350.762424579682633
190.1481791830172290.2963583660344570.851820816982771
200.09378140539945970.1875628107989190.90621859460054
210.1058520021697430.2117040043394860.894147997830257
220.07176875991616860.1435375198323370.928231240083831
230.04710522098355770.09421044196711540.952894779016442
240.1308658785382870.2617317570765740.869134121461713
250.6327616879837980.7344766240324040.367238312016202
260.8418987382407290.3162025235185420.158101261759271
270.9793691546916160.04126169061676870.0206308453083844
280.9761214404333050.04775711913339060.0238785595666953
290.9585734926071370.0828530147857270.0414265073928635
300.944754648698340.1104907026033210.0552453513016607
310.9416865747127920.1166268505744160.0583134252872081
320.9366524304104380.1266951391791240.0633475695895619
330.9184438203675370.1631123592649260.0815561796324628
340.962979928491650.07404014301669940.0370200715083497
350.9598017169936250.08039656601274990.0401982830063750
360.9530127692881950.09397446142360990.0469872307118049
370.9380388521191340.1239222957617330.0619611478808663
380.907297029653170.1854059406936590.0927029703468294
390.8833103428375780.2333793143248440.116689657162422
400.8283065299168650.3433869401662690.171693470083134
410.7272577430766850.5454845138466310.272742256923315
420.7144557389777580.5710885220444840.285544261022242
430.6029897365104420.7940205269791160.397010263489558
440.5165233659527550.966953268094490.483476634047245







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.0714285714285714NOK
10% type I error level70.25NOK

\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 & 2 & 0.0714285714285714 & NOK \tabularnewline
10% type I error level & 7 & 0.25 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25717&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]2[/C][C]0.0714285714285714[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]7[/C][C]0.25[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25717&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25717&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 level20.0714285714285714NOK
10% type I error level70.25NOK



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