Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 19 Nov 2009 02:46:44 -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/19/t1258624189xwazpr0k6w4yd6s.htm/, Retrieved Thu, 18 Apr 2024 23:22:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57674, Retrieved Thu, 18 Apr 2024 23:22:18 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact167
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:10:54] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [Multivariate regr...] [2009-11-19 09:46:44] [bef26de542bed2eafc60fe4615b06e47] [Current]
-    D        [Multiple Regression] [] [2010-12-07 13:11:12] [f47feae0308dca73181bb669fbad1c56]
- R             [Multiple Regression] [] [2011-11-26 18:32:22] [74be16979710d4c4e7c6647856088456]
- R P             [Multiple Regression] [] [2011-11-27 16:58:04] [3931071255a6f7f4a767409781cc5f7d]
Feedback Forum

Post a new message
Dataseries X:
121.6	0	118.8	121.6
118.8	0	114.0	118.8
114.0	1	111.5	114.0
111.5	1	97.2	111.5
97.2	1	102.5	97.2
102.5	1	113.4	102.5
113.4	1	109.8	113.4
109.8	1	104.9	109.8
104.9	1	126.1	104.9
126.1	1	80.0	126.1
80.0	1	96.8	80.0
96.8	1	117.2	96.8
117.2	1	112.3	117.2
112.3	1	117.3	112.3
117.3	1	111.1	117.3
111.1	0	102.2	111.1
102.2	0	104.3	102.2
104.3	0	122.9	104.3
122.9	0	107.6	122.9
107.6	0	121.3	107.6
121.3	0	131.5	121.3
131.5	0	89.0	131.5
89.0	0	104.4	89.0
104.4	0	128.9	104.4
128.9	0	135.9	128.9
135.9	0	133.3	135.9
133.3	0	121.3	133.3
121.3	0	120.5	121.3
120.5	0	120.4	120.5
120.4	0	137.9	120.4
137.9	0	126.1	137.9
126.1	0	133.2	126.1
133.2	0	151.1	133.2
151.1	0	105.0	151.1
105.0	0	119.0	105.0
119.0	0	140.4	119.0
140.4	0	156.6	140.4
156.6	0	137.1	156.6
137.1	0	122.7	137.1
122.7	0	125.8	122.7
125.8	0	139.3	125.8
139.3	0	134.9	139.3
134.9	0	149.2	134.9
149.2	1	132.3	149.2
132.3	0	149.0	132.3
149.0	1	117.2	149.0
117.2	1	119.6	117.2
119.6	1	152.0	119.6
152.0	1	149.4	152.0
149.4	1	127.3	149.4
127.3	1	114.1	127.3
114.1	1	102.1	114.1
102.1	1	107.7	102.1
107.7	1	104.4	107.7
104.4	1	102.1	104.4
102.1	1	96.0	102.1
96.0	1	109.3	96.0
109.3	1	90.0	109.3
90.0	1	83.9	90.0




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

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

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57674&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
X[t] = + 2.42573757940473e-14 -1.10621525256423e-15Y[t] + 1.73941944300476e-16`y(t)`[t] + 1`y(t-1)`[t] + 3.5871261402665e-15M1[t] + 1.45311986839648e-15M2[t] + 3.86317633458343e-15M3[t] -4.58472364171786e-15M4[t] + 1.42554963786182e-15M5[t] + 6.72587662357488e-16M6[t] + 1.80051575661032e-15M7[t] + 2.48804227517438e-15M8[t] + 5.59157247289086e-17M9[t] + 3.13914674201018e-15M10[t] + 9.23529337726194e-16M11[t] + 6.16682067938704e-17t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
X[t] =  +  2.42573757940473e-14 -1.10621525256423e-15Y[t] +  1.73941944300476e-16`y(t)`[t] +  1`y(t-1)`[t] +  3.5871261402665e-15M1[t] +  1.45311986839648e-15M2[t] +  3.86317633458343e-15M3[t] -4.58472364171786e-15M4[t] +  1.42554963786182e-15M5[t] +  6.72587662357488e-16M6[t] +  1.80051575661032e-15M7[t] +  2.48804227517438e-15M8[t] +  5.59157247289086e-17M9[t] +  3.13914674201018e-15M10[t] +  9.23529337726194e-16M11[t] +  6.16682067938704e-17t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57674&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]X[t] =  +  2.42573757940473e-14 -1.10621525256423e-15Y[t] +  1.73941944300476e-16`y(t)`[t] +  1`y(t-1)`[t] +  3.5871261402665e-15M1[t] +  1.45311986839648e-15M2[t] +  3.86317633458343e-15M3[t] -4.58472364171786e-15M4[t] +  1.42554963786182e-15M5[t] +  6.72587662357488e-16M6[t] +  1.80051575661032e-15M7[t] +  2.48804227517438e-15M8[t] +  5.59157247289086e-17M9[t] +  3.13914674201018e-15M10[t] +  9.23529337726194e-16M11[t] +  6.16682067938704e-17t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57674&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
X[t] = + 2.42573757940473e-14 -1.10621525256423e-15Y[t] + 1.73941944300476e-16`y(t)`[t] + 1`y(t-1)`[t] + 3.5871261402665e-15M1[t] + 1.45311986839648e-15M2[t] + 3.86317633458343e-15M3[t] -4.58472364171786e-15M4[t] + 1.42554963786182e-15M5[t] + 6.72587662357488e-16M6[t] + 1.80051575661032e-15M7[t] + 2.48804227517438e-15M8[t] + 5.59157247289086e-17M9[t] + 3.13914674201018e-15M10[t] + 9.23529337726194e-16M11[t] + 6.16682067938704e-17t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.42573757940473e-1403.01620.0042860.002143
Y-1.10621525256423e-150-0.74430.4607210.230361
`y(t)`1.73941944300476e-1602.12510.0393610.01968
`y(t-1)`101223848302318355600
M13.5871261402665e-1500.9820.3316060.165803
M21.45311986839648e-1500.35480.7244520.362226
M33.86317633458343e-1500.94660.3491080.174554
M4-4.58472364171786e-150-1.14460.2587090.129354
M51.42554963786182e-1500.40160.6899620.344981
M66.72587662357488e-1600.19690.8448360.422418
M71.80051575661032e-1500.47030.6405110.320256
M82.48804227517438e-1500.67070.5059770.252989
M95.59157247289086e-1700.01740.9862330.493117
M103.13914674201018e-1500.55660.5806550.290328
M119.23529337726194e-1600.25440.8004020.400201
t6.16682067938704e-1701.4880.1440490.072024

\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) & 2.42573757940473e-14 & 0 & 3.0162 & 0.004286 & 0.002143 \tabularnewline
Y & -1.10621525256423e-15 & 0 & -0.7443 & 0.460721 & 0.230361 \tabularnewline
`y(t)` & 1.73941944300476e-16 & 0 & 2.1251 & 0.039361 & 0.01968 \tabularnewline
`y(t-1)` & 1 & 0 & 12238483023183556 & 0 & 0 \tabularnewline
M1 & 3.5871261402665e-15 & 0 & 0.982 & 0.331606 & 0.165803 \tabularnewline
M2 & 1.45311986839648e-15 & 0 & 0.3548 & 0.724452 & 0.362226 \tabularnewline
M3 & 3.86317633458343e-15 & 0 & 0.9466 & 0.349108 & 0.174554 \tabularnewline
M4 & -4.58472364171786e-15 & 0 & -1.1446 & 0.258709 & 0.129354 \tabularnewline
M5 & 1.42554963786182e-15 & 0 & 0.4016 & 0.689962 & 0.344981 \tabularnewline
M6 & 6.72587662357488e-16 & 0 & 0.1969 & 0.844836 & 0.422418 \tabularnewline
M7 & 1.80051575661032e-15 & 0 & 0.4703 & 0.640511 & 0.320256 \tabularnewline
M8 & 2.48804227517438e-15 & 0 & 0.6707 & 0.505977 & 0.252989 \tabularnewline
M9 & 5.59157247289086e-17 & 0 & 0.0174 & 0.986233 & 0.493117 \tabularnewline
M10 & 3.13914674201018e-15 & 0 & 0.5566 & 0.580655 & 0.290328 \tabularnewline
M11 & 9.23529337726194e-16 & 0 & 0.2544 & 0.800402 & 0.400201 \tabularnewline
t & 6.16682067938704e-17 & 0 & 1.488 & 0.144049 & 0.072024 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57674&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]2.42573757940473e-14[/C][C]0[/C][C]3.0162[/C][C]0.004286[/C][C]0.002143[/C][/ROW]
[ROW][C]Y[/C][C]-1.10621525256423e-15[/C][C]0[/C][C]-0.7443[/C][C]0.460721[/C][C]0.230361[/C][/ROW]
[ROW][C]`y(t)`[/C][C]1.73941944300476e-16[/C][C]0[/C][C]2.1251[/C][C]0.039361[/C][C]0.01968[/C][/ROW]
[ROW][C]`y(t-1)`[/C][C]1[/C][C]0[/C][C]12238483023183556[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]3.5871261402665e-15[/C][C]0[/C][C]0.982[/C][C]0.331606[/C][C]0.165803[/C][/ROW]
[ROW][C]M2[/C][C]1.45311986839648e-15[/C][C]0[/C][C]0.3548[/C][C]0.724452[/C][C]0.362226[/C][/ROW]
[ROW][C]M3[/C][C]3.86317633458343e-15[/C][C]0[/C][C]0.9466[/C][C]0.349108[/C][C]0.174554[/C][/ROW]
[ROW][C]M4[/C][C]-4.58472364171786e-15[/C][C]0[/C][C]-1.1446[/C][C]0.258709[/C][C]0.129354[/C][/ROW]
[ROW][C]M5[/C][C]1.42554963786182e-15[/C][C]0[/C][C]0.4016[/C][C]0.689962[/C][C]0.344981[/C][/ROW]
[ROW][C]M6[/C][C]6.72587662357488e-16[/C][C]0[/C][C]0.1969[/C][C]0.844836[/C][C]0.422418[/C][/ROW]
[ROW][C]M7[/C][C]1.80051575661032e-15[/C][C]0[/C][C]0.4703[/C][C]0.640511[/C][C]0.320256[/C][/ROW]
[ROW][C]M8[/C][C]2.48804227517438e-15[/C][C]0[/C][C]0.6707[/C][C]0.505977[/C][C]0.252989[/C][/ROW]
[ROW][C]M9[/C][C]5.59157247289086e-17[/C][C]0[/C][C]0.0174[/C][C]0.986233[/C][C]0.493117[/C][/ROW]
[ROW][C]M10[/C][C]3.13914674201018e-15[/C][C]0[/C][C]0.5566[/C][C]0.580655[/C][C]0.290328[/C][/ROW]
[ROW][C]M11[/C][C]9.23529337726194e-16[/C][C]0[/C][C]0.2544[/C][C]0.800402[/C][C]0.400201[/C][/ROW]
[ROW][C]t[/C][C]6.16682067938704e-17[/C][C]0[/C][C]1.488[/C][C]0.144049[/C][C]0.072024[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57674&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57674&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)2.42573757940473e-1403.01620.0042860.002143
Y-1.10621525256423e-150-0.74430.4607210.230361
`y(t)`1.73941944300476e-1602.12510.0393610.01968
`y(t-1)`101223848302318355600
M13.5871261402665e-1500.9820.3316060.165803
M21.45311986839648e-1500.35480.7244520.362226
M33.86317633458343e-1500.94660.3491080.174554
M4-4.58472364171786e-150-1.14460.2587090.129354
M51.42554963786182e-1500.40160.6899620.344981
M66.72587662357488e-1600.19690.8448360.422418
M71.80051575661032e-1500.47030.6405110.320256
M82.48804227517438e-1500.67070.5059770.252989
M95.59157247289086e-1700.01740.9862330.493117
M103.13914674201018e-1500.55660.5806550.290328
M119.23529337726194e-1600.25440.8004020.400201
t6.16682067938704e-1701.4880.1440490.072024







Multiple Linear Regression - Regression Statistics
Multiple R1
R-squared1
Adjusted R-squared1
F-TEST (value)5.17784686417388e+31
F-TEST (DF numerator)15
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.68745380333525e-15
Sum Squared Residuals9.4480559581129e-28

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 1 \tabularnewline
R-squared & 1 \tabularnewline
Adjusted R-squared & 1 \tabularnewline
F-TEST (value) & 5.17784686417388e+31 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.68745380333525e-15 \tabularnewline
Sum Squared Residuals & 9.4480559581129e-28 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57674&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]1[/C][/ROW]
[ROW][C]R-squared[/C][C]1[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.17784686417388e+31[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]43[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4.68745380333525e-15[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]9.4480559581129e-28[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57674&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57674&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 R1
R-squared1
Adjusted R-squared1
F-TEST (value)5.17784686417388e+31
F-TEST (DF numerator)15
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.68745380333525e-15
Sum Squared Residuals9.4480559581129e-28







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1121.6121.65.1598968911658e-15
2118.8118.8-2.47048516888479e-15
31141145.97101416775422e-15
4111.5111.5-2.45667224914920e-14
597.297.22.63396148879811e-15
6102.5102.51.31732627232337e-15
7113.4113.42.48406872766872e-15
8109.8109.81.72595734699534e-15
9104.9104.96.00364530378654e-16
10126.1126.12.27633968785434e-15
118080-7.8807059158531e-16
1296.896.81.55724433278448e-15
13117.2117.25.89719441674279e-16
14112.3112.31.63424952099354e-15
15117.3117.35.3331706975893e-17
16111.1111.16.70288979656398e-15
17102.2102.22.80488516572053e-16
18104.3104.3-1.32518249573566e-15
19122.9122.95.01312148040412e-16
20107.6107.6-2.42314342635931e-15
21121.3121.31.20535114440922e-15
22131.5131.55.07128663371332e-16
2389897.452982789112e-18
24104.4104.4-4.80245327984365e-16
25128.9128.9-2.29889377350922e-15
26135.9135.96.3946376342949e-16
27133.3133.3-1.45821243091906e-15
28121.3121.35.93071438076604e-15
29120.5120.5-1.82511413908129e-16
30120.4120.4-9.24845719424226e-16
31137.9137.9-2.82944238042836e-16
32126.1126.1-1.55362873926436e-15
33133.2133.23.73716350686351e-16
34151.1151.1-3.3829995467753e-15
351051053.93822025238541e-16
36119119-5.353571482844e-17
37140.4140.4-3.26470645771113e-15
38156.6156.6-2.22429205037575e-16
39137.1137.1-2.96956344884491e-15
40122.7122.74.91384830208465e-15
41125.8125.8-1.73152536749111e-15
42139.3139.36.64119576856926e-16
43134.9134.9-1.90487363852007e-15
44149.2149.23.82632825443814e-15
45132.3132.3-3.50478428733403e-16
461491491.67466771418008e-15
47117.2117.26.24147312877045e-16
48119.6119.6-1.02346328997169e-15
49152152-1.86016101619726e-16
50149.4149.44.19201089499341e-16
51127.3127.3-1.59656999496614e-15
52114.1114.17.0192700120773e-15
53102.1102.1-1.00041322397093e-15
54107.7107.72.68582365979593e-16
55104.4104.4-7.97562999146224e-16
56102.1102.1-1.57551343580981e-15
579696-1.82895359674082e-15
58109.3109.3-1.07513651863044e-15
599090-2.37351729319387e-16

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 121.6 & 121.6 & 5.1598968911658e-15 \tabularnewline
2 & 118.8 & 118.8 & -2.47048516888479e-15 \tabularnewline
3 & 114 & 114 & 5.97101416775422e-15 \tabularnewline
4 & 111.5 & 111.5 & -2.45667224914920e-14 \tabularnewline
5 & 97.2 & 97.2 & 2.63396148879811e-15 \tabularnewline
6 & 102.5 & 102.5 & 1.31732627232337e-15 \tabularnewline
7 & 113.4 & 113.4 & 2.48406872766872e-15 \tabularnewline
8 & 109.8 & 109.8 & 1.72595734699534e-15 \tabularnewline
9 & 104.9 & 104.9 & 6.00364530378654e-16 \tabularnewline
10 & 126.1 & 126.1 & 2.27633968785434e-15 \tabularnewline
11 & 80 & 80 & -7.8807059158531e-16 \tabularnewline
12 & 96.8 & 96.8 & 1.55724433278448e-15 \tabularnewline
13 & 117.2 & 117.2 & 5.89719441674279e-16 \tabularnewline
14 & 112.3 & 112.3 & 1.63424952099354e-15 \tabularnewline
15 & 117.3 & 117.3 & 5.3331706975893e-17 \tabularnewline
16 & 111.1 & 111.1 & 6.70288979656398e-15 \tabularnewline
17 & 102.2 & 102.2 & 2.80488516572053e-16 \tabularnewline
18 & 104.3 & 104.3 & -1.32518249573566e-15 \tabularnewline
19 & 122.9 & 122.9 & 5.01312148040412e-16 \tabularnewline
20 & 107.6 & 107.6 & -2.42314342635931e-15 \tabularnewline
21 & 121.3 & 121.3 & 1.20535114440922e-15 \tabularnewline
22 & 131.5 & 131.5 & 5.07128663371332e-16 \tabularnewline
23 & 89 & 89 & 7.452982789112e-18 \tabularnewline
24 & 104.4 & 104.4 & -4.80245327984365e-16 \tabularnewline
25 & 128.9 & 128.9 & -2.29889377350922e-15 \tabularnewline
26 & 135.9 & 135.9 & 6.3946376342949e-16 \tabularnewline
27 & 133.3 & 133.3 & -1.45821243091906e-15 \tabularnewline
28 & 121.3 & 121.3 & 5.93071438076604e-15 \tabularnewline
29 & 120.5 & 120.5 & -1.82511413908129e-16 \tabularnewline
30 & 120.4 & 120.4 & -9.24845719424226e-16 \tabularnewline
31 & 137.9 & 137.9 & -2.82944238042836e-16 \tabularnewline
32 & 126.1 & 126.1 & -1.55362873926436e-15 \tabularnewline
33 & 133.2 & 133.2 & 3.73716350686351e-16 \tabularnewline
34 & 151.1 & 151.1 & -3.3829995467753e-15 \tabularnewline
35 & 105 & 105 & 3.93822025238541e-16 \tabularnewline
36 & 119 & 119 & -5.353571482844e-17 \tabularnewline
37 & 140.4 & 140.4 & -3.26470645771113e-15 \tabularnewline
38 & 156.6 & 156.6 & -2.22429205037575e-16 \tabularnewline
39 & 137.1 & 137.1 & -2.96956344884491e-15 \tabularnewline
40 & 122.7 & 122.7 & 4.91384830208465e-15 \tabularnewline
41 & 125.8 & 125.8 & -1.73152536749111e-15 \tabularnewline
42 & 139.3 & 139.3 & 6.64119576856926e-16 \tabularnewline
43 & 134.9 & 134.9 & -1.90487363852007e-15 \tabularnewline
44 & 149.2 & 149.2 & 3.82632825443814e-15 \tabularnewline
45 & 132.3 & 132.3 & -3.50478428733403e-16 \tabularnewline
46 & 149 & 149 & 1.67466771418008e-15 \tabularnewline
47 & 117.2 & 117.2 & 6.24147312877045e-16 \tabularnewline
48 & 119.6 & 119.6 & -1.02346328997169e-15 \tabularnewline
49 & 152 & 152 & -1.86016101619726e-16 \tabularnewline
50 & 149.4 & 149.4 & 4.19201089499341e-16 \tabularnewline
51 & 127.3 & 127.3 & -1.59656999496614e-15 \tabularnewline
52 & 114.1 & 114.1 & 7.0192700120773e-15 \tabularnewline
53 & 102.1 & 102.1 & -1.00041322397093e-15 \tabularnewline
54 & 107.7 & 107.7 & 2.68582365979593e-16 \tabularnewline
55 & 104.4 & 104.4 & -7.97562999146224e-16 \tabularnewline
56 & 102.1 & 102.1 & -1.57551343580981e-15 \tabularnewline
57 & 96 & 96 & -1.82895359674082e-15 \tabularnewline
58 & 109.3 & 109.3 & -1.07513651863044e-15 \tabularnewline
59 & 90 & 90 & -2.37351729319387e-16 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57674&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]121.6[/C][C]121.6[/C][C]5.1598968911658e-15[/C][/ROW]
[ROW][C]2[/C][C]118.8[/C][C]118.8[/C][C]-2.47048516888479e-15[/C][/ROW]
[ROW][C]3[/C][C]114[/C][C]114[/C][C]5.97101416775422e-15[/C][/ROW]
[ROW][C]4[/C][C]111.5[/C][C]111.5[/C][C]-2.45667224914920e-14[/C][/ROW]
[ROW][C]5[/C][C]97.2[/C][C]97.2[/C][C]2.63396148879811e-15[/C][/ROW]
[ROW][C]6[/C][C]102.5[/C][C]102.5[/C][C]1.31732627232337e-15[/C][/ROW]
[ROW][C]7[/C][C]113.4[/C][C]113.4[/C][C]2.48406872766872e-15[/C][/ROW]
[ROW][C]8[/C][C]109.8[/C][C]109.8[/C][C]1.72595734699534e-15[/C][/ROW]
[ROW][C]9[/C][C]104.9[/C][C]104.9[/C][C]6.00364530378654e-16[/C][/ROW]
[ROW][C]10[/C][C]126.1[/C][C]126.1[/C][C]2.27633968785434e-15[/C][/ROW]
[ROW][C]11[/C][C]80[/C][C]80[/C][C]-7.8807059158531e-16[/C][/ROW]
[ROW][C]12[/C][C]96.8[/C][C]96.8[/C][C]1.55724433278448e-15[/C][/ROW]
[ROW][C]13[/C][C]117.2[/C][C]117.2[/C][C]5.89719441674279e-16[/C][/ROW]
[ROW][C]14[/C][C]112.3[/C][C]112.3[/C][C]1.63424952099354e-15[/C][/ROW]
[ROW][C]15[/C][C]117.3[/C][C]117.3[/C][C]5.3331706975893e-17[/C][/ROW]
[ROW][C]16[/C][C]111.1[/C][C]111.1[/C][C]6.70288979656398e-15[/C][/ROW]
[ROW][C]17[/C][C]102.2[/C][C]102.2[/C][C]2.80488516572053e-16[/C][/ROW]
[ROW][C]18[/C][C]104.3[/C][C]104.3[/C][C]-1.32518249573566e-15[/C][/ROW]
[ROW][C]19[/C][C]122.9[/C][C]122.9[/C][C]5.01312148040412e-16[/C][/ROW]
[ROW][C]20[/C][C]107.6[/C][C]107.6[/C][C]-2.42314342635931e-15[/C][/ROW]
[ROW][C]21[/C][C]121.3[/C][C]121.3[/C][C]1.20535114440922e-15[/C][/ROW]
[ROW][C]22[/C][C]131.5[/C][C]131.5[/C][C]5.07128663371332e-16[/C][/ROW]
[ROW][C]23[/C][C]89[/C][C]89[/C][C]7.452982789112e-18[/C][/ROW]
[ROW][C]24[/C][C]104.4[/C][C]104.4[/C][C]-4.80245327984365e-16[/C][/ROW]
[ROW][C]25[/C][C]128.9[/C][C]128.9[/C][C]-2.29889377350922e-15[/C][/ROW]
[ROW][C]26[/C][C]135.9[/C][C]135.9[/C][C]6.3946376342949e-16[/C][/ROW]
[ROW][C]27[/C][C]133.3[/C][C]133.3[/C][C]-1.45821243091906e-15[/C][/ROW]
[ROW][C]28[/C][C]121.3[/C][C]121.3[/C][C]5.93071438076604e-15[/C][/ROW]
[ROW][C]29[/C][C]120.5[/C][C]120.5[/C][C]-1.82511413908129e-16[/C][/ROW]
[ROW][C]30[/C][C]120.4[/C][C]120.4[/C][C]-9.24845719424226e-16[/C][/ROW]
[ROW][C]31[/C][C]137.9[/C][C]137.9[/C][C]-2.82944238042836e-16[/C][/ROW]
[ROW][C]32[/C][C]126.1[/C][C]126.1[/C][C]-1.55362873926436e-15[/C][/ROW]
[ROW][C]33[/C][C]133.2[/C][C]133.2[/C][C]3.73716350686351e-16[/C][/ROW]
[ROW][C]34[/C][C]151.1[/C][C]151.1[/C][C]-3.3829995467753e-15[/C][/ROW]
[ROW][C]35[/C][C]105[/C][C]105[/C][C]3.93822025238541e-16[/C][/ROW]
[ROW][C]36[/C][C]119[/C][C]119[/C][C]-5.353571482844e-17[/C][/ROW]
[ROW][C]37[/C][C]140.4[/C][C]140.4[/C][C]-3.26470645771113e-15[/C][/ROW]
[ROW][C]38[/C][C]156.6[/C][C]156.6[/C][C]-2.22429205037575e-16[/C][/ROW]
[ROW][C]39[/C][C]137.1[/C][C]137.1[/C][C]-2.96956344884491e-15[/C][/ROW]
[ROW][C]40[/C][C]122.7[/C][C]122.7[/C][C]4.91384830208465e-15[/C][/ROW]
[ROW][C]41[/C][C]125.8[/C][C]125.8[/C][C]-1.73152536749111e-15[/C][/ROW]
[ROW][C]42[/C][C]139.3[/C][C]139.3[/C][C]6.64119576856926e-16[/C][/ROW]
[ROW][C]43[/C][C]134.9[/C][C]134.9[/C][C]-1.90487363852007e-15[/C][/ROW]
[ROW][C]44[/C][C]149.2[/C][C]149.2[/C][C]3.82632825443814e-15[/C][/ROW]
[ROW][C]45[/C][C]132.3[/C][C]132.3[/C][C]-3.50478428733403e-16[/C][/ROW]
[ROW][C]46[/C][C]149[/C][C]149[/C][C]1.67466771418008e-15[/C][/ROW]
[ROW][C]47[/C][C]117.2[/C][C]117.2[/C][C]6.24147312877045e-16[/C][/ROW]
[ROW][C]48[/C][C]119.6[/C][C]119.6[/C][C]-1.02346328997169e-15[/C][/ROW]
[ROW][C]49[/C][C]152[/C][C]152[/C][C]-1.86016101619726e-16[/C][/ROW]
[ROW][C]50[/C][C]149.4[/C][C]149.4[/C][C]4.19201089499341e-16[/C][/ROW]
[ROW][C]51[/C][C]127.3[/C][C]127.3[/C][C]-1.59656999496614e-15[/C][/ROW]
[ROW][C]52[/C][C]114.1[/C][C]114.1[/C][C]7.0192700120773e-15[/C][/ROW]
[ROW][C]53[/C][C]102.1[/C][C]102.1[/C][C]-1.00041322397093e-15[/C][/ROW]
[ROW][C]54[/C][C]107.7[/C][C]107.7[/C][C]2.68582365979593e-16[/C][/ROW]
[ROW][C]55[/C][C]104.4[/C][C]104.4[/C][C]-7.97562999146224e-16[/C][/ROW]
[ROW][C]56[/C][C]102.1[/C][C]102.1[/C][C]-1.57551343580981e-15[/C][/ROW]
[ROW][C]57[/C][C]96[/C][C]96[/C][C]-1.82895359674082e-15[/C][/ROW]
[ROW][C]58[/C][C]109.3[/C][C]109.3[/C][C]-1.07513651863044e-15[/C][/ROW]
[ROW][C]59[/C][C]90[/C][C]90[/C][C]-2.37351729319387e-16[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57674&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57674&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
1121.6121.65.1598968911658e-15
2118.8118.8-2.47048516888479e-15
31141145.97101416775422e-15
4111.5111.5-2.45667224914920e-14
597.297.22.63396148879811e-15
6102.5102.51.31732627232337e-15
7113.4113.42.48406872766872e-15
8109.8109.81.72595734699534e-15
9104.9104.96.00364530378654e-16
10126.1126.12.27633968785434e-15
118080-7.8807059158531e-16
1296.896.81.55724433278448e-15
13117.2117.25.89719441674279e-16
14112.3112.31.63424952099354e-15
15117.3117.35.3331706975893e-17
16111.1111.16.70288979656398e-15
17102.2102.22.80488516572053e-16
18104.3104.3-1.32518249573566e-15
19122.9122.95.01312148040412e-16
20107.6107.6-2.42314342635931e-15
21121.3121.31.20535114440922e-15
22131.5131.55.07128663371332e-16
2389897.452982789112e-18
24104.4104.4-4.80245327984365e-16
25128.9128.9-2.29889377350922e-15
26135.9135.96.3946376342949e-16
27133.3133.3-1.45821243091906e-15
28121.3121.35.93071438076604e-15
29120.5120.5-1.82511413908129e-16
30120.4120.4-9.24845719424226e-16
31137.9137.9-2.82944238042836e-16
32126.1126.1-1.55362873926436e-15
33133.2133.23.73716350686351e-16
34151.1151.1-3.3829995467753e-15
351051053.93822025238541e-16
36119119-5.353571482844e-17
37140.4140.4-3.26470645771113e-15
38156.6156.6-2.22429205037575e-16
39137.1137.1-2.96956344884491e-15
40122.7122.74.91384830208465e-15
41125.8125.8-1.73152536749111e-15
42139.3139.36.64119576856926e-16
43134.9134.9-1.90487363852007e-15
44149.2149.23.82632825443814e-15
45132.3132.3-3.50478428733403e-16
461491491.67466771418008e-15
47117.2117.26.24147312877045e-16
48119.6119.6-1.02346328997169e-15
49152152-1.86016101619726e-16
50149.4149.44.19201089499341e-16
51127.3127.3-1.59656999496614e-15
52114.1114.17.0192700120773e-15
53102.1102.1-1.00041322397093e-15
54107.7107.72.68582365979593e-16
55104.4104.4-7.97562999146224e-16
56102.1102.1-1.57551343580981e-15
579696-1.82895359674082e-15
58109.3109.3-1.07513651863044e-15
599090-2.37351729319387e-16







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.691421685216630.6171566295667390.308578314783370
200.025744996069090.051489992138180.97425500393091
210.05954062163672840.1190812432734570.940459378363272
221.01201420189138e-052.02402840378276e-050.999989879857981
230.0002533063706454350.000506612741290870.999746693629355
240.03019464881994320.06038929763988640.969805351180057
250.2849369733202760.5698739466405520.715063026679724
260.9999917743206461.64513587083305e-058.22567935416527e-06
270.8683865398637550.263226920272490.131613460136245
280.1154948813185900.2309897626371800.88450511868141
290.9984905286965580.003018942606884770.00150947130344238
300.996914424805760.006171150388477920.00308557519423896
310.5976076907238870.8047846185522250.402392309276113
320.02548814774320640.05097629548641280.974511852256794
330.9923767976813070.01524640463738530.00762320231869264
340.8974147226119830.2051705547760350.102585277388017
352.56079568825056e-065.12159137650113e-060.999997439204312
360.9896969818100040.02060603637999120.0103030181899956
370.9607615214598930.0784769570802140.039238478540107
380.01200536092489150.02401072184978300.987994639075108
390.7100136687057910.5799726625884170.289986331294209
409.32816602953124e-050.0001865633205906250.999906718339705

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.69142168521663 & 0.617156629566739 & 0.308578314783370 \tabularnewline
20 & 0.02574499606909 & 0.05148999213818 & 0.97425500393091 \tabularnewline
21 & 0.0595406216367284 & 0.119081243273457 & 0.940459378363272 \tabularnewline
22 & 1.01201420189138e-05 & 2.02402840378276e-05 & 0.999989879857981 \tabularnewline
23 & 0.000253306370645435 & 0.00050661274129087 & 0.999746693629355 \tabularnewline
24 & 0.0301946488199432 & 0.0603892976398864 & 0.969805351180057 \tabularnewline
25 & 0.284936973320276 & 0.569873946640552 & 0.715063026679724 \tabularnewline
26 & 0.999991774320646 & 1.64513587083305e-05 & 8.22567935416527e-06 \tabularnewline
27 & 0.868386539863755 & 0.26322692027249 & 0.131613460136245 \tabularnewline
28 & 0.115494881318590 & 0.230989762637180 & 0.88450511868141 \tabularnewline
29 & 0.998490528696558 & 0.00301894260688477 & 0.00150947130344238 \tabularnewline
30 & 0.99691442480576 & 0.00617115038847792 & 0.00308557519423896 \tabularnewline
31 & 0.597607690723887 & 0.804784618552225 & 0.402392309276113 \tabularnewline
32 & 0.0254881477432064 & 0.0509762954864128 & 0.974511852256794 \tabularnewline
33 & 0.992376797681307 & 0.0152464046373853 & 0.00762320231869264 \tabularnewline
34 & 0.897414722611983 & 0.205170554776035 & 0.102585277388017 \tabularnewline
35 & 2.56079568825056e-06 & 5.12159137650113e-06 & 0.999997439204312 \tabularnewline
36 & 0.989696981810004 & 0.0206060363799912 & 0.0103030181899956 \tabularnewline
37 & 0.960761521459893 & 0.078476957080214 & 0.039238478540107 \tabularnewline
38 & 0.0120053609248915 & 0.0240107218497830 & 0.987994639075108 \tabularnewline
39 & 0.710013668705791 & 0.579972662588417 & 0.289986331294209 \tabularnewline
40 & 9.32816602953124e-05 & 0.000186563320590625 & 0.999906718339705 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57674&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]19[/C][C]0.69142168521663[/C][C]0.617156629566739[/C][C]0.308578314783370[/C][/ROW]
[ROW][C]20[/C][C]0.02574499606909[/C][C]0.05148999213818[/C][C]0.97425500393091[/C][/ROW]
[ROW][C]21[/C][C]0.0595406216367284[/C][C]0.119081243273457[/C][C]0.940459378363272[/C][/ROW]
[ROW][C]22[/C][C]1.01201420189138e-05[/C][C]2.02402840378276e-05[/C][C]0.999989879857981[/C][/ROW]
[ROW][C]23[/C][C]0.000253306370645435[/C][C]0.00050661274129087[/C][C]0.999746693629355[/C][/ROW]
[ROW][C]24[/C][C]0.0301946488199432[/C][C]0.0603892976398864[/C][C]0.969805351180057[/C][/ROW]
[ROW][C]25[/C][C]0.284936973320276[/C][C]0.569873946640552[/C][C]0.715063026679724[/C][/ROW]
[ROW][C]26[/C][C]0.999991774320646[/C][C]1.64513587083305e-05[/C][C]8.22567935416527e-06[/C][/ROW]
[ROW][C]27[/C][C]0.868386539863755[/C][C]0.26322692027249[/C][C]0.131613460136245[/C][/ROW]
[ROW][C]28[/C][C]0.115494881318590[/C][C]0.230989762637180[/C][C]0.88450511868141[/C][/ROW]
[ROW][C]29[/C][C]0.998490528696558[/C][C]0.00301894260688477[/C][C]0.00150947130344238[/C][/ROW]
[ROW][C]30[/C][C]0.99691442480576[/C][C]0.00617115038847792[/C][C]0.00308557519423896[/C][/ROW]
[ROW][C]31[/C][C]0.597607690723887[/C][C]0.804784618552225[/C][C]0.402392309276113[/C][/ROW]
[ROW][C]32[/C][C]0.0254881477432064[/C][C]0.0509762954864128[/C][C]0.974511852256794[/C][/ROW]
[ROW][C]33[/C][C]0.992376797681307[/C][C]0.0152464046373853[/C][C]0.00762320231869264[/C][/ROW]
[ROW][C]34[/C][C]0.897414722611983[/C][C]0.205170554776035[/C][C]0.102585277388017[/C][/ROW]
[ROW][C]35[/C][C]2.56079568825056e-06[/C][C]5.12159137650113e-06[/C][C]0.999997439204312[/C][/ROW]
[ROW][C]36[/C][C]0.989696981810004[/C][C]0.0206060363799912[/C][C]0.0103030181899956[/C][/ROW]
[ROW][C]37[/C][C]0.960761521459893[/C][C]0.078476957080214[/C][C]0.039238478540107[/C][/ROW]
[ROW][C]38[/C][C]0.0120053609248915[/C][C]0.0240107218497830[/C][C]0.987994639075108[/C][/ROW]
[ROW][C]39[/C][C]0.710013668705791[/C][C]0.579972662588417[/C][C]0.289986331294209[/C][/ROW]
[ROW][C]40[/C][C]9.32816602953124e-05[/C][C]0.000186563320590625[/C][C]0.999906718339705[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57674&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57674&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
190.691421685216630.6171566295667390.308578314783370
200.025744996069090.051489992138180.97425500393091
210.05954062163672840.1190812432734570.940459378363272
221.01201420189138e-052.02402840378276e-050.999989879857981
230.0002533063706454350.000506612741290870.999746693629355
240.03019464881994320.06038929763988640.969805351180057
250.2849369733202760.5698739466405520.715063026679724
260.9999917743206461.64513587083305e-058.22567935416527e-06
270.8683865398637550.263226920272490.131613460136245
280.1154948813185900.2309897626371800.88450511868141
290.9984905286965580.003018942606884770.00150947130344238
300.996914424805760.006171150388477920.00308557519423896
310.5976076907238870.8047846185522250.402392309276113
320.02548814774320640.05097629548641280.974511852256794
330.9923767976813070.01524640463738530.00762320231869264
340.8974147226119830.2051705547760350.102585277388017
352.56079568825056e-065.12159137650113e-060.999997439204312
360.9896969818100040.02060603637999120.0103030181899956
370.9607615214598930.0784769570802140.039238478540107
380.01200536092489150.02401072184978300.987994639075108
390.7100136687057910.5799726625884170.289986331294209
409.32816602953124e-050.0001865633205906250.999906718339705







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level70.318181818181818NOK
5% type I error level100.454545454545455NOK
10% type I error level140.636363636363636NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57674&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 level70.318181818181818NOK
5% type I error level100.454545454545455NOK
10% type I error level140.636363636363636NOK



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