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, 25 Nov 2009 13:53:06 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/25/t1259182439hh55jbntzucq0m5.htm/, Retrieved Fri, 03 May 2024 08:13:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59642, Retrieved Fri, 03 May 2024 08:13:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact141
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [ws7] [2009-11-20 14:21:10] [37a8d600db9abe09a2528d150ccff095]
-    D        [Multiple Regression] [] [2009-11-25 20:53:06] [244731fa3e7e6c85774b8c0902c58f85] [Current]
Feedback Forum

Post a new message
Dataseries X:
2756.76	0
2849.27	0
2921.44	0
2981.85	0
3080.58	0
3106.22	0
3119.31	0
3061.26	0
3097.31	0
3161.69	0
3257.16	0
3277.01	0
3295.32	0
3363.99	0
3494.17	0
3667.03	1
3813.06	1
3917.96	1
3895.51	1
3801.06	1
3570.12	0
3701.61	1
3862.27	1
3970.1	1
4138.52	1
4199.75	1
4290.89	1
4443.91	1
4502.64	1
4356.98	1
4591.27	1
4696.96	1
4621.4	1
4562.84	1
4202.52	1
4296.49	1
4435.23	1
4105.18	1
4116.68	1
3844.49	1
3720.98	1
3674.4	1
3857.62	1
3801.06	1
3504.37	1
3032.6	1
3047.03	0
2962.34	1
2197.82	1
2014.45	1
1862.83	0
1905.41	0
1810.99	0
1670.07	0
1864.44	0
2052.02	0
2029.6	0
2070.83	0
2293.41	0
2443.27	0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 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 & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59642&T=0

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
bel20[t] = + 2661.16616666666 + 1214.45972222222rent[t] -25.1120000000012M1[t] -83.3140000000002M2[t] + 190.251944444445M3[t] -21.3039999999998M4[t] -4.19199999999998M5[t] -44.716M6[t] + 75.7880000000003M7[t] + 92.6300000000002M8[t] + 217.609944444445M9[t] -83.9279999999996M10[t] + 185.527944444445M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
bel20[t] =  +  2661.16616666666 +  1214.45972222222rent[t] -25.1120000000012M1[t] -83.3140000000002M2[t] +  190.251944444445M3[t] -21.3039999999998M4[t] -4.19199999999998M5[t] -44.716M6[t] +  75.7880000000003M7[t] +  92.6300000000002M8[t] +  217.609944444445M9[t] -83.9279999999996M10[t] +  185.527944444445M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59642&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]bel20[t] =  +  2661.16616666666 +  1214.45972222222rent[t] -25.1120000000012M1[t] -83.3140000000002M2[t] +  190.251944444445M3[t] -21.3039999999998M4[t] -4.19199999999998M5[t] -44.716M6[t] +  75.7880000000003M7[t] +  92.6300000000002M8[t] +  217.609944444445M9[t] -83.9279999999996M10[t] +  185.527944444445M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59642&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59642&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
bel20[t] = + 2661.16616666666 + 1214.45972222222rent[t] -25.1120000000012M1[t] -83.3140000000002M2[t] + 190.251944444445M3[t] -21.3039999999998M4[t] -4.19199999999998M5[t] -44.716M6[t] + 75.7880000000003M7[t] + 92.6300000000002M8[t] + 217.609944444445M9[t] -83.9279999999996M10[t] + 185.527944444445M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2661.16616666666318.1750618.363800
rent1214.45972222222176.7639236.870500
M1-25.1120000000012424.233415-0.05920.9530490.476524
M2-83.3140000000002424.233415-0.19640.8451540.422577
M3190.251944444445425.7038990.44690.6569920.328496
M4-21.3039999999998424.233415-0.05020.9601620.480081
M5-4.19199999999998424.233415-0.00990.9921580.496079
M6-44.716424.233415-0.10540.9165040.458252
M775.7880000000003424.2334150.17860.8589830.429491
M892.6300000000002424.2334150.21830.8281040.414052
M9217.609944444445425.7038990.51120.611620.30581
M10-83.9279999999996424.233415-0.19780.8440280.422014
M11185.527944444445425.7038990.43580.6649660.332483

\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) & 2661.16616666666 & 318.175061 & 8.3638 & 0 & 0 \tabularnewline
rent & 1214.45972222222 & 176.763923 & 6.8705 & 0 & 0 \tabularnewline
M1 & -25.1120000000012 & 424.233415 & -0.0592 & 0.953049 & 0.476524 \tabularnewline
M2 & -83.3140000000002 & 424.233415 & -0.1964 & 0.845154 & 0.422577 \tabularnewline
M3 & 190.251944444445 & 425.703899 & 0.4469 & 0.656992 & 0.328496 \tabularnewline
M4 & -21.3039999999998 & 424.233415 & -0.0502 & 0.960162 & 0.480081 \tabularnewline
M5 & -4.19199999999998 & 424.233415 & -0.0099 & 0.992158 & 0.496079 \tabularnewline
M6 & -44.716 & 424.233415 & -0.1054 & 0.916504 & 0.458252 \tabularnewline
M7 & 75.7880000000003 & 424.233415 & 0.1786 & 0.858983 & 0.429491 \tabularnewline
M8 & 92.6300000000002 & 424.233415 & 0.2183 & 0.828104 & 0.414052 \tabularnewline
M9 & 217.609944444445 & 425.703899 & 0.5112 & 0.61162 & 0.30581 \tabularnewline
M10 & -83.9279999999996 & 424.233415 & -0.1978 & 0.844028 & 0.422014 \tabularnewline
M11 & 185.527944444445 & 425.703899 & 0.4358 & 0.664966 & 0.332483 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59642&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]2661.16616666666[/C][C]318.175061[/C][C]8.3638[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]rent[/C][C]1214.45972222222[/C][C]176.763923[/C][C]6.8705[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-25.1120000000012[/C][C]424.233415[/C][C]-0.0592[/C][C]0.953049[/C][C]0.476524[/C][/ROW]
[ROW][C]M2[/C][C]-83.3140000000002[/C][C]424.233415[/C][C]-0.1964[/C][C]0.845154[/C][C]0.422577[/C][/ROW]
[ROW][C]M3[/C][C]190.251944444445[/C][C]425.703899[/C][C]0.4469[/C][C]0.656992[/C][C]0.328496[/C][/ROW]
[ROW][C]M4[/C][C]-21.3039999999998[/C][C]424.233415[/C][C]-0.0502[/C][C]0.960162[/C][C]0.480081[/C][/ROW]
[ROW][C]M5[/C][C]-4.19199999999998[/C][C]424.233415[/C][C]-0.0099[/C][C]0.992158[/C][C]0.496079[/C][/ROW]
[ROW][C]M6[/C][C]-44.716[/C][C]424.233415[/C][C]-0.1054[/C][C]0.916504[/C][C]0.458252[/C][/ROW]
[ROW][C]M7[/C][C]75.7880000000003[/C][C]424.233415[/C][C]0.1786[/C][C]0.858983[/C][C]0.429491[/C][/ROW]
[ROW][C]M8[/C][C]92.6300000000002[/C][C]424.233415[/C][C]0.2183[/C][C]0.828104[/C][C]0.414052[/C][/ROW]
[ROW][C]M9[/C][C]217.609944444445[/C][C]425.703899[/C][C]0.5112[/C][C]0.61162[/C][C]0.30581[/C][/ROW]
[ROW][C]M10[/C][C]-83.9279999999996[/C][C]424.233415[/C][C]-0.1978[/C][C]0.844028[/C][C]0.422014[/C][/ROW]
[ROW][C]M11[/C][C]185.527944444445[/C][C]425.703899[/C][C]0.4358[/C][C]0.664966[/C][C]0.332483[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59642&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59642&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)2661.16616666666318.1750618.363800
rent1214.45972222222176.7639236.870500
M1-25.1120000000012424.233415-0.05920.9530490.476524
M2-83.3140000000002424.233415-0.19640.8451540.422577
M3190.251944444445425.7038990.44690.6569920.328496
M4-21.3039999999998424.233415-0.05020.9601620.480081
M5-4.19199999999998424.233415-0.00990.9921580.496079
M6-44.716424.233415-0.10540.9165040.458252
M775.7880000000003424.2334150.17860.8589830.429491
M892.6300000000002424.2334150.21830.8281040.414052
M9217.609944444445425.7038990.51120.611620.30581
M10-83.9279999999996424.233415-0.19780.8440280.422014
M11185.527944444445425.7038990.43580.6649660.332483







Multiple Linear Regression - Regression Statistics
Multiple R0.70926712281411
R-squared0.503059851505006
Adjusted R-squared0.376181515719051
F-TEST (value)3.9648995109273
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.000314353822826074
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation670.771924839074
Sum Squared Residuals21146943.8321589

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.70926712281411 \tabularnewline
R-squared & 0.503059851505006 \tabularnewline
Adjusted R-squared & 0.376181515719051 \tabularnewline
F-TEST (value) & 3.9648995109273 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.000314353822826074 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 670.771924839074 \tabularnewline
Sum Squared Residuals & 21146943.8321589 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59642&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.70926712281411[/C][/ROW]
[ROW][C]R-squared[/C][C]0.503059851505006[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.376181515719051[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.9648995109273[/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.000314353822826074[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]670.771924839074[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]21146943.8321589[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59642&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59642&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.70926712281411
R-squared0.503059851505006
Adjusted R-squared0.376181515719051
F-TEST (value)3.9648995109273
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.000314353822826074
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation670.771924839074
Sum Squared Residuals21146943.8321589







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12756.762636.05416666667120.705833333328
22849.272577.85216666667271.417833333332
32921.442851.4181111111170.0218888888892
42981.852639.86216666667341.987833333333
53080.582656.97416666667423.605833333334
63106.222616.45016666667489.769833333333
73119.312736.95416666667382.355833333333
83061.262753.79616666667307.463833333334
93097.312878.77611111111218.533888888889
103161.692577.23816666667584.451833333333
113257.162846.69411111111410.465888888889
123277.012661.16616666667615.843833333334
133295.322636.05416666667659.265833333335
143363.992577.85216666667786.137833333334
153494.172851.41811111111642.751888888889
163667.033854.32188888889-187.291888888889
173813.063871.43388888889-58.3738888888891
183917.963830.9098888888987.0501111111109
193895.513951.41388888889-55.903888888889
203801.063968.25588888889-167.195888888889
213570.122878.77611111111691.343888888889
223701.613791.69788888889-90.0878888888892
233862.274061.15383333333-198.883833333334
243970.13875.6258888888994.4741111111109
254138.523850.51388888889288.006111111113
264199.753792.31188888889407.438111111111
274290.894065.87783333333225.012166666666
284443.913854.32188888889589.588111111111
294502.643871.43388888889631.206111111111
304356.983830.90988888889526.070111111111
314591.273951.41388888889639.856111111111
324696.963968.25588888889728.704111111111
334621.44093.23583333333528.164166666666
344562.843791.69788888889771.142111111111
354202.524061.15383333333141.366166666667
364296.493875.62588888889420.864111111111
374435.233850.51388888889584.716111111112
384105.183792.31188888889312.868111111112
394116.684065.8778333333350.8021666666665
403844.493854.32188888889-9.83188888888929
413720.983871.43388888889-150.453888888889
423674.43830.90988888889-156.509888888889
433857.623951.41388888889-93.7938888888893
443801.063968.25588888889-167.195888888889
453504.374093.23583333333-588.865833333334
463032.63791.69788888889-759.097888888889
473047.032846.69411111111200.335888888889
482962.343875.62588888889-913.285888888889
492197.823850.51388888889-1652.69388888889
502014.453792.31188888889-1777.86188888889
511862.832851.41811111111-988.588111111111
521905.412639.86216666667-734.452166666667
531810.992656.97416666667-845.984166666667
541670.072616.45016666667-946.380166666666
551864.442736.95416666667-872.514166666666
562052.022753.79616666667-701.776166666667
572029.62878.77611111111-849.176111111111
582070.832577.23816666667-506.408166666667
592293.412846.69411111111-553.284111111111
602443.272661.16616666667-217.896166666666

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2756.76 & 2636.05416666667 & 120.705833333328 \tabularnewline
2 & 2849.27 & 2577.85216666667 & 271.417833333332 \tabularnewline
3 & 2921.44 & 2851.41811111111 & 70.0218888888892 \tabularnewline
4 & 2981.85 & 2639.86216666667 & 341.987833333333 \tabularnewline
5 & 3080.58 & 2656.97416666667 & 423.605833333334 \tabularnewline
6 & 3106.22 & 2616.45016666667 & 489.769833333333 \tabularnewline
7 & 3119.31 & 2736.95416666667 & 382.355833333333 \tabularnewline
8 & 3061.26 & 2753.79616666667 & 307.463833333334 \tabularnewline
9 & 3097.31 & 2878.77611111111 & 218.533888888889 \tabularnewline
10 & 3161.69 & 2577.23816666667 & 584.451833333333 \tabularnewline
11 & 3257.16 & 2846.69411111111 & 410.465888888889 \tabularnewline
12 & 3277.01 & 2661.16616666667 & 615.843833333334 \tabularnewline
13 & 3295.32 & 2636.05416666667 & 659.265833333335 \tabularnewline
14 & 3363.99 & 2577.85216666667 & 786.137833333334 \tabularnewline
15 & 3494.17 & 2851.41811111111 & 642.751888888889 \tabularnewline
16 & 3667.03 & 3854.32188888889 & -187.291888888889 \tabularnewline
17 & 3813.06 & 3871.43388888889 & -58.3738888888891 \tabularnewline
18 & 3917.96 & 3830.90988888889 & 87.0501111111109 \tabularnewline
19 & 3895.51 & 3951.41388888889 & -55.903888888889 \tabularnewline
20 & 3801.06 & 3968.25588888889 & -167.195888888889 \tabularnewline
21 & 3570.12 & 2878.77611111111 & 691.343888888889 \tabularnewline
22 & 3701.61 & 3791.69788888889 & -90.0878888888892 \tabularnewline
23 & 3862.27 & 4061.15383333333 & -198.883833333334 \tabularnewline
24 & 3970.1 & 3875.62588888889 & 94.4741111111109 \tabularnewline
25 & 4138.52 & 3850.51388888889 & 288.006111111113 \tabularnewline
26 & 4199.75 & 3792.31188888889 & 407.438111111111 \tabularnewline
27 & 4290.89 & 4065.87783333333 & 225.012166666666 \tabularnewline
28 & 4443.91 & 3854.32188888889 & 589.588111111111 \tabularnewline
29 & 4502.64 & 3871.43388888889 & 631.206111111111 \tabularnewline
30 & 4356.98 & 3830.90988888889 & 526.070111111111 \tabularnewline
31 & 4591.27 & 3951.41388888889 & 639.856111111111 \tabularnewline
32 & 4696.96 & 3968.25588888889 & 728.704111111111 \tabularnewline
33 & 4621.4 & 4093.23583333333 & 528.164166666666 \tabularnewline
34 & 4562.84 & 3791.69788888889 & 771.142111111111 \tabularnewline
35 & 4202.52 & 4061.15383333333 & 141.366166666667 \tabularnewline
36 & 4296.49 & 3875.62588888889 & 420.864111111111 \tabularnewline
37 & 4435.23 & 3850.51388888889 & 584.716111111112 \tabularnewline
38 & 4105.18 & 3792.31188888889 & 312.868111111112 \tabularnewline
39 & 4116.68 & 4065.87783333333 & 50.8021666666665 \tabularnewline
40 & 3844.49 & 3854.32188888889 & -9.83188888888929 \tabularnewline
41 & 3720.98 & 3871.43388888889 & -150.453888888889 \tabularnewline
42 & 3674.4 & 3830.90988888889 & -156.509888888889 \tabularnewline
43 & 3857.62 & 3951.41388888889 & -93.7938888888893 \tabularnewline
44 & 3801.06 & 3968.25588888889 & -167.195888888889 \tabularnewline
45 & 3504.37 & 4093.23583333333 & -588.865833333334 \tabularnewline
46 & 3032.6 & 3791.69788888889 & -759.097888888889 \tabularnewline
47 & 3047.03 & 2846.69411111111 & 200.335888888889 \tabularnewline
48 & 2962.34 & 3875.62588888889 & -913.285888888889 \tabularnewline
49 & 2197.82 & 3850.51388888889 & -1652.69388888889 \tabularnewline
50 & 2014.45 & 3792.31188888889 & -1777.86188888889 \tabularnewline
51 & 1862.83 & 2851.41811111111 & -988.588111111111 \tabularnewline
52 & 1905.41 & 2639.86216666667 & -734.452166666667 \tabularnewline
53 & 1810.99 & 2656.97416666667 & -845.984166666667 \tabularnewline
54 & 1670.07 & 2616.45016666667 & -946.380166666666 \tabularnewline
55 & 1864.44 & 2736.95416666667 & -872.514166666666 \tabularnewline
56 & 2052.02 & 2753.79616666667 & -701.776166666667 \tabularnewline
57 & 2029.6 & 2878.77611111111 & -849.176111111111 \tabularnewline
58 & 2070.83 & 2577.23816666667 & -506.408166666667 \tabularnewline
59 & 2293.41 & 2846.69411111111 & -553.284111111111 \tabularnewline
60 & 2443.27 & 2661.16616666667 & -217.896166666666 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59642&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]2756.76[/C][C]2636.05416666667[/C][C]120.705833333328[/C][/ROW]
[ROW][C]2[/C][C]2849.27[/C][C]2577.85216666667[/C][C]271.417833333332[/C][/ROW]
[ROW][C]3[/C][C]2921.44[/C][C]2851.41811111111[/C][C]70.0218888888892[/C][/ROW]
[ROW][C]4[/C][C]2981.85[/C][C]2639.86216666667[/C][C]341.987833333333[/C][/ROW]
[ROW][C]5[/C][C]3080.58[/C][C]2656.97416666667[/C][C]423.605833333334[/C][/ROW]
[ROW][C]6[/C][C]3106.22[/C][C]2616.45016666667[/C][C]489.769833333333[/C][/ROW]
[ROW][C]7[/C][C]3119.31[/C][C]2736.95416666667[/C][C]382.355833333333[/C][/ROW]
[ROW][C]8[/C][C]3061.26[/C][C]2753.79616666667[/C][C]307.463833333334[/C][/ROW]
[ROW][C]9[/C][C]3097.31[/C][C]2878.77611111111[/C][C]218.533888888889[/C][/ROW]
[ROW][C]10[/C][C]3161.69[/C][C]2577.23816666667[/C][C]584.451833333333[/C][/ROW]
[ROW][C]11[/C][C]3257.16[/C][C]2846.69411111111[/C][C]410.465888888889[/C][/ROW]
[ROW][C]12[/C][C]3277.01[/C][C]2661.16616666667[/C][C]615.843833333334[/C][/ROW]
[ROW][C]13[/C][C]3295.32[/C][C]2636.05416666667[/C][C]659.265833333335[/C][/ROW]
[ROW][C]14[/C][C]3363.99[/C][C]2577.85216666667[/C][C]786.137833333334[/C][/ROW]
[ROW][C]15[/C][C]3494.17[/C][C]2851.41811111111[/C][C]642.751888888889[/C][/ROW]
[ROW][C]16[/C][C]3667.03[/C][C]3854.32188888889[/C][C]-187.291888888889[/C][/ROW]
[ROW][C]17[/C][C]3813.06[/C][C]3871.43388888889[/C][C]-58.3738888888891[/C][/ROW]
[ROW][C]18[/C][C]3917.96[/C][C]3830.90988888889[/C][C]87.0501111111109[/C][/ROW]
[ROW][C]19[/C][C]3895.51[/C][C]3951.41388888889[/C][C]-55.903888888889[/C][/ROW]
[ROW][C]20[/C][C]3801.06[/C][C]3968.25588888889[/C][C]-167.195888888889[/C][/ROW]
[ROW][C]21[/C][C]3570.12[/C][C]2878.77611111111[/C][C]691.343888888889[/C][/ROW]
[ROW][C]22[/C][C]3701.61[/C][C]3791.69788888889[/C][C]-90.0878888888892[/C][/ROW]
[ROW][C]23[/C][C]3862.27[/C][C]4061.15383333333[/C][C]-198.883833333334[/C][/ROW]
[ROW][C]24[/C][C]3970.1[/C][C]3875.62588888889[/C][C]94.4741111111109[/C][/ROW]
[ROW][C]25[/C][C]4138.52[/C][C]3850.51388888889[/C][C]288.006111111113[/C][/ROW]
[ROW][C]26[/C][C]4199.75[/C][C]3792.31188888889[/C][C]407.438111111111[/C][/ROW]
[ROW][C]27[/C][C]4290.89[/C][C]4065.87783333333[/C][C]225.012166666666[/C][/ROW]
[ROW][C]28[/C][C]4443.91[/C][C]3854.32188888889[/C][C]589.588111111111[/C][/ROW]
[ROW][C]29[/C][C]4502.64[/C][C]3871.43388888889[/C][C]631.206111111111[/C][/ROW]
[ROW][C]30[/C][C]4356.98[/C][C]3830.90988888889[/C][C]526.070111111111[/C][/ROW]
[ROW][C]31[/C][C]4591.27[/C][C]3951.41388888889[/C][C]639.856111111111[/C][/ROW]
[ROW][C]32[/C][C]4696.96[/C][C]3968.25588888889[/C][C]728.704111111111[/C][/ROW]
[ROW][C]33[/C][C]4621.4[/C][C]4093.23583333333[/C][C]528.164166666666[/C][/ROW]
[ROW][C]34[/C][C]4562.84[/C][C]3791.69788888889[/C][C]771.142111111111[/C][/ROW]
[ROW][C]35[/C][C]4202.52[/C][C]4061.15383333333[/C][C]141.366166666667[/C][/ROW]
[ROW][C]36[/C][C]4296.49[/C][C]3875.62588888889[/C][C]420.864111111111[/C][/ROW]
[ROW][C]37[/C][C]4435.23[/C][C]3850.51388888889[/C][C]584.716111111112[/C][/ROW]
[ROW][C]38[/C][C]4105.18[/C][C]3792.31188888889[/C][C]312.868111111112[/C][/ROW]
[ROW][C]39[/C][C]4116.68[/C][C]4065.87783333333[/C][C]50.8021666666665[/C][/ROW]
[ROW][C]40[/C][C]3844.49[/C][C]3854.32188888889[/C][C]-9.83188888888929[/C][/ROW]
[ROW][C]41[/C][C]3720.98[/C][C]3871.43388888889[/C][C]-150.453888888889[/C][/ROW]
[ROW][C]42[/C][C]3674.4[/C][C]3830.90988888889[/C][C]-156.509888888889[/C][/ROW]
[ROW][C]43[/C][C]3857.62[/C][C]3951.41388888889[/C][C]-93.7938888888893[/C][/ROW]
[ROW][C]44[/C][C]3801.06[/C][C]3968.25588888889[/C][C]-167.195888888889[/C][/ROW]
[ROW][C]45[/C][C]3504.37[/C][C]4093.23583333333[/C][C]-588.865833333334[/C][/ROW]
[ROW][C]46[/C][C]3032.6[/C][C]3791.69788888889[/C][C]-759.097888888889[/C][/ROW]
[ROW][C]47[/C][C]3047.03[/C][C]2846.69411111111[/C][C]200.335888888889[/C][/ROW]
[ROW][C]48[/C][C]2962.34[/C][C]3875.62588888889[/C][C]-913.285888888889[/C][/ROW]
[ROW][C]49[/C][C]2197.82[/C][C]3850.51388888889[/C][C]-1652.69388888889[/C][/ROW]
[ROW][C]50[/C][C]2014.45[/C][C]3792.31188888889[/C][C]-1777.86188888889[/C][/ROW]
[ROW][C]51[/C][C]1862.83[/C][C]2851.41811111111[/C][C]-988.588111111111[/C][/ROW]
[ROW][C]52[/C][C]1905.41[/C][C]2639.86216666667[/C][C]-734.452166666667[/C][/ROW]
[ROW][C]53[/C][C]1810.99[/C][C]2656.97416666667[/C][C]-845.984166666667[/C][/ROW]
[ROW][C]54[/C][C]1670.07[/C][C]2616.45016666667[/C][C]-946.380166666666[/C][/ROW]
[ROW][C]55[/C][C]1864.44[/C][C]2736.95416666667[/C][C]-872.514166666666[/C][/ROW]
[ROW][C]56[/C][C]2052.02[/C][C]2753.79616666667[/C][C]-701.776166666667[/C][/ROW]
[ROW][C]57[/C][C]2029.6[/C][C]2878.77611111111[/C][C]-849.176111111111[/C][/ROW]
[ROW][C]58[/C][C]2070.83[/C][C]2577.23816666667[/C][C]-506.408166666667[/C][/ROW]
[ROW][C]59[/C][C]2293.41[/C][C]2846.69411111111[/C][C]-553.284111111111[/C][/ROW]
[ROW][C]60[/C][C]2443.27[/C][C]2661.16616666667[/C][C]-217.896166666666[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59642&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59642&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
12756.762636.05416666667120.705833333328
22849.272577.85216666667271.417833333332
32921.442851.4181111111170.0218888888892
42981.852639.86216666667341.987833333333
53080.582656.97416666667423.605833333334
63106.222616.45016666667489.769833333333
73119.312736.95416666667382.355833333333
83061.262753.79616666667307.463833333334
93097.312878.77611111111218.533888888889
103161.692577.23816666667584.451833333333
113257.162846.69411111111410.465888888889
123277.012661.16616666667615.843833333334
133295.322636.05416666667659.265833333335
143363.992577.85216666667786.137833333334
153494.172851.41811111111642.751888888889
163667.033854.32188888889-187.291888888889
173813.063871.43388888889-58.3738888888891
183917.963830.9098888888987.0501111111109
193895.513951.41388888889-55.903888888889
203801.063968.25588888889-167.195888888889
213570.122878.77611111111691.343888888889
223701.613791.69788888889-90.0878888888892
233862.274061.15383333333-198.883833333334
243970.13875.6258888888994.4741111111109
254138.523850.51388888889288.006111111113
264199.753792.31188888889407.438111111111
274290.894065.87783333333225.012166666666
284443.913854.32188888889589.588111111111
294502.643871.43388888889631.206111111111
304356.983830.90988888889526.070111111111
314591.273951.41388888889639.856111111111
324696.963968.25588888889728.704111111111
334621.44093.23583333333528.164166666666
344562.843791.69788888889771.142111111111
354202.524061.15383333333141.366166666667
364296.493875.62588888889420.864111111111
374435.233850.51388888889584.716111111112
384105.183792.31188888889312.868111111112
394116.684065.8778333333350.8021666666665
403844.493854.32188888889-9.83188888888929
413720.983871.43388888889-150.453888888889
423674.43830.90988888889-156.509888888889
433857.623951.41388888889-93.7938888888893
443801.063968.25588888889-167.195888888889
453504.374093.23583333333-588.865833333334
463032.63791.69788888889-759.097888888889
473047.032846.69411111111200.335888888889
482962.343875.62588888889-913.285888888889
492197.823850.51388888889-1652.69388888889
502014.453792.31188888889-1777.86188888889
511862.832851.41811111111-988.588111111111
521905.412639.86216666667-734.452166666667
531810.992656.97416666667-845.984166666667
541670.072616.45016666667-946.380166666666
551864.442736.95416666667-872.514166666666
562052.022753.79616666667-701.776166666667
572029.62878.77611111111-849.176111111111
582070.832577.23816666667-506.408166666667
592293.412846.69411111111-553.284111111111
602443.272661.16616666667-217.896166666666







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2025476632681280.4050953265362560.797452336731872
170.09046559511599820.1809311902319960.909534404884002
180.03687741103050190.07375482206100380.963122588969498
190.01358641053920590.02717282107841180.986413589460794
200.004667408105628050.00933481621125610.995332591894372
210.004982412483014020.009964824966028040.995017587516986
220.001960383357819600.003920766715639200.99803961664218
230.0007523950195379690.001504790039075940.999247604980462
240.0002352750118524320.0004705500237048640.999764724988148
250.000192900039106830.000385800078213660.999807099960893
260.0001555634718535170.0003111269437070340.999844436528146
277.26796745806506e-050.0001453593491613010.99992732032542
280.0002097057323829960.0004194114647659920.999790294267617
290.0003311381338555440.0006622762677110890.999668861866144
300.0002452608983106340.0004905217966212690.99975473910169
310.0003530916953664520.0007061833907329040.999646908304634
320.0008088302193451840.001617660438690370.999191169780655
330.0006594879761222860.001318975952244570.999340512023878
340.001290805612124020.002581611224248050.998709194387876
350.0005688112159787350.001137622431957470.999431188784021
360.0003616675153024160.0007233350306048320.999638332484698
370.005329801313939750.01065960262787950.99467019868606
380.1400462810173930.2800925620347870.859953718982607
390.1418159107890890.2836318215781780.858184089210911
400.1096707707119050.219341541423810.890329229288095
410.09588401105575520.1917680221115100.904115988944245
420.1078568946161100.2157137892322190.89214310538389
430.1474878550319420.2949757100638830.852512144968058
440.1854018524656520.3708037049313050.814598147534348

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.202547663268128 & 0.405095326536256 & 0.797452336731872 \tabularnewline
17 & 0.0904655951159982 & 0.180931190231996 & 0.909534404884002 \tabularnewline
18 & 0.0368774110305019 & 0.0737548220610038 & 0.963122588969498 \tabularnewline
19 & 0.0135864105392059 & 0.0271728210784118 & 0.986413589460794 \tabularnewline
20 & 0.00466740810562805 & 0.0093348162112561 & 0.995332591894372 \tabularnewline
21 & 0.00498241248301402 & 0.00996482496602804 & 0.995017587516986 \tabularnewline
22 & 0.00196038335781960 & 0.00392076671563920 & 0.99803961664218 \tabularnewline
23 & 0.000752395019537969 & 0.00150479003907594 & 0.999247604980462 \tabularnewline
24 & 0.000235275011852432 & 0.000470550023704864 & 0.999764724988148 \tabularnewline
25 & 0.00019290003910683 & 0.00038580007821366 & 0.999807099960893 \tabularnewline
26 & 0.000155563471853517 & 0.000311126943707034 & 0.999844436528146 \tabularnewline
27 & 7.26796745806506e-05 & 0.000145359349161301 & 0.99992732032542 \tabularnewline
28 & 0.000209705732382996 & 0.000419411464765992 & 0.999790294267617 \tabularnewline
29 & 0.000331138133855544 & 0.000662276267711089 & 0.999668861866144 \tabularnewline
30 & 0.000245260898310634 & 0.000490521796621269 & 0.99975473910169 \tabularnewline
31 & 0.000353091695366452 & 0.000706183390732904 & 0.999646908304634 \tabularnewline
32 & 0.000808830219345184 & 0.00161766043869037 & 0.999191169780655 \tabularnewline
33 & 0.000659487976122286 & 0.00131897595224457 & 0.999340512023878 \tabularnewline
34 & 0.00129080561212402 & 0.00258161122424805 & 0.998709194387876 \tabularnewline
35 & 0.000568811215978735 & 0.00113762243195747 & 0.999431188784021 \tabularnewline
36 & 0.000361667515302416 & 0.000723335030604832 & 0.999638332484698 \tabularnewline
37 & 0.00532980131393975 & 0.0106596026278795 & 0.99467019868606 \tabularnewline
38 & 0.140046281017393 & 0.280092562034787 & 0.859953718982607 \tabularnewline
39 & 0.141815910789089 & 0.283631821578178 & 0.858184089210911 \tabularnewline
40 & 0.109670770711905 & 0.21934154142381 & 0.890329229288095 \tabularnewline
41 & 0.0958840110557552 & 0.191768022111510 & 0.904115988944245 \tabularnewline
42 & 0.107856894616110 & 0.215713789232219 & 0.89214310538389 \tabularnewline
43 & 0.147487855031942 & 0.294975710063883 & 0.852512144968058 \tabularnewline
44 & 0.185401852465652 & 0.370803704931305 & 0.814598147534348 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59642&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.202547663268128[/C][C]0.405095326536256[/C][C]0.797452336731872[/C][/ROW]
[ROW][C]17[/C][C]0.0904655951159982[/C][C]0.180931190231996[/C][C]0.909534404884002[/C][/ROW]
[ROW][C]18[/C][C]0.0368774110305019[/C][C]0.0737548220610038[/C][C]0.963122588969498[/C][/ROW]
[ROW][C]19[/C][C]0.0135864105392059[/C][C]0.0271728210784118[/C][C]0.986413589460794[/C][/ROW]
[ROW][C]20[/C][C]0.00466740810562805[/C][C]0.0093348162112561[/C][C]0.995332591894372[/C][/ROW]
[ROW][C]21[/C][C]0.00498241248301402[/C][C]0.00996482496602804[/C][C]0.995017587516986[/C][/ROW]
[ROW][C]22[/C][C]0.00196038335781960[/C][C]0.00392076671563920[/C][C]0.99803961664218[/C][/ROW]
[ROW][C]23[/C][C]0.000752395019537969[/C][C]0.00150479003907594[/C][C]0.999247604980462[/C][/ROW]
[ROW][C]24[/C][C]0.000235275011852432[/C][C]0.000470550023704864[/C][C]0.999764724988148[/C][/ROW]
[ROW][C]25[/C][C]0.00019290003910683[/C][C]0.00038580007821366[/C][C]0.999807099960893[/C][/ROW]
[ROW][C]26[/C][C]0.000155563471853517[/C][C]0.000311126943707034[/C][C]0.999844436528146[/C][/ROW]
[ROW][C]27[/C][C]7.26796745806506e-05[/C][C]0.000145359349161301[/C][C]0.99992732032542[/C][/ROW]
[ROW][C]28[/C][C]0.000209705732382996[/C][C]0.000419411464765992[/C][C]0.999790294267617[/C][/ROW]
[ROW][C]29[/C][C]0.000331138133855544[/C][C]0.000662276267711089[/C][C]0.999668861866144[/C][/ROW]
[ROW][C]30[/C][C]0.000245260898310634[/C][C]0.000490521796621269[/C][C]0.99975473910169[/C][/ROW]
[ROW][C]31[/C][C]0.000353091695366452[/C][C]0.000706183390732904[/C][C]0.999646908304634[/C][/ROW]
[ROW][C]32[/C][C]0.000808830219345184[/C][C]0.00161766043869037[/C][C]0.999191169780655[/C][/ROW]
[ROW][C]33[/C][C]0.000659487976122286[/C][C]0.00131897595224457[/C][C]0.999340512023878[/C][/ROW]
[ROW][C]34[/C][C]0.00129080561212402[/C][C]0.00258161122424805[/C][C]0.998709194387876[/C][/ROW]
[ROW][C]35[/C][C]0.000568811215978735[/C][C]0.00113762243195747[/C][C]0.999431188784021[/C][/ROW]
[ROW][C]36[/C][C]0.000361667515302416[/C][C]0.000723335030604832[/C][C]0.999638332484698[/C][/ROW]
[ROW][C]37[/C][C]0.00532980131393975[/C][C]0.0106596026278795[/C][C]0.99467019868606[/C][/ROW]
[ROW][C]38[/C][C]0.140046281017393[/C][C]0.280092562034787[/C][C]0.859953718982607[/C][/ROW]
[ROW][C]39[/C][C]0.141815910789089[/C][C]0.283631821578178[/C][C]0.858184089210911[/C][/ROW]
[ROW][C]40[/C][C]0.109670770711905[/C][C]0.21934154142381[/C][C]0.890329229288095[/C][/ROW]
[ROW][C]41[/C][C]0.0958840110557552[/C][C]0.191768022111510[/C][C]0.904115988944245[/C][/ROW]
[ROW][C]42[/C][C]0.107856894616110[/C][C]0.215713789232219[/C][C]0.89214310538389[/C][/ROW]
[ROW][C]43[/C][C]0.147487855031942[/C][C]0.294975710063883[/C][C]0.852512144968058[/C][/ROW]
[ROW][C]44[/C][C]0.185401852465652[/C][C]0.370803704931305[/C][C]0.814598147534348[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59642&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59642&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.2025476632681280.4050953265362560.797452336731872
170.09046559511599820.1809311902319960.909534404884002
180.03687741103050190.07375482206100380.963122588969498
190.01358641053920590.02717282107841180.986413589460794
200.004667408105628050.00933481621125610.995332591894372
210.004982412483014020.009964824966028040.995017587516986
220.001960383357819600.003920766715639200.99803961664218
230.0007523950195379690.001504790039075940.999247604980462
240.0002352750118524320.0004705500237048640.999764724988148
250.000192900039106830.000385800078213660.999807099960893
260.0001555634718535170.0003111269437070340.999844436528146
277.26796745806506e-050.0001453593491613010.99992732032542
280.0002097057323829960.0004194114647659920.999790294267617
290.0003311381338555440.0006622762677110890.999668861866144
300.0002452608983106340.0004905217966212690.99975473910169
310.0003530916953664520.0007061833907329040.999646908304634
320.0008088302193451840.001617660438690370.999191169780655
330.0006594879761222860.001318975952244570.999340512023878
340.001290805612124020.002581611224248050.998709194387876
350.0005688112159787350.001137622431957470.999431188784021
360.0003616675153024160.0007233350306048320.999638332484698
370.005329801313939750.01065960262787950.99467019868606
380.1400462810173930.2800925620347870.859953718982607
390.1418159107890890.2836318215781780.858184089210911
400.1096707707119050.219341541423810.890329229288095
410.09588401105575520.1917680221115100.904115988944245
420.1078568946161100.2157137892322190.89214310538389
430.1474878550319420.2949757100638830.852512144968058
440.1854018524656520.3708037049313050.814598147534348







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level170.586206896551724NOK
5% type I error level190.655172413793103NOK
10% type I error level200.689655172413793NOK

\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 & 17 & 0.586206896551724 & NOK \tabularnewline
5% type I error level & 19 & 0.655172413793103 & NOK \tabularnewline
10% type I error level & 20 & 0.689655172413793 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59642&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]17[/C][C]0.586206896551724[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]19[/C][C]0.655172413793103[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]20[/C][C]0.689655172413793[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59642&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59642&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 level170.586206896551724NOK
5% type I error level190.655172413793103NOK
10% type I error level200.689655172413793NOK



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')
}