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 computationMon, 07 Dec 2009 13:21:10 -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/Dec/07/t1260217597iygc1a4hxay3egd.htm/, Retrieved Sat, 04 May 2024 23:44:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64628, Retrieved Sat, 04 May 2024 23:44:57 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact147
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [blog] [2008-12-01 15:44:12] [12d343c4448a5f9e527bb31caeac580b]
-   PD  [Multiple Regression] [blog] [2008-12-01 16:17:50] [12d343c4448a5f9e527bb31caeac580b]
-   PD    [Multiple Regression] [dioxine] [2008-12-01 16:30:23] [7a664918911e34206ce9d0436dd7c1c8]
-    D      [Multiple Regression] [Hypothese 1 en 2 ...] [2008-12-03 15:49:48] [12d343c4448a5f9e527bb31caeac580b]
- RM D          [Multiple Regression] [] [2009-12-07 20:21:10] [026d431dc78a3ce53a040b5408fc0322] [Current]
Feedback Forum

Post a new message
Dataseries X:
111.5	0	0
108.1	0	0
124.5	0	0
106.3	0	0
111.1	0	0
121.3	0	0
116.5	0	0
117.4	0	0
123.6	0	0
98.4	0	0
107.2	0	0
118.9	0	0
111.9	0	0
115.2	0	0
124.4	0	0
104.6	0	0
117	0	0
126.2	0	0
117.5	0	0
122.2	0	0
124.1	0	0
105.8	0	0
107.5	0	0
125.6	0	0
112.1	0	0
120.1	0	0
130.6	0	0
109.8	0	0
122.1	0	0
129.5	0	0
132.1	0	0
133.3	0	0
128.4	0	0
114.7	0	1
114.1	0	1
136.9	0	1
123.4	0	1
134	0	1
137	0	1
127.8	0	1
140.1	0	1
140.4	0	1
157.8	0	1
151.8	0	1
141.1	0	1
138.8	1	0
141.1	1	0
139.5	1	0
150.7	1	0
144.4	1	0
146	1	0
143.6	1	0
143.1	1	0
156.4	1	0
164.8	1	0
145.1	1	0
153.4	1	0
133.2	1	0
131.4	1	0
145.9	1	0




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=64628&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=64628&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64628&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
Omzet_Voedingssector[t] = + 112.043333333333 + 17.6541666666666Dummy_1_tijdens_crisis[t] + 10.3375000000000Dummy_2_voor_crisis[t] -4.18520833333336M1[t] -2.08374999999999M2[t] + 5.71770833333334M3[t] -8.70083333333333M4[t] -0.779375000000002M5[t] + 6.96208333333334M6[t] + 9.60354166666667M7[t] + 5.485M8[t] + 5.30645833333334M9[t] -14.5029166666667M10[t] -12.7614583333333M11[t] + 0.338541666666668t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Omzet_Voedingssector[t] =  +  112.043333333333 +  17.6541666666666Dummy_1_tijdens_crisis[t] +  10.3375000000000Dummy_2_voor_crisis[t] -4.18520833333336M1[t] -2.08374999999999M2[t] +  5.71770833333334M3[t] -8.70083333333333M4[t] -0.779375000000002M5[t] +  6.96208333333334M6[t] +  9.60354166666667M7[t] +  5.485M8[t] +  5.30645833333334M9[t] -14.5029166666667M10[t] -12.7614583333333M11[t] +  0.338541666666668t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64628&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Omzet_Voedingssector[t] =  +  112.043333333333 +  17.6541666666666Dummy_1_tijdens_crisis[t] +  10.3375000000000Dummy_2_voor_crisis[t] -4.18520833333336M1[t] -2.08374999999999M2[t] +  5.71770833333334M3[t] -8.70083333333333M4[t] -0.779375000000002M5[t] +  6.96208333333334M6[t] +  9.60354166666667M7[t] +  5.485M8[t] +  5.30645833333334M9[t] -14.5029166666667M10[t] -12.7614583333333M11[t] +  0.338541666666668t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64628&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64628&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
Omzet_Voedingssector[t] = + 112.043333333333 + 17.6541666666666Dummy_1_tijdens_crisis[t] + 10.3375000000000Dummy_2_voor_crisis[t] -4.18520833333336M1[t] -2.08374999999999M2[t] + 5.71770833333334M3[t] -8.70083333333333M4[t] -0.779375000000002M5[t] + 6.96208333333334M6[t] + 9.60354166666667M7[t] + 5.485M8[t] + 5.30645833333334M9[t] -14.5029166666667M10[t] -12.7614583333333M11[t] + 0.338541666666668t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)112.0433333333333.04885236.749400
Dummy_1_tijdens_crisis17.65416666666663.9196164.50414.7e-052.3e-05
Dummy_2_voor_crisis10.33750000000002.851943.62470.0007330.000367
M1-4.185208333333363.449751-1.21320.2313870.115693
M2-2.083749999999993.440867-0.60560.547830.273915
M35.717708333333343.4347071.66470.1029240.051462
M4-8.700833333333333.431286-2.53570.0147640.007382
M5-0.7793750000000023.430612-0.22720.8213110.410655
M66.962083333333343.4326862.02820.0484870.024243
M79.603541666666673.4375042.79380.0076270.003813
M85.4853.4450541.59210.1183550.059178
M95.306458333333343.4553191.53570.1316050.065803
M10-14.50291666666673.418784-4.24210.0001095.4e-05
M11-12.76145833333333.414643-3.73730.0005230.000261
t0.3385416666666680.0971173.48590.0011060.000553

\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) & 112.043333333333 & 3.048852 & 36.7494 & 0 & 0 \tabularnewline
Dummy_1_tijdens_crisis & 17.6541666666666 & 3.919616 & 4.5041 & 4.7e-05 & 2.3e-05 \tabularnewline
Dummy_2_voor_crisis & 10.3375000000000 & 2.85194 & 3.6247 & 0.000733 & 0.000367 \tabularnewline
M1 & -4.18520833333336 & 3.449751 & -1.2132 & 0.231387 & 0.115693 \tabularnewline
M2 & -2.08374999999999 & 3.440867 & -0.6056 & 0.54783 & 0.273915 \tabularnewline
M3 & 5.71770833333334 & 3.434707 & 1.6647 & 0.102924 & 0.051462 \tabularnewline
M4 & -8.70083333333333 & 3.431286 & -2.5357 & 0.014764 & 0.007382 \tabularnewline
M5 & -0.779375000000002 & 3.430612 & -0.2272 & 0.821311 & 0.410655 \tabularnewline
M6 & 6.96208333333334 & 3.432686 & 2.0282 & 0.048487 & 0.024243 \tabularnewline
M7 & 9.60354166666667 & 3.437504 & 2.7938 & 0.007627 & 0.003813 \tabularnewline
M8 & 5.485 & 3.445054 & 1.5921 & 0.118355 & 0.059178 \tabularnewline
M9 & 5.30645833333334 & 3.455319 & 1.5357 & 0.131605 & 0.065803 \tabularnewline
M10 & -14.5029166666667 & 3.418784 & -4.2421 & 0.000109 & 5.4e-05 \tabularnewline
M11 & -12.7614583333333 & 3.414643 & -3.7373 & 0.000523 & 0.000261 \tabularnewline
t & 0.338541666666668 & 0.097117 & 3.4859 & 0.001106 & 0.000553 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64628&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]112.043333333333[/C][C]3.048852[/C][C]36.7494[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy_1_tijdens_crisis[/C][C]17.6541666666666[/C][C]3.919616[/C][C]4.5041[/C][C]4.7e-05[/C][C]2.3e-05[/C][/ROW]
[ROW][C]Dummy_2_voor_crisis[/C][C]10.3375000000000[/C][C]2.85194[/C][C]3.6247[/C][C]0.000733[/C][C]0.000367[/C][/ROW]
[ROW][C]M1[/C][C]-4.18520833333336[/C][C]3.449751[/C][C]-1.2132[/C][C]0.231387[/C][C]0.115693[/C][/ROW]
[ROW][C]M2[/C][C]-2.08374999999999[/C][C]3.440867[/C][C]-0.6056[/C][C]0.54783[/C][C]0.273915[/C][/ROW]
[ROW][C]M3[/C][C]5.71770833333334[/C][C]3.434707[/C][C]1.6647[/C][C]0.102924[/C][C]0.051462[/C][/ROW]
[ROW][C]M4[/C][C]-8.70083333333333[/C][C]3.431286[/C][C]-2.5357[/C][C]0.014764[/C][C]0.007382[/C][/ROW]
[ROW][C]M5[/C][C]-0.779375000000002[/C][C]3.430612[/C][C]-0.2272[/C][C]0.821311[/C][C]0.410655[/C][/ROW]
[ROW][C]M6[/C][C]6.96208333333334[/C][C]3.432686[/C][C]2.0282[/C][C]0.048487[/C][C]0.024243[/C][/ROW]
[ROW][C]M7[/C][C]9.60354166666667[/C][C]3.437504[/C][C]2.7938[/C][C]0.007627[/C][C]0.003813[/C][/ROW]
[ROW][C]M8[/C][C]5.485[/C][C]3.445054[/C][C]1.5921[/C][C]0.118355[/C][C]0.059178[/C][/ROW]
[ROW][C]M9[/C][C]5.30645833333334[/C][C]3.455319[/C][C]1.5357[/C][C]0.131605[/C][C]0.065803[/C][/ROW]
[ROW][C]M10[/C][C]-14.5029166666667[/C][C]3.418784[/C][C]-4.2421[/C][C]0.000109[/C][C]5.4e-05[/C][/ROW]
[ROW][C]M11[/C][C]-12.7614583333333[/C][C]3.414643[/C][C]-3.7373[/C][C]0.000523[/C][C]0.000261[/C][/ROW]
[ROW][C]t[/C][C]0.338541666666668[/C][C]0.097117[/C][C]3.4859[/C][C]0.001106[/C][C]0.000553[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64628&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64628&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)112.0433333333333.04885236.749400
Dummy_1_tijdens_crisis17.65416666666663.9196164.50414.7e-052.3e-05
Dummy_2_voor_crisis10.33750000000002.851943.62470.0007330.000367
M1-4.185208333333363.449751-1.21320.2313870.115693
M2-2.083749999999993.440867-0.60560.547830.273915
M35.717708333333343.4347071.66470.1029240.051462
M4-8.700833333333333.431286-2.53570.0147640.007382
M5-0.7793750000000023.430612-0.22720.8213110.410655
M66.962083333333343.4326862.02820.0484870.024243
M79.603541666666673.4375042.79380.0076270.003813
M85.4853.4450541.59210.1183550.059178
M95.306458333333343.4553191.53570.1316050.065803
M10-14.50291666666673.418784-4.24210.0001095.4e-05
M11-12.76145833333333.414643-3.73730.0005230.000261
t0.3385416666666680.0971173.48590.0011060.000553







Multiple Linear Regression - Regression Statistics
Multiple R0.95214497336165
R-squared0.90658005029786
Adjusted R-squared0.877516065946082
F-TEST (value)31.1925591248959
F-TEST (DF numerator)14
F-TEST (DF denominator)45
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.39684115427205
Sum Squared Residuals1310.66525000000

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.95214497336165 \tabularnewline
R-squared & 0.90658005029786 \tabularnewline
Adjusted R-squared & 0.877516065946082 \tabularnewline
F-TEST (value) & 31.1925591248959 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 45 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.39684115427205 \tabularnewline
Sum Squared Residuals & 1310.66525000000 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64628&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.95214497336165[/C][/ROW]
[ROW][C]R-squared[/C][C]0.90658005029786[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.877516065946082[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]31.1925591248959[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]45[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.39684115427205[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1310.66525000000[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64628&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64628&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.95214497336165
R-squared0.90658005029786
Adjusted R-squared0.877516065946082
F-TEST (value)31.1925591248959
F-TEST (DF numerator)14
F-TEST (DF denominator)45
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.39684115427205
Sum Squared Residuals1310.66525000000







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1111.5108.1966666666673.30333333333314
2108.1110.636666666667-2.53666666666665
3124.5118.7766666666675.72333333333332
4106.3104.6966666666671.60333333333333
5111.1112.956666666667-1.85666666666665
6121.3121.0366666666670.263333333333348
7116.5124.016666666667-7.51666666666665
8117.4120.236666666667-2.83666666666665
9123.6120.3966666666673.20333333333335
1098.4100.925833333333-2.52583333333332
11107.2103.0058333333334.19416666666669
12118.9116.1058333333332.79416666666668
13111.9112.259166666667-0.359166666666594
14115.2114.6991666666670.500833333333344
15124.4122.8391666666671.56083333333336
16104.6108.759166666667-4.15916666666666
17117117.019166666667-0.0191666666666566
18126.2125.0991666666671.10083333333334
19117.5128.079166666667-10.5791666666667
20122.2124.299166666667-2.09916666666667
21124.1124.459166666667-0.359166666666669
22105.8104.9883333333330.811666666666662
23107.5107.0683333333330.431666666666664
24125.6120.1683333333335.43166666666666
25112.1116.321666666667-4.22166666666663
26120.1118.7616666666671.33833333333332
27130.6126.9016666666673.69833333333332
28109.8112.821666666667-3.02166666666667
29122.1121.0816666666671.01833333333332
30129.5129.1616666666670.338333333333322
31132.1132.141666666667-0.0416666666666844
32133.3128.3616666666674.93833333333333
33128.4128.521666666667-0.121666666666674
34114.7119.388333333333-4.68833333333334
35114.1121.468333333333-7.36833333333334
36136.9134.5683333333332.33166666666667
37123.4130.721666666667-7.32166666666662
38134133.1616666666670.838333333333324
39137141.301666666667-4.30166666666667
40127.8127.2216666666670.57833333333333
41140.1135.4816666666674.61833333333333
42140.4143.561666666667-3.16166666666667
43157.8146.54166666666711.2583333333333
44151.8142.7616666666679.03833333333333
45141.1142.921666666667-1.82166666666668
46138.8130.76758.03250000000002
47141.1132.84758.2525
48139.5145.9475-6.4475
49150.7142.1008333333338.5991666666667
50144.4144.540833333333-0.140833333333334
51146152.680833333333-6.68083333333333
52143.6138.6008333333334.99916666666667
53143.1146.860833333333-3.76083333333334
54156.4154.9408333333331.45916666666667
55164.8157.9208333333336.87916666666667
56145.1154.140833333333-9.04083333333335
57153.4154.300833333333-0.90083333333333
58133.2134.83-1.63000000000002
59131.4136.91-5.51
60145.9150.01-4.11000000000001

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 111.5 & 108.196666666667 & 3.30333333333314 \tabularnewline
2 & 108.1 & 110.636666666667 & -2.53666666666665 \tabularnewline
3 & 124.5 & 118.776666666667 & 5.72333333333332 \tabularnewline
4 & 106.3 & 104.696666666667 & 1.60333333333333 \tabularnewline
5 & 111.1 & 112.956666666667 & -1.85666666666665 \tabularnewline
6 & 121.3 & 121.036666666667 & 0.263333333333348 \tabularnewline
7 & 116.5 & 124.016666666667 & -7.51666666666665 \tabularnewline
8 & 117.4 & 120.236666666667 & -2.83666666666665 \tabularnewline
9 & 123.6 & 120.396666666667 & 3.20333333333335 \tabularnewline
10 & 98.4 & 100.925833333333 & -2.52583333333332 \tabularnewline
11 & 107.2 & 103.005833333333 & 4.19416666666669 \tabularnewline
12 & 118.9 & 116.105833333333 & 2.79416666666668 \tabularnewline
13 & 111.9 & 112.259166666667 & -0.359166666666594 \tabularnewline
14 & 115.2 & 114.699166666667 & 0.500833333333344 \tabularnewline
15 & 124.4 & 122.839166666667 & 1.56083333333336 \tabularnewline
16 & 104.6 & 108.759166666667 & -4.15916666666666 \tabularnewline
17 & 117 & 117.019166666667 & -0.0191666666666566 \tabularnewline
18 & 126.2 & 125.099166666667 & 1.10083333333334 \tabularnewline
19 & 117.5 & 128.079166666667 & -10.5791666666667 \tabularnewline
20 & 122.2 & 124.299166666667 & -2.09916666666667 \tabularnewline
21 & 124.1 & 124.459166666667 & -0.359166666666669 \tabularnewline
22 & 105.8 & 104.988333333333 & 0.811666666666662 \tabularnewline
23 & 107.5 & 107.068333333333 & 0.431666666666664 \tabularnewline
24 & 125.6 & 120.168333333333 & 5.43166666666666 \tabularnewline
25 & 112.1 & 116.321666666667 & -4.22166666666663 \tabularnewline
26 & 120.1 & 118.761666666667 & 1.33833333333332 \tabularnewline
27 & 130.6 & 126.901666666667 & 3.69833333333332 \tabularnewline
28 & 109.8 & 112.821666666667 & -3.02166666666667 \tabularnewline
29 & 122.1 & 121.081666666667 & 1.01833333333332 \tabularnewline
30 & 129.5 & 129.161666666667 & 0.338333333333322 \tabularnewline
31 & 132.1 & 132.141666666667 & -0.0416666666666844 \tabularnewline
32 & 133.3 & 128.361666666667 & 4.93833333333333 \tabularnewline
33 & 128.4 & 128.521666666667 & -0.121666666666674 \tabularnewline
34 & 114.7 & 119.388333333333 & -4.68833333333334 \tabularnewline
35 & 114.1 & 121.468333333333 & -7.36833333333334 \tabularnewline
36 & 136.9 & 134.568333333333 & 2.33166666666667 \tabularnewline
37 & 123.4 & 130.721666666667 & -7.32166666666662 \tabularnewline
38 & 134 & 133.161666666667 & 0.838333333333324 \tabularnewline
39 & 137 & 141.301666666667 & -4.30166666666667 \tabularnewline
40 & 127.8 & 127.221666666667 & 0.57833333333333 \tabularnewline
41 & 140.1 & 135.481666666667 & 4.61833333333333 \tabularnewline
42 & 140.4 & 143.561666666667 & -3.16166666666667 \tabularnewline
43 & 157.8 & 146.541666666667 & 11.2583333333333 \tabularnewline
44 & 151.8 & 142.761666666667 & 9.03833333333333 \tabularnewline
45 & 141.1 & 142.921666666667 & -1.82166666666668 \tabularnewline
46 & 138.8 & 130.7675 & 8.03250000000002 \tabularnewline
47 & 141.1 & 132.8475 & 8.2525 \tabularnewline
48 & 139.5 & 145.9475 & -6.4475 \tabularnewline
49 & 150.7 & 142.100833333333 & 8.5991666666667 \tabularnewline
50 & 144.4 & 144.540833333333 & -0.140833333333334 \tabularnewline
51 & 146 & 152.680833333333 & -6.68083333333333 \tabularnewline
52 & 143.6 & 138.600833333333 & 4.99916666666667 \tabularnewline
53 & 143.1 & 146.860833333333 & -3.76083333333334 \tabularnewline
54 & 156.4 & 154.940833333333 & 1.45916666666667 \tabularnewline
55 & 164.8 & 157.920833333333 & 6.87916666666667 \tabularnewline
56 & 145.1 & 154.140833333333 & -9.04083333333335 \tabularnewline
57 & 153.4 & 154.300833333333 & -0.90083333333333 \tabularnewline
58 & 133.2 & 134.83 & -1.63000000000002 \tabularnewline
59 & 131.4 & 136.91 & -5.51 \tabularnewline
60 & 145.9 & 150.01 & -4.11000000000001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64628&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]111.5[/C][C]108.196666666667[/C][C]3.30333333333314[/C][/ROW]
[ROW][C]2[/C][C]108.1[/C][C]110.636666666667[/C][C]-2.53666666666665[/C][/ROW]
[ROW][C]3[/C][C]124.5[/C][C]118.776666666667[/C][C]5.72333333333332[/C][/ROW]
[ROW][C]4[/C][C]106.3[/C][C]104.696666666667[/C][C]1.60333333333333[/C][/ROW]
[ROW][C]5[/C][C]111.1[/C][C]112.956666666667[/C][C]-1.85666666666665[/C][/ROW]
[ROW][C]6[/C][C]121.3[/C][C]121.036666666667[/C][C]0.263333333333348[/C][/ROW]
[ROW][C]7[/C][C]116.5[/C][C]124.016666666667[/C][C]-7.51666666666665[/C][/ROW]
[ROW][C]8[/C][C]117.4[/C][C]120.236666666667[/C][C]-2.83666666666665[/C][/ROW]
[ROW][C]9[/C][C]123.6[/C][C]120.396666666667[/C][C]3.20333333333335[/C][/ROW]
[ROW][C]10[/C][C]98.4[/C][C]100.925833333333[/C][C]-2.52583333333332[/C][/ROW]
[ROW][C]11[/C][C]107.2[/C][C]103.005833333333[/C][C]4.19416666666669[/C][/ROW]
[ROW][C]12[/C][C]118.9[/C][C]116.105833333333[/C][C]2.79416666666668[/C][/ROW]
[ROW][C]13[/C][C]111.9[/C][C]112.259166666667[/C][C]-0.359166666666594[/C][/ROW]
[ROW][C]14[/C][C]115.2[/C][C]114.699166666667[/C][C]0.500833333333344[/C][/ROW]
[ROW][C]15[/C][C]124.4[/C][C]122.839166666667[/C][C]1.56083333333336[/C][/ROW]
[ROW][C]16[/C][C]104.6[/C][C]108.759166666667[/C][C]-4.15916666666666[/C][/ROW]
[ROW][C]17[/C][C]117[/C][C]117.019166666667[/C][C]-0.0191666666666566[/C][/ROW]
[ROW][C]18[/C][C]126.2[/C][C]125.099166666667[/C][C]1.10083333333334[/C][/ROW]
[ROW][C]19[/C][C]117.5[/C][C]128.079166666667[/C][C]-10.5791666666667[/C][/ROW]
[ROW][C]20[/C][C]122.2[/C][C]124.299166666667[/C][C]-2.09916666666667[/C][/ROW]
[ROW][C]21[/C][C]124.1[/C][C]124.459166666667[/C][C]-0.359166666666669[/C][/ROW]
[ROW][C]22[/C][C]105.8[/C][C]104.988333333333[/C][C]0.811666666666662[/C][/ROW]
[ROW][C]23[/C][C]107.5[/C][C]107.068333333333[/C][C]0.431666666666664[/C][/ROW]
[ROW][C]24[/C][C]125.6[/C][C]120.168333333333[/C][C]5.43166666666666[/C][/ROW]
[ROW][C]25[/C][C]112.1[/C][C]116.321666666667[/C][C]-4.22166666666663[/C][/ROW]
[ROW][C]26[/C][C]120.1[/C][C]118.761666666667[/C][C]1.33833333333332[/C][/ROW]
[ROW][C]27[/C][C]130.6[/C][C]126.901666666667[/C][C]3.69833333333332[/C][/ROW]
[ROW][C]28[/C][C]109.8[/C][C]112.821666666667[/C][C]-3.02166666666667[/C][/ROW]
[ROW][C]29[/C][C]122.1[/C][C]121.081666666667[/C][C]1.01833333333332[/C][/ROW]
[ROW][C]30[/C][C]129.5[/C][C]129.161666666667[/C][C]0.338333333333322[/C][/ROW]
[ROW][C]31[/C][C]132.1[/C][C]132.141666666667[/C][C]-0.0416666666666844[/C][/ROW]
[ROW][C]32[/C][C]133.3[/C][C]128.361666666667[/C][C]4.93833333333333[/C][/ROW]
[ROW][C]33[/C][C]128.4[/C][C]128.521666666667[/C][C]-0.121666666666674[/C][/ROW]
[ROW][C]34[/C][C]114.7[/C][C]119.388333333333[/C][C]-4.68833333333334[/C][/ROW]
[ROW][C]35[/C][C]114.1[/C][C]121.468333333333[/C][C]-7.36833333333334[/C][/ROW]
[ROW][C]36[/C][C]136.9[/C][C]134.568333333333[/C][C]2.33166666666667[/C][/ROW]
[ROW][C]37[/C][C]123.4[/C][C]130.721666666667[/C][C]-7.32166666666662[/C][/ROW]
[ROW][C]38[/C][C]134[/C][C]133.161666666667[/C][C]0.838333333333324[/C][/ROW]
[ROW][C]39[/C][C]137[/C][C]141.301666666667[/C][C]-4.30166666666667[/C][/ROW]
[ROW][C]40[/C][C]127.8[/C][C]127.221666666667[/C][C]0.57833333333333[/C][/ROW]
[ROW][C]41[/C][C]140.1[/C][C]135.481666666667[/C][C]4.61833333333333[/C][/ROW]
[ROW][C]42[/C][C]140.4[/C][C]143.561666666667[/C][C]-3.16166666666667[/C][/ROW]
[ROW][C]43[/C][C]157.8[/C][C]146.541666666667[/C][C]11.2583333333333[/C][/ROW]
[ROW][C]44[/C][C]151.8[/C][C]142.761666666667[/C][C]9.03833333333333[/C][/ROW]
[ROW][C]45[/C][C]141.1[/C][C]142.921666666667[/C][C]-1.82166666666668[/C][/ROW]
[ROW][C]46[/C][C]138.8[/C][C]130.7675[/C][C]8.03250000000002[/C][/ROW]
[ROW][C]47[/C][C]141.1[/C][C]132.8475[/C][C]8.2525[/C][/ROW]
[ROW][C]48[/C][C]139.5[/C][C]145.9475[/C][C]-6.4475[/C][/ROW]
[ROW][C]49[/C][C]150.7[/C][C]142.100833333333[/C][C]8.5991666666667[/C][/ROW]
[ROW][C]50[/C][C]144.4[/C][C]144.540833333333[/C][C]-0.140833333333334[/C][/ROW]
[ROW][C]51[/C][C]146[/C][C]152.680833333333[/C][C]-6.68083333333333[/C][/ROW]
[ROW][C]52[/C][C]143.6[/C][C]138.600833333333[/C][C]4.99916666666667[/C][/ROW]
[ROW][C]53[/C][C]143.1[/C][C]146.860833333333[/C][C]-3.76083333333334[/C][/ROW]
[ROW][C]54[/C][C]156.4[/C][C]154.940833333333[/C][C]1.45916666666667[/C][/ROW]
[ROW][C]55[/C][C]164.8[/C][C]157.920833333333[/C][C]6.87916666666667[/C][/ROW]
[ROW][C]56[/C][C]145.1[/C][C]154.140833333333[/C][C]-9.04083333333335[/C][/ROW]
[ROW][C]57[/C][C]153.4[/C][C]154.300833333333[/C][C]-0.90083333333333[/C][/ROW]
[ROW][C]58[/C][C]133.2[/C][C]134.83[/C][C]-1.63000000000002[/C][/ROW]
[ROW][C]59[/C][C]131.4[/C][C]136.91[/C][C]-5.51[/C][/ROW]
[ROW][C]60[/C][C]145.9[/C][C]150.01[/C][C]-4.11000000000001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64628&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64628&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
1111.5108.1966666666673.30333333333314
2108.1110.636666666667-2.53666666666665
3124.5118.7766666666675.72333333333332
4106.3104.6966666666671.60333333333333
5111.1112.956666666667-1.85666666666665
6121.3121.0366666666670.263333333333348
7116.5124.016666666667-7.51666666666665
8117.4120.236666666667-2.83666666666665
9123.6120.3966666666673.20333333333335
1098.4100.925833333333-2.52583333333332
11107.2103.0058333333334.19416666666669
12118.9116.1058333333332.79416666666668
13111.9112.259166666667-0.359166666666594
14115.2114.6991666666670.500833333333344
15124.4122.8391666666671.56083333333336
16104.6108.759166666667-4.15916666666666
17117117.019166666667-0.0191666666666566
18126.2125.0991666666671.10083333333334
19117.5128.079166666667-10.5791666666667
20122.2124.299166666667-2.09916666666667
21124.1124.459166666667-0.359166666666669
22105.8104.9883333333330.811666666666662
23107.5107.0683333333330.431666666666664
24125.6120.1683333333335.43166666666666
25112.1116.321666666667-4.22166666666663
26120.1118.7616666666671.33833333333332
27130.6126.9016666666673.69833333333332
28109.8112.821666666667-3.02166666666667
29122.1121.0816666666671.01833333333332
30129.5129.1616666666670.338333333333322
31132.1132.141666666667-0.0416666666666844
32133.3128.3616666666674.93833333333333
33128.4128.521666666667-0.121666666666674
34114.7119.388333333333-4.68833333333334
35114.1121.468333333333-7.36833333333334
36136.9134.5683333333332.33166666666667
37123.4130.721666666667-7.32166666666662
38134133.1616666666670.838333333333324
39137141.301666666667-4.30166666666667
40127.8127.2216666666670.57833333333333
41140.1135.4816666666674.61833333333333
42140.4143.561666666667-3.16166666666667
43157.8146.54166666666711.2583333333333
44151.8142.7616666666679.03833333333333
45141.1142.921666666667-1.82166666666668
46138.8130.76758.03250000000002
47141.1132.84758.2525
48139.5145.9475-6.4475
49150.7142.1008333333338.5991666666667
50144.4144.540833333333-0.140833333333334
51146152.680833333333-6.68083333333333
52143.6138.6008333333334.99916666666667
53143.1146.860833333333-3.76083333333334
54156.4154.9408333333331.45916666666667
55164.8157.9208333333336.87916666666667
56145.1154.140833333333-9.04083333333335
57153.4154.300833333333-0.90083333333333
58133.2134.83-1.63000000000002
59131.4136.91-5.51
60145.9150.01-4.11000000000001







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.1618677547037210.3237355094074420.838132245296279
190.1029437844681460.2058875689362920.897056215531854
200.05296248682676920.1059249736535380.94703751317323
210.02520996424362980.05041992848725950.97479003575637
220.01908932753641940.03817865507283880.98091067246358
230.009184574994993460.01836914998998690.990815425005007
240.006286872723783040.01257374544756610.993713127276217
250.004664351884505280.009328703769010560.995335648115495
260.003532497917234480.007064995834468950.996467502082766
270.002186115102762860.004372230205525720.997813884897237
280.00094533651071260.00189067302142520.999054663489287
290.0005135491184867370.001027098236973470.999486450881513
300.0001856340789649580.0003712681579299160.999814365921035
310.002299576402120480.004599152804240960.99770042359788
320.003093238931060420.006186477862120840.99690676106894
330.001437820613422270.002875641226844540.998562179386578
340.001156145205113880.002312290410227770.998843854794886
350.002520546376646750.00504109275329350.997479453623353
360.001571196173760980.003142392347521970.99842880382624
370.009890648297061420.01978129659412280.990109351702939
380.00846279088857210.01692558177714420.991537209111428
390.004551121976401580.009102243952803150.995448878023598
400.007970345247330440.01594069049466090.99202965475267
410.00798723223562350.0159744644712470.992012767764377
420.01033645562135640.02067291124271270.989663544378644

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.161867754703721 & 0.323735509407442 & 0.838132245296279 \tabularnewline
19 & 0.102943784468146 & 0.205887568936292 & 0.897056215531854 \tabularnewline
20 & 0.0529624868267692 & 0.105924973653538 & 0.94703751317323 \tabularnewline
21 & 0.0252099642436298 & 0.0504199284872595 & 0.97479003575637 \tabularnewline
22 & 0.0190893275364194 & 0.0381786550728388 & 0.98091067246358 \tabularnewline
23 & 0.00918457499499346 & 0.0183691499899869 & 0.990815425005007 \tabularnewline
24 & 0.00628687272378304 & 0.0125737454475661 & 0.993713127276217 \tabularnewline
25 & 0.00466435188450528 & 0.00932870376901056 & 0.995335648115495 \tabularnewline
26 & 0.00353249791723448 & 0.00706499583446895 & 0.996467502082766 \tabularnewline
27 & 0.00218611510276286 & 0.00437223020552572 & 0.997813884897237 \tabularnewline
28 & 0.0009453365107126 & 0.0018906730214252 & 0.999054663489287 \tabularnewline
29 & 0.000513549118486737 & 0.00102709823697347 & 0.999486450881513 \tabularnewline
30 & 0.000185634078964958 & 0.000371268157929916 & 0.999814365921035 \tabularnewline
31 & 0.00229957640212048 & 0.00459915280424096 & 0.99770042359788 \tabularnewline
32 & 0.00309323893106042 & 0.00618647786212084 & 0.99690676106894 \tabularnewline
33 & 0.00143782061342227 & 0.00287564122684454 & 0.998562179386578 \tabularnewline
34 & 0.00115614520511388 & 0.00231229041022777 & 0.998843854794886 \tabularnewline
35 & 0.00252054637664675 & 0.0050410927532935 & 0.997479453623353 \tabularnewline
36 & 0.00157119617376098 & 0.00314239234752197 & 0.99842880382624 \tabularnewline
37 & 0.00989064829706142 & 0.0197812965941228 & 0.990109351702939 \tabularnewline
38 & 0.0084627908885721 & 0.0169255817771442 & 0.991537209111428 \tabularnewline
39 & 0.00455112197640158 & 0.00910224395280315 & 0.995448878023598 \tabularnewline
40 & 0.00797034524733044 & 0.0159406904946609 & 0.99202965475267 \tabularnewline
41 & 0.0079872322356235 & 0.015974464471247 & 0.992012767764377 \tabularnewline
42 & 0.0103364556213564 & 0.0206729112427127 & 0.989663544378644 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64628&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]18[/C][C]0.161867754703721[/C][C]0.323735509407442[/C][C]0.838132245296279[/C][/ROW]
[ROW][C]19[/C][C]0.102943784468146[/C][C]0.205887568936292[/C][C]0.897056215531854[/C][/ROW]
[ROW][C]20[/C][C]0.0529624868267692[/C][C]0.105924973653538[/C][C]0.94703751317323[/C][/ROW]
[ROW][C]21[/C][C]0.0252099642436298[/C][C]0.0504199284872595[/C][C]0.97479003575637[/C][/ROW]
[ROW][C]22[/C][C]0.0190893275364194[/C][C]0.0381786550728388[/C][C]0.98091067246358[/C][/ROW]
[ROW][C]23[/C][C]0.00918457499499346[/C][C]0.0183691499899869[/C][C]0.990815425005007[/C][/ROW]
[ROW][C]24[/C][C]0.00628687272378304[/C][C]0.0125737454475661[/C][C]0.993713127276217[/C][/ROW]
[ROW][C]25[/C][C]0.00466435188450528[/C][C]0.00932870376901056[/C][C]0.995335648115495[/C][/ROW]
[ROW][C]26[/C][C]0.00353249791723448[/C][C]0.00706499583446895[/C][C]0.996467502082766[/C][/ROW]
[ROW][C]27[/C][C]0.00218611510276286[/C][C]0.00437223020552572[/C][C]0.997813884897237[/C][/ROW]
[ROW][C]28[/C][C]0.0009453365107126[/C][C]0.0018906730214252[/C][C]0.999054663489287[/C][/ROW]
[ROW][C]29[/C][C]0.000513549118486737[/C][C]0.00102709823697347[/C][C]0.999486450881513[/C][/ROW]
[ROW][C]30[/C][C]0.000185634078964958[/C][C]0.000371268157929916[/C][C]0.999814365921035[/C][/ROW]
[ROW][C]31[/C][C]0.00229957640212048[/C][C]0.00459915280424096[/C][C]0.99770042359788[/C][/ROW]
[ROW][C]32[/C][C]0.00309323893106042[/C][C]0.00618647786212084[/C][C]0.99690676106894[/C][/ROW]
[ROW][C]33[/C][C]0.00143782061342227[/C][C]0.00287564122684454[/C][C]0.998562179386578[/C][/ROW]
[ROW][C]34[/C][C]0.00115614520511388[/C][C]0.00231229041022777[/C][C]0.998843854794886[/C][/ROW]
[ROW][C]35[/C][C]0.00252054637664675[/C][C]0.0050410927532935[/C][C]0.997479453623353[/C][/ROW]
[ROW][C]36[/C][C]0.00157119617376098[/C][C]0.00314239234752197[/C][C]0.99842880382624[/C][/ROW]
[ROW][C]37[/C][C]0.00989064829706142[/C][C]0.0197812965941228[/C][C]0.990109351702939[/C][/ROW]
[ROW][C]38[/C][C]0.0084627908885721[/C][C]0.0169255817771442[/C][C]0.991537209111428[/C][/ROW]
[ROW][C]39[/C][C]0.00455112197640158[/C][C]0.00910224395280315[/C][C]0.995448878023598[/C][/ROW]
[ROW][C]40[/C][C]0.00797034524733044[/C][C]0.0159406904946609[/C][C]0.99202965475267[/C][/ROW]
[ROW][C]41[/C][C]0.0079872322356235[/C][C]0.015974464471247[/C][C]0.992012767764377[/C][/ROW]
[ROW][C]42[/C][C]0.0103364556213564[/C][C]0.0206729112427127[/C][C]0.989663544378644[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64628&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64628&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
180.1618677547037210.3237355094074420.838132245296279
190.1029437844681460.2058875689362920.897056215531854
200.05296248682676920.1059249736535380.94703751317323
210.02520996424362980.05041992848725950.97479003575637
220.01908932753641940.03817865507283880.98091067246358
230.009184574994993460.01836914998998690.990815425005007
240.006286872723783040.01257374544756610.993713127276217
250.004664351884505280.009328703769010560.995335648115495
260.003532497917234480.007064995834468950.996467502082766
270.002186115102762860.004372230205525720.997813884897237
280.00094533651071260.00189067302142520.999054663489287
290.0005135491184867370.001027098236973470.999486450881513
300.0001856340789649580.0003712681579299160.999814365921035
310.002299576402120480.004599152804240960.99770042359788
320.003093238931060420.006186477862120840.99690676106894
330.001437820613422270.002875641226844540.998562179386578
340.001156145205113880.002312290410227770.998843854794886
350.002520546376646750.00504109275329350.997479453623353
360.001571196173760980.003142392347521970.99842880382624
370.009890648297061420.01978129659412280.990109351702939
380.00846279088857210.01692558177714420.991537209111428
390.004551121976401580.009102243952803150.995448878023598
400.007970345247330440.01594069049466090.99202965475267
410.00798723223562350.0159744644712470.992012767764377
420.01033645562135640.02067291124271270.989663544378644







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.52NOK
5% type I error level210.84NOK
10% type I error level220.88NOK

\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 & 13 & 0.52 & NOK \tabularnewline
5% type I error level & 21 & 0.84 & NOK \tabularnewline
10% type I error level & 22 & 0.88 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64628&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]13[/C][C]0.52[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]21[/C][C]0.84[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]22[/C][C]0.88[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64628&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64628&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 level130.52NOK
5% type I error level210.84NOK
10% type I error level220.88NOK



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