Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 18 Dec 2008 04:09:27 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/18/t1229598808537o1w3o298agx4.htm/, Retrieved Sun, 12 May 2024 02:49:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34649, Retrieved Sun, 12 May 2024 02:49:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact178
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Paper: multiple l...] [2008-12-18 11:09:27] [2fdb1a8e4a6fa49ce74bdce2c154874d] [Current]
Feedback Forum

Post a new message
Dataseries X:
90.8	0
96.4	0
90	0
92.1	0
97.2	0
95.1	0
88.5	0
91	0
90.5	1
75	1
66.3	1
66	0
68.4	0
70.6	0
83.9	0
90.1	0
90.6	0
87.1	0
90.8	0
94.1	0
99.8	0
96.8	0
87	0
96.3	0
107.1	0
115.2	0
106.1	1
89.5	1
91.3	1
97.6	1
100.7	1
104.6	1
94.7	1
101.8	1
102.5	1
105.3	1
110.3	1
109.8	1
117.3	1
118.8	1
131.3	1
125.9	1
133.1	1
147	1
145.8	1
164.4	1
149.8	1
137.7	1
151.7	1
156.8	1
180	1
180.4	1
170.4	1
191.6	1
199.5	1
218.2	1
217.5	1
205	1
194	1
199.3	1




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 92.7881818181819 + 46.8863636363636t -5.88272727272737M1[t] -1.78272727272727M2[t] -5.46000000000002M3[t] -6.74000000000003M4[t] -4.76000000000004M5[t] -1.46000000000003M6[t] + 1.59999999999998M7[t] + 10.0600000000000M8[t] -0.637272727272797M9[t] -1.69727272727277M10[t] -10.3772727272728M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  92.7881818181819 +  46.8863636363636t -5.88272727272737M1[t] -1.78272727272727M2[t] -5.46000000000002M3[t] -6.74000000000003M4[t] -4.76000000000004M5[t] -1.46000000000003M6[t] +  1.59999999999998M7[t] +  10.0600000000000M8[t] -0.637272727272797M9[t] -1.69727272727277M10[t] -10.3772727272728M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34649&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  92.7881818181819 +  46.8863636363636t -5.88272727272737M1[t] -1.78272727272727M2[t] -5.46000000000002M3[t] -6.74000000000003M4[t] -4.76000000000004M5[t] -1.46000000000003M6[t] +  1.59999999999998M7[t] +  10.0600000000000M8[t] -0.637272727272797M9[t] -1.69727272727277M10[t] -10.3772727272728M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34649&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34649&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
Y[t] = + 92.7881818181819 + 46.8863636363636t -5.88272727272737M1[t] -1.78272727272727M2[t] -5.46000000000002M3[t] -6.74000000000003M4[t] -4.76000000000004M5[t] -1.46000000000003M6[t] + 1.59999999999998M7[t] + 10.0600000000000M8[t] -0.637272727272797M9[t] -1.69727272727277M10[t] -10.3772727272728M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)92.788181818181918.0416135.1435e-063e-06
t46.886363636363610.416334.50124.4e-052.2e-05
M1-5.8827272727273724.025396-0.24490.8076350.403817
M2-1.7827272727272724.025396-0.07420.9411650.470582
M3-5.4600000000000223.934905-0.22810.8205440.410272
M4-6.7400000000000323.934905-0.28160.7794890.389744
M5-4.7600000000000423.934905-0.19890.843220.42161
M6-1.4600000000000323.934905-0.0610.9516190.475809
M71.5999999999999823.9349050.06680.9469860.473493
M810.060000000000023.9349050.42030.6761770.338088
M9-0.63727272727279724.025396-0.02650.9789510.489475
M10-1.6972727272727724.025396-0.07060.943980.47199
M11-10.377272727272824.025396-0.43190.6677680.333884

\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) & 92.7881818181819 & 18.041613 & 5.143 & 5e-06 & 3e-06 \tabularnewline
t & 46.8863636363636 & 10.41633 & 4.5012 & 4.4e-05 & 2.2e-05 \tabularnewline
M1 & -5.88272727272737 & 24.025396 & -0.2449 & 0.807635 & 0.403817 \tabularnewline
M2 & -1.78272727272727 & 24.025396 & -0.0742 & 0.941165 & 0.470582 \tabularnewline
M3 & -5.46000000000002 & 23.934905 & -0.2281 & 0.820544 & 0.410272 \tabularnewline
M4 & -6.74000000000003 & 23.934905 & -0.2816 & 0.779489 & 0.389744 \tabularnewline
M5 & -4.76000000000004 & 23.934905 & -0.1989 & 0.84322 & 0.42161 \tabularnewline
M6 & -1.46000000000003 & 23.934905 & -0.061 & 0.951619 & 0.475809 \tabularnewline
M7 & 1.59999999999998 & 23.934905 & 0.0668 & 0.946986 & 0.473493 \tabularnewline
M8 & 10.0600000000000 & 23.934905 & 0.4203 & 0.676177 & 0.338088 \tabularnewline
M9 & -0.637272727272797 & 24.025396 & -0.0265 & 0.978951 & 0.489475 \tabularnewline
M10 & -1.69727272727277 & 24.025396 & -0.0706 & 0.94398 & 0.47199 \tabularnewline
M11 & -10.3772727272728 & 24.025396 & -0.4319 & 0.667768 & 0.333884 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34649&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]92.7881818181819[/C][C]18.041613[/C][C]5.143[/C][C]5e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]t[/C][C]46.8863636363636[/C][C]10.41633[/C][C]4.5012[/C][C]4.4e-05[/C][C]2.2e-05[/C][/ROW]
[ROW][C]M1[/C][C]-5.88272727272737[/C][C]24.025396[/C][C]-0.2449[/C][C]0.807635[/C][C]0.403817[/C][/ROW]
[ROW][C]M2[/C][C]-1.78272727272727[/C][C]24.025396[/C][C]-0.0742[/C][C]0.941165[/C][C]0.470582[/C][/ROW]
[ROW][C]M3[/C][C]-5.46000000000002[/C][C]23.934905[/C][C]-0.2281[/C][C]0.820544[/C][C]0.410272[/C][/ROW]
[ROW][C]M4[/C][C]-6.74000000000003[/C][C]23.934905[/C][C]-0.2816[/C][C]0.779489[/C][C]0.389744[/C][/ROW]
[ROW][C]M5[/C][C]-4.76000000000004[/C][C]23.934905[/C][C]-0.1989[/C][C]0.84322[/C][C]0.42161[/C][/ROW]
[ROW][C]M6[/C][C]-1.46000000000003[/C][C]23.934905[/C][C]-0.061[/C][C]0.951619[/C][C]0.475809[/C][/ROW]
[ROW][C]M7[/C][C]1.59999999999998[/C][C]23.934905[/C][C]0.0668[/C][C]0.946986[/C][C]0.473493[/C][/ROW]
[ROW][C]M8[/C][C]10.0600000000000[/C][C]23.934905[/C][C]0.4203[/C][C]0.676177[/C][C]0.338088[/C][/ROW]
[ROW][C]M9[/C][C]-0.637272727272797[/C][C]24.025396[/C][C]-0.0265[/C][C]0.978951[/C][C]0.489475[/C][/ROW]
[ROW][C]M10[/C][C]-1.69727272727277[/C][C]24.025396[/C][C]-0.0706[/C][C]0.94398[/C][C]0.47199[/C][/ROW]
[ROW][C]M11[/C][C]-10.3772727272728[/C][C]24.025396[/C][C]-0.4319[/C][C]0.667768[/C][C]0.333884[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34649&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34649&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)92.788181818181918.0416135.1435e-063e-06
t46.886363636363610.416334.50124.4e-052.2e-05
M1-5.8827272727273724.025396-0.24490.8076350.403817
M2-1.7827272727272724.025396-0.07420.9411650.470582
M3-5.4600000000000223.934905-0.22810.8205440.410272
M4-6.7400000000000323.934905-0.28160.7794890.389744
M5-4.7600000000000423.934905-0.19890.843220.42161
M6-1.4600000000000323.934905-0.0610.9516190.475809
M71.5999999999999823.9349050.06680.9469860.473493
M810.060000000000023.9349050.42030.6761770.338088
M9-0.63727272727279724.025396-0.02650.9789510.489475
M10-1.6972727272727724.025396-0.07060.943980.47199
M11-10.377272727272824.025396-0.43190.6677680.333884







Multiple Linear Regression - Regression Statistics
Multiple R0.569875575470858
R-squared0.324758171518242
Adjusted R-squared0.152356002544176
F-TEST (value)1.88372439541114
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.061421781836675
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation37.8444075368895
Sum Squared Residuals67313.3615454545

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.569875575470858 \tabularnewline
R-squared & 0.324758171518242 \tabularnewline
Adjusted R-squared & 0.152356002544176 \tabularnewline
F-TEST (value) & 1.88372439541114 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.061421781836675 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 37.8444075368895 \tabularnewline
Sum Squared Residuals & 67313.3615454545 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34649&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.569875575470858[/C][/ROW]
[ROW][C]R-squared[/C][C]0.324758171518242[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.152356002544176[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.88372439541114[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.061421781836675[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]37.8444075368895[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]67313.3615454545[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34649&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34649&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.569875575470858
R-squared0.324758171518242
Adjusted R-squared0.152356002544176
F-TEST (value)1.88372439541114
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.061421781836675
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation37.8444075368895
Sum Squared Residuals67313.3615454545







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
190.886.90545454545483.89454545454518
296.491.00545454545445.39454545454557
39087.32818181818182.67181818181818
492.186.04818181818186.05181818181817
597.288.02818181818189.17181818181817
695.191.32818181818183.77181818181818
788.594.3881818181818-5.88818181818182
891102.848181818182-11.8481818181818
990.5139.037272727273-48.5372727272728
1075137.977272727273-62.9772727272727
1166.3129.297272727273-62.9972727272727
126692.7881818181818-26.7881818181818
1368.486.9054545454545-18.5054545454545
1470.691.0054545454546-20.4054545454546
1583.987.3281818181818-3.42818181818181
1690.186.04818181818184.05181818181817
1790.688.02818181818182.57181818181818
1887.191.3281818181818-4.22818181818182
1990.894.3881818181818-3.58818181818181
2094.1102.848181818182-8.74818181818182
2199.892.1509090909097.64909090909092
2296.891.0909090909095.70909090909092
238782.41090909090914.58909090909089
2496.392.78818181818183.51181818181815
25107.186.905454545454520.1945454545455
26115.291.005454545454624.1945454545454
27106.1134.214545454545-28.1145454545455
2889.5132.934545454545-43.4345454545455
2991.3134.914545454545-43.6145454545454
3097.6138.214545454545-40.6145454545455
31100.7141.274545454545-40.5745454545454
32104.6149.734545454545-45.1345454545454
3394.7139.037272727273-44.3372727272727
34101.8137.977272727273-36.1772727272727
35102.5129.297272727273-26.7972727272727
36105.3139.674545454545-34.3745454545455
37110.3133.791818181818-23.4918181818181
38109.8137.891818181818-28.0918181818182
39117.3134.214545454545-16.9145454545455
40118.8132.934545454545-14.1345454545455
41131.3134.914545454545-3.61454545454543
42125.9138.214545454545-12.3145454545454
43133.1141.274545454545-8.17454545454545
44147149.734545454545-2.73454545454544
45145.8139.0372727272736.7627272727273
46164.4137.97727272727326.4227272727273
47149.8129.29727272727320.5027272727273
48137.7139.674545454545-1.97454545454549
49151.7133.79181818181817.9081818181819
50156.8137.89181818181818.9081818181818
51180134.21454545454545.7854545454545
52180.4132.93454545454547.4654545454545
53170.4134.91454545454535.4854545454545
54191.6138.21454545454553.3854545454545
55199.5141.27454545454558.2254545454546
56218.2149.73454545454568.4654545454545
57217.5139.03727272727378.4627272727272
58205137.97727272727367.0227272727273
59194129.29727272727364.7027272727273
60199.3139.67454545454559.6254545454545

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 90.8 & 86.9054545454548 & 3.89454545454518 \tabularnewline
2 & 96.4 & 91.0054545454544 & 5.39454545454557 \tabularnewline
3 & 90 & 87.3281818181818 & 2.67181818181818 \tabularnewline
4 & 92.1 & 86.0481818181818 & 6.05181818181817 \tabularnewline
5 & 97.2 & 88.0281818181818 & 9.17181818181817 \tabularnewline
6 & 95.1 & 91.3281818181818 & 3.77181818181818 \tabularnewline
7 & 88.5 & 94.3881818181818 & -5.88818181818182 \tabularnewline
8 & 91 & 102.848181818182 & -11.8481818181818 \tabularnewline
9 & 90.5 & 139.037272727273 & -48.5372727272728 \tabularnewline
10 & 75 & 137.977272727273 & -62.9772727272727 \tabularnewline
11 & 66.3 & 129.297272727273 & -62.9972727272727 \tabularnewline
12 & 66 & 92.7881818181818 & -26.7881818181818 \tabularnewline
13 & 68.4 & 86.9054545454545 & -18.5054545454545 \tabularnewline
14 & 70.6 & 91.0054545454546 & -20.4054545454546 \tabularnewline
15 & 83.9 & 87.3281818181818 & -3.42818181818181 \tabularnewline
16 & 90.1 & 86.0481818181818 & 4.05181818181817 \tabularnewline
17 & 90.6 & 88.0281818181818 & 2.57181818181818 \tabularnewline
18 & 87.1 & 91.3281818181818 & -4.22818181818182 \tabularnewline
19 & 90.8 & 94.3881818181818 & -3.58818181818181 \tabularnewline
20 & 94.1 & 102.848181818182 & -8.74818181818182 \tabularnewline
21 & 99.8 & 92.150909090909 & 7.64909090909092 \tabularnewline
22 & 96.8 & 91.090909090909 & 5.70909090909092 \tabularnewline
23 & 87 & 82.4109090909091 & 4.58909090909089 \tabularnewline
24 & 96.3 & 92.7881818181818 & 3.51181818181815 \tabularnewline
25 & 107.1 & 86.9054545454545 & 20.1945454545455 \tabularnewline
26 & 115.2 & 91.0054545454546 & 24.1945454545454 \tabularnewline
27 & 106.1 & 134.214545454545 & -28.1145454545455 \tabularnewline
28 & 89.5 & 132.934545454545 & -43.4345454545455 \tabularnewline
29 & 91.3 & 134.914545454545 & -43.6145454545454 \tabularnewline
30 & 97.6 & 138.214545454545 & -40.6145454545455 \tabularnewline
31 & 100.7 & 141.274545454545 & -40.5745454545454 \tabularnewline
32 & 104.6 & 149.734545454545 & -45.1345454545454 \tabularnewline
33 & 94.7 & 139.037272727273 & -44.3372727272727 \tabularnewline
34 & 101.8 & 137.977272727273 & -36.1772727272727 \tabularnewline
35 & 102.5 & 129.297272727273 & -26.7972727272727 \tabularnewline
36 & 105.3 & 139.674545454545 & -34.3745454545455 \tabularnewline
37 & 110.3 & 133.791818181818 & -23.4918181818181 \tabularnewline
38 & 109.8 & 137.891818181818 & -28.0918181818182 \tabularnewline
39 & 117.3 & 134.214545454545 & -16.9145454545455 \tabularnewline
40 & 118.8 & 132.934545454545 & -14.1345454545455 \tabularnewline
41 & 131.3 & 134.914545454545 & -3.61454545454543 \tabularnewline
42 & 125.9 & 138.214545454545 & -12.3145454545454 \tabularnewline
43 & 133.1 & 141.274545454545 & -8.17454545454545 \tabularnewline
44 & 147 & 149.734545454545 & -2.73454545454544 \tabularnewline
45 & 145.8 & 139.037272727273 & 6.7627272727273 \tabularnewline
46 & 164.4 & 137.977272727273 & 26.4227272727273 \tabularnewline
47 & 149.8 & 129.297272727273 & 20.5027272727273 \tabularnewline
48 & 137.7 & 139.674545454545 & -1.97454545454549 \tabularnewline
49 & 151.7 & 133.791818181818 & 17.9081818181819 \tabularnewline
50 & 156.8 & 137.891818181818 & 18.9081818181818 \tabularnewline
51 & 180 & 134.214545454545 & 45.7854545454545 \tabularnewline
52 & 180.4 & 132.934545454545 & 47.4654545454545 \tabularnewline
53 & 170.4 & 134.914545454545 & 35.4854545454545 \tabularnewline
54 & 191.6 & 138.214545454545 & 53.3854545454545 \tabularnewline
55 & 199.5 & 141.274545454545 & 58.2254545454546 \tabularnewline
56 & 218.2 & 149.734545454545 & 68.4654545454545 \tabularnewline
57 & 217.5 & 139.037272727273 & 78.4627272727272 \tabularnewline
58 & 205 & 137.977272727273 & 67.0227272727273 \tabularnewline
59 & 194 & 129.297272727273 & 64.7027272727273 \tabularnewline
60 & 199.3 & 139.674545454545 & 59.6254545454545 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34649&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]90.8[/C][C]86.9054545454548[/C][C]3.89454545454518[/C][/ROW]
[ROW][C]2[/C][C]96.4[/C][C]91.0054545454544[/C][C]5.39454545454557[/C][/ROW]
[ROW][C]3[/C][C]90[/C][C]87.3281818181818[/C][C]2.67181818181818[/C][/ROW]
[ROW][C]4[/C][C]92.1[/C][C]86.0481818181818[/C][C]6.05181818181817[/C][/ROW]
[ROW][C]5[/C][C]97.2[/C][C]88.0281818181818[/C][C]9.17181818181817[/C][/ROW]
[ROW][C]6[/C][C]95.1[/C][C]91.3281818181818[/C][C]3.77181818181818[/C][/ROW]
[ROW][C]7[/C][C]88.5[/C][C]94.3881818181818[/C][C]-5.88818181818182[/C][/ROW]
[ROW][C]8[/C][C]91[/C][C]102.848181818182[/C][C]-11.8481818181818[/C][/ROW]
[ROW][C]9[/C][C]90.5[/C][C]139.037272727273[/C][C]-48.5372727272728[/C][/ROW]
[ROW][C]10[/C][C]75[/C][C]137.977272727273[/C][C]-62.9772727272727[/C][/ROW]
[ROW][C]11[/C][C]66.3[/C][C]129.297272727273[/C][C]-62.9972727272727[/C][/ROW]
[ROW][C]12[/C][C]66[/C][C]92.7881818181818[/C][C]-26.7881818181818[/C][/ROW]
[ROW][C]13[/C][C]68.4[/C][C]86.9054545454545[/C][C]-18.5054545454545[/C][/ROW]
[ROW][C]14[/C][C]70.6[/C][C]91.0054545454546[/C][C]-20.4054545454546[/C][/ROW]
[ROW][C]15[/C][C]83.9[/C][C]87.3281818181818[/C][C]-3.42818181818181[/C][/ROW]
[ROW][C]16[/C][C]90.1[/C][C]86.0481818181818[/C][C]4.05181818181817[/C][/ROW]
[ROW][C]17[/C][C]90.6[/C][C]88.0281818181818[/C][C]2.57181818181818[/C][/ROW]
[ROW][C]18[/C][C]87.1[/C][C]91.3281818181818[/C][C]-4.22818181818182[/C][/ROW]
[ROW][C]19[/C][C]90.8[/C][C]94.3881818181818[/C][C]-3.58818181818181[/C][/ROW]
[ROW][C]20[/C][C]94.1[/C][C]102.848181818182[/C][C]-8.74818181818182[/C][/ROW]
[ROW][C]21[/C][C]99.8[/C][C]92.150909090909[/C][C]7.64909090909092[/C][/ROW]
[ROW][C]22[/C][C]96.8[/C][C]91.090909090909[/C][C]5.70909090909092[/C][/ROW]
[ROW][C]23[/C][C]87[/C][C]82.4109090909091[/C][C]4.58909090909089[/C][/ROW]
[ROW][C]24[/C][C]96.3[/C][C]92.7881818181818[/C][C]3.51181818181815[/C][/ROW]
[ROW][C]25[/C][C]107.1[/C][C]86.9054545454545[/C][C]20.1945454545455[/C][/ROW]
[ROW][C]26[/C][C]115.2[/C][C]91.0054545454546[/C][C]24.1945454545454[/C][/ROW]
[ROW][C]27[/C][C]106.1[/C][C]134.214545454545[/C][C]-28.1145454545455[/C][/ROW]
[ROW][C]28[/C][C]89.5[/C][C]132.934545454545[/C][C]-43.4345454545455[/C][/ROW]
[ROW][C]29[/C][C]91.3[/C][C]134.914545454545[/C][C]-43.6145454545454[/C][/ROW]
[ROW][C]30[/C][C]97.6[/C][C]138.214545454545[/C][C]-40.6145454545455[/C][/ROW]
[ROW][C]31[/C][C]100.7[/C][C]141.274545454545[/C][C]-40.5745454545454[/C][/ROW]
[ROW][C]32[/C][C]104.6[/C][C]149.734545454545[/C][C]-45.1345454545454[/C][/ROW]
[ROW][C]33[/C][C]94.7[/C][C]139.037272727273[/C][C]-44.3372727272727[/C][/ROW]
[ROW][C]34[/C][C]101.8[/C][C]137.977272727273[/C][C]-36.1772727272727[/C][/ROW]
[ROW][C]35[/C][C]102.5[/C][C]129.297272727273[/C][C]-26.7972727272727[/C][/ROW]
[ROW][C]36[/C][C]105.3[/C][C]139.674545454545[/C][C]-34.3745454545455[/C][/ROW]
[ROW][C]37[/C][C]110.3[/C][C]133.791818181818[/C][C]-23.4918181818181[/C][/ROW]
[ROW][C]38[/C][C]109.8[/C][C]137.891818181818[/C][C]-28.0918181818182[/C][/ROW]
[ROW][C]39[/C][C]117.3[/C][C]134.214545454545[/C][C]-16.9145454545455[/C][/ROW]
[ROW][C]40[/C][C]118.8[/C][C]132.934545454545[/C][C]-14.1345454545455[/C][/ROW]
[ROW][C]41[/C][C]131.3[/C][C]134.914545454545[/C][C]-3.61454545454543[/C][/ROW]
[ROW][C]42[/C][C]125.9[/C][C]138.214545454545[/C][C]-12.3145454545454[/C][/ROW]
[ROW][C]43[/C][C]133.1[/C][C]141.274545454545[/C][C]-8.17454545454545[/C][/ROW]
[ROW][C]44[/C][C]147[/C][C]149.734545454545[/C][C]-2.73454545454544[/C][/ROW]
[ROW][C]45[/C][C]145.8[/C][C]139.037272727273[/C][C]6.7627272727273[/C][/ROW]
[ROW][C]46[/C][C]164.4[/C][C]137.977272727273[/C][C]26.4227272727273[/C][/ROW]
[ROW][C]47[/C][C]149.8[/C][C]129.297272727273[/C][C]20.5027272727273[/C][/ROW]
[ROW][C]48[/C][C]137.7[/C][C]139.674545454545[/C][C]-1.97454545454549[/C][/ROW]
[ROW][C]49[/C][C]151.7[/C][C]133.791818181818[/C][C]17.9081818181819[/C][/ROW]
[ROW][C]50[/C][C]156.8[/C][C]137.891818181818[/C][C]18.9081818181818[/C][/ROW]
[ROW][C]51[/C][C]180[/C][C]134.214545454545[/C][C]45.7854545454545[/C][/ROW]
[ROW][C]52[/C][C]180.4[/C][C]132.934545454545[/C][C]47.4654545454545[/C][/ROW]
[ROW][C]53[/C][C]170.4[/C][C]134.914545454545[/C][C]35.4854545454545[/C][/ROW]
[ROW][C]54[/C][C]191.6[/C][C]138.214545454545[/C][C]53.3854545454545[/C][/ROW]
[ROW][C]55[/C][C]199.5[/C][C]141.274545454545[/C][C]58.2254545454546[/C][/ROW]
[ROW][C]56[/C][C]218.2[/C][C]149.734545454545[/C][C]68.4654545454545[/C][/ROW]
[ROW][C]57[/C][C]217.5[/C][C]139.037272727273[/C][C]78.4627272727272[/C][/ROW]
[ROW][C]58[/C][C]205[/C][C]137.977272727273[/C][C]67.0227272727273[/C][/ROW]
[ROW][C]59[/C][C]194[/C][C]129.297272727273[/C][C]64.7027272727273[/C][/ROW]
[ROW][C]60[/C][C]199.3[/C][C]139.674545454545[/C][C]59.6254545454545[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34649&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34649&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
190.886.90545454545483.89454545454518
296.491.00545454545445.39454545454557
39087.32818181818182.67181818181818
492.186.04818181818186.05181818181817
597.288.02818181818189.17181818181817
695.191.32818181818183.77181818181818
788.594.3881818181818-5.88818181818182
891102.848181818182-11.8481818181818
990.5139.037272727273-48.5372727272728
1075137.977272727273-62.9772727272727
1166.3129.297272727273-62.9972727272727
126692.7881818181818-26.7881818181818
1368.486.9054545454545-18.5054545454545
1470.691.0054545454546-20.4054545454546
1583.987.3281818181818-3.42818181818181
1690.186.04818181818184.05181818181817
1790.688.02818181818182.57181818181818
1887.191.3281818181818-4.22818181818182
1990.894.3881818181818-3.58818181818181
2094.1102.848181818182-8.74818181818182
2199.892.1509090909097.64909090909092
2296.891.0909090909095.70909090909092
238782.41090909090914.58909090909089
2496.392.78818181818183.51181818181815
25107.186.905454545454520.1945454545455
26115.291.005454545454624.1945454545454
27106.1134.214545454545-28.1145454545455
2889.5132.934545454545-43.4345454545455
2991.3134.914545454545-43.6145454545454
3097.6138.214545454545-40.6145454545455
31100.7141.274545454545-40.5745454545454
32104.6149.734545454545-45.1345454545454
3394.7139.037272727273-44.3372727272727
34101.8137.977272727273-36.1772727272727
35102.5129.297272727273-26.7972727272727
36105.3139.674545454545-34.3745454545455
37110.3133.791818181818-23.4918181818181
38109.8137.891818181818-28.0918181818182
39117.3134.214545454545-16.9145454545455
40118.8132.934545454545-14.1345454545455
41131.3134.914545454545-3.61454545454543
42125.9138.214545454545-12.3145454545454
43133.1141.274545454545-8.17454545454545
44147149.734545454545-2.73454545454544
45145.8139.0372727272736.7627272727273
46164.4137.97727272727326.4227272727273
47149.8129.29727272727320.5027272727273
48137.7139.674545454545-1.97454545454549
49151.7133.79181818181817.9081818181819
50156.8137.89181818181818.9081818181818
51180134.21454545454545.7854545454545
52180.4132.93454545454547.4654545454545
53170.4134.91454545454535.4854545454545
54191.6138.21454545454553.3854545454545
55199.5141.27454545454558.2254545454546
56218.2149.73454545454568.4654545454545
57217.5139.03727272727378.4627272727272
58205137.97727272727367.0227272727273
59194129.29727272727364.7027272727273
60199.3139.67454545454559.6254545454545







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.05220121207847090.1044024241569420.947798787921529
170.01515319952108090.03030639904216170.98484680047892
180.00420315080498990.00840630160997980.99579684919501
190.0009749936269894440.001949987253978890.99902500637301
200.0002124854531424790.0004249709062849570.999787514546858
214.15938514427031e-058.31877028854063e-050.999958406148557
229.84089157083578e-061.96817831416716e-050.99999015910843
231.90561936816029e-063.81123873632057e-060.999998094380632
244.44408544601107e-068.88817089202213e-060.999995555914554
256.5666734138744e-061.31333468277488e-050.999993433326586
261.08035257406464e-052.16070514812929e-050.99998919647426
271.32880486068361e-052.65760972136722e-050.999986711951393
285.02086047424913e-061.00417209484983e-050.999994979139526
291.87257014502639e-063.74514029005279e-060.999998127429855
308.51309731405404e-071.70261946281081e-060.999999148690269
314.81366772870414e-079.62733545740829e-070.999999518633227
323.71001670497966e-077.42003340995931e-070.99999962899833
333.42871811367738e-076.85743622735476e-070.999999657128189
345.54082236267273e-071.10816447253455e-060.999999445917764
351.3123887471066e-062.6247774942132e-060.999998687611253
362.08749566129524e-064.17499132259049e-060.99999791250434
371.31958807548039e-062.63917615096079e-060.999998680411925
387.18818309983695e-071.43763661996739e-060.99999928118169
391.02033203750534e-062.04066407501067e-060.999998979667962
401.90051741052438e-063.80103482104876e-060.99999809948259
413.10675406517404e-066.21350813034808e-060.999996893245935
428.3933566966478e-061.67867133932956e-050.999991606643303
433.7544384370212e-057.5088768740424e-050.99996245561563
440.0004053572146554210.0008107144293108420.999594642785345

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0522012120784709 & 0.104402424156942 & 0.947798787921529 \tabularnewline
17 & 0.0151531995210809 & 0.0303063990421617 & 0.98484680047892 \tabularnewline
18 & 0.0042031508049899 & 0.0084063016099798 & 0.99579684919501 \tabularnewline
19 & 0.000974993626989444 & 0.00194998725397889 & 0.99902500637301 \tabularnewline
20 & 0.000212485453142479 & 0.000424970906284957 & 0.999787514546858 \tabularnewline
21 & 4.15938514427031e-05 & 8.31877028854063e-05 & 0.999958406148557 \tabularnewline
22 & 9.84089157083578e-06 & 1.96817831416716e-05 & 0.99999015910843 \tabularnewline
23 & 1.90561936816029e-06 & 3.81123873632057e-06 & 0.999998094380632 \tabularnewline
24 & 4.44408544601107e-06 & 8.88817089202213e-06 & 0.999995555914554 \tabularnewline
25 & 6.5666734138744e-06 & 1.31333468277488e-05 & 0.999993433326586 \tabularnewline
26 & 1.08035257406464e-05 & 2.16070514812929e-05 & 0.99998919647426 \tabularnewline
27 & 1.32880486068361e-05 & 2.65760972136722e-05 & 0.999986711951393 \tabularnewline
28 & 5.02086047424913e-06 & 1.00417209484983e-05 & 0.999994979139526 \tabularnewline
29 & 1.87257014502639e-06 & 3.74514029005279e-06 & 0.999998127429855 \tabularnewline
30 & 8.51309731405404e-07 & 1.70261946281081e-06 & 0.999999148690269 \tabularnewline
31 & 4.81366772870414e-07 & 9.62733545740829e-07 & 0.999999518633227 \tabularnewline
32 & 3.71001670497966e-07 & 7.42003340995931e-07 & 0.99999962899833 \tabularnewline
33 & 3.42871811367738e-07 & 6.85743622735476e-07 & 0.999999657128189 \tabularnewline
34 & 5.54082236267273e-07 & 1.10816447253455e-06 & 0.999999445917764 \tabularnewline
35 & 1.3123887471066e-06 & 2.6247774942132e-06 & 0.999998687611253 \tabularnewline
36 & 2.08749566129524e-06 & 4.17499132259049e-06 & 0.99999791250434 \tabularnewline
37 & 1.31958807548039e-06 & 2.63917615096079e-06 & 0.999998680411925 \tabularnewline
38 & 7.18818309983695e-07 & 1.43763661996739e-06 & 0.99999928118169 \tabularnewline
39 & 1.02033203750534e-06 & 2.04066407501067e-06 & 0.999998979667962 \tabularnewline
40 & 1.90051741052438e-06 & 3.80103482104876e-06 & 0.99999809948259 \tabularnewline
41 & 3.10675406517404e-06 & 6.21350813034808e-06 & 0.999996893245935 \tabularnewline
42 & 8.3933566966478e-06 & 1.67867133932956e-05 & 0.999991606643303 \tabularnewline
43 & 3.7544384370212e-05 & 7.5088768740424e-05 & 0.99996245561563 \tabularnewline
44 & 0.000405357214655421 & 0.000810714429310842 & 0.999594642785345 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34649&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.0522012120784709[/C][C]0.104402424156942[/C][C]0.947798787921529[/C][/ROW]
[ROW][C]17[/C][C]0.0151531995210809[/C][C]0.0303063990421617[/C][C]0.98484680047892[/C][/ROW]
[ROW][C]18[/C][C]0.0042031508049899[/C][C]0.0084063016099798[/C][C]0.99579684919501[/C][/ROW]
[ROW][C]19[/C][C]0.000974993626989444[/C][C]0.00194998725397889[/C][C]0.99902500637301[/C][/ROW]
[ROW][C]20[/C][C]0.000212485453142479[/C][C]0.000424970906284957[/C][C]0.999787514546858[/C][/ROW]
[ROW][C]21[/C][C]4.15938514427031e-05[/C][C]8.31877028854063e-05[/C][C]0.999958406148557[/C][/ROW]
[ROW][C]22[/C][C]9.84089157083578e-06[/C][C]1.96817831416716e-05[/C][C]0.99999015910843[/C][/ROW]
[ROW][C]23[/C][C]1.90561936816029e-06[/C][C]3.81123873632057e-06[/C][C]0.999998094380632[/C][/ROW]
[ROW][C]24[/C][C]4.44408544601107e-06[/C][C]8.88817089202213e-06[/C][C]0.999995555914554[/C][/ROW]
[ROW][C]25[/C][C]6.5666734138744e-06[/C][C]1.31333468277488e-05[/C][C]0.999993433326586[/C][/ROW]
[ROW][C]26[/C][C]1.08035257406464e-05[/C][C]2.16070514812929e-05[/C][C]0.99998919647426[/C][/ROW]
[ROW][C]27[/C][C]1.32880486068361e-05[/C][C]2.65760972136722e-05[/C][C]0.999986711951393[/C][/ROW]
[ROW][C]28[/C][C]5.02086047424913e-06[/C][C]1.00417209484983e-05[/C][C]0.999994979139526[/C][/ROW]
[ROW][C]29[/C][C]1.87257014502639e-06[/C][C]3.74514029005279e-06[/C][C]0.999998127429855[/C][/ROW]
[ROW][C]30[/C][C]8.51309731405404e-07[/C][C]1.70261946281081e-06[/C][C]0.999999148690269[/C][/ROW]
[ROW][C]31[/C][C]4.81366772870414e-07[/C][C]9.62733545740829e-07[/C][C]0.999999518633227[/C][/ROW]
[ROW][C]32[/C][C]3.71001670497966e-07[/C][C]7.42003340995931e-07[/C][C]0.99999962899833[/C][/ROW]
[ROW][C]33[/C][C]3.42871811367738e-07[/C][C]6.85743622735476e-07[/C][C]0.999999657128189[/C][/ROW]
[ROW][C]34[/C][C]5.54082236267273e-07[/C][C]1.10816447253455e-06[/C][C]0.999999445917764[/C][/ROW]
[ROW][C]35[/C][C]1.3123887471066e-06[/C][C]2.6247774942132e-06[/C][C]0.999998687611253[/C][/ROW]
[ROW][C]36[/C][C]2.08749566129524e-06[/C][C]4.17499132259049e-06[/C][C]0.99999791250434[/C][/ROW]
[ROW][C]37[/C][C]1.31958807548039e-06[/C][C]2.63917615096079e-06[/C][C]0.999998680411925[/C][/ROW]
[ROW][C]38[/C][C]7.18818309983695e-07[/C][C]1.43763661996739e-06[/C][C]0.99999928118169[/C][/ROW]
[ROW][C]39[/C][C]1.02033203750534e-06[/C][C]2.04066407501067e-06[/C][C]0.999998979667962[/C][/ROW]
[ROW][C]40[/C][C]1.90051741052438e-06[/C][C]3.80103482104876e-06[/C][C]0.99999809948259[/C][/ROW]
[ROW][C]41[/C][C]3.10675406517404e-06[/C][C]6.21350813034808e-06[/C][C]0.999996893245935[/C][/ROW]
[ROW][C]42[/C][C]8.3933566966478e-06[/C][C]1.67867133932956e-05[/C][C]0.999991606643303[/C][/ROW]
[ROW][C]43[/C][C]3.7544384370212e-05[/C][C]7.5088768740424e-05[/C][C]0.99996245561563[/C][/ROW]
[ROW][C]44[/C][C]0.000405357214655421[/C][C]0.000810714429310842[/C][C]0.999594642785345[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34649&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.05220121207847090.1044024241569420.947798787921529
170.01515319952108090.03030639904216170.98484680047892
180.00420315080498990.00840630160997980.99579684919501
190.0009749936269894440.001949987253978890.99902500637301
200.0002124854531424790.0004249709062849570.999787514546858
214.15938514427031e-058.31877028854063e-050.999958406148557
229.84089157083578e-061.96817831416716e-050.99999015910843
231.90561936816029e-063.81123873632057e-060.999998094380632
244.44408544601107e-068.88817089202213e-060.999995555914554
256.5666734138744e-061.31333468277488e-050.999993433326586
261.08035257406464e-052.16070514812929e-050.99998919647426
271.32880486068361e-052.65760972136722e-050.999986711951393
285.02086047424913e-061.00417209484983e-050.999994979139526
291.87257014502639e-063.74514029005279e-060.999998127429855
308.51309731405404e-071.70261946281081e-060.999999148690269
314.81366772870414e-079.62733545740829e-070.999999518633227
323.71001670497966e-077.42003340995931e-070.99999962899833
333.42871811367738e-076.85743622735476e-070.999999657128189
345.54082236267273e-071.10816447253455e-060.999999445917764
351.3123887471066e-062.6247774942132e-060.999998687611253
362.08749566129524e-064.17499132259049e-060.99999791250434
371.31958807548039e-062.63917615096079e-060.999998680411925
387.18818309983695e-071.43763661996739e-060.99999928118169
391.02033203750534e-062.04066407501067e-060.999998979667962
401.90051741052438e-063.80103482104876e-060.99999809948259
413.10675406517404e-066.21350813034808e-060.999996893245935
428.3933566966478e-061.67867133932956e-050.999991606643303
433.7544384370212e-057.5088768740424e-050.99996245561563
440.0004053572146554210.0008107144293108420.999594642785345







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level270.93103448275862NOK
5% type I error level280.96551724137931NOK
10% type I error level280.96551724137931NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34649&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 level270.93103448275862NOK
5% type I error level280.96551724137931NOK
10% type I error level280.96551724137931NOK



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