Free Statistics

of Irreproducible Research!

Author's title

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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact108
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [W6Q3 (1)] [2008-11-27 13:09:34] [434228f9e3c7eaa307f0fb12855e2147] [Current]
Feedback Forum

Post a new message
Dataseries X:
149.7	0
163.6	0
173.9	0
164.5	0
154.2	0
147.9	0
159.3	0
170.3	0
170	0
174.2	0
190.8	0
179.9	0
240.8	0
241.9	0
241.1	0
239.6	0
220.8	0
209.3	0
209.9	0
228.3	0
242.1	0
226.4	0
231.5	0
229.7	0
257.6	0
260	0
264.4	0
268.8	0
271.4	0
273.8	0
277.4	0
268.2	0
264.6	0
266.6	0
266	0
267.4	0
289.8	0
294	0
310.3	0
311.7	0
302.1	0
298.2	0
299.2	0
296.2	0
299	0
300	0
299.4	0
300.2	0
470.2	0
472.1	0
484.8	0
513.4	1
547.2	1
548.1	1
544.7	1
521.1	1
459	1
413.2	1




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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25799&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
x[t] = + 109.775000000000 + 132.360714285714y[t] + 59.7408333333334M1[t] + 59.9566666666667M2[t] + 64.0525M3[t] + 37.7961904761904M4[t] + 32.8520238095238M5[t] + 24.6878571428571M6[t] + 22.8436904761905M7[t] + 17.0795238095238M8[t] + 2.71535714285712M9[t] -12.6288095238096M10[t] + 7.10916666666663M11[t] + 4.48416666666666t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
x[t] =  +  109.775000000000 +  132.360714285714y[t] +  59.7408333333334M1[t] +  59.9566666666667M2[t] +  64.0525M3[t] +  37.7961904761904M4[t] +  32.8520238095238M5[t] +  24.6878571428571M6[t] +  22.8436904761905M7[t] +  17.0795238095238M8[t] +  2.71535714285712M9[t] -12.6288095238096M10[t] +  7.10916666666663M11[t] +  4.48416666666666t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25799&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]x[t] =  +  109.775000000000 +  132.360714285714y[t] +  59.7408333333334M1[t] +  59.9566666666667M2[t] +  64.0525M3[t] +  37.7961904761904M4[t] +  32.8520238095238M5[t] +  24.6878571428571M6[t] +  22.8436904761905M7[t] +  17.0795238095238M8[t] +  2.71535714285712M9[t] -12.6288095238096M10[t] +  7.10916666666663M11[t] +  4.48416666666666t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25799&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
x[t] = + 109.775000000000 + 132.360714285714y[t] + 59.7408333333334M1[t] + 59.9566666666667M2[t] + 64.0525M3[t] + 37.7961904761904M4[t] + 32.8520238095238M5[t] + 24.6878571428571M6[t] + 22.8436904761905M7[t] + 17.0795238095238M8[t] + 2.71535714285712M9[t] -12.6288095238096M10[t] + 7.10916666666663M11[t] + 4.48416666666666t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)109.77500000000019.6164965.59611e-061e-06
y132.36071428571417.3881667.612100
M159.740833333333422.8508562.61440.0121940.006097
M259.956666666666722.8297972.62620.0118330.005917
M364.052522.8134032.80770.0074110.003706
M437.796190476190423.1209051.63470.1092430.054622
M532.852023809523823.0862051.4230.1617840.080892
M624.687857142857123.056091.07080.290110.145055
M722.843690476190523.0305770.99190.3266770.163339
M817.079523809523823.0096820.74230.4618650.230932
M92.7153571428571222.9934170.11810.9065320.453266
M10-12.628809523809622.981792-0.54950.5854310.292716
M117.1091666666666324.0274280.29590.7687160.384358
t4.484166666666660.32694213.715500

\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) & 109.775000000000 & 19.616496 & 5.5961 & 1e-06 & 1e-06 \tabularnewline
y & 132.360714285714 & 17.388166 & 7.6121 & 0 & 0 \tabularnewline
M1 & 59.7408333333334 & 22.850856 & 2.6144 & 0.012194 & 0.006097 \tabularnewline
M2 & 59.9566666666667 & 22.829797 & 2.6262 & 0.011833 & 0.005917 \tabularnewline
M3 & 64.0525 & 22.813403 & 2.8077 & 0.007411 & 0.003706 \tabularnewline
M4 & 37.7961904761904 & 23.120905 & 1.6347 & 0.109243 & 0.054622 \tabularnewline
M5 & 32.8520238095238 & 23.086205 & 1.423 & 0.161784 & 0.080892 \tabularnewline
M6 & 24.6878571428571 & 23.05609 & 1.0708 & 0.29011 & 0.145055 \tabularnewline
M7 & 22.8436904761905 & 23.030577 & 0.9919 & 0.326677 & 0.163339 \tabularnewline
M8 & 17.0795238095238 & 23.009682 & 0.7423 & 0.461865 & 0.230932 \tabularnewline
M9 & 2.71535714285712 & 22.993417 & 0.1181 & 0.906532 & 0.453266 \tabularnewline
M10 & -12.6288095238096 & 22.981792 & -0.5495 & 0.585431 & 0.292716 \tabularnewline
M11 & 7.10916666666663 & 24.027428 & 0.2959 & 0.768716 & 0.384358 \tabularnewline
t & 4.48416666666666 & 0.326942 & 13.7155 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25799&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]109.775000000000[/C][C]19.616496[/C][C]5.5961[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]y[/C][C]132.360714285714[/C][C]17.388166[/C][C]7.6121[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]59.7408333333334[/C][C]22.850856[/C][C]2.6144[/C][C]0.012194[/C][C]0.006097[/C][/ROW]
[ROW][C]M2[/C][C]59.9566666666667[/C][C]22.829797[/C][C]2.6262[/C][C]0.011833[/C][C]0.005917[/C][/ROW]
[ROW][C]M3[/C][C]64.0525[/C][C]22.813403[/C][C]2.8077[/C][C]0.007411[/C][C]0.003706[/C][/ROW]
[ROW][C]M4[/C][C]37.7961904761904[/C][C]23.120905[/C][C]1.6347[/C][C]0.109243[/C][C]0.054622[/C][/ROW]
[ROW][C]M5[/C][C]32.8520238095238[/C][C]23.086205[/C][C]1.423[/C][C]0.161784[/C][C]0.080892[/C][/ROW]
[ROW][C]M6[/C][C]24.6878571428571[/C][C]23.05609[/C][C]1.0708[/C][C]0.29011[/C][C]0.145055[/C][/ROW]
[ROW][C]M7[/C][C]22.8436904761905[/C][C]23.030577[/C][C]0.9919[/C][C]0.326677[/C][C]0.163339[/C][/ROW]
[ROW][C]M8[/C][C]17.0795238095238[/C][C]23.009682[/C][C]0.7423[/C][C]0.461865[/C][C]0.230932[/C][/ROW]
[ROW][C]M9[/C][C]2.71535714285712[/C][C]22.993417[/C][C]0.1181[/C][C]0.906532[/C][C]0.453266[/C][/ROW]
[ROW][C]M10[/C][C]-12.6288095238096[/C][C]22.981792[/C][C]-0.5495[/C][C]0.585431[/C][C]0.292716[/C][/ROW]
[ROW][C]M11[/C][C]7.10916666666663[/C][C]24.027428[/C][C]0.2959[/C][C]0.768716[/C][C]0.384358[/C][/ROW]
[ROW][C]t[/C][C]4.48416666666666[/C][C]0.326942[/C][C]13.7155[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25799&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25799&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)109.77500000000019.6164965.59611e-061e-06
y132.36071428571417.3881667.612100
M159.740833333333422.8508562.61440.0121940.006097
M259.956666666666722.8297972.62620.0118330.005917
M364.052522.8134032.80770.0074110.003706
M437.796190476190423.1209051.63470.1092430.054622
M532.852023809523823.0862051.4230.1617840.080892
M624.687857142857123.056091.07080.290110.145055
M722.843690476190523.0305770.99190.3266770.163339
M817.079523809523823.0096820.74230.4618650.230932
M92.7153571428571222.9934170.11810.9065320.453266
M10-12.628809523809622.981792-0.54950.5854310.292716
M117.1091666666666324.0274280.29590.7687160.384358
t4.484166666666660.32694213.715500







Multiple Linear Regression - Regression Statistics
Multiple R0.962175862244345
R-squared0.925782389885649
Adjusted R-squared0.90385445962459
F-TEST (value)42.2193238880252
F-TEST (DF numerator)13
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation33.9767684191389
Sum Squared Residuals50794.5148571429

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.962175862244345 \tabularnewline
R-squared & 0.925782389885649 \tabularnewline
Adjusted R-squared & 0.90385445962459 \tabularnewline
F-TEST (value) & 42.2193238880252 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 44 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 33.9767684191389 \tabularnewline
Sum Squared Residuals & 50794.5148571429 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25799&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.962175862244345[/C][/ROW]
[ROW][C]R-squared[/C][C]0.925782389885649[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.90385445962459[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]42.2193238880252[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]44[/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]33.9767684191389[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]50794.5148571429[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25799&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25799&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.962175862244345
R-squared0.925782389885649
Adjusted R-squared0.90385445962459
F-TEST (value)42.2193238880252
F-TEST (DF numerator)13
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation33.9767684191389
Sum Squared Residuals50794.5148571429







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1149.7174-24.3000000000000
2163.6178.700000000000-15.0999999999998
3173.9187.28-13.3800000000001
4164.5165.507857142857-1.00785714285706
5154.2165.047857142857-10.8478571428573
6147.9161.367857142857-13.4678571428571
7159.3164.007857142857-4.7078571428571
8170.3162.7278571428577.57214285714293
9170152.84785714285717.1521428571428
10174.2141.98785714285732.2121428571428
11190.8166.2124.59
12179.9163.58516.315
13240.8227.8112.9899999999999
14241.9232.519.39
15241.1241.090.0100000000000149
16239.6219.31785714285720.2821428571428
17220.8218.8578571428571.94214285714288
18209.3215.177857142857-5.87785714285714
19209.9217.817857142857-7.91785714285714
20228.3216.53785714285711.7621428571429
21242.1206.65785714285735.4421428571428
22226.4195.79785714285730.6021428571429
23231.5220.0211.48
24229.7217.39512.305
25257.6281.62-24.02
26260286.32-26.3200000000001
27264.4294.9-30.5
28268.8273.127857142857-4.32785714285713
29271.4272.667857142857-1.26785714285715
30273.8268.9878571428574.81214285714285
31277.4271.6278571428575.77214285714282
32268.2270.347857142857-2.14785714285716
33264.6260.4678571428574.13214285714290
34266.6249.60785714285716.9921428571429
35266273.83-7.83000000000002
36267.4271.205-3.80500000000003
37289.8335.43-45.63
38294340.13-46.1300000000001
39310.3348.71-38.41
40311.7326.937857142857-15.2378571428572
41302.1326.477857142857-24.3778571428571
42298.2322.797857142857-24.5978571428571
43299.2325.437857142857-26.2378571428572
44296.2324.157857142857-27.9578571428572
45299314.277857142857-15.2778571428571
46300303.417857142857-3.41785714285712
47299.4327.64-28.24
48300.2325.015-24.815
49470.2389.2480.96
50472.1393.9478.16
51484.8402.5282.2800000000001
52513.4513.1085714285720.291428571428519
53547.2512.64857142857134.5514285714286
54548.1508.96857142857139.1314285714286
55544.7511.60857142857133.0914285714286
56521.1510.32857142857110.7714285714286
57459500.448571428571-41.4485714285714
58413.2489.588571428571-76.3885714285715

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 149.7 & 174 & -24.3000000000000 \tabularnewline
2 & 163.6 & 178.700000000000 & -15.0999999999998 \tabularnewline
3 & 173.9 & 187.28 & -13.3800000000001 \tabularnewline
4 & 164.5 & 165.507857142857 & -1.00785714285706 \tabularnewline
5 & 154.2 & 165.047857142857 & -10.8478571428573 \tabularnewline
6 & 147.9 & 161.367857142857 & -13.4678571428571 \tabularnewline
7 & 159.3 & 164.007857142857 & -4.7078571428571 \tabularnewline
8 & 170.3 & 162.727857142857 & 7.57214285714293 \tabularnewline
9 & 170 & 152.847857142857 & 17.1521428571428 \tabularnewline
10 & 174.2 & 141.987857142857 & 32.2121428571428 \tabularnewline
11 & 190.8 & 166.21 & 24.59 \tabularnewline
12 & 179.9 & 163.585 & 16.315 \tabularnewline
13 & 240.8 & 227.81 & 12.9899999999999 \tabularnewline
14 & 241.9 & 232.51 & 9.39 \tabularnewline
15 & 241.1 & 241.09 & 0.0100000000000149 \tabularnewline
16 & 239.6 & 219.317857142857 & 20.2821428571428 \tabularnewline
17 & 220.8 & 218.857857142857 & 1.94214285714288 \tabularnewline
18 & 209.3 & 215.177857142857 & -5.87785714285714 \tabularnewline
19 & 209.9 & 217.817857142857 & -7.91785714285714 \tabularnewline
20 & 228.3 & 216.537857142857 & 11.7621428571429 \tabularnewline
21 & 242.1 & 206.657857142857 & 35.4421428571428 \tabularnewline
22 & 226.4 & 195.797857142857 & 30.6021428571429 \tabularnewline
23 & 231.5 & 220.02 & 11.48 \tabularnewline
24 & 229.7 & 217.395 & 12.305 \tabularnewline
25 & 257.6 & 281.62 & -24.02 \tabularnewline
26 & 260 & 286.32 & -26.3200000000001 \tabularnewline
27 & 264.4 & 294.9 & -30.5 \tabularnewline
28 & 268.8 & 273.127857142857 & -4.32785714285713 \tabularnewline
29 & 271.4 & 272.667857142857 & -1.26785714285715 \tabularnewline
30 & 273.8 & 268.987857142857 & 4.81214285714285 \tabularnewline
31 & 277.4 & 271.627857142857 & 5.77214285714282 \tabularnewline
32 & 268.2 & 270.347857142857 & -2.14785714285716 \tabularnewline
33 & 264.6 & 260.467857142857 & 4.13214285714290 \tabularnewline
34 & 266.6 & 249.607857142857 & 16.9921428571429 \tabularnewline
35 & 266 & 273.83 & -7.83000000000002 \tabularnewline
36 & 267.4 & 271.205 & -3.80500000000003 \tabularnewline
37 & 289.8 & 335.43 & -45.63 \tabularnewline
38 & 294 & 340.13 & -46.1300000000001 \tabularnewline
39 & 310.3 & 348.71 & -38.41 \tabularnewline
40 & 311.7 & 326.937857142857 & -15.2378571428572 \tabularnewline
41 & 302.1 & 326.477857142857 & -24.3778571428571 \tabularnewline
42 & 298.2 & 322.797857142857 & -24.5978571428571 \tabularnewline
43 & 299.2 & 325.437857142857 & -26.2378571428572 \tabularnewline
44 & 296.2 & 324.157857142857 & -27.9578571428572 \tabularnewline
45 & 299 & 314.277857142857 & -15.2778571428571 \tabularnewline
46 & 300 & 303.417857142857 & -3.41785714285712 \tabularnewline
47 & 299.4 & 327.64 & -28.24 \tabularnewline
48 & 300.2 & 325.015 & -24.815 \tabularnewline
49 & 470.2 & 389.24 & 80.96 \tabularnewline
50 & 472.1 & 393.94 & 78.16 \tabularnewline
51 & 484.8 & 402.52 & 82.2800000000001 \tabularnewline
52 & 513.4 & 513.108571428572 & 0.291428571428519 \tabularnewline
53 & 547.2 & 512.648571428571 & 34.5514285714286 \tabularnewline
54 & 548.1 & 508.968571428571 & 39.1314285714286 \tabularnewline
55 & 544.7 & 511.608571428571 & 33.0914285714286 \tabularnewline
56 & 521.1 & 510.328571428571 & 10.7714285714286 \tabularnewline
57 & 459 & 500.448571428571 & -41.4485714285714 \tabularnewline
58 & 413.2 & 489.588571428571 & -76.3885714285715 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25799&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]149.7[/C][C]174[/C][C]-24.3000000000000[/C][/ROW]
[ROW][C]2[/C][C]163.6[/C][C]178.700000000000[/C][C]-15.0999999999998[/C][/ROW]
[ROW][C]3[/C][C]173.9[/C][C]187.28[/C][C]-13.3800000000001[/C][/ROW]
[ROW][C]4[/C][C]164.5[/C][C]165.507857142857[/C][C]-1.00785714285706[/C][/ROW]
[ROW][C]5[/C][C]154.2[/C][C]165.047857142857[/C][C]-10.8478571428573[/C][/ROW]
[ROW][C]6[/C][C]147.9[/C][C]161.367857142857[/C][C]-13.4678571428571[/C][/ROW]
[ROW][C]7[/C][C]159.3[/C][C]164.007857142857[/C][C]-4.7078571428571[/C][/ROW]
[ROW][C]8[/C][C]170.3[/C][C]162.727857142857[/C][C]7.57214285714293[/C][/ROW]
[ROW][C]9[/C][C]170[/C][C]152.847857142857[/C][C]17.1521428571428[/C][/ROW]
[ROW][C]10[/C][C]174.2[/C][C]141.987857142857[/C][C]32.2121428571428[/C][/ROW]
[ROW][C]11[/C][C]190.8[/C][C]166.21[/C][C]24.59[/C][/ROW]
[ROW][C]12[/C][C]179.9[/C][C]163.585[/C][C]16.315[/C][/ROW]
[ROW][C]13[/C][C]240.8[/C][C]227.81[/C][C]12.9899999999999[/C][/ROW]
[ROW][C]14[/C][C]241.9[/C][C]232.51[/C][C]9.39[/C][/ROW]
[ROW][C]15[/C][C]241.1[/C][C]241.09[/C][C]0.0100000000000149[/C][/ROW]
[ROW][C]16[/C][C]239.6[/C][C]219.317857142857[/C][C]20.2821428571428[/C][/ROW]
[ROW][C]17[/C][C]220.8[/C][C]218.857857142857[/C][C]1.94214285714288[/C][/ROW]
[ROW][C]18[/C][C]209.3[/C][C]215.177857142857[/C][C]-5.87785714285714[/C][/ROW]
[ROW][C]19[/C][C]209.9[/C][C]217.817857142857[/C][C]-7.91785714285714[/C][/ROW]
[ROW][C]20[/C][C]228.3[/C][C]216.537857142857[/C][C]11.7621428571429[/C][/ROW]
[ROW][C]21[/C][C]242.1[/C][C]206.657857142857[/C][C]35.4421428571428[/C][/ROW]
[ROW][C]22[/C][C]226.4[/C][C]195.797857142857[/C][C]30.6021428571429[/C][/ROW]
[ROW][C]23[/C][C]231.5[/C][C]220.02[/C][C]11.48[/C][/ROW]
[ROW][C]24[/C][C]229.7[/C][C]217.395[/C][C]12.305[/C][/ROW]
[ROW][C]25[/C][C]257.6[/C][C]281.62[/C][C]-24.02[/C][/ROW]
[ROW][C]26[/C][C]260[/C][C]286.32[/C][C]-26.3200000000001[/C][/ROW]
[ROW][C]27[/C][C]264.4[/C][C]294.9[/C][C]-30.5[/C][/ROW]
[ROW][C]28[/C][C]268.8[/C][C]273.127857142857[/C][C]-4.32785714285713[/C][/ROW]
[ROW][C]29[/C][C]271.4[/C][C]272.667857142857[/C][C]-1.26785714285715[/C][/ROW]
[ROW][C]30[/C][C]273.8[/C][C]268.987857142857[/C][C]4.81214285714285[/C][/ROW]
[ROW][C]31[/C][C]277.4[/C][C]271.627857142857[/C][C]5.77214285714282[/C][/ROW]
[ROW][C]32[/C][C]268.2[/C][C]270.347857142857[/C][C]-2.14785714285716[/C][/ROW]
[ROW][C]33[/C][C]264.6[/C][C]260.467857142857[/C][C]4.13214285714290[/C][/ROW]
[ROW][C]34[/C][C]266.6[/C][C]249.607857142857[/C][C]16.9921428571429[/C][/ROW]
[ROW][C]35[/C][C]266[/C][C]273.83[/C][C]-7.83000000000002[/C][/ROW]
[ROW][C]36[/C][C]267.4[/C][C]271.205[/C][C]-3.80500000000003[/C][/ROW]
[ROW][C]37[/C][C]289.8[/C][C]335.43[/C][C]-45.63[/C][/ROW]
[ROW][C]38[/C][C]294[/C][C]340.13[/C][C]-46.1300000000001[/C][/ROW]
[ROW][C]39[/C][C]310.3[/C][C]348.71[/C][C]-38.41[/C][/ROW]
[ROW][C]40[/C][C]311.7[/C][C]326.937857142857[/C][C]-15.2378571428572[/C][/ROW]
[ROW][C]41[/C][C]302.1[/C][C]326.477857142857[/C][C]-24.3778571428571[/C][/ROW]
[ROW][C]42[/C][C]298.2[/C][C]322.797857142857[/C][C]-24.5978571428571[/C][/ROW]
[ROW][C]43[/C][C]299.2[/C][C]325.437857142857[/C][C]-26.2378571428572[/C][/ROW]
[ROW][C]44[/C][C]296.2[/C][C]324.157857142857[/C][C]-27.9578571428572[/C][/ROW]
[ROW][C]45[/C][C]299[/C][C]314.277857142857[/C][C]-15.2778571428571[/C][/ROW]
[ROW][C]46[/C][C]300[/C][C]303.417857142857[/C][C]-3.41785714285712[/C][/ROW]
[ROW][C]47[/C][C]299.4[/C][C]327.64[/C][C]-28.24[/C][/ROW]
[ROW][C]48[/C][C]300.2[/C][C]325.015[/C][C]-24.815[/C][/ROW]
[ROW][C]49[/C][C]470.2[/C][C]389.24[/C][C]80.96[/C][/ROW]
[ROW][C]50[/C][C]472.1[/C][C]393.94[/C][C]78.16[/C][/ROW]
[ROW][C]51[/C][C]484.8[/C][C]402.52[/C][C]82.2800000000001[/C][/ROW]
[ROW][C]52[/C][C]513.4[/C][C]513.108571428572[/C][C]0.291428571428519[/C][/ROW]
[ROW][C]53[/C][C]547.2[/C][C]512.648571428571[/C][C]34.5514285714286[/C][/ROW]
[ROW][C]54[/C][C]548.1[/C][C]508.968571428571[/C][C]39.1314285714286[/C][/ROW]
[ROW][C]55[/C][C]544.7[/C][C]511.608571428571[/C][C]33.0914285714286[/C][/ROW]
[ROW][C]56[/C][C]521.1[/C][C]510.328571428571[/C][C]10.7714285714286[/C][/ROW]
[ROW][C]57[/C][C]459[/C][C]500.448571428571[/C][C]-41.4485714285714[/C][/ROW]
[ROW][C]58[/C][C]413.2[/C][C]489.588571428571[/C][C]-76.3885714285715[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25799&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25799&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
1149.7174-24.3000000000000
2163.6178.700000000000-15.0999999999998
3173.9187.28-13.3800000000001
4164.5165.507857142857-1.00785714285706
5154.2165.047857142857-10.8478571428573
6147.9161.367857142857-13.4678571428571
7159.3164.007857142857-4.7078571428571
8170.3162.7278571428577.57214285714293
9170152.84785714285717.1521428571428
10174.2141.98785714285732.2121428571428
11190.8166.2124.59
12179.9163.58516.315
13240.8227.8112.9899999999999
14241.9232.519.39
15241.1241.090.0100000000000149
16239.6219.31785714285720.2821428571428
17220.8218.8578571428571.94214285714288
18209.3215.177857142857-5.87785714285714
19209.9217.817857142857-7.91785714285714
20228.3216.53785714285711.7621428571429
21242.1206.65785714285735.4421428571428
22226.4195.79785714285730.6021428571429
23231.5220.0211.48
24229.7217.39512.305
25257.6281.62-24.02
26260286.32-26.3200000000001
27264.4294.9-30.5
28268.8273.127857142857-4.32785714285713
29271.4272.667857142857-1.26785714285715
30273.8268.9878571428574.81214285714285
31277.4271.6278571428575.77214285714282
32268.2270.347857142857-2.14785714285716
33264.6260.4678571428574.13214285714290
34266.6249.60785714285716.9921428571429
35266273.83-7.83000000000002
36267.4271.205-3.80500000000003
37289.8335.43-45.63
38294340.13-46.1300000000001
39310.3348.71-38.41
40311.7326.937857142857-15.2378571428572
41302.1326.477857142857-24.3778571428571
42298.2322.797857142857-24.5978571428571
43299.2325.437857142857-26.2378571428572
44296.2324.157857142857-27.9578571428572
45299314.277857142857-15.2778571428571
46300303.417857142857-3.41785714285712
47299.4327.64-28.24
48300.2325.015-24.815
49470.2389.2480.96
50472.1393.9478.16
51484.8402.5282.2800000000001
52513.4513.1085714285720.291428571428519
53547.2512.64857142857134.5514285714286
54548.1508.96857142857139.1314285714286
55544.7511.60857142857133.0914285714286
56521.1510.32857142857110.7714285714286
57459500.448571428571-41.4485714285714
58413.2489.588571428571-76.3885714285715







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.01073568264209080.02147136528418160.98926431735791
180.003357353110877330.006714706221754660.996642646889123
190.002231147654796890.004462295309593780.997768852345203
200.0006384718403433230.001276943680686650.999361528159657
210.0001585078110975740.0003170156221951490.999841492188903
228.64415174600628e-050.0001728830349201260.99991355848254
230.0001014842378812780.0002029684757625550.999898515762119
244.6130350942051e-059.2260701884102e-050.999953869649058
258.54384531814587e-050.0001708769063629170.999914561546819
260.0001003015299801000.0002006030599601990.99989969847002
277.7301677245156e-050.0001546033544903120.999922698322755
282.85963128441043e-055.71926256882086e-050.999971403687156
298.30112464130695e-061.66022492826139e-050.99999169887536
303.28319759050227e-066.56639518100454e-060.99999671680241
311.11465872685438e-062.22931745370876e-060.999998885341273
323.99353772658274e-077.98707545316547e-070.999999600646227
334.34380771246993e-078.68761542493985e-070.999999565619229
342.51750859616211e-065.03501719232422e-060.999997482491404
351.10715910120663e-052.21431820241326e-050.999988928408988
360.0006284119754488270.001256823950897650.99937158802455
370.0004955782343066780.0009911564686133560.999504421765693
380.0003282495036893660.0006564990073787320.99967175049631
390.0001192466399885220.0002384932799770440.999880753360011
403.535182900283e-057.070365800566e-050.999964648170997
412.23379162456083e-054.46758324912165e-050.999977662083754

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0107356826420908 & 0.0214713652841816 & 0.98926431735791 \tabularnewline
18 & 0.00335735311087733 & 0.00671470622175466 & 0.996642646889123 \tabularnewline
19 & 0.00223114765479689 & 0.00446229530959378 & 0.997768852345203 \tabularnewline
20 & 0.000638471840343323 & 0.00127694368068665 & 0.999361528159657 \tabularnewline
21 & 0.000158507811097574 & 0.000317015622195149 & 0.999841492188903 \tabularnewline
22 & 8.64415174600628e-05 & 0.000172883034920126 & 0.99991355848254 \tabularnewline
23 & 0.000101484237881278 & 0.000202968475762555 & 0.999898515762119 \tabularnewline
24 & 4.6130350942051e-05 & 9.2260701884102e-05 & 0.999953869649058 \tabularnewline
25 & 8.54384531814587e-05 & 0.000170876906362917 & 0.999914561546819 \tabularnewline
26 & 0.000100301529980100 & 0.000200603059960199 & 0.99989969847002 \tabularnewline
27 & 7.7301677245156e-05 & 0.000154603354490312 & 0.999922698322755 \tabularnewline
28 & 2.85963128441043e-05 & 5.71926256882086e-05 & 0.999971403687156 \tabularnewline
29 & 8.30112464130695e-06 & 1.66022492826139e-05 & 0.99999169887536 \tabularnewline
30 & 3.28319759050227e-06 & 6.56639518100454e-06 & 0.99999671680241 \tabularnewline
31 & 1.11465872685438e-06 & 2.22931745370876e-06 & 0.999998885341273 \tabularnewline
32 & 3.99353772658274e-07 & 7.98707545316547e-07 & 0.999999600646227 \tabularnewline
33 & 4.34380771246993e-07 & 8.68761542493985e-07 & 0.999999565619229 \tabularnewline
34 & 2.51750859616211e-06 & 5.03501719232422e-06 & 0.999997482491404 \tabularnewline
35 & 1.10715910120663e-05 & 2.21431820241326e-05 & 0.999988928408988 \tabularnewline
36 & 0.000628411975448827 & 0.00125682395089765 & 0.99937158802455 \tabularnewline
37 & 0.000495578234306678 & 0.000991156468613356 & 0.999504421765693 \tabularnewline
38 & 0.000328249503689366 & 0.000656499007378732 & 0.99967175049631 \tabularnewline
39 & 0.000119246639988522 & 0.000238493279977044 & 0.999880753360011 \tabularnewline
40 & 3.535182900283e-05 & 7.070365800566e-05 & 0.999964648170997 \tabularnewline
41 & 2.23379162456083e-05 & 4.46758324912165e-05 & 0.999977662083754 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25799&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.0107356826420908[/C][C]0.0214713652841816[/C][C]0.98926431735791[/C][/ROW]
[ROW][C]18[/C][C]0.00335735311087733[/C][C]0.00671470622175466[/C][C]0.996642646889123[/C][/ROW]
[ROW][C]19[/C][C]0.00223114765479689[/C][C]0.00446229530959378[/C][C]0.997768852345203[/C][/ROW]
[ROW][C]20[/C][C]0.000638471840343323[/C][C]0.00127694368068665[/C][C]0.999361528159657[/C][/ROW]
[ROW][C]21[/C][C]0.000158507811097574[/C][C]0.000317015622195149[/C][C]0.999841492188903[/C][/ROW]
[ROW][C]22[/C][C]8.64415174600628e-05[/C][C]0.000172883034920126[/C][C]0.99991355848254[/C][/ROW]
[ROW][C]23[/C][C]0.000101484237881278[/C][C]0.000202968475762555[/C][C]0.999898515762119[/C][/ROW]
[ROW][C]24[/C][C]4.6130350942051e-05[/C][C]9.2260701884102e-05[/C][C]0.999953869649058[/C][/ROW]
[ROW][C]25[/C][C]8.54384531814587e-05[/C][C]0.000170876906362917[/C][C]0.999914561546819[/C][/ROW]
[ROW][C]26[/C][C]0.000100301529980100[/C][C]0.000200603059960199[/C][C]0.99989969847002[/C][/ROW]
[ROW][C]27[/C][C]7.7301677245156e-05[/C][C]0.000154603354490312[/C][C]0.999922698322755[/C][/ROW]
[ROW][C]28[/C][C]2.85963128441043e-05[/C][C]5.71926256882086e-05[/C][C]0.999971403687156[/C][/ROW]
[ROW][C]29[/C][C]8.30112464130695e-06[/C][C]1.66022492826139e-05[/C][C]0.99999169887536[/C][/ROW]
[ROW][C]30[/C][C]3.28319759050227e-06[/C][C]6.56639518100454e-06[/C][C]0.99999671680241[/C][/ROW]
[ROW][C]31[/C][C]1.11465872685438e-06[/C][C]2.22931745370876e-06[/C][C]0.999998885341273[/C][/ROW]
[ROW][C]32[/C][C]3.99353772658274e-07[/C][C]7.98707545316547e-07[/C][C]0.999999600646227[/C][/ROW]
[ROW][C]33[/C][C]4.34380771246993e-07[/C][C]8.68761542493985e-07[/C][C]0.999999565619229[/C][/ROW]
[ROW][C]34[/C][C]2.51750859616211e-06[/C][C]5.03501719232422e-06[/C][C]0.999997482491404[/C][/ROW]
[ROW][C]35[/C][C]1.10715910120663e-05[/C][C]2.21431820241326e-05[/C][C]0.999988928408988[/C][/ROW]
[ROW][C]36[/C][C]0.000628411975448827[/C][C]0.00125682395089765[/C][C]0.99937158802455[/C][/ROW]
[ROW][C]37[/C][C]0.000495578234306678[/C][C]0.000991156468613356[/C][C]0.999504421765693[/C][/ROW]
[ROW][C]38[/C][C]0.000328249503689366[/C][C]0.000656499007378732[/C][C]0.99967175049631[/C][/ROW]
[ROW][C]39[/C][C]0.000119246639988522[/C][C]0.000238493279977044[/C][C]0.999880753360011[/C][/ROW]
[ROW][C]40[/C][C]3.535182900283e-05[/C][C]7.070365800566e-05[/C][C]0.999964648170997[/C][/ROW]
[ROW][C]41[/C][C]2.23379162456083e-05[/C][C]4.46758324912165e-05[/C][C]0.999977662083754[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25799&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.01073568264209080.02147136528418160.98926431735791
180.003357353110877330.006714706221754660.996642646889123
190.002231147654796890.004462295309593780.997768852345203
200.0006384718403433230.001276943680686650.999361528159657
210.0001585078110975740.0003170156221951490.999841492188903
228.64415174600628e-050.0001728830349201260.99991355848254
230.0001014842378812780.0002029684757625550.999898515762119
244.6130350942051e-059.2260701884102e-050.999953869649058
258.54384531814587e-050.0001708769063629170.999914561546819
260.0001003015299801000.0002006030599601990.99989969847002
277.7301677245156e-050.0001546033544903120.999922698322755
282.85963128441043e-055.71926256882086e-050.999971403687156
298.30112464130695e-061.66022492826139e-050.99999169887536
303.28319759050227e-066.56639518100454e-060.99999671680241
311.11465872685438e-062.22931745370876e-060.999998885341273
323.99353772658274e-077.98707545316547e-070.999999600646227
334.34380771246993e-078.68761542493985e-070.999999565619229
342.51750859616211e-065.03501719232422e-060.999997482491404
351.10715910120663e-052.21431820241326e-050.999988928408988
360.0006284119754488270.001256823950897650.99937158802455
370.0004955782343066780.0009911564686133560.999504421765693
380.0003282495036893660.0006564990073787320.99967175049631
390.0001192466399885220.0002384932799770440.999880753360011
403.535182900283e-057.070365800566e-050.999964648170997
412.23379162456083e-054.46758324912165e-050.999977662083754







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level240.96NOK
5% type I error level251NOK
10% type I error level251NOK

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

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



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