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 computationFri, 27 Nov 2009 08:20:35 -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/27/t1259335377ggua586581suvwy.htm/, Retrieved Sun, 28 Apr 2024 21:51:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60898, Retrieved Sun, 28 Apr 2024 21:51:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact124
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [SHW WS7] [2009-11-20 11:57:18] [253127ae8da904b75450fbd69fe4eb21]
- R  D        [Multiple Regression] [WorkShop7 (SHW)] [2009-11-27 15:20:35] [2d9a0b3c2f25bb8f387fafb994d0d852] [Current]
Feedback Forum

Post a new message
Dataseries X:
282965	1
276610	1
277838	1
277051	1
277026	1
274960	1
270073	1
267063	1
264916	1
287182	1
291109	1
292223	1
288109	1
281400	1
282579	1
280113	1
280331	1
276759	1
275139	1
274275	1
271234	1
289725	1
290649	1
292223	1
278429	0
269749	0
265784	0
268957	0
264099	0
255121	0
253276	0
245980	0
235295	0
258479	0
260916	0
254586	0
250566	0
243345	0
247028	0
248464	0
244962	0
237003	0
237008	0
225477	0
226762	0
247857	0
248256	0
246892	0
245021	0
246186	0
255688	0
264242	0
268270	0
272969	0
273886	0
267353	0
271916	0
292633	0
295804	0
293222	0




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60898&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] = + 245604.811111111 + 35991.2222222222X[t] -1974.89722222225M1[t] -7974.56111111115M2[t] -6088.82500000001M3[t] -4546.48888888888M4[t] -5813.95277777777M5[t] -9828.81666666668M6[t] -11754.4805555556M7[t] -18040.9444444445M8[t] -20485.6083333333M9[t] + 225.327777777777M10[t] + 1957.26388888889M11[t] + 439.663888888889t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  245604.811111111 +  35991.2222222222X[t] -1974.89722222225M1[t] -7974.56111111115M2[t] -6088.82500000001M3[t] -4546.48888888888M4[t] -5813.95277777777M5[t] -9828.81666666668M6[t] -11754.4805555556M7[t] -18040.9444444445M8[t] -20485.6083333333M9[t] +  225.327777777777M10[t] +  1957.26388888889M11[t] +  439.663888888889t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60898&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  245604.811111111 +  35991.2222222222X[t] -1974.89722222225M1[t] -7974.56111111115M2[t] -6088.82500000001M3[t] -4546.48888888888M4[t] -5813.95277777777M5[t] -9828.81666666668M6[t] -11754.4805555556M7[t] -18040.9444444445M8[t] -20485.6083333333M9[t] +  225.327777777777M10[t] +  1957.26388888889M11[t] +  439.663888888889t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60898&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60898&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] = + 245604.811111111 + 35991.2222222222X[t] -1974.89722222225M1[t] -7974.56111111115M2[t] -6088.82500000001M3[t] -4546.48888888888M4[t] -5813.95277777777M5[t] -9828.81666666668M6[t] -11754.4805555556M7[t] -18040.9444444445M8[t] -20485.6083333333M9[t] + 225.327777777777M10[t] + 1957.26388888889M11[t] + 439.663888888889t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)245604.81111111111443.8105221.461800
X35991.22222222226990.4198635.14865e-063e-06
M1-1974.897222222258677.229697-0.22760.8209690.410485
M2-7974.561111111158627.813208-0.92430.3601610.180081
M3-6088.825000000018582.85789-0.70940.4816460.240823
M4-4546.488888888888542.434176-0.53220.5971320.298566
M5-5813.952777777778506.606669-0.68350.4977430.248871
M6-9828.816666666688475.433658-1.15970.2521620.126081
M7-11754.48055555568448.966661-1.39120.1708470.085424
M8-18040.94444444458427.250018-2.14080.0376240.018812
M9-20485.60833333338410.320527-2.43580.0187930.009397
M10225.3277777777778398.207140.02680.9787110.489356
M111957.263888888898390.9307130.23330.8165950.408297
t439.663888888889201.7960392.17880.034510.017255

\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) & 245604.811111111 & 11443.81052 & 21.4618 & 0 & 0 \tabularnewline
X & 35991.2222222222 & 6990.419863 & 5.1486 & 5e-06 & 3e-06 \tabularnewline
M1 & -1974.89722222225 & 8677.229697 & -0.2276 & 0.820969 & 0.410485 \tabularnewline
M2 & -7974.56111111115 & 8627.813208 & -0.9243 & 0.360161 & 0.180081 \tabularnewline
M3 & -6088.82500000001 & 8582.85789 & -0.7094 & 0.481646 & 0.240823 \tabularnewline
M4 & -4546.48888888888 & 8542.434176 & -0.5322 & 0.597132 & 0.298566 \tabularnewline
M5 & -5813.95277777777 & 8506.606669 & -0.6835 & 0.497743 & 0.248871 \tabularnewline
M6 & -9828.81666666668 & 8475.433658 & -1.1597 & 0.252162 & 0.126081 \tabularnewline
M7 & -11754.4805555556 & 8448.966661 & -1.3912 & 0.170847 & 0.085424 \tabularnewline
M8 & -18040.9444444445 & 8427.250018 & -2.1408 & 0.037624 & 0.018812 \tabularnewline
M9 & -20485.6083333333 & 8410.320527 & -2.4358 & 0.018793 & 0.009397 \tabularnewline
M10 & 225.327777777777 & 8398.20714 & 0.0268 & 0.978711 & 0.489356 \tabularnewline
M11 & 1957.26388888889 & 8390.930713 & 0.2333 & 0.816595 & 0.408297 \tabularnewline
t & 439.663888888889 & 201.796039 & 2.1788 & 0.03451 & 0.017255 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60898&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]245604.811111111[/C][C]11443.81052[/C][C]21.4618[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]35991.2222222222[/C][C]6990.419863[/C][C]5.1486[/C][C]5e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M1[/C][C]-1974.89722222225[/C][C]8677.229697[/C][C]-0.2276[/C][C]0.820969[/C][C]0.410485[/C][/ROW]
[ROW][C]M2[/C][C]-7974.56111111115[/C][C]8627.813208[/C][C]-0.9243[/C][C]0.360161[/C][C]0.180081[/C][/ROW]
[ROW][C]M3[/C][C]-6088.82500000001[/C][C]8582.85789[/C][C]-0.7094[/C][C]0.481646[/C][C]0.240823[/C][/ROW]
[ROW][C]M4[/C][C]-4546.48888888888[/C][C]8542.434176[/C][C]-0.5322[/C][C]0.597132[/C][C]0.298566[/C][/ROW]
[ROW][C]M5[/C][C]-5813.95277777777[/C][C]8506.606669[/C][C]-0.6835[/C][C]0.497743[/C][C]0.248871[/C][/ROW]
[ROW][C]M6[/C][C]-9828.81666666668[/C][C]8475.433658[/C][C]-1.1597[/C][C]0.252162[/C][C]0.126081[/C][/ROW]
[ROW][C]M7[/C][C]-11754.4805555556[/C][C]8448.966661[/C][C]-1.3912[/C][C]0.170847[/C][C]0.085424[/C][/ROW]
[ROW][C]M8[/C][C]-18040.9444444445[/C][C]8427.250018[/C][C]-2.1408[/C][C]0.037624[/C][C]0.018812[/C][/ROW]
[ROW][C]M9[/C][C]-20485.6083333333[/C][C]8410.320527[/C][C]-2.4358[/C][C]0.018793[/C][C]0.009397[/C][/ROW]
[ROW][C]M10[/C][C]225.327777777777[/C][C]8398.20714[/C][C]0.0268[/C][C]0.978711[/C][C]0.489356[/C][/ROW]
[ROW][C]M11[/C][C]1957.26388888889[/C][C]8390.930713[/C][C]0.2333[/C][C]0.816595[/C][C]0.408297[/C][/ROW]
[ROW][C]t[/C][C]439.663888888889[/C][C]201.796039[/C][C]2.1788[/C][C]0.03451[/C][C]0.017255[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60898&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60898&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)245604.81111111111443.8105221.461800
X35991.22222222226990.4198635.14865e-063e-06
M1-1974.897222222258677.229697-0.22760.8209690.410485
M2-7974.561111111158627.813208-0.92430.3601610.180081
M3-6088.825000000018582.85789-0.70940.4816460.240823
M4-4546.488888888888542.434176-0.53220.5971320.298566
M5-5813.952777777778506.606669-0.68350.4977430.248871
M6-9828.816666666688475.433658-1.15970.2521620.126081
M7-11754.48055555568448.966661-1.39120.1708470.085424
M8-18040.94444444458427.250018-2.14080.0376240.018812
M9-20485.60833333338410.320527-2.43580.0187930.009397
M10225.3277777777778398.207140.02680.9787110.489356
M111957.263888888898390.9307130.23330.8165950.408297
t439.663888888889201.7960392.17880.034510.017255







Multiple Linear Regression - Regression Statistics
Multiple R0.763247429780622
R-squared0.582546639066726
Adjusted R-squared0.464570689237758
F-TEST (value)4.93784233067207
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value2.51027776601020e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13263.3891401516
Sum Squared Residuals8092204608.22222

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.763247429780622 \tabularnewline
R-squared & 0.582546639066726 \tabularnewline
Adjusted R-squared & 0.464570689237758 \tabularnewline
F-TEST (value) & 4.93784233067207 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 2.51027776601020e-05 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 13263.3891401516 \tabularnewline
Sum Squared Residuals & 8092204608.22222 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60898&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.763247429780622[/C][/ROW]
[ROW][C]R-squared[/C][C]0.582546639066726[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.464570689237758[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.93784233067207[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]2.51027776601020e-05[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]13263.3891401516[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8092204608.22222[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60898&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60898&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.763247429780622
R-squared0.582546639066726
Adjusted R-squared0.464570689237758
F-TEST (value)4.93784233067207
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value2.51027776601020e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13263.3891401516
Sum Squared Residuals8092204608.22222







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1282965280060.82904.19999999991
2276610274500.82109.19999999995
3277838276826.21011.8
4277051278808.2-1757.19999999997
5277026277980.4-954.399999999998
6274960274405.2554.799999999996
7270073272919.2-2846.20000000001
8267063267072.4-9.39999999998389
9264916265067.4-151.399999999986
10287182286218964.000000000012
11291109288389.62719.40000000000
122922232868725351
13288109285336.7666666672772.23333333336
14281400279776.7666666671623.23333333335
15282579282102.166666667476.833333333344
16280113284084.166666667-3971.16666666667
17280331283256.366666667-2925.36666666666
18276759279681.166666667-2922.16666666666
19275139278195.166666667-3056.16666666665
20274275272348.3666666671926.63333333334
21271234270343.366666667890.633333333339
22289725291493.966666667-1768.96666666667
23290649293665.566666667-3016.56666666667
24292223292147.96666666775.033333333334
25278429254621.51111111123807.4888888889
26269749249061.51111111120687.4888888889
27265784251386.91111111114397.0888888889
28268957253368.91111111115588.0888888889
29264099252541.11111111111557.8888888889
30255121248965.9111111116155.0888888889
31253276247479.9111111115796.08888888889
32245980241633.1111111114346.88888888888
33235295239628.111111111-4333.11111111111
34258479260778.711111111-2299.71111111111
35260916262950.311111111-2034.31111111112
36254586261432.711111111-6846.71111111112
37250566259897.477777778-9331.47777777775
38243345254337.477777778-10992.4777777778
39247028256662.877777778-9634.87777777778
40248464258644.877777778-10180.8777777778
41244962257817.077777778-12855.0777777778
42237003254241.877777778-17238.8777777778
43237008252755.877777778-15747.8777777778
44225477246909.077777778-21432.0777777778
45226762244904.077777778-18142.0777777778
46247857266054.677777778-18197.6777777778
47248256268226.277777778-19970.2777777778
48246892266708.677777778-19816.6777777778
49245021265173.444444444-20152.4444444444
50246186259613.444444444-13427.4444444444
51255688261938.844444444-6250.84444444444
52264242263920.844444444321.155555555544
53268270263093.0444444445176.95555555555
54272969259517.84444444413451.1555555556
55273886258031.84444444415854.1555555556
56267353252185.04444444415167.9555555555
57271916250180.04444444421735.9555555555
58292633271330.64444444421302.3555555556
59295804273502.24444444422301.7555555556
60293222271984.64444444421237.3555555556

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 282965 & 280060.8 & 2904.19999999991 \tabularnewline
2 & 276610 & 274500.8 & 2109.19999999995 \tabularnewline
3 & 277838 & 276826.2 & 1011.8 \tabularnewline
4 & 277051 & 278808.2 & -1757.19999999997 \tabularnewline
5 & 277026 & 277980.4 & -954.399999999998 \tabularnewline
6 & 274960 & 274405.2 & 554.799999999996 \tabularnewline
7 & 270073 & 272919.2 & -2846.20000000001 \tabularnewline
8 & 267063 & 267072.4 & -9.39999999998389 \tabularnewline
9 & 264916 & 265067.4 & -151.399999999986 \tabularnewline
10 & 287182 & 286218 & 964.000000000012 \tabularnewline
11 & 291109 & 288389.6 & 2719.40000000000 \tabularnewline
12 & 292223 & 286872 & 5351 \tabularnewline
13 & 288109 & 285336.766666667 & 2772.23333333336 \tabularnewline
14 & 281400 & 279776.766666667 & 1623.23333333335 \tabularnewline
15 & 282579 & 282102.166666667 & 476.833333333344 \tabularnewline
16 & 280113 & 284084.166666667 & -3971.16666666667 \tabularnewline
17 & 280331 & 283256.366666667 & -2925.36666666666 \tabularnewline
18 & 276759 & 279681.166666667 & -2922.16666666666 \tabularnewline
19 & 275139 & 278195.166666667 & -3056.16666666665 \tabularnewline
20 & 274275 & 272348.366666667 & 1926.63333333334 \tabularnewline
21 & 271234 & 270343.366666667 & 890.633333333339 \tabularnewline
22 & 289725 & 291493.966666667 & -1768.96666666667 \tabularnewline
23 & 290649 & 293665.566666667 & -3016.56666666667 \tabularnewline
24 & 292223 & 292147.966666667 & 75.033333333334 \tabularnewline
25 & 278429 & 254621.511111111 & 23807.4888888889 \tabularnewline
26 & 269749 & 249061.511111111 & 20687.4888888889 \tabularnewline
27 & 265784 & 251386.911111111 & 14397.0888888889 \tabularnewline
28 & 268957 & 253368.911111111 & 15588.0888888889 \tabularnewline
29 & 264099 & 252541.111111111 & 11557.8888888889 \tabularnewline
30 & 255121 & 248965.911111111 & 6155.0888888889 \tabularnewline
31 & 253276 & 247479.911111111 & 5796.08888888889 \tabularnewline
32 & 245980 & 241633.111111111 & 4346.88888888888 \tabularnewline
33 & 235295 & 239628.111111111 & -4333.11111111111 \tabularnewline
34 & 258479 & 260778.711111111 & -2299.71111111111 \tabularnewline
35 & 260916 & 262950.311111111 & -2034.31111111112 \tabularnewline
36 & 254586 & 261432.711111111 & -6846.71111111112 \tabularnewline
37 & 250566 & 259897.477777778 & -9331.47777777775 \tabularnewline
38 & 243345 & 254337.477777778 & -10992.4777777778 \tabularnewline
39 & 247028 & 256662.877777778 & -9634.87777777778 \tabularnewline
40 & 248464 & 258644.877777778 & -10180.8777777778 \tabularnewline
41 & 244962 & 257817.077777778 & -12855.0777777778 \tabularnewline
42 & 237003 & 254241.877777778 & -17238.8777777778 \tabularnewline
43 & 237008 & 252755.877777778 & -15747.8777777778 \tabularnewline
44 & 225477 & 246909.077777778 & -21432.0777777778 \tabularnewline
45 & 226762 & 244904.077777778 & -18142.0777777778 \tabularnewline
46 & 247857 & 266054.677777778 & -18197.6777777778 \tabularnewline
47 & 248256 & 268226.277777778 & -19970.2777777778 \tabularnewline
48 & 246892 & 266708.677777778 & -19816.6777777778 \tabularnewline
49 & 245021 & 265173.444444444 & -20152.4444444444 \tabularnewline
50 & 246186 & 259613.444444444 & -13427.4444444444 \tabularnewline
51 & 255688 & 261938.844444444 & -6250.84444444444 \tabularnewline
52 & 264242 & 263920.844444444 & 321.155555555544 \tabularnewline
53 & 268270 & 263093.044444444 & 5176.95555555555 \tabularnewline
54 & 272969 & 259517.844444444 & 13451.1555555556 \tabularnewline
55 & 273886 & 258031.844444444 & 15854.1555555556 \tabularnewline
56 & 267353 & 252185.044444444 & 15167.9555555555 \tabularnewline
57 & 271916 & 250180.044444444 & 21735.9555555555 \tabularnewline
58 & 292633 & 271330.644444444 & 21302.3555555556 \tabularnewline
59 & 295804 & 273502.244444444 & 22301.7555555556 \tabularnewline
60 & 293222 & 271984.644444444 & 21237.3555555556 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60898&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]282965[/C][C]280060.8[/C][C]2904.19999999991[/C][/ROW]
[ROW][C]2[/C][C]276610[/C][C]274500.8[/C][C]2109.19999999995[/C][/ROW]
[ROW][C]3[/C][C]277838[/C][C]276826.2[/C][C]1011.8[/C][/ROW]
[ROW][C]4[/C][C]277051[/C][C]278808.2[/C][C]-1757.19999999997[/C][/ROW]
[ROW][C]5[/C][C]277026[/C][C]277980.4[/C][C]-954.399999999998[/C][/ROW]
[ROW][C]6[/C][C]274960[/C][C]274405.2[/C][C]554.799999999996[/C][/ROW]
[ROW][C]7[/C][C]270073[/C][C]272919.2[/C][C]-2846.20000000001[/C][/ROW]
[ROW][C]8[/C][C]267063[/C][C]267072.4[/C][C]-9.39999999998389[/C][/ROW]
[ROW][C]9[/C][C]264916[/C][C]265067.4[/C][C]-151.399999999986[/C][/ROW]
[ROW][C]10[/C][C]287182[/C][C]286218[/C][C]964.000000000012[/C][/ROW]
[ROW][C]11[/C][C]291109[/C][C]288389.6[/C][C]2719.40000000000[/C][/ROW]
[ROW][C]12[/C][C]292223[/C][C]286872[/C][C]5351[/C][/ROW]
[ROW][C]13[/C][C]288109[/C][C]285336.766666667[/C][C]2772.23333333336[/C][/ROW]
[ROW][C]14[/C][C]281400[/C][C]279776.766666667[/C][C]1623.23333333335[/C][/ROW]
[ROW][C]15[/C][C]282579[/C][C]282102.166666667[/C][C]476.833333333344[/C][/ROW]
[ROW][C]16[/C][C]280113[/C][C]284084.166666667[/C][C]-3971.16666666667[/C][/ROW]
[ROW][C]17[/C][C]280331[/C][C]283256.366666667[/C][C]-2925.36666666666[/C][/ROW]
[ROW][C]18[/C][C]276759[/C][C]279681.166666667[/C][C]-2922.16666666666[/C][/ROW]
[ROW][C]19[/C][C]275139[/C][C]278195.166666667[/C][C]-3056.16666666665[/C][/ROW]
[ROW][C]20[/C][C]274275[/C][C]272348.366666667[/C][C]1926.63333333334[/C][/ROW]
[ROW][C]21[/C][C]271234[/C][C]270343.366666667[/C][C]890.633333333339[/C][/ROW]
[ROW][C]22[/C][C]289725[/C][C]291493.966666667[/C][C]-1768.96666666667[/C][/ROW]
[ROW][C]23[/C][C]290649[/C][C]293665.566666667[/C][C]-3016.56666666667[/C][/ROW]
[ROW][C]24[/C][C]292223[/C][C]292147.966666667[/C][C]75.033333333334[/C][/ROW]
[ROW][C]25[/C][C]278429[/C][C]254621.511111111[/C][C]23807.4888888889[/C][/ROW]
[ROW][C]26[/C][C]269749[/C][C]249061.511111111[/C][C]20687.4888888889[/C][/ROW]
[ROW][C]27[/C][C]265784[/C][C]251386.911111111[/C][C]14397.0888888889[/C][/ROW]
[ROW][C]28[/C][C]268957[/C][C]253368.911111111[/C][C]15588.0888888889[/C][/ROW]
[ROW][C]29[/C][C]264099[/C][C]252541.111111111[/C][C]11557.8888888889[/C][/ROW]
[ROW][C]30[/C][C]255121[/C][C]248965.911111111[/C][C]6155.0888888889[/C][/ROW]
[ROW][C]31[/C][C]253276[/C][C]247479.911111111[/C][C]5796.08888888889[/C][/ROW]
[ROW][C]32[/C][C]245980[/C][C]241633.111111111[/C][C]4346.88888888888[/C][/ROW]
[ROW][C]33[/C][C]235295[/C][C]239628.111111111[/C][C]-4333.11111111111[/C][/ROW]
[ROW][C]34[/C][C]258479[/C][C]260778.711111111[/C][C]-2299.71111111111[/C][/ROW]
[ROW][C]35[/C][C]260916[/C][C]262950.311111111[/C][C]-2034.31111111112[/C][/ROW]
[ROW][C]36[/C][C]254586[/C][C]261432.711111111[/C][C]-6846.71111111112[/C][/ROW]
[ROW][C]37[/C][C]250566[/C][C]259897.477777778[/C][C]-9331.47777777775[/C][/ROW]
[ROW][C]38[/C][C]243345[/C][C]254337.477777778[/C][C]-10992.4777777778[/C][/ROW]
[ROW][C]39[/C][C]247028[/C][C]256662.877777778[/C][C]-9634.87777777778[/C][/ROW]
[ROW][C]40[/C][C]248464[/C][C]258644.877777778[/C][C]-10180.8777777778[/C][/ROW]
[ROW][C]41[/C][C]244962[/C][C]257817.077777778[/C][C]-12855.0777777778[/C][/ROW]
[ROW][C]42[/C][C]237003[/C][C]254241.877777778[/C][C]-17238.8777777778[/C][/ROW]
[ROW][C]43[/C][C]237008[/C][C]252755.877777778[/C][C]-15747.8777777778[/C][/ROW]
[ROW][C]44[/C][C]225477[/C][C]246909.077777778[/C][C]-21432.0777777778[/C][/ROW]
[ROW][C]45[/C][C]226762[/C][C]244904.077777778[/C][C]-18142.0777777778[/C][/ROW]
[ROW][C]46[/C][C]247857[/C][C]266054.677777778[/C][C]-18197.6777777778[/C][/ROW]
[ROW][C]47[/C][C]248256[/C][C]268226.277777778[/C][C]-19970.2777777778[/C][/ROW]
[ROW][C]48[/C][C]246892[/C][C]266708.677777778[/C][C]-19816.6777777778[/C][/ROW]
[ROW][C]49[/C][C]245021[/C][C]265173.444444444[/C][C]-20152.4444444444[/C][/ROW]
[ROW][C]50[/C][C]246186[/C][C]259613.444444444[/C][C]-13427.4444444444[/C][/ROW]
[ROW][C]51[/C][C]255688[/C][C]261938.844444444[/C][C]-6250.84444444444[/C][/ROW]
[ROW][C]52[/C][C]264242[/C][C]263920.844444444[/C][C]321.155555555544[/C][/ROW]
[ROW][C]53[/C][C]268270[/C][C]263093.044444444[/C][C]5176.95555555555[/C][/ROW]
[ROW][C]54[/C][C]272969[/C][C]259517.844444444[/C][C]13451.1555555556[/C][/ROW]
[ROW][C]55[/C][C]273886[/C][C]258031.844444444[/C][C]15854.1555555556[/C][/ROW]
[ROW][C]56[/C][C]267353[/C][C]252185.044444444[/C][C]15167.9555555555[/C][/ROW]
[ROW][C]57[/C][C]271916[/C][C]250180.044444444[/C][C]21735.9555555555[/C][/ROW]
[ROW][C]58[/C][C]292633[/C][C]271330.644444444[/C][C]21302.3555555556[/C][/ROW]
[ROW][C]59[/C][C]295804[/C][C]273502.244444444[/C][C]22301.7555555556[/C][/ROW]
[ROW][C]60[/C][C]293222[/C][C]271984.644444444[/C][C]21237.3555555556[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60898&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60898&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
1282965280060.82904.19999999991
2276610274500.82109.19999999995
3277838276826.21011.8
4277051278808.2-1757.19999999997
5277026277980.4-954.399999999998
6274960274405.2554.799999999996
7270073272919.2-2846.20000000001
8267063267072.4-9.39999999998389
9264916265067.4-151.399999999986
10287182286218964.000000000012
11291109288389.62719.40000000000
122922232868725351
13288109285336.7666666672772.23333333336
14281400279776.7666666671623.23333333335
15282579282102.166666667476.833333333344
16280113284084.166666667-3971.16666666667
17280331283256.366666667-2925.36666666666
18276759279681.166666667-2922.16666666666
19275139278195.166666667-3056.16666666665
20274275272348.3666666671926.63333333334
21271234270343.366666667890.633333333339
22289725291493.966666667-1768.96666666667
23290649293665.566666667-3016.56666666667
24292223292147.96666666775.033333333334
25278429254621.51111111123807.4888888889
26269749249061.51111111120687.4888888889
27265784251386.91111111114397.0888888889
28268957253368.91111111115588.0888888889
29264099252541.11111111111557.8888888889
30255121248965.9111111116155.0888888889
31253276247479.9111111115796.08888888889
32245980241633.1111111114346.88888888888
33235295239628.111111111-4333.11111111111
34258479260778.711111111-2299.71111111111
35260916262950.311111111-2034.31111111112
36254586261432.711111111-6846.71111111112
37250566259897.477777778-9331.47777777775
38243345254337.477777778-10992.4777777778
39247028256662.877777778-9634.87777777778
40248464258644.877777778-10180.8777777778
41244962257817.077777778-12855.0777777778
42237003254241.877777778-17238.8777777778
43237008252755.877777778-15747.8777777778
44225477246909.077777778-21432.0777777778
45226762244904.077777778-18142.0777777778
46247857266054.677777778-18197.6777777778
47248256268226.277777778-19970.2777777778
48246892266708.677777778-19816.6777777778
49245021265173.444444444-20152.4444444444
50246186259613.444444444-13427.4444444444
51255688261938.844444444-6250.84444444444
52264242263920.844444444321.155555555544
53268270263093.0444444445176.95555555555
54272969259517.84444444413451.1555555556
55273886258031.84444444415854.1555555556
56267353252185.04444444415167.9555555555
57271916250180.04444444421735.9555555555
58292633271330.64444444421302.3555555556
59295804273502.24444444422301.7555555556
60293222271984.64444444421237.3555555556







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0001467821081128130.0002935642162256250.999853217891887
182.97172017178170e-055.94344034356341e-050.999970282798282
192.19006472887028e-064.38012945774057e-060.999997809935271
207.67589392025736e-071.53517878405147e-060.999999232410608
218.40296802750046e-081.68059360550009e-070.99999991597032
229.84450799261085e-091.96890159852217e-080.999999990155492
239.05751334058349e-091.81150266811670e-080.999999990942487
242.62468461032988e-095.24936922065976e-090.999999997375315
254.91935525655863e-109.83871051311726e-100.999999999508064
261.32169349978411e-102.64338699956821e-100.99999999986783
273.40150124254018e-106.80300248508036e-100.99999999965985
288.30241264008227e-111.66048252801645e-100.999999999916976
298.01882605489408e-111.60376521097882e-100.999999999919812
302.09252187859024e-094.18504375718049e-090.999999997907478
313.24735308295234e-096.49470616590469e-090.999999996752647
325.23417312516608e-081.04683462503322e-070.999999947658269
333.05623904696729e-066.11247809393458e-060.999996943760953
341.06197463211835e-052.12394926423670e-050.999989380253679
353.5288764050578e-057.0577528101156e-050.99996471123595
360.0004355512857154320.0008711025714308640.999564448714285
370.01473361181561780.02946722363123560.985266388184382
380.1021327429290320.2042654858580640.897867257070968
390.3336742741429780.6673485482859560.666325725857022
400.6908704340648510.6182591318702980.309129565935149
410.953148655700340.09370268859931920.0468513442996596
420.9598399452504440.08032010949911140.0401600547495557
430.9851849233117140.02963015337657160.0148150766882858

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.000146782108112813 & 0.000293564216225625 & 0.999853217891887 \tabularnewline
18 & 2.97172017178170e-05 & 5.94344034356341e-05 & 0.999970282798282 \tabularnewline
19 & 2.19006472887028e-06 & 4.38012945774057e-06 & 0.999997809935271 \tabularnewline
20 & 7.67589392025736e-07 & 1.53517878405147e-06 & 0.999999232410608 \tabularnewline
21 & 8.40296802750046e-08 & 1.68059360550009e-07 & 0.99999991597032 \tabularnewline
22 & 9.84450799261085e-09 & 1.96890159852217e-08 & 0.999999990155492 \tabularnewline
23 & 9.05751334058349e-09 & 1.81150266811670e-08 & 0.999999990942487 \tabularnewline
24 & 2.62468461032988e-09 & 5.24936922065976e-09 & 0.999999997375315 \tabularnewline
25 & 4.91935525655863e-10 & 9.83871051311726e-10 & 0.999999999508064 \tabularnewline
26 & 1.32169349978411e-10 & 2.64338699956821e-10 & 0.99999999986783 \tabularnewline
27 & 3.40150124254018e-10 & 6.80300248508036e-10 & 0.99999999965985 \tabularnewline
28 & 8.30241264008227e-11 & 1.66048252801645e-10 & 0.999999999916976 \tabularnewline
29 & 8.01882605489408e-11 & 1.60376521097882e-10 & 0.999999999919812 \tabularnewline
30 & 2.09252187859024e-09 & 4.18504375718049e-09 & 0.999999997907478 \tabularnewline
31 & 3.24735308295234e-09 & 6.49470616590469e-09 & 0.999999996752647 \tabularnewline
32 & 5.23417312516608e-08 & 1.04683462503322e-07 & 0.999999947658269 \tabularnewline
33 & 3.05623904696729e-06 & 6.11247809393458e-06 & 0.999996943760953 \tabularnewline
34 & 1.06197463211835e-05 & 2.12394926423670e-05 & 0.999989380253679 \tabularnewline
35 & 3.5288764050578e-05 & 7.0577528101156e-05 & 0.99996471123595 \tabularnewline
36 & 0.000435551285715432 & 0.000871102571430864 & 0.999564448714285 \tabularnewline
37 & 0.0147336118156178 & 0.0294672236312356 & 0.985266388184382 \tabularnewline
38 & 0.102132742929032 & 0.204265485858064 & 0.897867257070968 \tabularnewline
39 & 0.333674274142978 & 0.667348548285956 & 0.666325725857022 \tabularnewline
40 & 0.690870434064851 & 0.618259131870298 & 0.309129565935149 \tabularnewline
41 & 0.95314865570034 & 0.0937026885993192 & 0.0468513442996596 \tabularnewline
42 & 0.959839945250444 & 0.0803201094991114 & 0.0401600547495557 \tabularnewline
43 & 0.985184923311714 & 0.0296301533765716 & 0.0148150766882858 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60898&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.000146782108112813[/C][C]0.000293564216225625[/C][C]0.999853217891887[/C][/ROW]
[ROW][C]18[/C][C]2.97172017178170e-05[/C][C]5.94344034356341e-05[/C][C]0.999970282798282[/C][/ROW]
[ROW][C]19[/C][C]2.19006472887028e-06[/C][C]4.38012945774057e-06[/C][C]0.999997809935271[/C][/ROW]
[ROW][C]20[/C][C]7.67589392025736e-07[/C][C]1.53517878405147e-06[/C][C]0.999999232410608[/C][/ROW]
[ROW][C]21[/C][C]8.40296802750046e-08[/C][C]1.68059360550009e-07[/C][C]0.99999991597032[/C][/ROW]
[ROW][C]22[/C][C]9.84450799261085e-09[/C][C]1.96890159852217e-08[/C][C]0.999999990155492[/C][/ROW]
[ROW][C]23[/C][C]9.05751334058349e-09[/C][C]1.81150266811670e-08[/C][C]0.999999990942487[/C][/ROW]
[ROW][C]24[/C][C]2.62468461032988e-09[/C][C]5.24936922065976e-09[/C][C]0.999999997375315[/C][/ROW]
[ROW][C]25[/C][C]4.91935525655863e-10[/C][C]9.83871051311726e-10[/C][C]0.999999999508064[/C][/ROW]
[ROW][C]26[/C][C]1.32169349978411e-10[/C][C]2.64338699956821e-10[/C][C]0.99999999986783[/C][/ROW]
[ROW][C]27[/C][C]3.40150124254018e-10[/C][C]6.80300248508036e-10[/C][C]0.99999999965985[/C][/ROW]
[ROW][C]28[/C][C]8.30241264008227e-11[/C][C]1.66048252801645e-10[/C][C]0.999999999916976[/C][/ROW]
[ROW][C]29[/C][C]8.01882605489408e-11[/C][C]1.60376521097882e-10[/C][C]0.999999999919812[/C][/ROW]
[ROW][C]30[/C][C]2.09252187859024e-09[/C][C]4.18504375718049e-09[/C][C]0.999999997907478[/C][/ROW]
[ROW][C]31[/C][C]3.24735308295234e-09[/C][C]6.49470616590469e-09[/C][C]0.999999996752647[/C][/ROW]
[ROW][C]32[/C][C]5.23417312516608e-08[/C][C]1.04683462503322e-07[/C][C]0.999999947658269[/C][/ROW]
[ROW][C]33[/C][C]3.05623904696729e-06[/C][C]6.11247809393458e-06[/C][C]0.999996943760953[/C][/ROW]
[ROW][C]34[/C][C]1.06197463211835e-05[/C][C]2.12394926423670e-05[/C][C]0.999989380253679[/C][/ROW]
[ROW][C]35[/C][C]3.5288764050578e-05[/C][C]7.0577528101156e-05[/C][C]0.99996471123595[/C][/ROW]
[ROW][C]36[/C][C]0.000435551285715432[/C][C]0.000871102571430864[/C][C]0.999564448714285[/C][/ROW]
[ROW][C]37[/C][C]0.0147336118156178[/C][C]0.0294672236312356[/C][C]0.985266388184382[/C][/ROW]
[ROW][C]38[/C][C]0.102132742929032[/C][C]0.204265485858064[/C][C]0.897867257070968[/C][/ROW]
[ROW][C]39[/C][C]0.333674274142978[/C][C]0.667348548285956[/C][C]0.666325725857022[/C][/ROW]
[ROW][C]40[/C][C]0.690870434064851[/C][C]0.618259131870298[/C][C]0.309129565935149[/C][/ROW]
[ROW][C]41[/C][C]0.95314865570034[/C][C]0.0937026885993192[/C][C]0.0468513442996596[/C][/ROW]
[ROW][C]42[/C][C]0.959839945250444[/C][C]0.0803201094991114[/C][C]0.0401600547495557[/C][/ROW]
[ROW][C]43[/C][C]0.985184923311714[/C][C]0.0296301533765716[/C][C]0.0148150766882858[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60898&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60898&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.0001467821081128130.0002935642162256250.999853217891887
182.97172017178170e-055.94344034356341e-050.999970282798282
192.19006472887028e-064.38012945774057e-060.999997809935271
207.67589392025736e-071.53517878405147e-060.999999232410608
218.40296802750046e-081.68059360550009e-070.99999991597032
229.84450799261085e-091.96890159852217e-080.999999990155492
239.05751334058349e-091.81150266811670e-080.999999990942487
242.62468461032988e-095.24936922065976e-090.999999997375315
254.91935525655863e-109.83871051311726e-100.999999999508064
261.32169349978411e-102.64338699956821e-100.99999999986783
273.40150124254018e-106.80300248508036e-100.99999999965985
288.30241264008227e-111.66048252801645e-100.999999999916976
298.01882605489408e-111.60376521097882e-100.999999999919812
302.09252187859024e-094.18504375718049e-090.999999997907478
313.24735308295234e-096.49470616590469e-090.999999996752647
325.23417312516608e-081.04683462503322e-070.999999947658269
333.05623904696729e-066.11247809393458e-060.999996943760953
341.06197463211835e-052.12394926423670e-050.999989380253679
353.5288764050578e-057.0577528101156e-050.99996471123595
360.0004355512857154320.0008711025714308640.999564448714285
370.01473361181561780.02946722363123560.985266388184382
380.1021327429290320.2042654858580640.897867257070968
390.3336742741429780.6673485482859560.666325725857022
400.6908704340648510.6182591318702980.309129565935149
410.953148655700340.09370268859931920.0468513442996596
420.9598399452504440.08032010949911140.0401600547495557
430.9851849233117140.02963015337657160.0148150766882858







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level200.740740740740741NOK
5% type I error level220.814814814814815NOK
10% type I error level240.888888888888889NOK

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

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



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