Free Statistics

of Irreproducible Research!

Author's title

H1: multiple linear regression export poland (included seas. dummies and li...

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 04 Dec 2008 01:08:30 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/04/t1228378769ltpu04gktht2a5h.htm/, Retrieved Sun, 19 May 2024 06:44:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=28913, Retrieved Sun, 19 May 2024 06:44:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact221
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [H1: multiple line...] [2008-12-03 22:54:46] [1e1d8320a8a1170c475bf6e4ce119de6]
-   P     [Multiple Regression] [H1: multiple line...] [2008-12-04 08:08:30] [fdd69703d301fae09456f660b2f52997] [Current]
Feedback Forum

Post a new message
Dataseries X:
156.3	0
151.5	0
159.1	0
166.9	0
160.5	0
162.8	0
178.9	0
148.5	0
184.1	0
197	0
186.8	0
139.2	0
162.7	0
187.5	0
235.8	0
219.4	0
212.4	1
220.2	1
197.5	1
185.6	1
232.4	1
223.8	1
219.4	1
191.4	1
210.4	1
212.6	1
274.4	1
256	1
227.6	1
261.7	1
237	1
234.9	1
310.6	1
274.2	1
288.1	1
242.5	1
271.7	1
282.2	1
317.4	1
280.3	1
322.6	1
328.2	1
280.7	1
288.8	1
347.9	1
360.1	1
348	1
275.7	1
332.6	1
340.8	1
390.5	1
351.2	1
377.4	1
413.5	1
366.9	1
364.8	1
388	1
429.8	1
423.6	1
326.4	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time10 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 10 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=28913&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]10 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=28913&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=28913&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 time10 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
Poland[t] = + 139.424285714286 + 119.519642857143Dummy[t] + 15.6039285714285M1[t] + 23.7839285714286M2[t] + 64.3039285714286M3[t] + 43.6239285714286M4[t] + 25.06M5[t] + 42.24M6[t] + 17.16M7[t] + 9.48000000000002M8[t] + 57.56M9[t] + 61.94M10[t] + 58.14M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Poland[t] =  +  139.424285714286 +  119.519642857143Dummy[t] +  15.6039285714285M1[t] +  23.7839285714286M2[t] +  64.3039285714286M3[t] +  43.6239285714286M4[t] +  25.06M5[t] +  42.24M6[t] +  17.16M7[t] +  9.48000000000002M8[t] +  57.56M9[t] +  61.94M10[t] +  58.14M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=28913&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Poland[t] =  +  139.424285714286 +  119.519642857143Dummy[t] +  15.6039285714285M1[t] +  23.7839285714286M2[t] +  64.3039285714286M3[t] +  43.6239285714286M4[t] +  25.06M5[t] +  42.24M6[t] +  17.16M7[t] +  9.48000000000002M8[t] +  57.56M9[t] +  61.94M10[t] +  58.14M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=28913&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=28913&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
Poland[t] = + 139.424285714286 + 119.519642857143Dummy[t] + 15.6039285714285M1[t] + 23.7839285714286M2[t] + 64.3039285714286M3[t] + 43.6239285714286M4[t] + 25.06M5[t] + 42.24M6[t] + 17.16M7[t] + 9.48000000000002M8[t] + 57.56M9[t] + 61.94M10[t] + 58.14M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)139.42428571428631.252184.46135.1e-052.5e-05
Dummy119.51964285714318.4155236.490200
M115.603928571428539.151940.39850.6920310.346016
M223.783928571428639.151940.60750.5464580.273229
M364.303928571428639.151941.64240.1071780.053589
M443.623928571428639.151941.11420.270850.135425
M525.0638.9783160.64290.5233990.2617
M642.2438.9783161.08370.2840350.142018
M717.1638.9783160.44020.6617780.330889
M89.4800000000000238.9783160.24320.8088990.40445
M957.5638.9783161.47670.1464210.07321
M1061.9438.9783161.58910.1187460.059373
M1158.1438.9783161.49160.1424860.071243

\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) & 139.424285714286 & 31.25218 & 4.4613 & 5.1e-05 & 2.5e-05 \tabularnewline
Dummy & 119.519642857143 & 18.415523 & 6.4902 & 0 & 0 \tabularnewline
M1 & 15.6039285714285 & 39.15194 & 0.3985 & 0.692031 & 0.346016 \tabularnewline
M2 & 23.7839285714286 & 39.15194 & 0.6075 & 0.546458 & 0.273229 \tabularnewline
M3 & 64.3039285714286 & 39.15194 & 1.6424 & 0.107178 & 0.053589 \tabularnewline
M4 & 43.6239285714286 & 39.15194 & 1.1142 & 0.27085 & 0.135425 \tabularnewline
M5 & 25.06 & 38.978316 & 0.6429 & 0.523399 & 0.2617 \tabularnewline
M6 & 42.24 & 38.978316 & 1.0837 & 0.284035 & 0.142018 \tabularnewline
M7 & 17.16 & 38.978316 & 0.4402 & 0.661778 & 0.330889 \tabularnewline
M8 & 9.48000000000002 & 38.978316 & 0.2432 & 0.808899 & 0.40445 \tabularnewline
M9 & 57.56 & 38.978316 & 1.4767 & 0.146421 & 0.07321 \tabularnewline
M10 & 61.94 & 38.978316 & 1.5891 & 0.118746 & 0.059373 \tabularnewline
M11 & 58.14 & 38.978316 & 1.4916 & 0.142486 & 0.071243 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=28913&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]139.424285714286[/C][C]31.25218[/C][C]4.4613[/C][C]5.1e-05[/C][C]2.5e-05[/C][/ROW]
[ROW][C]Dummy[/C][C]119.519642857143[/C][C]18.415523[/C][C]6.4902[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]15.6039285714285[/C][C]39.15194[/C][C]0.3985[/C][C]0.692031[/C][C]0.346016[/C][/ROW]
[ROW][C]M2[/C][C]23.7839285714286[/C][C]39.15194[/C][C]0.6075[/C][C]0.546458[/C][C]0.273229[/C][/ROW]
[ROW][C]M3[/C][C]64.3039285714286[/C][C]39.15194[/C][C]1.6424[/C][C]0.107178[/C][C]0.053589[/C][/ROW]
[ROW][C]M4[/C][C]43.6239285714286[/C][C]39.15194[/C][C]1.1142[/C][C]0.27085[/C][C]0.135425[/C][/ROW]
[ROW][C]M5[/C][C]25.06[/C][C]38.978316[/C][C]0.6429[/C][C]0.523399[/C][C]0.2617[/C][/ROW]
[ROW][C]M6[/C][C]42.24[/C][C]38.978316[/C][C]1.0837[/C][C]0.284035[/C][C]0.142018[/C][/ROW]
[ROW][C]M7[/C][C]17.16[/C][C]38.978316[/C][C]0.4402[/C][C]0.661778[/C][C]0.330889[/C][/ROW]
[ROW][C]M8[/C][C]9.48000000000002[/C][C]38.978316[/C][C]0.2432[/C][C]0.808899[/C][C]0.40445[/C][/ROW]
[ROW][C]M9[/C][C]57.56[/C][C]38.978316[/C][C]1.4767[/C][C]0.146421[/C][C]0.07321[/C][/ROW]
[ROW][C]M10[/C][C]61.94[/C][C]38.978316[/C][C]1.5891[/C][C]0.118746[/C][C]0.059373[/C][/ROW]
[ROW][C]M11[/C][C]58.14[/C][C]38.978316[/C][C]1.4916[/C][C]0.142486[/C][C]0.071243[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=28913&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=28913&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)139.42428571428631.252184.46135.1e-052.5e-05
Dummy119.51964285714318.4155236.490200
M115.603928571428539.151940.39850.6920310.346016
M223.783928571428639.151940.60750.5464580.273229
M364.303928571428639.151941.64240.1071780.053589
M443.623928571428639.151941.11420.270850.135425
M525.0638.9783160.64290.5233990.2617
M642.2438.9783161.08370.2840350.142018
M717.1638.9783160.44020.6617780.330889
M89.4800000000000238.9783160.24320.8088990.40445
M957.5638.9783161.47670.1464210.07321
M1061.9438.9783161.58910.1187460.059373
M1158.1438.9783161.49160.1424860.071243







Multiple Linear Regression - Regression Statistics
Multiple R0.721228828916513
R-squared0.520171023660284
Adjusted R-squared0.397661497786315
F-TEST (value)4.24596389504767
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.000160712427105358
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation61.6301293542771
Sum Squared Residuals178518.823678571

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.721228828916513 \tabularnewline
R-squared & 0.520171023660284 \tabularnewline
Adjusted R-squared & 0.397661497786315 \tabularnewline
F-TEST (value) & 4.24596389504767 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.000160712427105358 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 61.6301293542771 \tabularnewline
Sum Squared Residuals & 178518.823678571 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=28913&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.721228828916513[/C][/ROW]
[ROW][C]R-squared[/C][C]0.520171023660284[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.397661497786315[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.24596389504767[/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.000160712427105358[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]61.6301293542771[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]178518.823678571[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=28913&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=28913&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.721228828916513
R-squared0.520171023660284
Adjusted R-squared0.397661497786315
F-TEST (value)4.24596389504767
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.000160712427105358
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation61.6301293542771
Sum Squared Residuals178518.823678571







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1156.3155.0282142857141.27178571428553
2151.5163.208214285714-11.7082142857143
3159.1203.728214285714-44.6282142857142
4166.9183.048214285714-16.1482142857143
5160.5164.484285714286-3.98428571428569
6162.8181.664285714286-18.8642857142857
7178.9156.58428571428622.3157142857143
8148.5148.904285714286-0.404285714285711
9184.1196.984285714286-12.8842857142857
10197201.364285714286-4.36428571428569
11186.8197.564285714286-10.7642857142857
12139.2139.424285714286-0.224285714285711
13162.7155.0282142857147.67178571428575
14187.5163.20821428571424.2917857142857
15235.8203.72821428571432.0717857142857
16219.4183.04821428571436.3517857142857
17212.4284.003928571429-71.6039285714286
18220.2301.183928571429-80.9839285714286
19197.5276.103928571429-78.6039285714286
20185.6268.423928571429-82.8239285714286
21232.4316.503928571429-84.1039285714286
22223.8320.883928571429-97.0839285714286
23219.4317.083928571429-97.6839285714286
24191.4258.943928571429-67.5439285714286
25210.4274.547857142857-64.1478571428571
26212.6282.727857142857-70.1278571428572
27274.4323.247857142857-48.8478571428572
28256302.567857142857-46.5678571428571
29227.6284.003928571429-56.4039285714286
30261.7301.183928571429-39.4839285714286
31237276.103928571429-39.1039285714286
32234.9268.423928571429-33.5239285714286
33310.6316.503928571429-5.90392857142855
34274.2320.883928571429-46.6839285714286
35288.1317.083928571429-28.9839285714286
36242.5258.943928571429-16.4439285714285
37271.7274.547857142857-2.84785714285712
38282.2282.727857142857-0.527857142857138
39317.4323.247857142857-5.84785714285716
40280.3302.567857142857-22.2678571428571
41322.6284.00392857142938.5960714285714
42328.2301.18392857142927.0160714285714
43280.7276.1039285714294.59607142857143
44288.8268.42392857142920.3760714285714
45347.9316.50392857142931.3960714285714
46360.1320.88392857142939.2160714285714
47348317.08392857142930.9160714285714
48275.7258.94392857142916.7560714285714
49332.6274.54785714285758.0521428571429
50340.8282.72785714285758.0721428571429
51390.5323.24785714285767.2521428571429
52351.2302.56785714285748.6321428571428
53377.4284.00392857142993.3960714285714
54413.5301.183928571429112.316071428571
55366.9276.10392857142990.7960714285714
56364.8268.42392857142996.3760714285714
57388316.50392857142971.4960714285714
58429.8320.883928571429108.916071428571
59423.6317.083928571429106.516071428571
60326.4258.94392857142967.4560714285714

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 156.3 & 155.028214285714 & 1.27178571428553 \tabularnewline
2 & 151.5 & 163.208214285714 & -11.7082142857143 \tabularnewline
3 & 159.1 & 203.728214285714 & -44.6282142857142 \tabularnewline
4 & 166.9 & 183.048214285714 & -16.1482142857143 \tabularnewline
5 & 160.5 & 164.484285714286 & -3.98428571428569 \tabularnewline
6 & 162.8 & 181.664285714286 & -18.8642857142857 \tabularnewline
7 & 178.9 & 156.584285714286 & 22.3157142857143 \tabularnewline
8 & 148.5 & 148.904285714286 & -0.404285714285711 \tabularnewline
9 & 184.1 & 196.984285714286 & -12.8842857142857 \tabularnewline
10 & 197 & 201.364285714286 & -4.36428571428569 \tabularnewline
11 & 186.8 & 197.564285714286 & -10.7642857142857 \tabularnewline
12 & 139.2 & 139.424285714286 & -0.224285714285711 \tabularnewline
13 & 162.7 & 155.028214285714 & 7.67178571428575 \tabularnewline
14 & 187.5 & 163.208214285714 & 24.2917857142857 \tabularnewline
15 & 235.8 & 203.728214285714 & 32.0717857142857 \tabularnewline
16 & 219.4 & 183.048214285714 & 36.3517857142857 \tabularnewline
17 & 212.4 & 284.003928571429 & -71.6039285714286 \tabularnewline
18 & 220.2 & 301.183928571429 & -80.9839285714286 \tabularnewline
19 & 197.5 & 276.103928571429 & -78.6039285714286 \tabularnewline
20 & 185.6 & 268.423928571429 & -82.8239285714286 \tabularnewline
21 & 232.4 & 316.503928571429 & -84.1039285714286 \tabularnewline
22 & 223.8 & 320.883928571429 & -97.0839285714286 \tabularnewline
23 & 219.4 & 317.083928571429 & -97.6839285714286 \tabularnewline
24 & 191.4 & 258.943928571429 & -67.5439285714286 \tabularnewline
25 & 210.4 & 274.547857142857 & -64.1478571428571 \tabularnewline
26 & 212.6 & 282.727857142857 & -70.1278571428572 \tabularnewline
27 & 274.4 & 323.247857142857 & -48.8478571428572 \tabularnewline
28 & 256 & 302.567857142857 & -46.5678571428571 \tabularnewline
29 & 227.6 & 284.003928571429 & -56.4039285714286 \tabularnewline
30 & 261.7 & 301.183928571429 & -39.4839285714286 \tabularnewline
31 & 237 & 276.103928571429 & -39.1039285714286 \tabularnewline
32 & 234.9 & 268.423928571429 & -33.5239285714286 \tabularnewline
33 & 310.6 & 316.503928571429 & -5.90392857142855 \tabularnewline
34 & 274.2 & 320.883928571429 & -46.6839285714286 \tabularnewline
35 & 288.1 & 317.083928571429 & -28.9839285714286 \tabularnewline
36 & 242.5 & 258.943928571429 & -16.4439285714285 \tabularnewline
37 & 271.7 & 274.547857142857 & -2.84785714285712 \tabularnewline
38 & 282.2 & 282.727857142857 & -0.527857142857138 \tabularnewline
39 & 317.4 & 323.247857142857 & -5.84785714285716 \tabularnewline
40 & 280.3 & 302.567857142857 & -22.2678571428571 \tabularnewline
41 & 322.6 & 284.003928571429 & 38.5960714285714 \tabularnewline
42 & 328.2 & 301.183928571429 & 27.0160714285714 \tabularnewline
43 & 280.7 & 276.103928571429 & 4.59607142857143 \tabularnewline
44 & 288.8 & 268.423928571429 & 20.3760714285714 \tabularnewline
45 & 347.9 & 316.503928571429 & 31.3960714285714 \tabularnewline
46 & 360.1 & 320.883928571429 & 39.2160714285714 \tabularnewline
47 & 348 & 317.083928571429 & 30.9160714285714 \tabularnewline
48 & 275.7 & 258.943928571429 & 16.7560714285714 \tabularnewline
49 & 332.6 & 274.547857142857 & 58.0521428571429 \tabularnewline
50 & 340.8 & 282.727857142857 & 58.0721428571429 \tabularnewline
51 & 390.5 & 323.247857142857 & 67.2521428571429 \tabularnewline
52 & 351.2 & 302.567857142857 & 48.6321428571428 \tabularnewline
53 & 377.4 & 284.003928571429 & 93.3960714285714 \tabularnewline
54 & 413.5 & 301.183928571429 & 112.316071428571 \tabularnewline
55 & 366.9 & 276.103928571429 & 90.7960714285714 \tabularnewline
56 & 364.8 & 268.423928571429 & 96.3760714285714 \tabularnewline
57 & 388 & 316.503928571429 & 71.4960714285714 \tabularnewline
58 & 429.8 & 320.883928571429 & 108.916071428571 \tabularnewline
59 & 423.6 & 317.083928571429 & 106.516071428571 \tabularnewline
60 & 326.4 & 258.943928571429 & 67.4560714285714 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=28913&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]156.3[/C][C]155.028214285714[/C][C]1.27178571428553[/C][/ROW]
[ROW][C]2[/C][C]151.5[/C][C]163.208214285714[/C][C]-11.7082142857143[/C][/ROW]
[ROW][C]3[/C][C]159.1[/C][C]203.728214285714[/C][C]-44.6282142857142[/C][/ROW]
[ROW][C]4[/C][C]166.9[/C][C]183.048214285714[/C][C]-16.1482142857143[/C][/ROW]
[ROW][C]5[/C][C]160.5[/C][C]164.484285714286[/C][C]-3.98428571428569[/C][/ROW]
[ROW][C]6[/C][C]162.8[/C][C]181.664285714286[/C][C]-18.8642857142857[/C][/ROW]
[ROW][C]7[/C][C]178.9[/C][C]156.584285714286[/C][C]22.3157142857143[/C][/ROW]
[ROW][C]8[/C][C]148.5[/C][C]148.904285714286[/C][C]-0.404285714285711[/C][/ROW]
[ROW][C]9[/C][C]184.1[/C][C]196.984285714286[/C][C]-12.8842857142857[/C][/ROW]
[ROW][C]10[/C][C]197[/C][C]201.364285714286[/C][C]-4.36428571428569[/C][/ROW]
[ROW][C]11[/C][C]186.8[/C][C]197.564285714286[/C][C]-10.7642857142857[/C][/ROW]
[ROW][C]12[/C][C]139.2[/C][C]139.424285714286[/C][C]-0.224285714285711[/C][/ROW]
[ROW][C]13[/C][C]162.7[/C][C]155.028214285714[/C][C]7.67178571428575[/C][/ROW]
[ROW][C]14[/C][C]187.5[/C][C]163.208214285714[/C][C]24.2917857142857[/C][/ROW]
[ROW][C]15[/C][C]235.8[/C][C]203.728214285714[/C][C]32.0717857142857[/C][/ROW]
[ROW][C]16[/C][C]219.4[/C][C]183.048214285714[/C][C]36.3517857142857[/C][/ROW]
[ROW][C]17[/C][C]212.4[/C][C]284.003928571429[/C][C]-71.6039285714286[/C][/ROW]
[ROW][C]18[/C][C]220.2[/C][C]301.183928571429[/C][C]-80.9839285714286[/C][/ROW]
[ROW][C]19[/C][C]197.5[/C][C]276.103928571429[/C][C]-78.6039285714286[/C][/ROW]
[ROW][C]20[/C][C]185.6[/C][C]268.423928571429[/C][C]-82.8239285714286[/C][/ROW]
[ROW][C]21[/C][C]232.4[/C][C]316.503928571429[/C][C]-84.1039285714286[/C][/ROW]
[ROW][C]22[/C][C]223.8[/C][C]320.883928571429[/C][C]-97.0839285714286[/C][/ROW]
[ROW][C]23[/C][C]219.4[/C][C]317.083928571429[/C][C]-97.6839285714286[/C][/ROW]
[ROW][C]24[/C][C]191.4[/C][C]258.943928571429[/C][C]-67.5439285714286[/C][/ROW]
[ROW][C]25[/C][C]210.4[/C][C]274.547857142857[/C][C]-64.1478571428571[/C][/ROW]
[ROW][C]26[/C][C]212.6[/C][C]282.727857142857[/C][C]-70.1278571428572[/C][/ROW]
[ROW][C]27[/C][C]274.4[/C][C]323.247857142857[/C][C]-48.8478571428572[/C][/ROW]
[ROW][C]28[/C][C]256[/C][C]302.567857142857[/C][C]-46.5678571428571[/C][/ROW]
[ROW][C]29[/C][C]227.6[/C][C]284.003928571429[/C][C]-56.4039285714286[/C][/ROW]
[ROW][C]30[/C][C]261.7[/C][C]301.183928571429[/C][C]-39.4839285714286[/C][/ROW]
[ROW][C]31[/C][C]237[/C][C]276.103928571429[/C][C]-39.1039285714286[/C][/ROW]
[ROW][C]32[/C][C]234.9[/C][C]268.423928571429[/C][C]-33.5239285714286[/C][/ROW]
[ROW][C]33[/C][C]310.6[/C][C]316.503928571429[/C][C]-5.90392857142855[/C][/ROW]
[ROW][C]34[/C][C]274.2[/C][C]320.883928571429[/C][C]-46.6839285714286[/C][/ROW]
[ROW][C]35[/C][C]288.1[/C][C]317.083928571429[/C][C]-28.9839285714286[/C][/ROW]
[ROW][C]36[/C][C]242.5[/C][C]258.943928571429[/C][C]-16.4439285714285[/C][/ROW]
[ROW][C]37[/C][C]271.7[/C][C]274.547857142857[/C][C]-2.84785714285712[/C][/ROW]
[ROW][C]38[/C][C]282.2[/C][C]282.727857142857[/C][C]-0.527857142857138[/C][/ROW]
[ROW][C]39[/C][C]317.4[/C][C]323.247857142857[/C][C]-5.84785714285716[/C][/ROW]
[ROW][C]40[/C][C]280.3[/C][C]302.567857142857[/C][C]-22.2678571428571[/C][/ROW]
[ROW][C]41[/C][C]322.6[/C][C]284.003928571429[/C][C]38.5960714285714[/C][/ROW]
[ROW][C]42[/C][C]328.2[/C][C]301.183928571429[/C][C]27.0160714285714[/C][/ROW]
[ROW][C]43[/C][C]280.7[/C][C]276.103928571429[/C][C]4.59607142857143[/C][/ROW]
[ROW][C]44[/C][C]288.8[/C][C]268.423928571429[/C][C]20.3760714285714[/C][/ROW]
[ROW][C]45[/C][C]347.9[/C][C]316.503928571429[/C][C]31.3960714285714[/C][/ROW]
[ROW][C]46[/C][C]360.1[/C][C]320.883928571429[/C][C]39.2160714285714[/C][/ROW]
[ROW][C]47[/C][C]348[/C][C]317.083928571429[/C][C]30.9160714285714[/C][/ROW]
[ROW][C]48[/C][C]275.7[/C][C]258.943928571429[/C][C]16.7560714285714[/C][/ROW]
[ROW][C]49[/C][C]332.6[/C][C]274.547857142857[/C][C]58.0521428571429[/C][/ROW]
[ROW][C]50[/C][C]340.8[/C][C]282.727857142857[/C][C]58.0721428571429[/C][/ROW]
[ROW][C]51[/C][C]390.5[/C][C]323.247857142857[/C][C]67.2521428571429[/C][/ROW]
[ROW][C]52[/C][C]351.2[/C][C]302.567857142857[/C][C]48.6321428571428[/C][/ROW]
[ROW][C]53[/C][C]377.4[/C][C]284.003928571429[/C][C]93.3960714285714[/C][/ROW]
[ROW][C]54[/C][C]413.5[/C][C]301.183928571429[/C][C]112.316071428571[/C][/ROW]
[ROW][C]55[/C][C]366.9[/C][C]276.103928571429[/C][C]90.7960714285714[/C][/ROW]
[ROW][C]56[/C][C]364.8[/C][C]268.423928571429[/C][C]96.3760714285714[/C][/ROW]
[ROW][C]57[/C][C]388[/C][C]316.503928571429[/C][C]71.4960714285714[/C][/ROW]
[ROW][C]58[/C][C]429.8[/C][C]320.883928571429[/C][C]108.916071428571[/C][/ROW]
[ROW][C]59[/C][C]423.6[/C][C]317.083928571429[/C][C]106.516071428571[/C][/ROW]
[ROW][C]60[/C][C]326.4[/C][C]258.943928571429[/C][C]67.4560714285714[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=28913&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=28913&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
1156.3155.0282142857141.27178571428553
2151.5163.208214285714-11.7082142857143
3159.1203.728214285714-44.6282142857142
4166.9183.048214285714-16.1482142857143
5160.5164.484285714286-3.98428571428569
6162.8181.664285714286-18.8642857142857
7178.9156.58428571428622.3157142857143
8148.5148.904285714286-0.404285714285711
9184.1196.984285714286-12.8842857142857
10197201.364285714286-4.36428571428569
11186.8197.564285714286-10.7642857142857
12139.2139.424285714286-0.224285714285711
13162.7155.0282142857147.67178571428575
14187.5163.20821428571424.2917857142857
15235.8203.72821428571432.0717857142857
16219.4183.04821428571436.3517857142857
17212.4284.003928571429-71.6039285714286
18220.2301.183928571429-80.9839285714286
19197.5276.103928571429-78.6039285714286
20185.6268.423928571429-82.8239285714286
21232.4316.503928571429-84.1039285714286
22223.8320.883928571429-97.0839285714286
23219.4317.083928571429-97.6839285714286
24191.4258.943928571429-67.5439285714286
25210.4274.547857142857-64.1478571428571
26212.6282.727857142857-70.1278571428572
27274.4323.247857142857-48.8478571428572
28256302.567857142857-46.5678571428571
29227.6284.003928571429-56.4039285714286
30261.7301.183928571429-39.4839285714286
31237276.103928571429-39.1039285714286
32234.9268.423928571429-33.5239285714286
33310.6316.503928571429-5.90392857142855
34274.2320.883928571429-46.6839285714286
35288.1317.083928571429-28.9839285714286
36242.5258.943928571429-16.4439285714285
37271.7274.547857142857-2.84785714285712
38282.2282.727857142857-0.527857142857138
39317.4323.247857142857-5.84785714285716
40280.3302.567857142857-22.2678571428571
41322.6284.00392857142938.5960714285714
42328.2301.18392857142927.0160714285714
43280.7276.1039285714294.59607142857143
44288.8268.42392857142920.3760714285714
45347.9316.50392857142931.3960714285714
46360.1320.88392857142939.2160714285714
47348317.08392857142930.9160714285714
48275.7258.94392857142916.7560714285714
49332.6274.54785714285758.0521428571429
50340.8282.72785714285758.0721428571429
51390.5323.24785714285767.2521428571429
52351.2302.56785714285748.6321428571428
53377.4284.00392857142993.3960714285714
54413.5301.183928571429112.316071428571
55366.9276.10392857142990.7960714285714
56364.8268.42392857142996.3760714285714
57388316.50392857142971.4960714285714
58429.8320.883928571429108.916071428571
59423.6317.083928571429106.516071428571
60326.4258.94392857142967.4560714285714







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1753958339590530.3507916679181060.824604166040947
170.07922710345187030.1584542069037410.92077289654813
180.03497804945204490.06995609890408980.965021950547955
190.01771986244742390.03543972489484780.982280137552576
200.007661903525791170.01532380705158230.992338096474209
210.003419314918248220.006838629836496440.996580685081752
220.001818469240417580.003636938480835170.998181530759582
230.001025177648649390.002050355297298770.99897482235135
240.0004736850575286780.0009473701150573560.999526314942471
250.000215534787306590.000431069574613180.999784465212693
260.0001008590263549910.0002017180527099830.999899140973645
278.34177356437657e-050.0001668354712875310.999916582264356
283.67325881668643e-057.34651763337286e-050.999963267411833
293.38920834732144e-056.77841669464287e-050.999966107916527
308.78912553144288e-050.0001757825106288580.999912108744686
317.46598983885768e-050.0001493197967771540.999925340101611
320.0001379035586302540.0002758071172605080.99986209644137
330.0006685753188990640.001337150637798130.9993314246811
340.00190588359478330.00381176718956660.998094116405217
350.006156048559755820.01231209711951160.993843951440244
360.007543037327437110.01508607465487420.992456962672563
370.00993034606576640.01986069213153280.990069653934234
380.01223812680946040.02447625361892070.98776187319054
390.01610651420454480.03221302840908960.983893485795455
400.01539358168121340.03078716336242690.984606418318787
410.03588500949331940.07177001898663880.96411499050668
420.08009851545132610.1601970309026520.919901484548674
430.1202268199740990.2404536399481980.879773180025901
440.1686559677927520.3373119355855040.831344032207248

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.175395833959053 & 0.350791667918106 & 0.824604166040947 \tabularnewline
17 & 0.0792271034518703 & 0.158454206903741 & 0.92077289654813 \tabularnewline
18 & 0.0349780494520449 & 0.0699560989040898 & 0.965021950547955 \tabularnewline
19 & 0.0177198624474239 & 0.0354397248948478 & 0.982280137552576 \tabularnewline
20 & 0.00766190352579117 & 0.0153238070515823 & 0.992338096474209 \tabularnewline
21 & 0.00341931491824822 & 0.00683862983649644 & 0.996580685081752 \tabularnewline
22 & 0.00181846924041758 & 0.00363693848083517 & 0.998181530759582 \tabularnewline
23 & 0.00102517764864939 & 0.00205035529729877 & 0.99897482235135 \tabularnewline
24 & 0.000473685057528678 & 0.000947370115057356 & 0.999526314942471 \tabularnewline
25 & 0.00021553478730659 & 0.00043106957461318 & 0.999784465212693 \tabularnewline
26 & 0.000100859026354991 & 0.000201718052709983 & 0.999899140973645 \tabularnewline
27 & 8.34177356437657e-05 & 0.000166835471287531 & 0.999916582264356 \tabularnewline
28 & 3.67325881668643e-05 & 7.34651763337286e-05 & 0.999963267411833 \tabularnewline
29 & 3.38920834732144e-05 & 6.77841669464287e-05 & 0.999966107916527 \tabularnewline
30 & 8.78912553144288e-05 & 0.000175782510628858 & 0.999912108744686 \tabularnewline
31 & 7.46598983885768e-05 & 0.000149319796777154 & 0.999925340101611 \tabularnewline
32 & 0.000137903558630254 & 0.000275807117260508 & 0.99986209644137 \tabularnewline
33 & 0.000668575318899064 & 0.00133715063779813 & 0.9993314246811 \tabularnewline
34 & 0.0019058835947833 & 0.0038117671895666 & 0.998094116405217 \tabularnewline
35 & 0.00615604855975582 & 0.0123120971195116 & 0.993843951440244 \tabularnewline
36 & 0.00754303732743711 & 0.0150860746548742 & 0.992456962672563 \tabularnewline
37 & 0.0099303460657664 & 0.0198606921315328 & 0.990069653934234 \tabularnewline
38 & 0.0122381268094604 & 0.0244762536189207 & 0.98776187319054 \tabularnewline
39 & 0.0161065142045448 & 0.0322130284090896 & 0.983893485795455 \tabularnewline
40 & 0.0153935816812134 & 0.0307871633624269 & 0.984606418318787 \tabularnewline
41 & 0.0358850094933194 & 0.0717700189866388 & 0.96411499050668 \tabularnewline
42 & 0.0800985154513261 & 0.160197030902652 & 0.919901484548674 \tabularnewline
43 & 0.120226819974099 & 0.240453639948198 & 0.879773180025901 \tabularnewline
44 & 0.168655967792752 & 0.337311935585504 & 0.831344032207248 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=28913&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.175395833959053[/C][C]0.350791667918106[/C][C]0.824604166040947[/C][/ROW]
[ROW][C]17[/C][C]0.0792271034518703[/C][C]0.158454206903741[/C][C]0.92077289654813[/C][/ROW]
[ROW][C]18[/C][C]0.0349780494520449[/C][C]0.0699560989040898[/C][C]0.965021950547955[/C][/ROW]
[ROW][C]19[/C][C]0.0177198624474239[/C][C]0.0354397248948478[/C][C]0.982280137552576[/C][/ROW]
[ROW][C]20[/C][C]0.00766190352579117[/C][C]0.0153238070515823[/C][C]0.992338096474209[/C][/ROW]
[ROW][C]21[/C][C]0.00341931491824822[/C][C]0.00683862983649644[/C][C]0.996580685081752[/C][/ROW]
[ROW][C]22[/C][C]0.00181846924041758[/C][C]0.00363693848083517[/C][C]0.998181530759582[/C][/ROW]
[ROW][C]23[/C][C]0.00102517764864939[/C][C]0.00205035529729877[/C][C]0.99897482235135[/C][/ROW]
[ROW][C]24[/C][C]0.000473685057528678[/C][C]0.000947370115057356[/C][C]0.999526314942471[/C][/ROW]
[ROW][C]25[/C][C]0.00021553478730659[/C][C]0.00043106957461318[/C][C]0.999784465212693[/C][/ROW]
[ROW][C]26[/C][C]0.000100859026354991[/C][C]0.000201718052709983[/C][C]0.999899140973645[/C][/ROW]
[ROW][C]27[/C][C]8.34177356437657e-05[/C][C]0.000166835471287531[/C][C]0.999916582264356[/C][/ROW]
[ROW][C]28[/C][C]3.67325881668643e-05[/C][C]7.34651763337286e-05[/C][C]0.999963267411833[/C][/ROW]
[ROW][C]29[/C][C]3.38920834732144e-05[/C][C]6.77841669464287e-05[/C][C]0.999966107916527[/C][/ROW]
[ROW][C]30[/C][C]8.78912553144288e-05[/C][C]0.000175782510628858[/C][C]0.999912108744686[/C][/ROW]
[ROW][C]31[/C][C]7.46598983885768e-05[/C][C]0.000149319796777154[/C][C]0.999925340101611[/C][/ROW]
[ROW][C]32[/C][C]0.000137903558630254[/C][C]0.000275807117260508[/C][C]0.99986209644137[/C][/ROW]
[ROW][C]33[/C][C]0.000668575318899064[/C][C]0.00133715063779813[/C][C]0.9993314246811[/C][/ROW]
[ROW][C]34[/C][C]0.0019058835947833[/C][C]0.0038117671895666[/C][C]0.998094116405217[/C][/ROW]
[ROW][C]35[/C][C]0.00615604855975582[/C][C]0.0123120971195116[/C][C]0.993843951440244[/C][/ROW]
[ROW][C]36[/C][C]0.00754303732743711[/C][C]0.0150860746548742[/C][C]0.992456962672563[/C][/ROW]
[ROW][C]37[/C][C]0.0099303460657664[/C][C]0.0198606921315328[/C][C]0.990069653934234[/C][/ROW]
[ROW][C]38[/C][C]0.0122381268094604[/C][C]0.0244762536189207[/C][C]0.98776187319054[/C][/ROW]
[ROW][C]39[/C][C]0.0161065142045448[/C][C]0.0322130284090896[/C][C]0.983893485795455[/C][/ROW]
[ROW][C]40[/C][C]0.0153935816812134[/C][C]0.0307871633624269[/C][C]0.984606418318787[/C][/ROW]
[ROW][C]41[/C][C]0.0358850094933194[/C][C]0.0717700189866388[/C][C]0.96411499050668[/C][/ROW]
[ROW][C]42[/C][C]0.0800985154513261[/C][C]0.160197030902652[/C][C]0.919901484548674[/C][/ROW]
[ROW][C]43[/C][C]0.120226819974099[/C][C]0.240453639948198[/C][C]0.879773180025901[/C][/ROW]
[ROW][C]44[/C][C]0.168655967792752[/C][C]0.337311935585504[/C][C]0.831344032207248[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=28913&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=28913&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.1753958339590530.3507916679181060.824604166040947
170.07922710345187030.1584542069037410.92077289654813
180.03497804945204490.06995609890408980.965021950547955
190.01771986244742390.03543972489484780.982280137552576
200.007661903525791170.01532380705158230.992338096474209
210.003419314918248220.006838629836496440.996580685081752
220.001818469240417580.003636938480835170.998181530759582
230.001025177648649390.002050355297298770.99897482235135
240.0004736850575286780.0009473701150573560.999526314942471
250.000215534787306590.000431069574613180.999784465212693
260.0001008590263549910.0002017180527099830.999899140973645
278.34177356437657e-050.0001668354712875310.999916582264356
283.67325881668643e-057.34651763337286e-050.999963267411833
293.38920834732144e-056.77841669464287e-050.999966107916527
308.78912553144288e-050.0001757825106288580.999912108744686
317.46598983885768e-050.0001493197967771540.999925340101611
320.0001379035586302540.0002758071172605080.99986209644137
330.0006685753188990640.001337150637798130.9993314246811
340.00190588359478330.00381176718956660.998094116405217
350.006156048559755820.01231209711951160.993843951440244
360.007543037327437110.01508607465487420.992456962672563
370.00993034606576640.01986069213153280.990069653934234
380.01223812680946040.02447625361892070.98776187319054
390.01610651420454480.03221302840908960.983893485795455
400.01539358168121340.03078716336242690.984606418318787
410.03588500949331940.07177001898663880.96411499050668
420.08009851545132610.1601970309026520.919901484548674
430.1202268199740990.2404536399481980.879773180025901
440.1686559677927520.3373119355855040.831344032207248







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level140.482758620689655NOK
5% type I error level220.758620689655172NOK
10% type I error level240.827586206896552NOK

\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 & 14 & 0.482758620689655 & NOK \tabularnewline
5% type I error level & 22 & 0.758620689655172 & NOK \tabularnewline
10% type I error level & 24 & 0.827586206896552 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=28913&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]14[/C][C]0.482758620689655[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]22[/C][C]0.758620689655172[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]24[/C][C]0.827586206896552[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=28913&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=28913&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 level140.482758620689655NOK
5% type I error level220.758620689655172NOK
10% type I error level240.827586206896552NOK



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