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 00:58:21 -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/t1258618894rzai7tgryny2i3c.htm/, Retrieved Sat, 20 Apr 2024 06:42:21 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57647, Retrieved Sat, 20 Apr 2024 06:42:21 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact180
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] [M3] [2009-11-19 07:58:21] [2ecea65fec1cd5f6b1ab182881aa2a91] [Current]
Feedback Forum

Post a new message
Dataseries X:
21	2472.81
19	2407.6
25	2454.62
21	2448.05
23	2497.84
23	2645.64
19	2756.76
18	2849.27
19	2921.44
19	2981.85
22	3080.58
23	3106.22
20	3119.31
14	3061.26
14	3097.31
14	3161.69
15	3257.16
11	3277.01
17	3295.32
16	3363.99
20	3494.17
24	3667.03
23	3813.06
20	3917.96
21	3895.51
19	3801.06
23	3570.12
23	3701.61
23	3862.27
23	3970.1
27	4138.52
26	4199.75
17	4290.89
24	4443.91
26	4502.64
24	4356.98
27	4591.27
27	4696.96
26	4621.4
24	4562.84
23	4202.52
23	4296.49
24	4435.23
17	4105.18
21	4116.68
19	3844.49
22	3720.98
22	3674.4
18	3857.62
16	3801.06
14	3504.37
12	3032.6
14	3047.03
16	2962.34
8	2197.82
3	2014.45
0	1862.83
5	1905.41
1	1810.99
1	1670.07
3	1864.44




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57647&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
Consvertr[t] = + 3.55671726525572 + 0.00638085941225368Aand[t] -0.338286051714473M1[t] -2.24724893355562M2[t] + 0.00822180782049912M3[t] -0.964857073231493M4[t] + 0.0778597387859022M5[t] -0.493834744584925M6[t] -0.0836314772970198M7[t] -2.52054447590919M8[t] -3.12456273564482M9[t] -0.332805124311363M10[t] + 0.34971383130199M11[t] -0.191708221875839t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Consvertr[t] =  +  3.55671726525572 +  0.00638085941225368Aand[t] -0.338286051714473M1[t] -2.24724893355562M2[t] +  0.00822180782049912M3[t] -0.964857073231493M4[t] +  0.0778597387859022M5[t] -0.493834744584925M6[t] -0.0836314772970198M7[t] -2.52054447590919M8[t] -3.12456273564482M9[t] -0.332805124311363M10[t] +  0.34971383130199M11[t] -0.191708221875839t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57647&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Consvertr[t] =  +  3.55671726525572 +  0.00638085941225368Aand[t] -0.338286051714473M1[t] -2.24724893355562M2[t] +  0.00822180782049912M3[t] -0.964857073231493M4[t] +  0.0778597387859022M5[t] -0.493834744584925M6[t] -0.0836314772970198M7[t] -2.52054447590919M8[t] -3.12456273564482M9[t] -0.332805124311363M10[t] +  0.34971383130199M11[t] -0.191708221875839t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57647&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57647&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
Consvertr[t] = + 3.55671726525572 + 0.00638085941225368Aand[t] -0.338286051714473M1[t] -2.24724893355562M2[t] + 0.00822180782049912M3[t] -0.964857073231493M4[t] + 0.0778597387859022M5[t] -0.493834744584925M6[t] -0.0836314772970198M7[t] -2.52054447590919M8[t] -3.12456273564482M9[t] -0.332805124311363M10[t] + 0.34971383130199M11[t] -0.191708221875839t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3.556717265255722.4708071.43950.1566380.078319
Aand0.006380859412253680.00053611.909600
M1-0.3382860517144732.045623-0.16540.8693620.434681
M2-2.247248933555622.150727-1.04490.3014230.150712
M30.008221807820499122.1453920.00380.9969580.498479
M4-0.9648570732314932.142051-0.45040.6544670.327234
M50.07785973878590222.1398060.03640.9711280.485564
M6-0.4938347445849252.138465-0.23090.8183720.409186
M7-0.08363147729701982.136255-0.03910.9689380.484469
M8-2.520544475909192.134929-1.18060.2436930.121847
M9-3.124562735644822.133861-1.46430.1497760.074888
M10-0.3328051243113632.133192-0.1560.8766910.438346
M110.349713831301992.1328260.1640.870460.43523
t-0.1917082218758390.024927-7.690900

\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) & 3.55671726525572 & 2.470807 & 1.4395 & 0.156638 & 0.078319 \tabularnewline
Aand & 0.00638085941225368 & 0.000536 & 11.9096 & 0 & 0 \tabularnewline
M1 & -0.338286051714473 & 2.045623 & -0.1654 & 0.869362 & 0.434681 \tabularnewline
M2 & -2.24724893355562 & 2.150727 & -1.0449 & 0.301423 & 0.150712 \tabularnewline
M3 & 0.00822180782049912 & 2.145392 & 0.0038 & 0.996958 & 0.498479 \tabularnewline
M4 & -0.964857073231493 & 2.142051 & -0.4504 & 0.654467 & 0.327234 \tabularnewline
M5 & 0.0778597387859022 & 2.139806 & 0.0364 & 0.971128 & 0.485564 \tabularnewline
M6 & -0.493834744584925 & 2.138465 & -0.2309 & 0.818372 & 0.409186 \tabularnewline
M7 & -0.0836314772970198 & 2.136255 & -0.0391 & 0.968938 & 0.484469 \tabularnewline
M8 & -2.52054447590919 & 2.134929 & -1.1806 & 0.243693 & 0.121847 \tabularnewline
M9 & -3.12456273564482 & 2.133861 & -1.4643 & 0.149776 & 0.074888 \tabularnewline
M10 & -0.332805124311363 & 2.133192 & -0.156 & 0.876691 & 0.438346 \tabularnewline
M11 & 0.34971383130199 & 2.132826 & 0.164 & 0.87046 & 0.43523 \tabularnewline
t & -0.191708221875839 & 0.024927 & -7.6909 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57647&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]3.55671726525572[/C][C]2.470807[/C][C]1.4395[/C][C]0.156638[/C][C]0.078319[/C][/ROW]
[ROW][C]Aand[/C][C]0.00638085941225368[/C][C]0.000536[/C][C]11.9096[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.338286051714473[/C][C]2.045623[/C][C]-0.1654[/C][C]0.869362[/C][C]0.434681[/C][/ROW]
[ROW][C]M2[/C][C]-2.24724893355562[/C][C]2.150727[/C][C]-1.0449[/C][C]0.301423[/C][C]0.150712[/C][/ROW]
[ROW][C]M3[/C][C]0.00822180782049912[/C][C]2.145392[/C][C]0.0038[/C][C]0.996958[/C][C]0.498479[/C][/ROW]
[ROW][C]M4[/C][C]-0.964857073231493[/C][C]2.142051[/C][C]-0.4504[/C][C]0.654467[/C][C]0.327234[/C][/ROW]
[ROW][C]M5[/C][C]0.0778597387859022[/C][C]2.139806[/C][C]0.0364[/C][C]0.971128[/C][C]0.485564[/C][/ROW]
[ROW][C]M6[/C][C]-0.493834744584925[/C][C]2.138465[/C][C]-0.2309[/C][C]0.818372[/C][C]0.409186[/C][/ROW]
[ROW][C]M7[/C][C]-0.0836314772970198[/C][C]2.136255[/C][C]-0.0391[/C][C]0.968938[/C][C]0.484469[/C][/ROW]
[ROW][C]M8[/C][C]-2.52054447590919[/C][C]2.134929[/C][C]-1.1806[/C][C]0.243693[/C][C]0.121847[/C][/ROW]
[ROW][C]M9[/C][C]-3.12456273564482[/C][C]2.133861[/C][C]-1.4643[/C][C]0.149776[/C][C]0.074888[/C][/ROW]
[ROW][C]M10[/C][C]-0.332805124311363[/C][C]2.133192[/C][C]-0.156[/C][C]0.876691[/C][C]0.438346[/C][/ROW]
[ROW][C]M11[/C][C]0.34971383130199[/C][C]2.132826[/C][C]0.164[/C][C]0.87046[/C][C]0.43523[/C][/ROW]
[ROW][C]t[/C][C]-0.191708221875839[/C][C]0.024927[/C][C]-7.6909[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57647&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57647&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)3.556717265255722.4708071.43950.1566380.078319
Aand0.006380859412253680.00053611.909600
M1-0.3382860517144732.045623-0.16540.8693620.434681
M2-2.247248933555622.150727-1.04490.3014230.150712
M30.008221807820499122.1453920.00380.9969580.498479
M4-0.9648570732314932.142051-0.45040.6544670.327234
M50.07785973878590222.1398060.03640.9711280.485564
M6-0.4938347445849252.138465-0.23090.8183720.409186
M7-0.08363147729701982.136255-0.03910.9689380.484469
M8-2.520544475909192.134929-1.18060.2436930.121847
M9-3.124562735644822.133861-1.46430.1497760.074888
M10-0.3328051243113632.133192-0.1560.8766910.438346
M110.349713831301992.1328260.1640.870460.43523
t-0.1917082218758390.024927-7.690900







Multiple Linear Regression - Regression Statistics
Multiple R0.900153925921666
R-squared0.810277090352189
Adjusted R-squared0.757800540875134
F-TEST (value)15.4407463605527
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value8.77964367873574e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.3718656391664
Sum Squared Residuals534.365460763779

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.900153925921666 \tabularnewline
R-squared & 0.810277090352189 \tabularnewline
Adjusted R-squared & 0.757800540875134 \tabularnewline
F-TEST (value) & 15.4407463605527 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 8.77964367873574e-13 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3.3718656391664 \tabularnewline
Sum Squared Residuals & 534.365460763779 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57647&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.900153925921666[/C][/ROW]
[ROW][C]R-squared[/C][C]0.810277090352189[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.757800540875134[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]15.4407463605527[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]8.77964367873574e-13[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]3.3718656391664[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]534.365460763779[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57647&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57647&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.900153925921666
R-squared0.810277090352189
Adjusted R-squared0.757800540875134
F-TEST (value)15.4407463605527
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value8.77964367873574e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.3718656391664
Sum Squared Residuals534.365460763779







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12118.80537595488052.19462404511954
21916.28860900889042.71139099110961
32518.65239953795486.34760046204518
42117.44569018868853.55430981131151
52318.61440176896624.38559823103384
62318.79409008485064.20590991514943
71919.7216262281523-0.721626228152276
81817.68329831189190.316701688108146
91917.34807845406271.65192154593727
101920.3335955606146-1.33359556061459
112221.45438854412390.545611455876085
122321.07657172627631.92342827372373
132020.6301029023924-0.630102902392358
141418.1590229097940-4.15902290979404
151420.4528154111061-6.45281541110607
161419.6988280371391-5.69882803713913
171521.1590172753685-6.15901727536854
181120.5222746294551-9.52227462945511
191720.8576032107055-3.85760321070554
201618.667155606057-2.66715560605699
212018.70208940273271.29791059726730
222422.40513415019251.59486584980751
232323.8277417839014-0.827741783901411
242023.955671883069-3.95567188306899
252123.2824273156736-2.28242731567359
261920.5790840404692-1.57908404046924
272321.16925088730371.83074911269635
282320.84348298849312.15651701150694
292322.71964045180730.280359548192708
302322.64428581698390.355714183016064
312723.93744520460783.06255479539223
322621.69952400593204.30047599406795
331721.4853490511534-4.48534905115338
342425.0617975478741-1.06179754787406
352625.92735615489320.0726438451067698
362424.4564981197265-0.456498119726525
372725.42147539783311.57852460216687
382723.99519732539723.00480267460277
392625.57682210770760.423177892292376
402424.0383718775982-0.0383718775982237
412322.59022920431650.409770795683464
422322.42643585803930.573564141960659
432423.53021133830750.469788661692517
441718.7955874688052-1.79558746880515
452118.07324087043462.9267591295654
461918.93648413647090.0635158635291115
472218.63919492420103.36080507579905
482217.80055243960034.19944756039965
491818.4396592275232-0.439659227523154
501615.97808671544910.0219132845509014
511416.1487120559278-2.14871205592783
521211.97362690808110.0263730919189082
531412.91671129954151.08328870045853
541611.61291361067104.38708638932896
5586.953114018226931.04688598177307
5633.15443460731396-0.154434607313957
5701.39124222161659-1.39124222161659
5854.262988604847970.737011395152033
5914.15131859288049-3.15131859288049
6012.71070583132787-1.71070583132787
6133.42095920169731-0.420959201697308

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 21 & 18.8053759548805 & 2.19462404511954 \tabularnewline
2 & 19 & 16.2886090088904 & 2.71139099110961 \tabularnewline
3 & 25 & 18.6523995379548 & 6.34760046204518 \tabularnewline
4 & 21 & 17.4456901886885 & 3.55430981131151 \tabularnewline
5 & 23 & 18.6144017689662 & 4.38559823103384 \tabularnewline
6 & 23 & 18.7940900848506 & 4.20590991514943 \tabularnewline
7 & 19 & 19.7216262281523 & -0.721626228152276 \tabularnewline
8 & 18 & 17.6832983118919 & 0.316701688108146 \tabularnewline
9 & 19 & 17.3480784540627 & 1.65192154593727 \tabularnewline
10 & 19 & 20.3335955606146 & -1.33359556061459 \tabularnewline
11 & 22 & 21.4543885441239 & 0.545611455876085 \tabularnewline
12 & 23 & 21.0765717262763 & 1.92342827372373 \tabularnewline
13 & 20 & 20.6301029023924 & -0.630102902392358 \tabularnewline
14 & 14 & 18.1590229097940 & -4.15902290979404 \tabularnewline
15 & 14 & 20.4528154111061 & -6.45281541110607 \tabularnewline
16 & 14 & 19.6988280371391 & -5.69882803713913 \tabularnewline
17 & 15 & 21.1590172753685 & -6.15901727536854 \tabularnewline
18 & 11 & 20.5222746294551 & -9.52227462945511 \tabularnewline
19 & 17 & 20.8576032107055 & -3.85760321070554 \tabularnewline
20 & 16 & 18.667155606057 & -2.66715560605699 \tabularnewline
21 & 20 & 18.7020894027327 & 1.29791059726730 \tabularnewline
22 & 24 & 22.4051341501925 & 1.59486584980751 \tabularnewline
23 & 23 & 23.8277417839014 & -0.827741783901411 \tabularnewline
24 & 20 & 23.955671883069 & -3.95567188306899 \tabularnewline
25 & 21 & 23.2824273156736 & -2.28242731567359 \tabularnewline
26 & 19 & 20.5790840404692 & -1.57908404046924 \tabularnewline
27 & 23 & 21.1692508873037 & 1.83074911269635 \tabularnewline
28 & 23 & 20.8434829884931 & 2.15651701150694 \tabularnewline
29 & 23 & 22.7196404518073 & 0.280359548192708 \tabularnewline
30 & 23 & 22.6442858169839 & 0.355714183016064 \tabularnewline
31 & 27 & 23.9374452046078 & 3.06255479539223 \tabularnewline
32 & 26 & 21.6995240059320 & 4.30047599406795 \tabularnewline
33 & 17 & 21.4853490511534 & -4.48534905115338 \tabularnewline
34 & 24 & 25.0617975478741 & -1.06179754787406 \tabularnewline
35 & 26 & 25.9273561548932 & 0.0726438451067698 \tabularnewline
36 & 24 & 24.4564981197265 & -0.456498119726525 \tabularnewline
37 & 27 & 25.4214753978331 & 1.57852460216687 \tabularnewline
38 & 27 & 23.9951973253972 & 3.00480267460277 \tabularnewline
39 & 26 & 25.5768221077076 & 0.423177892292376 \tabularnewline
40 & 24 & 24.0383718775982 & -0.0383718775982237 \tabularnewline
41 & 23 & 22.5902292043165 & 0.409770795683464 \tabularnewline
42 & 23 & 22.4264358580393 & 0.573564141960659 \tabularnewline
43 & 24 & 23.5302113383075 & 0.469788661692517 \tabularnewline
44 & 17 & 18.7955874688052 & -1.79558746880515 \tabularnewline
45 & 21 & 18.0732408704346 & 2.9267591295654 \tabularnewline
46 & 19 & 18.9364841364709 & 0.0635158635291115 \tabularnewline
47 & 22 & 18.6391949242010 & 3.36080507579905 \tabularnewline
48 & 22 & 17.8005524396003 & 4.19944756039965 \tabularnewline
49 & 18 & 18.4396592275232 & -0.439659227523154 \tabularnewline
50 & 16 & 15.9780867154491 & 0.0219132845509014 \tabularnewline
51 & 14 & 16.1487120559278 & -2.14871205592783 \tabularnewline
52 & 12 & 11.9736269080811 & 0.0263730919189082 \tabularnewline
53 & 14 & 12.9167112995415 & 1.08328870045853 \tabularnewline
54 & 16 & 11.6129136106710 & 4.38708638932896 \tabularnewline
55 & 8 & 6.95311401822693 & 1.04688598177307 \tabularnewline
56 & 3 & 3.15443460731396 & -0.154434607313957 \tabularnewline
57 & 0 & 1.39124222161659 & -1.39124222161659 \tabularnewline
58 & 5 & 4.26298860484797 & 0.737011395152033 \tabularnewline
59 & 1 & 4.15131859288049 & -3.15131859288049 \tabularnewline
60 & 1 & 2.71070583132787 & -1.71070583132787 \tabularnewline
61 & 3 & 3.42095920169731 & -0.420959201697308 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57647&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]21[/C][C]18.8053759548805[/C][C]2.19462404511954[/C][/ROW]
[ROW][C]2[/C][C]19[/C][C]16.2886090088904[/C][C]2.71139099110961[/C][/ROW]
[ROW][C]3[/C][C]25[/C][C]18.6523995379548[/C][C]6.34760046204518[/C][/ROW]
[ROW][C]4[/C][C]21[/C][C]17.4456901886885[/C][C]3.55430981131151[/C][/ROW]
[ROW][C]5[/C][C]23[/C][C]18.6144017689662[/C][C]4.38559823103384[/C][/ROW]
[ROW][C]6[/C][C]23[/C][C]18.7940900848506[/C][C]4.20590991514943[/C][/ROW]
[ROW][C]7[/C][C]19[/C][C]19.7216262281523[/C][C]-0.721626228152276[/C][/ROW]
[ROW][C]8[/C][C]18[/C][C]17.6832983118919[/C][C]0.316701688108146[/C][/ROW]
[ROW][C]9[/C][C]19[/C][C]17.3480784540627[/C][C]1.65192154593727[/C][/ROW]
[ROW][C]10[/C][C]19[/C][C]20.3335955606146[/C][C]-1.33359556061459[/C][/ROW]
[ROW][C]11[/C][C]22[/C][C]21.4543885441239[/C][C]0.545611455876085[/C][/ROW]
[ROW][C]12[/C][C]23[/C][C]21.0765717262763[/C][C]1.92342827372373[/C][/ROW]
[ROW][C]13[/C][C]20[/C][C]20.6301029023924[/C][C]-0.630102902392358[/C][/ROW]
[ROW][C]14[/C][C]14[/C][C]18.1590229097940[/C][C]-4.15902290979404[/C][/ROW]
[ROW][C]15[/C][C]14[/C][C]20.4528154111061[/C][C]-6.45281541110607[/C][/ROW]
[ROW][C]16[/C][C]14[/C][C]19.6988280371391[/C][C]-5.69882803713913[/C][/ROW]
[ROW][C]17[/C][C]15[/C][C]21.1590172753685[/C][C]-6.15901727536854[/C][/ROW]
[ROW][C]18[/C][C]11[/C][C]20.5222746294551[/C][C]-9.52227462945511[/C][/ROW]
[ROW][C]19[/C][C]17[/C][C]20.8576032107055[/C][C]-3.85760321070554[/C][/ROW]
[ROW][C]20[/C][C]16[/C][C]18.667155606057[/C][C]-2.66715560605699[/C][/ROW]
[ROW][C]21[/C][C]20[/C][C]18.7020894027327[/C][C]1.29791059726730[/C][/ROW]
[ROW][C]22[/C][C]24[/C][C]22.4051341501925[/C][C]1.59486584980751[/C][/ROW]
[ROW][C]23[/C][C]23[/C][C]23.8277417839014[/C][C]-0.827741783901411[/C][/ROW]
[ROW][C]24[/C][C]20[/C][C]23.955671883069[/C][C]-3.95567188306899[/C][/ROW]
[ROW][C]25[/C][C]21[/C][C]23.2824273156736[/C][C]-2.28242731567359[/C][/ROW]
[ROW][C]26[/C][C]19[/C][C]20.5790840404692[/C][C]-1.57908404046924[/C][/ROW]
[ROW][C]27[/C][C]23[/C][C]21.1692508873037[/C][C]1.83074911269635[/C][/ROW]
[ROW][C]28[/C][C]23[/C][C]20.8434829884931[/C][C]2.15651701150694[/C][/ROW]
[ROW][C]29[/C][C]23[/C][C]22.7196404518073[/C][C]0.280359548192708[/C][/ROW]
[ROW][C]30[/C][C]23[/C][C]22.6442858169839[/C][C]0.355714183016064[/C][/ROW]
[ROW][C]31[/C][C]27[/C][C]23.9374452046078[/C][C]3.06255479539223[/C][/ROW]
[ROW][C]32[/C][C]26[/C][C]21.6995240059320[/C][C]4.30047599406795[/C][/ROW]
[ROW][C]33[/C][C]17[/C][C]21.4853490511534[/C][C]-4.48534905115338[/C][/ROW]
[ROW][C]34[/C][C]24[/C][C]25.0617975478741[/C][C]-1.06179754787406[/C][/ROW]
[ROW][C]35[/C][C]26[/C][C]25.9273561548932[/C][C]0.0726438451067698[/C][/ROW]
[ROW][C]36[/C][C]24[/C][C]24.4564981197265[/C][C]-0.456498119726525[/C][/ROW]
[ROW][C]37[/C][C]27[/C][C]25.4214753978331[/C][C]1.57852460216687[/C][/ROW]
[ROW][C]38[/C][C]27[/C][C]23.9951973253972[/C][C]3.00480267460277[/C][/ROW]
[ROW][C]39[/C][C]26[/C][C]25.5768221077076[/C][C]0.423177892292376[/C][/ROW]
[ROW][C]40[/C][C]24[/C][C]24.0383718775982[/C][C]-0.0383718775982237[/C][/ROW]
[ROW][C]41[/C][C]23[/C][C]22.5902292043165[/C][C]0.409770795683464[/C][/ROW]
[ROW][C]42[/C][C]23[/C][C]22.4264358580393[/C][C]0.573564141960659[/C][/ROW]
[ROW][C]43[/C][C]24[/C][C]23.5302113383075[/C][C]0.469788661692517[/C][/ROW]
[ROW][C]44[/C][C]17[/C][C]18.7955874688052[/C][C]-1.79558746880515[/C][/ROW]
[ROW][C]45[/C][C]21[/C][C]18.0732408704346[/C][C]2.9267591295654[/C][/ROW]
[ROW][C]46[/C][C]19[/C][C]18.9364841364709[/C][C]0.0635158635291115[/C][/ROW]
[ROW][C]47[/C][C]22[/C][C]18.6391949242010[/C][C]3.36080507579905[/C][/ROW]
[ROW][C]48[/C][C]22[/C][C]17.8005524396003[/C][C]4.19944756039965[/C][/ROW]
[ROW][C]49[/C][C]18[/C][C]18.4396592275232[/C][C]-0.439659227523154[/C][/ROW]
[ROW][C]50[/C][C]16[/C][C]15.9780867154491[/C][C]0.0219132845509014[/C][/ROW]
[ROW][C]51[/C][C]14[/C][C]16.1487120559278[/C][C]-2.14871205592783[/C][/ROW]
[ROW][C]52[/C][C]12[/C][C]11.9736269080811[/C][C]0.0263730919189082[/C][/ROW]
[ROW][C]53[/C][C]14[/C][C]12.9167112995415[/C][C]1.08328870045853[/C][/ROW]
[ROW][C]54[/C][C]16[/C][C]11.6129136106710[/C][C]4.38708638932896[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]6.95311401822693[/C][C]1.04688598177307[/C][/ROW]
[ROW][C]56[/C][C]3[/C][C]3.15443460731396[/C][C]-0.154434607313957[/C][/ROW]
[ROW][C]57[/C][C]0[/C][C]1.39124222161659[/C][C]-1.39124222161659[/C][/ROW]
[ROW][C]58[/C][C]5[/C][C]4.26298860484797[/C][C]0.737011395152033[/C][/ROW]
[ROW][C]59[/C][C]1[/C][C]4.15131859288049[/C][C]-3.15131859288049[/C][/ROW]
[ROW][C]60[/C][C]1[/C][C]2.71070583132787[/C][C]-1.71070583132787[/C][/ROW]
[ROW][C]61[/C][C]3[/C][C]3.42095920169731[/C][C]-0.420959201697308[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57647&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57647&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
12118.80537595488052.19462404511954
21916.28860900889042.71139099110961
32518.65239953795486.34760046204518
42117.44569018868853.55430981131151
52318.61440176896624.38559823103384
62318.79409008485064.20590991514943
71919.7216262281523-0.721626228152276
81817.68329831189190.316701688108146
91917.34807845406271.65192154593727
101920.3335955606146-1.33359556061459
112221.45438854412390.545611455876085
122321.07657172627631.92342827372373
132020.6301029023924-0.630102902392358
141418.1590229097940-4.15902290979404
151420.4528154111061-6.45281541110607
161419.6988280371391-5.69882803713913
171521.1590172753685-6.15901727536854
181120.5222746294551-9.52227462945511
191720.8576032107055-3.85760321070554
201618.667155606057-2.66715560605699
212018.70208940273271.29791059726730
222422.40513415019251.59486584980751
232323.8277417839014-0.827741783901411
242023.955671883069-3.95567188306899
252123.2824273156736-2.28242731567359
261920.5790840404692-1.57908404046924
272321.16925088730371.83074911269635
282320.84348298849312.15651701150694
292322.71964045180730.280359548192708
302322.64428581698390.355714183016064
312723.93744520460783.06255479539223
322621.69952400593204.30047599406795
331721.4853490511534-4.48534905115338
342425.0617975478741-1.06179754787406
352625.92735615489320.0726438451067698
362424.4564981197265-0.456498119726525
372725.42147539783311.57852460216687
382723.99519732539723.00480267460277
392625.57682210770760.423177892292376
402424.0383718775982-0.0383718775982237
412322.59022920431650.409770795683464
422322.42643585803930.573564141960659
432423.53021133830750.469788661692517
441718.7955874688052-1.79558746880515
452118.07324087043462.9267591295654
461918.93648413647090.0635158635291115
472218.63919492420103.36080507579905
482217.80055243960034.19944756039965
491818.4396592275232-0.439659227523154
501615.97808671544910.0219132845509014
511416.1487120559278-2.14871205592783
521211.97362690808110.0263730919189082
531412.91671129954151.08328870045853
541611.61291361067104.38708638932896
5586.953114018226931.04688598177307
5633.15443460731396-0.154434607313957
5701.39124222161659-1.39124222161659
5854.262988604847970.737011395152033
5914.15131859288049-3.15131859288049
6012.71070583132787-1.71070583132787
6133.42095920169731-0.420959201697308







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6477555241614790.7044889516770430.352244475838521
180.8307955788120940.3384088423758120.169204421187906
190.8269861803010220.3460276393979560.173013819698978
200.7568372322354470.4863255355291060.243162767764553
210.7994724771905510.4010550456188970.200527522809449
220.972199710653770.05560057869246050.0278002893462303
230.9735847649787430.05283047004251390.0264152350212570
240.969910116015010.060179767969980.03008988398499
250.9741943286695590.05161134266088270.0258056713304413
260.98057113931980.03885772136040030.0194288606802002
270.983720793734440.03255841253112220.0162792062655611
280.9869516542146380.02609669157072430.0130483457853622
290.982355898076250.03528820384750210.0176441019237511
300.9813674897416750.0372650205166510.0186325102583255
310.9875905119811540.02481897603769230.0124094880188461
320.997018467124860.005963065750279210.00298153287513961
330.9974549656924430.005090068615114110.00254503430755705
340.994839882238230.01032023552353980.00516011776176991
350.9892037873461010.02159242530779740.0107962126538987
360.9837561214320180.03248775713596340.0162438785679817
370.9706789043278170.05864219134436610.0293210956721831
380.962763361769410.07447327646117930.0372366382305896
390.9507985345673160.09840293086536780.0492014654326839
400.9057823736947760.1884352526104470.0942176263052237
410.8447763593457530.3104472813084950.155223640654247
420.813087615717610.3738247685647810.186912384282390
430.7113925675034330.5772148649931330.288607432496567
440.6860739454630680.6278521090738640.313926054536932

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.647755524161479 & 0.704488951677043 & 0.352244475838521 \tabularnewline
18 & 0.830795578812094 & 0.338408842375812 & 0.169204421187906 \tabularnewline
19 & 0.826986180301022 & 0.346027639397956 & 0.173013819698978 \tabularnewline
20 & 0.756837232235447 & 0.486325535529106 & 0.243162767764553 \tabularnewline
21 & 0.799472477190551 & 0.401055045618897 & 0.200527522809449 \tabularnewline
22 & 0.97219971065377 & 0.0556005786924605 & 0.0278002893462303 \tabularnewline
23 & 0.973584764978743 & 0.0528304700425139 & 0.0264152350212570 \tabularnewline
24 & 0.96991011601501 & 0.06017976796998 & 0.03008988398499 \tabularnewline
25 & 0.974194328669559 & 0.0516113426608827 & 0.0258056713304413 \tabularnewline
26 & 0.9805711393198 & 0.0388577213604003 & 0.0194288606802002 \tabularnewline
27 & 0.98372079373444 & 0.0325584125311222 & 0.0162792062655611 \tabularnewline
28 & 0.986951654214638 & 0.0260966915707243 & 0.0130483457853622 \tabularnewline
29 & 0.98235589807625 & 0.0352882038475021 & 0.0176441019237511 \tabularnewline
30 & 0.981367489741675 & 0.037265020516651 & 0.0186325102583255 \tabularnewline
31 & 0.987590511981154 & 0.0248189760376923 & 0.0124094880188461 \tabularnewline
32 & 0.99701846712486 & 0.00596306575027921 & 0.00298153287513961 \tabularnewline
33 & 0.997454965692443 & 0.00509006861511411 & 0.00254503430755705 \tabularnewline
34 & 0.99483988223823 & 0.0103202355235398 & 0.00516011776176991 \tabularnewline
35 & 0.989203787346101 & 0.0215924253077974 & 0.0107962126538987 \tabularnewline
36 & 0.983756121432018 & 0.0324877571359634 & 0.0162438785679817 \tabularnewline
37 & 0.970678904327817 & 0.0586421913443661 & 0.0293210956721831 \tabularnewline
38 & 0.96276336176941 & 0.0744732764611793 & 0.0372366382305896 \tabularnewline
39 & 0.950798534567316 & 0.0984029308653678 & 0.0492014654326839 \tabularnewline
40 & 0.905782373694776 & 0.188435252610447 & 0.0942176263052237 \tabularnewline
41 & 0.844776359345753 & 0.310447281308495 & 0.155223640654247 \tabularnewline
42 & 0.81308761571761 & 0.373824768564781 & 0.186912384282390 \tabularnewline
43 & 0.711392567503433 & 0.577214864993133 & 0.288607432496567 \tabularnewline
44 & 0.686073945463068 & 0.627852109073864 & 0.313926054536932 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57647&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.647755524161479[/C][C]0.704488951677043[/C][C]0.352244475838521[/C][/ROW]
[ROW][C]18[/C][C]0.830795578812094[/C][C]0.338408842375812[/C][C]0.169204421187906[/C][/ROW]
[ROW][C]19[/C][C]0.826986180301022[/C][C]0.346027639397956[/C][C]0.173013819698978[/C][/ROW]
[ROW][C]20[/C][C]0.756837232235447[/C][C]0.486325535529106[/C][C]0.243162767764553[/C][/ROW]
[ROW][C]21[/C][C]0.799472477190551[/C][C]0.401055045618897[/C][C]0.200527522809449[/C][/ROW]
[ROW][C]22[/C][C]0.97219971065377[/C][C]0.0556005786924605[/C][C]0.0278002893462303[/C][/ROW]
[ROW][C]23[/C][C]0.973584764978743[/C][C]0.0528304700425139[/C][C]0.0264152350212570[/C][/ROW]
[ROW][C]24[/C][C]0.96991011601501[/C][C]0.06017976796998[/C][C]0.03008988398499[/C][/ROW]
[ROW][C]25[/C][C]0.974194328669559[/C][C]0.0516113426608827[/C][C]0.0258056713304413[/C][/ROW]
[ROW][C]26[/C][C]0.9805711393198[/C][C]0.0388577213604003[/C][C]0.0194288606802002[/C][/ROW]
[ROW][C]27[/C][C]0.98372079373444[/C][C]0.0325584125311222[/C][C]0.0162792062655611[/C][/ROW]
[ROW][C]28[/C][C]0.986951654214638[/C][C]0.0260966915707243[/C][C]0.0130483457853622[/C][/ROW]
[ROW][C]29[/C][C]0.98235589807625[/C][C]0.0352882038475021[/C][C]0.0176441019237511[/C][/ROW]
[ROW][C]30[/C][C]0.981367489741675[/C][C]0.037265020516651[/C][C]0.0186325102583255[/C][/ROW]
[ROW][C]31[/C][C]0.987590511981154[/C][C]0.0248189760376923[/C][C]0.0124094880188461[/C][/ROW]
[ROW][C]32[/C][C]0.99701846712486[/C][C]0.00596306575027921[/C][C]0.00298153287513961[/C][/ROW]
[ROW][C]33[/C][C]0.997454965692443[/C][C]0.00509006861511411[/C][C]0.00254503430755705[/C][/ROW]
[ROW][C]34[/C][C]0.99483988223823[/C][C]0.0103202355235398[/C][C]0.00516011776176991[/C][/ROW]
[ROW][C]35[/C][C]0.989203787346101[/C][C]0.0215924253077974[/C][C]0.0107962126538987[/C][/ROW]
[ROW][C]36[/C][C]0.983756121432018[/C][C]0.0324877571359634[/C][C]0.0162438785679817[/C][/ROW]
[ROW][C]37[/C][C]0.970678904327817[/C][C]0.0586421913443661[/C][C]0.0293210956721831[/C][/ROW]
[ROW][C]38[/C][C]0.96276336176941[/C][C]0.0744732764611793[/C][C]0.0372366382305896[/C][/ROW]
[ROW][C]39[/C][C]0.950798534567316[/C][C]0.0984029308653678[/C][C]0.0492014654326839[/C][/ROW]
[ROW][C]40[/C][C]0.905782373694776[/C][C]0.188435252610447[/C][C]0.0942176263052237[/C][/ROW]
[ROW][C]41[/C][C]0.844776359345753[/C][C]0.310447281308495[/C][C]0.155223640654247[/C][/ROW]
[ROW][C]42[/C][C]0.81308761571761[/C][C]0.373824768564781[/C][C]0.186912384282390[/C][/ROW]
[ROW][C]43[/C][C]0.711392567503433[/C][C]0.577214864993133[/C][C]0.288607432496567[/C][/ROW]
[ROW][C]44[/C][C]0.686073945463068[/C][C]0.627852109073864[/C][C]0.313926054536932[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57647&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57647&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.6477555241614790.7044889516770430.352244475838521
180.8307955788120940.3384088423758120.169204421187906
190.8269861803010220.3460276393979560.173013819698978
200.7568372322354470.4863255355291060.243162767764553
210.7994724771905510.4010550456188970.200527522809449
220.972199710653770.05560057869246050.0278002893462303
230.9735847649787430.05283047004251390.0264152350212570
240.969910116015010.060179767969980.03008988398499
250.9741943286695590.05161134266088270.0258056713304413
260.98057113931980.03885772136040030.0194288606802002
270.983720793734440.03255841253112220.0162792062655611
280.9869516542146380.02609669157072430.0130483457853622
290.982355898076250.03528820384750210.0176441019237511
300.9813674897416750.0372650205166510.0186325102583255
310.9875905119811540.02481897603769230.0124094880188461
320.997018467124860.005963065750279210.00298153287513961
330.9974549656924430.005090068615114110.00254503430755705
340.994839882238230.01032023552353980.00516011776176991
350.9892037873461010.02159242530779740.0107962126538987
360.9837561214320180.03248775713596340.0162438785679817
370.9706789043278170.05864219134436610.0293210956721831
380.962763361769410.07447327646117930.0372366382305896
390.9507985345673160.09840293086536780.0492014654326839
400.9057823736947760.1884352526104470.0942176263052237
410.8447763593457530.3104472813084950.155223640654247
420.813087615717610.3738247685647810.186912384282390
430.7113925675034330.5772148649931330.288607432496567
440.6860739454630680.6278521090738640.313926054536932







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0714285714285714NOK
5% type I error level110.392857142857143NOK
10% type I error level180.642857142857143NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 2 & 0.0714285714285714 & NOK \tabularnewline
5% type I error level & 11 & 0.392857142857143 & NOK \tabularnewline
10% type I error level & 18 & 0.642857142857143 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57647&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]2[/C][C]0.0714285714285714[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]11[/C][C]0.392857142857143[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]18[/C][C]0.642857142857143[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57647&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0714285714285714NOK
5% type I error level110.392857142857143NOK
10% type I error level180.642857142857143NOK



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