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 03:12:00 -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/t1259316819o2424nlrv955rl3.htm/, Retrieved Mon, 29 Apr 2024 23:14:00 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60530, Retrieved Mon, 29 Apr 2024 23:14:00 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact220
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]
-   PD    [Multiple Regression] [Berekening 3 TVD] [2009-11-18 17:03:24] [42ad1186d39724f834063794eac7cea3]
-   P         [Multiple Regression] [Revieuw WS 7 line...] [2009-11-27 10:12:00] [51d49d3536f6a59f2486a67bf50b2759] [Current]
Feedback Forum

Post a new message
Dataseries X:
101.3	0
106.3	0
94	0
102.8	0
102	0
105.1	1
92.4	0
81.4	0
105.8	0
120.3	1
100.7	0
88.8	0
94.3	0
99.9	0
103.4	0
103.3	0
98.8	0
104.2	0
91.2	0
74.7	0
108.5	0
114.5	0
96.9	0
89.6	0
97.1	0
100.3	0
122.6	0
115.4	1
109	0
129.1	1
102.8	1
96.2	0
127.7	1
128.9	1
126.5	1
119.8	1
113.2	1
114.1	1
134.1	1
130	1
121.8	1
132.1	1
105.3	1
103	1
117.1	1
126.3	1
138.1	1
119.5	1
138	1
135.5	1
178.6	1
162.2	1
176.9	1
204.9	1
132.2	1
142.5	1
164.3	1
174.9	1
175.4	1
143	1




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

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







Multiple Linear Regression - Estimated Regression Equation
Omzet[t] = + 69.4259210526316 + 2.7171052631579Uitvoer[t] + 9.73680921052626M1[t] + 11.0355921052631M2[t] + 25.214375M3[t] + 19.7297368421053M4[t] + 18.0919407894737M5[t] + 29.2438815789473M6[t] -1.65391447368423M7[t] -7.4717105263158M8[t] + 15.9636513157895M9[t] + 22.5790131578947M10[t] + 16.5212171052632M11[t] + 1.14121710526316t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Omzet[t] =  +  69.4259210526316 +  2.7171052631579Uitvoer[t] +  9.73680921052626M1[t] +  11.0355921052631M2[t] +  25.214375M3[t] +  19.7297368421053M4[t] +  18.0919407894737M5[t] +  29.2438815789473M6[t] -1.65391447368423M7[t] -7.4717105263158M8[t] +  15.9636513157895M9[t] +  22.5790131578947M10[t] +  16.5212171052632M11[t] +  1.14121710526316t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60530&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Omzet[t] =  +  69.4259210526316 +  2.7171052631579Uitvoer[t] +  9.73680921052626M1[t] +  11.0355921052631M2[t] +  25.214375M3[t] +  19.7297368421053M4[t] +  18.0919407894737M5[t] +  29.2438815789473M6[t] -1.65391447368423M7[t] -7.4717105263158M8[t] +  15.9636513157895M9[t] +  22.5790131578947M10[t] +  16.5212171052632M11[t] +  1.14121710526316t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60530&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Omzet[t] = + 69.4259210526316 + 2.7171052631579Uitvoer[t] + 9.73680921052626M1[t] + 11.0355921052631M2[t] + 25.214375M3[t] + 19.7297368421053M4[t] + 18.0919407894737M5[t] + 29.2438815789473M6[t] -1.65391447368423M7[t] -7.4717105263158M8[t] + 15.9636513157895M9[t] + 22.5790131578947M10[t] + 16.5212171052632M11[t] + 1.14121710526316t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)69.42592105263167.6561339.06800
Uitvoer2.71710526315796.3949310.42490.6729020.336451
M19.736809210526269.1876271.05980.2947810.14739
M211.03559210526319.1706111.20340.2349920.117496
M325.2143759.1570782.75350.0084130.004206
M419.72973684210539.2163292.14070.0376280.018814
M518.09194078947379.1405231.97930.0537840.026892
M629.24388157894739.3731743.120.003120.00156
M7-1.653914473684239.147976-0.18080.8573220.428661
M8-7.47171052631589.142076-0.81730.4179770.208988
M915.96365131578959.1197861.75040.086710.043355
M1022.57901315789479.2397182.44370.0184330.009216
M1116.52121710526329.1056581.81440.0761420.038071
t1.141217105263160.1794056.361100

\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) & 69.4259210526316 & 7.656133 & 9.068 & 0 & 0 \tabularnewline
Uitvoer & 2.7171052631579 & 6.394931 & 0.4249 & 0.672902 & 0.336451 \tabularnewline
M1 & 9.73680921052626 & 9.187627 & 1.0598 & 0.294781 & 0.14739 \tabularnewline
M2 & 11.0355921052631 & 9.170611 & 1.2034 & 0.234992 & 0.117496 \tabularnewline
M3 & 25.214375 & 9.157078 & 2.7535 & 0.008413 & 0.004206 \tabularnewline
M4 & 19.7297368421053 & 9.216329 & 2.1407 & 0.037628 & 0.018814 \tabularnewline
M5 & 18.0919407894737 & 9.140523 & 1.9793 & 0.053784 & 0.026892 \tabularnewline
M6 & 29.2438815789473 & 9.373174 & 3.12 & 0.00312 & 0.00156 \tabularnewline
M7 & -1.65391447368423 & 9.147976 & -0.1808 & 0.857322 & 0.428661 \tabularnewline
M8 & -7.4717105263158 & 9.142076 & -0.8173 & 0.417977 & 0.208988 \tabularnewline
M9 & 15.9636513157895 & 9.119786 & 1.7504 & 0.08671 & 0.043355 \tabularnewline
M10 & 22.5790131578947 & 9.239718 & 2.4437 & 0.018433 & 0.009216 \tabularnewline
M11 & 16.5212171052632 & 9.105658 & 1.8144 & 0.076142 & 0.038071 \tabularnewline
t & 1.14121710526316 & 0.179405 & 6.3611 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60530&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]69.4259210526316[/C][C]7.656133[/C][C]9.068[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Uitvoer[/C][C]2.7171052631579[/C][C]6.394931[/C][C]0.4249[/C][C]0.672902[/C][C]0.336451[/C][/ROW]
[ROW][C]M1[/C][C]9.73680921052626[/C][C]9.187627[/C][C]1.0598[/C][C]0.294781[/C][C]0.14739[/C][/ROW]
[ROW][C]M2[/C][C]11.0355921052631[/C][C]9.170611[/C][C]1.2034[/C][C]0.234992[/C][C]0.117496[/C][/ROW]
[ROW][C]M3[/C][C]25.214375[/C][C]9.157078[/C][C]2.7535[/C][C]0.008413[/C][C]0.004206[/C][/ROW]
[ROW][C]M4[/C][C]19.7297368421053[/C][C]9.216329[/C][C]2.1407[/C][C]0.037628[/C][C]0.018814[/C][/ROW]
[ROW][C]M5[/C][C]18.0919407894737[/C][C]9.140523[/C][C]1.9793[/C][C]0.053784[/C][C]0.026892[/C][/ROW]
[ROW][C]M6[/C][C]29.2438815789473[/C][C]9.373174[/C][C]3.12[/C][C]0.00312[/C][C]0.00156[/C][/ROW]
[ROW][C]M7[/C][C]-1.65391447368423[/C][C]9.147976[/C][C]-0.1808[/C][C]0.857322[/C][C]0.428661[/C][/ROW]
[ROW][C]M8[/C][C]-7.4717105263158[/C][C]9.142076[/C][C]-0.8173[/C][C]0.417977[/C][C]0.208988[/C][/ROW]
[ROW][C]M9[/C][C]15.9636513157895[/C][C]9.119786[/C][C]1.7504[/C][C]0.08671[/C][C]0.043355[/C][/ROW]
[ROW][C]M10[/C][C]22.5790131578947[/C][C]9.239718[/C][C]2.4437[/C][C]0.018433[/C][C]0.009216[/C][/ROW]
[ROW][C]M11[/C][C]16.5212171052632[/C][C]9.105658[/C][C]1.8144[/C][C]0.076142[/C][C]0.038071[/C][/ROW]
[ROW][C]t[/C][C]1.14121710526316[/C][C]0.179405[/C][C]6.3611[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60530&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60530&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)69.42592105263167.6561339.06800
Uitvoer2.71710526315796.3949310.42490.6729020.336451
M19.736809210526269.1876271.05980.2947810.14739
M211.03559210526319.1706111.20340.2349920.117496
M325.2143759.1570782.75350.0084130.004206
M419.72973684210539.2163292.14070.0376280.018814
M518.09194078947379.1405231.97930.0537840.026892
M629.24388157894739.3731743.120.003120.00156
M7-1.653914473684239.147976-0.18080.8573220.428661
M8-7.47171052631589.142076-0.81730.4179770.208988
M915.96365131578959.1197861.75040.086710.043355
M1022.57901315789479.2397182.44370.0184330.009216
M1116.52121710526329.1056581.81440.0761420.038071
t1.141217105263160.1794056.361100







Multiple Linear Regression - Regression Statistics
Multiple R0.878199108374596
R-squared0.771233673949935
Adjusted R-squared0.706582320935786
F-TEST (value)11.9291188504771
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.04085629004658e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation14.3945146815591
Sum Squared Residuals9531.29443421052

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.878199108374596 \tabularnewline
R-squared & 0.771233673949935 \tabularnewline
Adjusted R-squared & 0.706582320935786 \tabularnewline
F-TEST (value) & 11.9291188504771 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.04085629004658e-10 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 14.3945146815591 \tabularnewline
Sum Squared Residuals & 9531.29443421052 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60530&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.878199108374596[/C][/ROW]
[ROW][C]R-squared[/C][C]0.771233673949935[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.706582320935786[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]11.9291188504771[/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]1.04085629004658e-10[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]14.3945146815591[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]9531.29443421052[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60530&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60530&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.878199108374596
R-squared0.771233673949935
Adjusted R-squared0.706582320935786
F-TEST (value)11.9291188504771
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.04085629004658e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation14.3945146815591
Sum Squared Residuals9531.29443421052







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1101.380.303947368421220.9960526315788
2106.382.74394736842123.556052631579
39498.063947368421-4.06394736842103
4102.893.72052631578959.07947368421052
510293.2239473684218.77605263157896
6105.1108.234210526316-3.13421052631583
792.475.760526315789516.6394736842105
881.471.08394736842110.3160526315790
9105.895.660526315789510.1394736842105
10120.3106.13421052631614.1657894736842
11100.798.50052631578952.19947368421053
1288.883.12052631578955.67947368421054
1394.393.9985526315790.301447368421092
1499.996.4385526315793.46144736842105
15103.4111.758552631579-8.35855263157894
16103.3107.415131578947-4.11513157894737
1798.8106.918552631579-8.11855263157896
18104.2119.211710526316-15.0117105263158
1991.289.45513157894741.74486842105265
2074.784.778552631579-10.0785526315789
21108.5109.355131578947-0.855131578947372
22114.5117.111710526316-2.61171052631578
2396.9112.195131578947-15.2951315789474
2489.696.8151315789474-7.21513157894738
2597.1107.693157894737-10.5931578947368
26100.3110.133157894737-9.83315789473684
27122.6125.453157894737-2.85315789473685
28115.4123.826842105263-8.42684210526314
29109120.613157894737-11.6131578947368
30129.1135.623421052632-6.52342105263157
31102.8105.866842105263-3.06684210526315
3296.298.4731578947369-2.27315789473685
33127.7125.7668421052631.93315789473684
34128.9133.523421052632-4.62342105263158
35126.5128.606842105263-2.10684210526316
36119.8113.2268421052636.57315789473683
37113.2124.104868421053-10.9048684210526
38114.1126.544868421053-12.4448684210526
39134.1141.864868421053-7.76486842105265
40130137.521447368421-7.52144736842104
41121.8137.024868421053-15.2248684210526
42132.1149.318026315789-17.2180263157895
43105.3119.561447368421-14.2614473684211
44103114.884868421053-11.8848684210527
45117.1139.461447368421-22.3614473684211
46126.3147.218026315789-20.9180263157895
47138.1142.301447368421-4.20144736842106
48119.5126.921447368421-7.42144736842106
49138137.7994736842100.200526315789507
50135.5140.239473684211-4.73947368421053
51178.6155.55947368421123.0405263157895
52162.2151.21605263157910.9839473684210
53176.9150.71947368421126.1805263157895
54204.9163.01263157894741.8873684210526
55132.2133.256052631579-1.05605263157896
56142.5128.57947368421113.9205263157895
57164.3153.15605263157911.1439473684211
58174.9160.91263157894713.9873684210526
59175.4155.99605263157919.4039473684211
60143140.6160526315792.38394736842104

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 101.3 & 80.3039473684212 & 20.9960526315788 \tabularnewline
2 & 106.3 & 82.743947368421 & 23.556052631579 \tabularnewline
3 & 94 & 98.063947368421 & -4.06394736842103 \tabularnewline
4 & 102.8 & 93.7205263157895 & 9.07947368421052 \tabularnewline
5 & 102 & 93.223947368421 & 8.77605263157896 \tabularnewline
6 & 105.1 & 108.234210526316 & -3.13421052631583 \tabularnewline
7 & 92.4 & 75.7605263157895 & 16.6394736842105 \tabularnewline
8 & 81.4 & 71.083947368421 & 10.3160526315790 \tabularnewline
9 & 105.8 & 95.6605263157895 & 10.1394736842105 \tabularnewline
10 & 120.3 & 106.134210526316 & 14.1657894736842 \tabularnewline
11 & 100.7 & 98.5005263157895 & 2.19947368421053 \tabularnewline
12 & 88.8 & 83.1205263157895 & 5.67947368421054 \tabularnewline
13 & 94.3 & 93.998552631579 & 0.301447368421092 \tabularnewline
14 & 99.9 & 96.438552631579 & 3.46144736842105 \tabularnewline
15 & 103.4 & 111.758552631579 & -8.35855263157894 \tabularnewline
16 & 103.3 & 107.415131578947 & -4.11513157894737 \tabularnewline
17 & 98.8 & 106.918552631579 & -8.11855263157896 \tabularnewline
18 & 104.2 & 119.211710526316 & -15.0117105263158 \tabularnewline
19 & 91.2 & 89.4551315789474 & 1.74486842105265 \tabularnewline
20 & 74.7 & 84.778552631579 & -10.0785526315789 \tabularnewline
21 & 108.5 & 109.355131578947 & -0.855131578947372 \tabularnewline
22 & 114.5 & 117.111710526316 & -2.61171052631578 \tabularnewline
23 & 96.9 & 112.195131578947 & -15.2951315789474 \tabularnewline
24 & 89.6 & 96.8151315789474 & -7.21513157894738 \tabularnewline
25 & 97.1 & 107.693157894737 & -10.5931578947368 \tabularnewline
26 & 100.3 & 110.133157894737 & -9.83315789473684 \tabularnewline
27 & 122.6 & 125.453157894737 & -2.85315789473685 \tabularnewline
28 & 115.4 & 123.826842105263 & -8.42684210526314 \tabularnewline
29 & 109 & 120.613157894737 & -11.6131578947368 \tabularnewline
30 & 129.1 & 135.623421052632 & -6.52342105263157 \tabularnewline
31 & 102.8 & 105.866842105263 & -3.06684210526315 \tabularnewline
32 & 96.2 & 98.4731578947369 & -2.27315789473685 \tabularnewline
33 & 127.7 & 125.766842105263 & 1.93315789473684 \tabularnewline
34 & 128.9 & 133.523421052632 & -4.62342105263158 \tabularnewline
35 & 126.5 & 128.606842105263 & -2.10684210526316 \tabularnewline
36 & 119.8 & 113.226842105263 & 6.57315789473683 \tabularnewline
37 & 113.2 & 124.104868421053 & -10.9048684210526 \tabularnewline
38 & 114.1 & 126.544868421053 & -12.4448684210526 \tabularnewline
39 & 134.1 & 141.864868421053 & -7.76486842105265 \tabularnewline
40 & 130 & 137.521447368421 & -7.52144736842104 \tabularnewline
41 & 121.8 & 137.024868421053 & -15.2248684210526 \tabularnewline
42 & 132.1 & 149.318026315789 & -17.2180263157895 \tabularnewline
43 & 105.3 & 119.561447368421 & -14.2614473684211 \tabularnewline
44 & 103 & 114.884868421053 & -11.8848684210527 \tabularnewline
45 & 117.1 & 139.461447368421 & -22.3614473684211 \tabularnewline
46 & 126.3 & 147.218026315789 & -20.9180263157895 \tabularnewline
47 & 138.1 & 142.301447368421 & -4.20144736842106 \tabularnewline
48 & 119.5 & 126.921447368421 & -7.42144736842106 \tabularnewline
49 & 138 & 137.799473684210 & 0.200526315789507 \tabularnewline
50 & 135.5 & 140.239473684211 & -4.73947368421053 \tabularnewline
51 & 178.6 & 155.559473684211 & 23.0405263157895 \tabularnewline
52 & 162.2 & 151.216052631579 & 10.9839473684210 \tabularnewline
53 & 176.9 & 150.719473684211 & 26.1805263157895 \tabularnewline
54 & 204.9 & 163.012631578947 & 41.8873684210526 \tabularnewline
55 & 132.2 & 133.256052631579 & -1.05605263157896 \tabularnewline
56 & 142.5 & 128.579473684211 & 13.9205263157895 \tabularnewline
57 & 164.3 & 153.156052631579 & 11.1439473684211 \tabularnewline
58 & 174.9 & 160.912631578947 & 13.9873684210526 \tabularnewline
59 & 175.4 & 155.996052631579 & 19.4039473684211 \tabularnewline
60 & 143 & 140.616052631579 & 2.38394736842104 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60530&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]101.3[/C][C]80.3039473684212[/C][C]20.9960526315788[/C][/ROW]
[ROW][C]2[/C][C]106.3[/C][C]82.743947368421[/C][C]23.556052631579[/C][/ROW]
[ROW][C]3[/C][C]94[/C][C]98.063947368421[/C][C]-4.06394736842103[/C][/ROW]
[ROW][C]4[/C][C]102.8[/C][C]93.7205263157895[/C][C]9.07947368421052[/C][/ROW]
[ROW][C]5[/C][C]102[/C][C]93.223947368421[/C][C]8.77605263157896[/C][/ROW]
[ROW][C]6[/C][C]105.1[/C][C]108.234210526316[/C][C]-3.13421052631583[/C][/ROW]
[ROW][C]7[/C][C]92.4[/C][C]75.7605263157895[/C][C]16.6394736842105[/C][/ROW]
[ROW][C]8[/C][C]81.4[/C][C]71.083947368421[/C][C]10.3160526315790[/C][/ROW]
[ROW][C]9[/C][C]105.8[/C][C]95.6605263157895[/C][C]10.1394736842105[/C][/ROW]
[ROW][C]10[/C][C]120.3[/C][C]106.134210526316[/C][C]14.1657894736842[/C][/ROW]
[ROW][C]11[/C][C]100.7[/C][C]98.5005263157895[/C][C]2.19947368421053[/C][/ROW]
[ROW][C]12[/C][C]88.8[/C][C]83.1205263157895[/C][C]5.67947368421054[/C][/ROW]
[ROW][C]13[/C][C]94.3[/C][C]93.998552631579[/C][C]0.301447368421092[/C][/ROW]
[ROW][C]14[/C][C]99.9[/C][C]96.438552631579[/C][C]3.46144736842105[/C][/ROW]
[ROW][C]15[/C][C]103.4[/C][C]111.758552631579[/C][C]-8.35855263157894[/C][/ROW]
[ROW][C]16[/C][C]103.3[/C][C]107.415131578947[/C][C]-4.11513157894737[/C][/ROW]
[ROW][C]17[/C][C]98.8[/C][C]106.918552631579[/C][C]-8.11855263157896[/C][/ROW]
[ROW][C]18[/C][C]104.2[/C][C]119.211710526316[/C][C]-15.0117105263158[/C][/ROW]
[ROW][C]19[/C][C]91.2[/C][C]89.4551315789474[/C][C]1.74486842105265[/C][/ROW]
[ROW][C]20[/C][C]74.7[/C][C]84.778552631579[/C][C]-10.0785526315789[/C][/ROW]
[ROW][C]21[/C][C]108.5[/C][C]109.355131578947[/C][C]-0.855131578947372[/C][/ROW]
[ROW][C]22[/C][C]114.5[/C][C]117.111710526316[/C][C]-2.61171052631578[/C][/ROW]
[ROW][C]23[/C][C]96.9[/C][C]112.195131578947[/C][C]-15.2951315789474[/C][/ROW]
[ROW][C]24[/C][C]89.6[/C][C]96.8151315789474[/C][C]-7.21513157894738[/C][/ROW]
[ROW][C]25[/C][C]97.1[/C][C]107.693157894737[/C][C]-10.5931578947368[/C][/ROW]
[ROW][C]26[/C][C]100.3[/C][C]110.133157894737[/C][C]-9.83315789473684[/C][/ROW]
[ROW][C]27[/C][C]122.6[/C][C]125.453157894737[/C][C]-2.85315789473685[/C][/ROW]
[ROW][C]28[/C][C]115.4[/C][C]123.826842105263[/C][C]-8.42684210526314[/C][/ROW]
[ROW][C]29[/C][C]109[/C][C]120.613157894737[/C][C]-11.6131578947368[/C][/ROW]
[ROW][C]30[/C][C]129.1[/C][C]135.623421052632[/C][C]-6.52342105263157[/C][/ROW]
[ROW][C]31[/C][C]102.8[/C][C]105.866842105263[/C][C]-3.06684210526315[/C][/ROW]
[ROW][C]32[/C][C]96.2[/C][C]98.4731578947369[/C][C]-2.27315789473685[/C][/ROW]
[ROW][C]33[/C][C]127.7[/C][C]125.766842105263[/C][C]1.93315789473684[/C][/ROW]
[ROW][C]34[/C][C]128.9[/C][C]133.523421052632[/C][C]-4.62342105263158[/C][/ROW]
[ROW][C]35[/C][C]126.5[/C][C]128.606842105263[/C][C]-2.10684210526316[/C][/ROW]
[ROW][C]36[/C][C]119.8[/C][C]113.226842105263[/C][C]6.57315789473683[/C][/ROW]
[ROW][C]37[/C][C]113.2[/C][C]124.104868421053[/C][C]-10.9048684210526[/C][/ROW]
[ROW][C]38[/C][C]114.1[/C][C]126.544868421053[/C][C]-12.4448684210526[/C][/ROW]
[ROW][C]39[/C][C]134.1[/C][C]141.864868421053[/C][C]-7.76486842105265[/C][/ROW]
[ROW][C]40[/C][C]130[/C][C]137.521447368421[/C][C]-7.52144736842104[/C][/ROW]
[ROW][C]41[/C][C]121.8[/C][C]137.024868421053[/C][C]-15.2248684210526[/C][/ROW]
[ROW][C]42[/C][C]132.1[/C][C]149.318026315789[/C][C]-17.2180263157895[/C][/ROW]
[ROW][C]43[/C][C]105.3[/C][C]119.561447368421[/C][C]-14.2614473684211[/C][/ROW]
[ROW][C]44[/C][C]103[/C][C]114.884868421053[/C][C]-11.8848684210527[/C][/ROW]
[ROW][C]45[/C][C]117.1[/C][C]139.461447368421[/C][C]-22.3614473684211[/C][/ROW]
[ROW][C]46[/C][C]126.3[/C][C]147.218026315789[/C][C]-20.9180263157895[/C][/ROW]
[ROW][C]47[/C][C]138.1[/C][C]142.301447368421[/C][C]-4.20144736842106[/C][/ROW]
[ROW][C]48[/C][C]119.5[/C][C]126.921447368421[/C][C]-7.42144736842106[/C][/ROW]
[ROW][C]49[/C][C]138[/C][C]137.799473684210[/C][C]0.200526315789507[/C][/ROW]
[ROW][C]50[/C][C]135.5[/C][C]140.239473684211[/C][C]-4.73947368421053[/C][/ROW]
[ROW][C]51[/C][C]178.6[/C][C]155.559473684211[/C][C]23.0405263157895[/C][/ROW]
[ROW][C]52[/C][C]162.2[/C][C]151.216052631579[/C][C]10.9839473684210[/C][/ROW]
[ROW][C]53[/C][C]176.9[/C][C]150.719473684211[/C][C]26.1805263157895[/C][/ROW]
[ROW][C]54[/C][C]204.9[/C][C]163.012631578947[/C][C]41.8873684210526[/C][/ROW]
[ROW][C]55[/C][C]132.2[/C][C]133.256052631579[/C][C]-1.05605263157896[/C][/ROW]
[ROW][C]56[/C][C]142.5[/C][C]128.579473684211[/C][C]13.9205263157895[/C][/ROW]
[ROW][C]57[/C][C]164.3[/C][C]153.156052631579[/C][C]11.1439473684211[/C][/ROW]
[ROW][C]58[/C][C]174.9[/C][C]160.912631578947[/C][C]13.9873684210526[/C][/ROW]
[ROW][C]59[/C][C]175.4[/C][C]155.996052631579[/C][C]19.4039473684211[/C][/ROW]
[ROW][C]60[/C][C]143[/C][C]140.616052631579[/C][C]2.38394736842104[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60530&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60530&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
1101.380.303947368421220.9960526315788
2106.382.74394736842123.556052631579
39498.063947368421-4.06394736842103
4102.893.72052631578959.07947368421052
510293.2239473684218.77605263157896
6105.1108.234210526316-3.13421052631583
792.475.760526315789516.6394736842105
881.471.08394736842110.3160526315790
9105.895.660526315789510.1394736842105
10120.3106.13421052631614.1657894736842
11100.798.50052631578952.19947368421053
1288.883.12052631578955.67947368421054
1394.393.9985526315790.301447368421092
1499.996.4385526315793.46144736842105
15103.4111.758552631579-8.35855263157894
16103.3107.415131578947-4.11513157894737
1798.8106.918552631579-8.11855263157896
18104.2119.211710526316-15.0117105263158
1991.289.45513157894741.74486842105265
2074.784.778552631579-10.0785526315789
21108.5109.355131578947-0.855131578947372
22114.5117.111710526316-2.61171052631578
2396.9112.195131578947-15.2951315789474
2489.696.8151315789474-7.21513157894738
2597.1107.693157894737-10.5931578947368
26100.3110.133157894737-9.83315789473684
27122.6125.453157894737-2.85315789473685
28115.4123.826842105263-8.42684210526314
29109120.613157894737-11.6131578947368
30129.1135.623421052632-6.52342105263157
31102.8105.866842105263-3.06684210526315
3296.298.4731578947369-2.27315789473685
33127.7125.7668421052631.93315789473684
34128.9133.523421052632-4.62342105263158
35126.5128.606842105263-2.10684210526316
36119.8113.2268421052636.57315789473683
37113.2124.104868421053-10.9048684210526
38114.1126.544868421053-12.4448684210526
39134.1141.864868421053-7.76486842105265
40130137.521447368421-7.52144736842104
41121.8137.024868421053-15.2248684210526
42132.1149.318026315789-17.2180263157895
43105.3119.561447368421-14.2614473684211
44103114.884868421053-11.8848684210527
45117.1139.461447368421-22.3614473684211
46126.3147.218026315789-20.9180263157895
47138.1142.301447368421-4.20144736842106
48119.5126.921447368421-7.42144736842106
49138137.7994736842100.200526315789507
50135.5140.239473684211-4.73947368421053
51178.6155.55947368421123.0405263157895
52162.2151.21605263157910.9839473684210
53176.9150.71947368421126.1805263157895
54204.9163.01263157894741.8873684210526
55132.2133.256052631579-1.05605263157896
56142.5128.57947368421113.9205263157895
57164.3153.15605263157911.1439473684211
58174.9160.91263157894713.9873684210526
59175.4155.99605263157919.4039473684211
60143140.6160526315792.38394736842104







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0954859519315070.1909719038630140.904514048068493
180.03366194578706560.06732389157413110.966338054212935
190.01132122577807730.02264245155615460.988678774221923
200.004565022982962930.009130045965925850.995434977017037
210.001845660971871010.003691321943742010.99815433902813
220.0006743159906732930.001348631981346590.999325684009327
230.0001979483432360050.0003958966864720110.999802051656764
245.52006808433995e-050.0001104013616867990.999944799319157
251.35594276635181e-052.71188553270361e-050.999986440572336
263.20813177835689e-066.41626355671378e-060.999996791868222
270.001667470326614390.003334940653228770.998332529673386
280.0007342682139039250.001468536427807850.999265731786096
290.0003706970829478680.0007413941658957360.999629302917052
300.0007110717995608910.001422143599121780.99928892820044
310.000491305862420050.00098261172484010.99950869413758
320.0004633872768662770.0009267745537325530.999536612723134
330.0005809259086284560.001161851817256910.999419074091372
340.0005099591166174430.001019918233234890.999490040883383
350.0006174023997880.0012348047995760.999382597600212
360.02216266251967550.04432532503935110.977837337480324
370.02069105769586060.04138211539172130.97930894230414
380.03324340896043810.06648681792087620.966756591039562
390.02017485341689480.04034970683378960.979825146583105
400.01469741871540360.02939483743080720.985302581284596
410.0101034055189160.0202068110378320.989896594481084
420.2113155581211260.4226311162422520.788684441878874
430.2132797772836000.4265595545672010.7867202227164

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.095485951931507 & 0.190971903863014 & 0.904514048068493 \tabularnewline
18 & 0.0336619457870656 & 0.0673238915741311 & 0.966338054212935 \tabularnewline
19 & 0.0113212257780773 & 0.0226424515561546 & 0.988678774221923 \tabularnewline
20 & 0.00456502298296293 & 0.00913004596592585 & 0.995434977017037 \tabularnewline
21 & 0.00184566097187101 & 0.00369132194374201 & 0.99815433902813 \tabularnewline
22 & 0.000674315990673293 & 0.00134863198134659 & 0.999325684009327 \tabularnewline
23 & 0.000197948343236005 & 0.000395896686472011 & 0.999802051656764 \tabularnewline
24 & 5.52006808433995e-05 & 0.000110401361686799 & 0.999944799319157 \tabularnewline
25 & 1.35594276635181e-05 & 2.71188553270361e-05 & 0.999986440572336 \tabularnewline
26 & 3.20813177835689e-06 & 6.41626355671378e-06 & 0.999996791868222 \tabularnewline
27 & 0.00166747032661439 & 0.00333494065322877 & 0.998332529673386 \tabularnewline
28 & 0.000734268213903925 & 0.00146853642780785 & 0.999265731786096 \tabularnewline
29 & 0.000370697082947868 & 0.000741394165895736 & 0.999629302917052 \tabularnewline
30 & 0.000711071799560891 & 0.00142214359912178 & 0.99928892820044 \tabularnewline
31 & 0.00049130586242005 & 0.0009826117248401 & 0.99950869413758 \tabularnewline
32 & 0.000463387276866277 & 0.000926774553732553 & 0.999536612723134 \tabularnewline
33 & 0.000580925908628456 & 0.00116185181725691 & 0.999419074091372 \tabularnewline
34 & 0.000509959116617443 & 0.00101991823323489 & 0.999490040883383 \tabularnewline
35 & 0.000617402399788 & 0.001234804799576 & 0.999382597600212 \tabularnewline
36 & 0.0221626625196755 & 0.0443253250393511 & 0.977837337480324 \tabularnewline
37 & 0.0206910576958606 & 0.0413821153917213 & 0.97930894230414 \tabularnewline
38 & 0.0332434089604381 & 0.0664868179208762 & 0.966756591039562 \tabularnewline
39 & 0.0201748534168948 & 0.0403497068337896 & 0.979825146583105 \tabularnewline
40 & 0.0146974187154036 & 0.0293948374308072 & 0.985302581284596 \tabularnewline
41 & 0.010103405518916 & 0.020206811037832 & 0.989896594481084 \tabularnewline
42 & 0.211315558121126 & 0.422631116242252 & 0.788684441878874 \tabularnewline
43 & 0.213279777283600 & 0.426559554567201 & 0.7867202227164 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60530&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.095485951931507[/C][C]0.190971903863014[/C][C]0.904514048068493[/C][/ROW]
[ROW][C]18[/C][C]0.0336619457870656[/C][C]0.0673238915741311[/C][C]0.966338054212935[/C][/ROW]
[ROW][C]19[/C][C]0.0113212257780773[/C][C]0.0226424515561546[/C][C]0.988678774221923[/C][/ROW]
[ROW][C]20[/C][C]0.00456502298296293[/C][C]0.00913004596592585[/C][C]0.995434977017037[/C][/ROW]
[ROW][C]21[/C][C]0.00184566097187101[/C][C]0.00369132194374201[/C][C]0.99815433902813[/C][/ROW]
[ROW][C]22[/C][C]0.000674315990673293[/C][C]0.00134863198134659[/C][C]0.999325684009327[/C][/ROW]
[ROW][C]23[/C][C]0.000197948343236005[/C][C]0.000395896686472011[/C][C]0.999802051656764[/C][/ROW]
[ROW][C]24[/C][C]5.52006808433995e-05[/C][C]0.000110401361686799[/C][C]0.999944799319157[/C][/ROW]
[ROW][C]25[/C][C]1.35594276635181e-05[/C][C]2.71188553270361e-05[/C][C]0.999986440572336[/C][/ROW]
[ROW][C]26[/C][C]3.20813177835689e-06[/C][C]6.41626355671378e-06[/C][C]0.999996791868222[/C][/ROW]
[ROW][C]27[/C][C]0.00166747032661439[/C][C]0.00333494065322877[/C][C]0.998332529673386[/C][/ROW]
[ROW][C]28[/C][C]0.000734268213903925[/C][C]0.00146853642780785[/C][C]0.999265731786096[/C][/ROW]
[ROW][C]29[/C][C]0.000370697082947868[/C][C]0.000741394165895736[/C][C]0.999629302917052[/C][/ROW]
[ROW][C]30[/C][C]0.000711071799560891[/C][C]0.00142214359912178[/C][C]0.99928892820044[/C][/ROW]
[ROW][C]31[/C][C]0.00049130586242005[/C][C]0.0009826117248401[/C][C]0.99950869413758[/C][/ROW]
[ROW][C]32[/C][C]0.000463387276866277[/C][C]0.000926774553732553[/C][C]0.999536612723134[/C][/ROW]
[ROW][C]33[/C][C]0.000580925908628456[/C][C]0.00116185181725691[/C][C]0.999419074091372[/C][/ROW]
[ROW][C]34[/C][C]0.000509959116617443[/C][C]0.00101991823323489[/C][C]0.999490040883383[/C][/ROW]
[ROW][C]35[/C][C]0.000617402399788[/C][C]0.001234804799576[/C][C]0.999382597600212[/C][/ROW]
[ROW][C]36[/C][C]0.0221626625196755[/C][C]0.0443253250393511[/C][C]0.977837337480324[/C][/ROW]
[ROW][C]37[/C][C]0.0206910576958606[/C][C]0.0413821153917213[/C][C]0.97930894230414[/C][/ROW]
[ROW][C]38[/C][C]0.0332434089604381[/C][C]0.0664868179208762[/C][C]0.966756591039562[/C][/ROW]
[ROW][C]39[/C][C]0.0201748534168948[/C][C]0.0403497068337896[/C][C]0.979825146583105[/C][/ROW]
[ROW][C]40[/C][C]0.0146974187154036[/C][C]0.0293948374308072[/C][C]0.985302581284596[/C][/ROW]
[ROW][C]41[/C][C]0.010103405518916[/C][C]0.020206811037832[/C][C]0.989896594481084[/C][/ROW]
[ROW][C]42[/C][C]0.211315558121126[/C][C]0.422631116242252[/C][C]0.788684441878874[/C][/ROW]
[ROW][C]43[/C][C]0.213279777283600[/C][C]0.426559554567201[/C][C]0.7867202227164[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60530&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60530&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.0954859519315070.1909719038630140.904514048068493
180.03366194578706560.06732389157413110.966338054212935
190.01132122577807730.02264245155615460.988678774221923
200.004565022982962930.009130045965925850.995434977017037
210.001845660971871010.003691321943742010.99815433902813
220.0006743159906732930.001348631981346590.999325684009327
230.0001979483432360050.0003958966864720110.999802051656764
245.52006808433995e-050.0001104013616867990.999944799319157
251.35594276635181e-052.71188553270361e-050.999986440572336
263.20813177835689e-066.41626355671378e-060.999996791868222
270.001667470326614390.003334940653228770.998332529673386
280.0007342682139039250.001468536427807850.999265731786096
290.0003706970829478680.0007413941658957360.999629302917052
300.0007110717995608910.001422143599121780.99928892820044
310.000491305862420050.00098261172484010.99950869413758
320.0004633872768662770.0009267745537325530.999536612723134
330.0005809259086284560.001161851817256910.999419074091372
340.0005099591166174430.001019918233234890.999490040883383
350.0006174023997880.0012348047995760.999382597600212
360.02216266251967550.04432532503935110.977837337480324
370.02069105769586060.04138211539172130.97930894230414
380.03324340896043810.06648681792087620.966756591039562
390.02017485341689480.04034970683378960.979825146583105
400.01469741871540360.02939483743080720.985302581284596
410.0101034055189160.0202068110378320.989896594481084
420.2113155581211260.4226311162422520.788684441878874
430.2132797772836000.4265595545672010.7867202227164







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level160.592592592592593NOK
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 & 16 & 0.592592592592593 & 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=60530&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]16[/C][C]0.592592592592593[/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=60530&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60530&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 level160.592592592592593NOK
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')
}