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 computationSat, 28 Nov 2009 01:33:23 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/28/t1259397252m3xor6v1qr8oczr.htm/, Retrieved Sat, 27 Apr 2024 10:44:50 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61374, Retrieved Sat, 27 Apr 2024 10:44:50 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact152
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [Workshop 7] [2009-11-19 16:33:52] [85be98bd9ebcfd4d73e77f8552419c9a]
-    D      [Multiple Regression] [1e link] [2009-11-20 15:40:59] [4fe1472705bb0a32f118ba3ca90ffa8e]
-   PD          [Multiple Regression] [3e link] [2009-11-28 08:33:23] [ee8fc1691ecec7724e0ca78f0c288737] [Current]
Feedback Forum

Post a new message
Dataseries X:
130	0
136.7	0
138.1	0
139.5	0
140.4	0
144.6	0
151.4	0
147.9	0
141.5	0
143.8	0
143.6	0
150.5	0
150.1	0
154.9	0
162.1	0
176.7	0
186.6	0
194.8	0
196.3	0
228.8	0
267.2	0
237.2	0
254.7	0
258.2	0
257.9	0
269.6	0
266.9	0
269.6	0
253.9	0
258.6	0
274.2	0
301.5	0
304.5	0
285.1	0
287.7	0
265.5	0
264.1	0
276.1	0
258.9	0
239.1	0
250.1	1
276.8	1
297.6	1
295.4	1
283	1
275.8	1
279.7	1
254.6	1
234.6	1
176.9	1
148.1	1
122.7	1
124.9	1
121.6	1
128.4	1
144.5	1
151.8	1
167.1	1
173.8	1
203.7	1
199.8	1




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61374&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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y(t)[t] = + 157.120625 -106.098437500000`X(t)`[t] -11.9595138888888M1[t] -13.8189236111112M2[t] -24.945M3[t] -33.3510763888889M4[t] -13.5774652777778M5[t] -8.58354166666668M6[t] -1.38961805555559M7[t] + 9.54430555555554M8[t] + 12.4182291666666M9[t] + 1.51215277777778M10[t] + 4.50607638888888M11[t] + 3.10607638888889t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y(t)[t] =  +  157.120625 -106.098437500000`X(t)`[t] -11.9595138888888M1[t] -13.8189236111112M2[t] -24.945M3[t] -33.3510763888889M4[t] -13.5774652777778M5[t] -8.58354166666668M6[t] -1.38961805555559M7[t] +  9.54430555555554M8[t] +  12.4182291666666M9[t] +  1.51215277777778M10[t] +  4.50607638888888M11[t] +  3.10607638888889t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61374&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y(t)[t] =  +  157.120625 -106.098437500000`X(t)`[t] -11.9595138888888M1[t] -13.8189236111112M2[t] -24.945M3[t] -33.3510763888889M4[t] -13.5774652777778M5[t] -8.58354166666668M6[t] -1.38961805555559M7[t] +  9.54430555555554M8[t] +  12.4182291666666M9[t] +  1.51215277777778M10[t] +  4.50607638888888M11[t] +  3.10607638888889t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61374&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y(t)[t] = + 157.120625 -106.098437500000`X(t)`[t] -11.9595138888888M1[t] -13.8189236111112M2[t] -24.945M3[t] -33.3510763888889M4[t] -13.5774652777778M5[t] -8.58354166666668M6[t] -1.38961805555559M7[t] + 9.54430555555554M8[t] + 12.4182291666666M9[t] + 1.51215277777778M10[t] + 4.50607638888888M11[t] + 3.10607638888889t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)157.12062531.4915944.98939e-064e-06
`X(t)`-106.09843750000027.467095-3.86270.0003420.000171
M1-11.959513888888834.440599-0.34730.7299530.364977
M2-13.818923611111236.131493-0.38250.7038430.351921
M3-24.94536.080203-0.69140.492730.246365
M4-33.351076388888936.044044-0.92530.3595440.179772
M5-13.577465277777836.255018-0.37450.7097180.354859
M6-8.5835416666666836.156656-0.23740.8133790.40669
M7-1.3896180555555936.073217-0.03850.9694350.484717
M89.5443055555555436.0048060.26510.7921040.396052
M912.418229166666635.9515060.34540.7313230.365661
M101.5121527777777835.9133870.04210.9665930.483296
M114.5060763888888835.8904960.12560.9006230.450312
t3.106076388888890.7401944.19630.0001196e-05

\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) & 157.120625 & 31.491594 & 4.9893 & 9e-06 & 4e-06 \tabularnewline
`X(t)` & -106.098437500000 & 27.467095 & -3.8627 & 0.000342 & 0.000171 \tabularnewline
M1 & -11.9595138888888 & 34.440599 & -0.3473 & 0.729953 & 0.364977 \tabularnewline
M2 & -13.8189236111112 & 36.131493 & -0.3825 & 0.703843 & 0.351921 \tabularnewline
M3 & -24.945 & 36.080203 & -0.6914 & 0.49273 & 0.246365 \tabularnewline
M4 & -33.3510763888889 & 36.044044 & -0.9253 & 0.359544 & 0.179772 \tabularnewline
M5 & -13.5774652777778 & 36.255018 & -0.3745 & 0.709718 & 0.354859 \tabularnewline
M6 & -8.58354166666668 & 36.156656 & -0.2374 & 0.813379 & 0.40669 \tabularnewline
M7 & -1.38961805555559 & 36.073217 & -0.0385 & 0.969435 & 0.484717 \tabularnewline
M8 & 9.54430555555554 & 36.004806 & 0.2651 & 0.792104 & 0.396052 \tabularnewline
M9 & 12.4182291666666 & 35.951506 & 0.3454 & 0.731323 & 0.365661 \tabularnewline
M10 & 1.51215277777778 & 35.913387 & 0.0421 & 0.966593 & 0.483296 \tabularnewline
M11 & 4.50607638888888 & 35.890496 & 0.1256 & 0.900623 & 0.450312 \tabularnewline
t & 3.10607638888889 & 0.740194 & 4.1963 & 0.000119 & 6e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61374&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]157.120625[/C][C]31.491594[/C][C]4.9893[/C][C]9e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]`X(t)`[/C][C]-106.098437500000[/C][C]27.467095[/C][C]-3.8627[/C][C]0.000342[/C][C]0.000171[/C][/ROW]
[ROW][C]M1[/C][C]-11.9595138888888[/C][C]34.440599[/C][C]-0.3473[/C][C]0.729953[/C][C]0.364977[/C][/ROW]
[ROW][C]M2[/C][C]-13.8189236111112[/C][C]36.131493[/C][C]-0.3825[/C][C]0.703843[/C][C]0.351921[/C][/ROW]
[ROW][C]M3[/C][C]-24.945[/C][C]36.080203[/C][C]-0.6914[/C][C]0.49273[/C][C]0.246365[/C][/ROW]
[ROW][C]M4[/C][C]-33.3510763888889[/C][C]36.044044[/C][C]-0.9253[/C][C]0.359544[/C][C]0.179772[/C][/ROW]
[ROW][C]M5[/C][C]-13.5774652777778[/C][C]36.255018[/C][C]-0.3745[/C][C]0.709718[/C][C]0.354859[/C][/ROW]
[ROW][C]M6[/C][C]-8.58354166666668[/C][C]36.156656[/C][C]-0.2374[/C][C]0.813379[/C][C]0.40669[/C][/ROW]
[ROW][C]M7[/C][C]-1.38961805555559[/C][C]36.073217[/C][C]-0.0385[/C][C]0.969435[/C][C]0.484717[/C][/ROW]
[ROW][C]M8[/C][C]9.54430555555554[/C][C]36.004806[/C][C]0.2651[/C][C]0.792104[/C][C]0.396052[/C][/ROW]
[ROW][C]M9[/C][C]12.4182291666666[/C][C]35.951506[/C][C]0.3454[/C][C]0.731323[/C][C]0.365661[/C][/ROW]
[ROW][C]M10[/C][C]1.51215277777778[/C][C]35.913387[/C][C]0.0421[/C][C]0.966593[/C][C]0.483296[/C][/ROW]
[ROW][C]M11[/C][C]4.50607638888888[/C][C]35.890496[/C][C]0.1256[/C][C]0.900623[/C][C]0.450312[/C][/ROW]
[ROW][C]t[/C][C]3.10607638888889[/C][C]0.740194[/C][C]4.1963[/C][C]0.000119[/C][C]6e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61374&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61374&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)157.12062531.4915944.98939e-064e-06
`X(t)`-106.09843750000027.467095-3.86270.0003420.000171
M1-11.959513888888834.440599-0.34730.7299530.364977
M2-13.818923611111236.131493-0.38250.7038430.351921
M3-24.94536.080203-0.69140.492730.246365
M4-33.351076388888936.044044-0.92530.3595440.179772
M5-13.577465277777836.255018-0.37450.7097180.354859
M6-8.5835416666666836.156656-0.23740.8133790.40669
M7-1.3896180555555936.073217-0.03850.9694350.484717
M89.5443055555555436.0048060.26510.7921040.396052
M912.418229166666635.9515060.34540.7313230.365661
M101.5121527777777835.9133870.04210.9665930.483296
M114.5060763888888835.8904960.12560.9006230.450312
t3.106076388888890.7401944.19630.0001196e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.564508949422612
R-squared0.318670353978221
Adjusted R-squared0.130217473163687
F-TEST (value)1.69098160028575
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.0945400973921531
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation56.7357872956924
Sum Squared Residuals151290.629322917

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.564508949422612 \tabularnewline
R-squared & 0.318670353978221 \tabularnewline
Adjusted R-squared & 0.130217473163687 \tabularnewline
F-TEST (value) & 1.69098160028575 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.0945400973921531 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 56.7357872956924 \tabularnewline
Sum Squared Residuals & 151290.629322917 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61374&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.564508949422612[/C][/ROW]
[ROW][C]R-squared[/C][C]0.318670353978221[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.130217473163687[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.69098160028575[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.0945400973921531[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]56.7357872956924[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]151290.629322917[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61374&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61374&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.564508949422612
R-squared0.318670353978221
Adjusted R-squared0.130217473163687
F-TEST (value)1.69098160028575
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.0945400973921531
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation56.7357872956924
Sum Squared Residuals151290.629322917







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1130148.267187500000-18.2671874999996
2136.7149.513854166667-12.8138541666669
3138.1141.493854166667-3.39385416666668
4139.5136.1938541666673.30614583333337
5140.4159.073541666667-18.6735416666667
6144.6167.173541666667-22.5735416666666
7151.4177.473541666667-26.0735416666667
8147.9191.513541666667-43.6135416666667
9141.5197.493541666667-55.9935416666667
10143.8189.693541666667-45.8935416666667
11143.6195.793541666667-52.1935416666667
12150.5194.393541666667-43.8935416666667
13150.1185.540104166667-35.4401041666668
14154.9186.786770833333-31.8867708333332
15162.1178.766770833333-16.6667708333333
16176.7173.4667708333333.23322916666663
17186.6196.346458333333-9.74645833333334
18194.8204.446458333333-9.64645833333334
19196.3214.746458333333-18.4464583333333
20228.8228.7864583333330.0135416666666783
21267.2234.76645833333332.4335416666666
22237.2226.96645833333310.2335416666666
23254.7233.06645833333321.6335416666666
24258.2231.66645833333326.5335416666666
25257.9222.81302083333335.0869791666666
26269.6224.059687545.5403125
27266.9216.039687550.8603125
28269.6210.739687558.8603125
29253.9233.61937520.2806250000000
30258.6241.71937516.8806250000000
31274.2252.01937522.180625
32301.5266.05937535.440625
33304.5272.03937532.460625
34285.1264.23937520.8606250000000
35287.7270.33937517.360625
36265.5268.939375-3.439375
37264.1260.08593754.01406249999994
38276.1261.33260416666714.7673958333334
39258.9253.3126041666675.58739583333336
40239.1248.012604166667-8.91260416666664
41250.1164.79385416666785.3061458333333
42276.8172.893854166667103.906145833333
43297.6183.193854166667114.406145833333
44295.4197.23385416666798.1661458333333
45283203.21385416666779.7861458333333
46275.8195.41385416666780.3861458333333
47279.7201.51385416666778.1861458333333
48254.6200.11385416666754.4861458333333
49234.6191.26041666666743.3395833333333
50176.9192.507083333333-15.6070833333333
51148.1184.487083333333-36.3870833333333
52122.7179.187083333333-56.4870833333333
53124.9202.066770833333-77.1667708333333
54121.6210.166770833333-88.5667708333334
55128.4220.466770833333-92.0667708333333
56144.5234.506770833333-90.0067708333333
57151.8240.486770833333-88.6867708333333
58167.1232.686770833333-65.5867708333333
59173.8238.786770833333-64.9867708333333
60203.7237.386770833333-33.6867708333333
61199.8228.533333333333-28.7333333333334

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 130 & 148.267187500000 & -18.2671874999996 \tabularnewline
2 & 136.7 & 149.513854166667 & -12.8138541666669 \tabularnewline
3 & 138.1 & 141.493854166667 & -3.39385416666668 \tabularnewline
4 & 139.5 & 136.193854166667 & 3.30614583333337 \tabularnewline
5 & 140.4 & 159.073541666667 & -18.6735416666667 \tabularnewline
6 & 144.6 & 167.173541666667 & -22.5735416666666 \tabularnewline
7 & 151.4 & 177.473541666667 & -26.0735416666667 \tabularnewline
8 & 147.9 & 191.513541666667 & -43.6135416666667 \tabularnewline
9 & 141.5 & 197.493541666667 & -55.9935416666667 \tabularnewline
10 & 143.8 & 189.693541666667 & -45.8935416666667 \tabularnewline
11 & 143.6 & 195.793541666667 & -52.1935416666667 \tabularnewline
12 & 150.5 & 194.393541666667 & -43.8935416666667 \tabularnewline
13 & 150.1 & 185.540104166667 & -35.4401041666668 \tabularnewline
14 & 154.9 & 186.786770833333 & -31.8867708333332 \tabularnewline
15 & 162.1 & 178.766770833333 & -16.6667708333333 \tabularnewline
16 & 176.7 & 173.466770833333 & 3.23322916666663 \tabularnewline
17 & 186.6 & 196.346458333333 & -9.74645833333334 \tabularnewline
18 & 194.8 & 204.446458333333 & -9.64645833333334 \tabularnewline
19 & 196.3 & 214.746458333333 & -18.4464583333333 \tabularnewline
20 & 228.8 & 228.786458333333 & 0.0135416666666783 \tabularnewline
21 & 267.2 & 234.766458333333 & 32.4335416666666 \tabularnewline
22 & 237.2 & 226.966458333333 & 10.2335416666666 \tabularnewline
23 & 254.7 & 233.066458333333 & 21.6335416666666 \tabularnewline
24 & 258.2 & 231.666458333333 & 26.5335416666666 \tabularnewline
25 & 257.9 & 222.813020833333 & 35.0869791666666 \tabularnewline
26 & 269.6 & 224.0596875 & 45.5403125 \tabularnewline
27 & 266.9 & 216.0396875 & 50.8603125 \tabularnewline
28 & 269.6 & 210.7396875 & 58.8603125 \tabularnewline
29 & 253.9 & 233.619375 & 20.2806250000000 \tabularnewline
30 & 258.6 & 241.719375 & 16.8806250000000 \tabularnewline
31 & 274.2 & 252.019375 & 22.180625 \tabularnewline
32 & 301.5 & 266.059375 & 35.440625 \tabularnewline
33 & 304.5 & 272.039375 & 32.460625 \tabularnewline
34 & 285.1 & 264.239375 & 20.8606250000000 \tabularnewline
35 & 287.7 & 270.339375 & 17.360625 \tabularnewline
36 & 265.5 & 268.939375 & -3.439375 \tabularnewline
37 & 264.1 & 260.0859375 & 4.01406249999994 \tabularnewline
38 & 276.1 & 261.332604166667 & 14.7673958333334 \tabularnewline
39 & 258.9 & 253.312604166667 & 5.58739583333336 \tabularnewline
40 & 239.1 & 248.012604166667 & -8.91260416666664 \tabularnewline
41 & 250.1 & 164.793854166667 & 85.3061458333333 \tabularnewline
42 & 276.8 & 172.893854166667 & 103.906145833333 \tabularnewline
43 & 297.6 & 183.193854166667 & 114.406145833333 \tabularnewline
44 & 295.4 & 197.233854166667 & 98.1661458333333 \tabularnewline
45 & 283 & 203.213854166667 & 79.7861458333333 \tabularnewline
46 & 275.8 & 195.413854166667 & 80.3861458333333 \tabularnewline
47 & 279.7 & 201.513854166667 & 78.1861458333333 \tabularnewline
48 & 254.6 & 200.113854166667 & 54.4861458333333 \tabularnewline
49 & 234.6 & 191.260416666667 & 43.3395833333333 \tabularnewline
50 & 176.9 & 192.507083333333 & -15.6070833333333 \tabularnewline
51 & 148.1 & 184.487083333333 & -36.3870833333333 \tabularnewline
52 & 122.7 & 179.187083333333 & -56.4870833333333 \tabularnewline
53 & 124.9 & 202.066770833333 & -77.1667708333333 \tabularnewline
54 & 121.6 & 210.166770833333 & -88.5667708333334 \tabularnewline
55 & 128.4 & 220.466770833333 & -92.0667708333333 \tabularnewline
56 & 144.5 & 234.506770833333 & -90.0067708333333 \tabularnewline
57 & 151.8 & 240.486770833333 & -88.6867708333333 \tabularnewline
58 & 167.1 & 232.686770833333 & -65.5867708333333 \tabularnewline
59 & 173.8 & 238.786770833333 & -64.9867708333333 \tabularnewline
60 & 203.7 & 237.386770833333 & -33.6867708333333 \tabularnewline
61 & 199.8 & 228.533333333333 & -28.7333333333334 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61374&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]130[/C][C]148.267187500000[/C][C]-18.2671874999996[/C][/ROW]
[ROW][C]2[/C][C]136.7[/C][C]149.513854166667[/C][C]-12.8138541666669[/C][/ROW]
[ROW][C]3[/C][C]138.1[/C][C]141.493854166667[/C][C]-3.39385416666668[/C][/ROW]
[ROW][C]4[/C][C]139.5[/C][C]136.193854166667[/C][C]3.30614583333337[/C][/ROW]
[ROW][C]5[/C][C]140.4[/C][C]159.073541666667[/C][C]-18.6735416666667[/C][/ROW]
[ROW][C]6[/C][C]144.6[/C][C]167.173541666667[/C][C]-22.5735416666666[/C][/ROW]
[ROW][C]7[/C][C]151.4[/C][C]177.473541666667[/C][C]-26.0735416666667[/C][/ROW]
[ROW][C]8[/C][C]147.9[/C][C]191.513541666667[/C][C]-43.6135416666667[/C][/ROW]
[ROW][C]9[/C][C]141.5[/C][C]197.493541666667[/C][C]-55.9935416666667[/C][/ROW]
[ROW][C]10[/C][C]143.8[/C][C]189.693541666667[/C][C]-45.8935416666667[/C][/ROW]
[ROW][C]11[/C][C]143.6[/C][C]195.793541666667[/C][C]-52.1935416666667[/C][/ROW]
[ROW][C]12[/C][C]150.5[/C][C]194.393541666667[/C][C]-43.8935416666667[/C][/ROW]
[ROW][C]13[/C][C]150.1[/C][C]185.540104166667[/C][C]-35.4401041666668[/C][/ROW]
[ROW][C]14[/C][C]154.9[/C][C]186.786770833333[/C][C]-31.8867708333332[/C][/ROW]
[ROW][C]15[/C][C]162.1[/C][C]178.766770833333[/C][C]-16.6667708333333[/C][/ROW]
[ROW][C]16[/C][C]176.7[/C][C]173.466770833333[/C][C]3.23322916666663[/C][/ROW]
[ROW][C]17[/C][C]186.6[/C][C]196.346458333333[/C][C]-9.74645833333334[/C][/ROW]
[ROW][C]18[/C][C]194.8[/C][C]204.446458333333[/C][C]-9.64645833333334[/C][/ROW]
[ROW][C]19[/C][C]196.3[/C][C]214.746458333333[/C][C]-18.4464583333333[/C][/ROW]
[ROW][C]20[/C][C]228.8[/C][C]228.786458333333[/C][C]0.0135416666666783[/C][/ROW]
[ROW][C]21[/C][C]267.2[/C][C]234.766458333333[/C][C]32.4335416666666[/C][/ROW]
[ROW][C]22[/C][C]237.2[/C][C]226.966458333333[/C][C]10.2335416666666[/C][/ROW]
[ROW][C]23[/C][C]254.7[/C][C]233.066458333333[/C][C]21.6335416666666[/C][/ROW]
[ROW][C]24[/C][C]258.2[/C][C]231.666458333333[/C][C]26.5335416666666[/C][/ROW]
[ROW][C]25[/C][C]257.9[/C][C]222.813020833333[/C][C]35.0869791666666[/C][/ROW]
[ROW][C]26[/C][C]269.6[/C][C]224.0596875[/C][C]45.5403125[/C][/ROW]
[ROW][C]27[/C][C]266.9[/C][C]216.0396875[/C][C]50.8603125[/C][/ROW]
[ROW][C]28[/C][C]269.6[/C][C]210.7396875[/C][C]58.8603125[/C][/ROW]
[ROW][C]29[/C][C]253.9[/C][C]233.619375[/C][C]20.2806250000000[/C][/ROW]
[ROW][C]30[/C][C]258.6[/C][C]241.719375[/C][C]16.8806250000000[/C][/ROW]
[ROW][C]31[/C][C]274.2[/C][C]252.019375[/C][C]22.180625[/C][/ROW]
[ROW][C]32[/C][C]301.5[/C][C]266.059375[/C][C]35.440625[/C][/ROW]
[ROW][C]33[/C][C]304.5[/C][C]272.039375[/C][C]32.460625[/C][/ROW]
[ROW][C]34[/C][C]285.1[/C][C]264.239375[/C][C]20.8606250000000[/C][/ROW]
[ROW][C]35[/C][C]287.7[/C][C]270.339375[/C][C]17.360625[/C][/ROW]
[ROW][C]36[/C][C]265.5[/C][C]268.939375[/C][C]-3.439375[/C][/ROW]
[ROW][C]37[/C][C]264.1[/C][C]260.0859375[/C][C]4.01406249999994[/C][/ROW]
[ROW][C]38[/C][C]276.1[/C][C]261.332604166667[/C][C]14.7673958333334[/C][/ROW]
[ROW][C]39[/C][C]258.9[/C][C]253.312604166667[/C][C]5.58739583333336[/C][/ROW]
[ROW][C]40[/C][C]239.1[/C][C]248.012604166667[/C][C]-8.91260416666664[/C][/ROW]
[ROW][C]41[/C][C]250.1[/C][C]164.793854166667[/C][C]85.3061458333333[/C][/ROW]
[ROW][C]42[/C][C]276.8[/C][C]172.893854166667[/C][C]103.906145833333[/C][/ROW]
[ROW][C]43[/C][C]297.6[/C][C]183.193854166667[/C][C]114.406145833333[/C][/ROW]
[ROW][C]44[/C][C]295.4[/C][C]197.233854166667[/C][C]98.1661458333333[/C][/ROW]
[ROW][C]45[/C][C]283[/C][C]203.213854166667[/C][C]79.7861458333333[/C][/ROW]
[ROW][C]46[/C][C]275.8[/C][C]195.413854166667[/C][C]80.3861458333333[/C][/ROW]
[ROW][C]47[/C][C]279.7[/C][C]201.513854166667[/C][C]78.1861458333333[/C][/ROW]
[ROW][C]48[/C][C]254.6[/C][C]200.113854166667[/C][C]54.4861458333333[/C][/ROW]
[ROW][C]49[/C][C]234.6[/C][C]191.260416666667[/C][C]43.3395833333333[/C][/ROW]
[ROW][C]50[/C][C]176.9[/C][C]192.507083333333[/C][C]-15.6070833333333[/C][/ROW]
[ROW][C]51[/C][C]148.1[/C][C]184.487083333333[/C][C]-36.3870833333333[/C][/ROW]
[ROW][C]52[/C][C]122.7[/C][C]179.187083333333[/C][C]-56.4870833333333[/C][/ROW]
[ROW][C]53[/C][C]124.9[/C][C]202.066770833333[/C][C]-77.1667708333333[/C][/ROW]
[ROW][C]54[/C][C]121.6[/C][C]210.166770833333[/C][C]-88.5667708333334[/C][/ROW]
[ROW][C]55[/C][C]128.4[/C][C]220.466770833333[/C][C]-92.0667708333333[/C][/ROW]
[ROW][C]56[/C][C]144.5[/C][C]234.506770833333[/C][C]-90.0067708333333[/C][/ROW]
[ROW][C]57[/C][C]151.8[/C][C]240.486770833333[/C][C]-88.6867708333333[/C][/ROW]
[ROW][C]58[/C][C]167.1[/C][C]232.686770833333[/C][C]-65.5867708333333[/C][/ROW]
[ROW][C]59[/C][C]173.8[/C][C]238.786770833333[/C][C]-64.9867708333333[/C][/ROW]
[ROW][C]60[/C][C]203.7[/C][C]237.386770833333[/C][C]-33.6867708333333[/C][/ROW]
[ROW][C]61[/C][C]199.8[/C][C]228.533333333333[/C][C]-28.7333333333334[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61374&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61374&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
1130148.267187500000-18.2671874999996
2136.7149.513854166667-12.8138541666669
3138.1141.493854166667-3.39385416666668
4139.5136.1938541666673.30614583333337
5140.4159.073541666667-18.6735416666667
6144.6167.173541666667-22.5735416666666
7151.4177.473541666667-26.0735416666667
8147.9191.513541666667-43.6135416666667
9141.5197.493541666667-55.9935416666667
10143.8189.693541666667-45.8935416666667
11143.6195.793541666667-52.1935416666667
12150.5194.393541666667-43.8935416666667
13150.1185.540104166667-35.4401041666668
14154.9186.786770833333-31.8867708333332
15162.1178.766770833333-16.6667708333333
16176.7173.4667708333333.23322916666663
17186.6196.346458333333-9.74645833333334
18194.8204.446458333333-9.64645833333334
19196.3214.746458333333-18.4464583333333
20228.8228.7864583333330.0135416666666783
21267.2234.76645833333332.4335416666666
22237.2226.96645833333310.2335416666666
23254.7233.06645833333321.6335416666666
24258.2231.66645833333326.5335416666666
25257.9222.81302083333335.0869791666666
26269.6224.059687545.5403125
27266.9216.039687550.8603125
28269.6210.739687558.8603125
29253.9233.61937520.2806250000000
30258.6241.71937516.8806250000000
31274.2252.01937522.180625
32301.5266.05937535.440625
33304.5272.03937532.460625
34285.1264.23937520.8606250000000
35287.7270.33937517.360625
36265.5268.939375-3.439375
37264.1260.08593754.01406249999994
38276.1261.33260416666714.7673958333334
39258.9253.3126041666675.58739583333336
40239.1248.012604166667-8.91260416666664
41250.1164.79385416666785.3061458333333
42276.8172.893854166667103.906145833333
43297.6183.193854166667114.406145833333
44295.4197.23385416666798.1661458333333
45283203.21385416666779.7861458333333
46275.8195.41385416666780.3861458333333
47279.7201.51385416666778.1861458333333
48254.6200.11385416666754.4861458333333
49234.6191.26041666666743.3395833333333
50176.9192.507083333333-15.6070833333333
51148.1184.487083333333-36.3870833333333
52122.7179.187083333333-56.4870833333333
53124.9202.066770833333-77.1667708333333
54121.6210.166770833333-88.5667708333334
55128.4220.466770833333-92.0667708333333
56144.5234.506770833333-90.0067708333333
57151.8240.486770833333-88.6867708333333
58167.1232.686770833333-65.5867708333333
59173.8238.786770833333-64.9867708333333
60203.7237.386770833333-33.6867708333333
61199.8228.533333333333-28.7333333333334







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.009449634797937120.01889926959587420.990550365202063
180.004246976051625080.008493952103250150.995753023948375
190.001364076825955920.002728153651911830.998635923174044
200.005813181266338010.01162636253267600.994186818733662
210.05774047300213150.1154809460042630.942259526997869
220.06564031250012410.1312806250002480.934359687499876
230.1039018936398300.2078037872796590.89609810636017
240.1528275060684690.3056550121369380.847172493931531
250.2176312783362730.4352625566725450.782368721663727
260.2145965577570490.4291931155140980.785403442242951
270.181288639868550.36257727973710.81871136013145
280.129820779548130.259641559096260.87017922045187
290.09006778078870170.1801355615774030.909932219211298
300.06311926429716890.1262385285943380.936880735702831
310.04081314531908930.08162629063817850.95918685468091
320.02396375989018510.04792751978037020.976036240109815
330.01285899102243230.02571798204486450.987141008977568
340.007786818155491050.01557363631098210.992213181844509
350.005470389218431330.01094077843686270.994529610781569
360.01743046189656830.03486092379313660.982569538103432
370.1577626225486400.3155252450972790.84223737745136
380.1335402446605590.2670804893211180.86645975533944
390.1303087845185860.2606175690371730.869691215481414
400.1585222978931210.3170445957862410.84147770210688
410.09800790393810920.1960158078762180.90199209606189
420.0836046716755890.1672093433511780.916395328324411
430.1286891317695830.2573782635391650.871310868230417
440.1723504865737630.3447009731475260.827649513426237

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00944963479793712 & 0.0188992695958742 & 0.990550365202063 \tabularnewline
18 & 0.00424697605162508 & 0.00849395210325015 & 0.995753023948375 \tabularnewline
19 & 0.00136407682595592 & 0.00272815365191183 & 0.998635923174044 \tabularnewline
20 & 0.00581318126633801 & 0.0116263625326760 & 0.994186818733662 \tabularnewline
21 & 0.0577404730021315 & 0.115480946004263 & 0.942259526997869 \tabularnewline
22 & 0.0656403125001241 & 0.131280625000248 & 0.934359687499876 \tabularnewline
23 & 0.103901893639830 & 0.207803787279659 & 0.89609810636017 \tabularnewline
24 & 0.152827506068469 & 0.305655012136938 & 0.847172493931531 \tabularnewline
25 & 0.217631278336273 & 0.435262556672545 & 0.782368721663727 \tabularnewline
26 & 0.214596557757049 & 0.429193115514098 & 0.785403442242951 \tabularnewline
27 & 0.18128863986855 & 0.3625772797371 & 0.81871136013145 \tabularnewline
28 & 0.12982077954813 & 0.25964155909626 & 0.87017922045187 \tabularnewline
29 & 0.0900677807887017 & 0.180135561577403 & 0.909932219211298 \tabularnewline
30 & 0.0631192642971689 & 0.126238528594338 & 0.936880735702831 \tabularnewline
31 & 0.0408131453190893 & 0.0816262906381785 & 0.95918685468091 \tabularnewline
32 & 0.0239637598901851 & 0.0479275197803702 & 0.976036240109815 \tabularnewline
33 & 0.0128589910224323 & 0.0257179820448645 & 0.987141008977568 \tabularnewline
34 & 0.00778681815549105 & 0.0155736363109821 & 0.992213181844509 \tabularnewline
35 & 0.00547038921843133 & 0.0109407784368627 & 0.994529610781569 \tabularnewline
36 & 0.0174304618965683 & 0.0348609237931366 & 0.982569538103432 \tabularnewline
37 & 0.157762622548640 & 0.315525245097279 & 0.84223737745136 \tabularnewline
38 & 0.133540244660559 & 0.267080489321118 & 0.86645975533944 \tabularnewline
39 & 0.130308784518586 & 0.260617569037173 & 0.869691215481414 \tabularnewline
40 & 0.158522297893121 & 0.317044595786241 & 0.84147770210688 \tabularnewline
41 & 0.0980079039381092 & 0.196015807876218 & 0.90199209606189 \tabularnewline
42 & 0.083604671675589 & 0.167209343351178 & 0.916395328324411 \tabularnewline
43 & 0.128689131769583 & 0.257378263539165 & 0.871310868230417 \tabularnewline
44 & 0.172350486573763 & 0.344700973147526 & 0.827649513426237 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61374&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.00944963479793712[/C][C]0.0188992695958742[/C][C]0.990550365202063[/C][/ROW]
[ROW][C]18[/C][C]0.00424697605162508[/C][C]0.00849395210325015[/C][C]0.995753023948375[/C][/ROW]
[ROW][C]19[/C][C]0.00136407682595592[/C][C]0.00272815365191183[/C][C]0.998635923174044[/C][/ROW]
[ROW][C]20[/C][C]0.00581318126633801[/C][C]0.0116263625326760[/C][C]0.994186818733662[/C][/ROW]
[ROW][C]21[/C][C]0.0577404730021315[/C][C]0.115480946004263[/C][C]0.942259526997869[/C][/ROW]
[ROW][C]22[/C][C]0.0656403125001241[/C][C]0.131280625000248[/C][C]0.934359687499876[/C][/ROW]
[ROW][C]23[/C][C]0.103901893639830[/C][C]0.207803787279659[/C][C]0.89609810636017[/C][/ROW]
[ROW][C]24[/C][C]0.152827506068469[/C][C]0.305655012136938[/C][C]0.847172493931531[/C][/ROW]
[ROW][C]25[/C][C]0.217631278336273[/C][C]0.435262556672545[/C][C]0.782368721663727[/C][/ROW]
[ROW][C]26[/C][C]0.214596557757049[/C][C]0.429193115514098[/C][C]0.785403442242951[/C][/ROW]
[ROW][C]27[/C][C]0.18128863986855[/C][C]0.3625772797371[/C][C]0.81871136013145[/C][/ROW]
[ROW][C]28[/C][C]0.12982077954813[/C][C]0.25964155909626[/C][C]0.87017922045187[/C][/ROW]
[ROW][C]29[/C][C]0.0900677807887017[/C][C]0.180135561577403[/C][C]0.909932219211298[/C][/ROW]
[ROW][C]30[/C][C]0.0631192642971689[/C][C]0.126238528594338[/C][C]0.936880735702831[/C][/ROW]
[ROW][C]31[/C][C]0.0408131453190893[/C][C]0.0816262906381785[/C][C]0.95918685468091[/C][/ROW]
[ROW][C]32[/C][C]0.0239637598901851[/C][C]0.0479275197803702[/C][C]0.976036240109815[/C][/ROW]
[ROW][C]33[/C][C]0.0128589910224323[/C][C]0.0257179820448645[/C][C]0.987141008977568[/C][/ROW]
[ROW][C]34[/C][C]0.00778681815549105[/C][C]0.0155736363109821[/C][C]0.992213181844509[/C][/ROW]
[ROW][C]35[/C][C]0.00547038921843133[/C][C]0.0109407784368627[/C][C]0.994529610781569[/C][/ROW]
[ROW][C]36[/C][C]0.0174304618965683[/C][C]0.0348609237931366[/C][C]0.982569538103432[/C][/ROW]
[ROW][C]37[/C][C]0.157762622548640[/C][C]0.315525245097279[/C][C]0.84223737745136[/C][/ROW]
[ROW][C]38[/C][C]0.133540244660559[/C][C]0.267080489321118[/C][C]0.86645975533944[/C][/ROW]
[ROW][C]39[/C][C]0.130308784518586[/C][C]0.260617569037173[/C][C]0.869691215481414[/C][/ROW]
[ROW][C]40[/C][C]0.158522297893121[/C][C]0.317044595786241[/C][C]0.84147770210688[/C][/ROW]
[ROW][C]41[/C][C]0.0980079039381092[/C][C]0.196015807876218[/C][C]0.90199209606189[/C][/ROW]
[ROW][C]42[/C][C]0.083604671675589[/C][C]0.167209343351178[/C][C]0.916395328324411[/C][/ROW]
[ROW][C]43[/C][C]0.128689131769583[/C][C]0.257378263539165[/C][C]0.871310868230417[/C][/ROW]
[ROW][C]44[/C][C]0.172350486573763[/C][C]0.344700973147526[/C][C]0.827649513426237[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61374&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61374&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.009449634797937120.01889926959587420.990550365202063
180.004246976051625080.008493952103250150.995753023948375
190.001364076825955920.002728153651911830.998635923174044
200.005813181266338010.01162636253267600.994186818733662
210.05774047300213150.1154809460042630.942259526997869
220.06564031250012410.1312806250002480.934359687499876
230.1039018936398300.2078037872796590.89609810636017
240.1528275060684690.3056550121369380.847172493931531
250.2176312783362730.4352625566725450.782368721663727
260.2145965577570490.4291931155140980.785403442242951
270.181288639868550.36257727973710.81871136013145
280.129820779548130.259641559096260.87017922045187
290.09006778078870170.1801355615774030.909932219211298
300.06311926429716890.1262385285943380.936880735702831
310.04081314531908930.08162629063817850.95918685468091
320.02396375989018510.04792751978037020.976036240109815
330.01285899102243230.02571798204486450.987141008977568
340.007786818155491050.01557363631098210.992213181844509
350.005470389218431330.01094077843686270.994529610781569
360.01743046189656830.03486092379313660.982569538103432
370.1577626225486400.3155252450972790.84223737745136
380.1335402446605590.2670804893211180.86645975533944
390.1303087845185860.2606175690371730.869691215481414
400.1585222978931210.3170445957862410.84147770210688
410.09800790393810920.1960158078762180.90199209606189
420.0836046716755890.1672093433511780.916395328324411
430.1286891317695830.2573782635391650.871310868230417
440.1723504865737630.3447009731475260.827649513426237







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0714285714285714NOK
5% type I error level90.321428571428571NOK
10% type I error level100.357142857142857NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61374&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 level20.0714285714285714NOK
5% type I error level90.321428571428571NOK
10% type I error level100.357142857142857NOK



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