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:34:35 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/19/t1258617097gziup5lodpwmvvx.htm/, Retrieved Thu, 25 Apr 2024 10:01:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57640, Retrieved Thu, 25 Apr 2024 10:01:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact212
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [M2] [2009-11-19 07:34:35] [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=57640&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=57640&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57640&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] = -2.54623902332245 + 0.0061421420368986Aand[t] + 0.609520892164507M1[t] -0.280403213295958M2[t] + 1.75852696995038M3[t] + 0.577457909719086M4[t] + 1.42655819316205M5[t] + 0.676750919876607M6[t] + 0.879589447508637M7[t] -1.76292560165979M8[t] -2.55132966649962M9[t] + 0.0562001706321281M10[t] + 0.551095836096717M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Consvertr[t] =  -2.54623902332245 +  0.0061421420368986Aand[t] +  0.609520892164507M1[t] -0.280403213295958M2[t] +  1.75852696995038M3[t] +  0.577457909719086M4[t] +  1.42655819316205M5[t] +  0.676750919876607M6[t] +  0.879589447508637M7[t] -1.76292560165979M8[t] -2.55132966649962M9[t] +  0.0562001706321281M10[t] +  0.551095836096717M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57640&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Consvertr[t] =  -2.54623902332245 +  0.0061421420368986Aand[t] +  0.609520892164507M1[t] -0.280403213295958M2[t] +  1.75852696995038M3[t] +  0.577457909719086M4[t] +  1.42655819316205M5[t] +  0.676750919876607M6[t] +  0.879589447508637M7[t] -1.76292560165979M8[t] -2.55132966649962M9[t] +  0.0562001706321281M10[t] +  0.551095836096717M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57640&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57640&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] = -2.54623902332245 + 0.0061421420368986Aand[t] + 0.609520892164507M1[t] -0.280403213295958M2[t] + 1.75852696995038M3[t] + 0.577457909719086M4[t] + 1.42655819316205M5[t] + 0.676750919876607M6[t] + 0.879589447508637M7[t] -1.76292560165979M8[t] -2.55132966649962M9[t] + 0.0562001706321281M10[t] + 0.551095836096717M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-2.546239023322453.479677-0.73170.4678810.233941
Aand0.00614214203689860.0007957.72200
M10.6095208921645073.0365130.20070.8417570.420879
M2-0.2804032132959583.175646-0.08830.9300070.465004
M31.758526969950383.1724020.55430.5819330.290967
M40.5774579097190863.1714450.18210.8562860.428143
M51.426558193162053.1713940.44980.6548650.327432
M60.6767509198766073.1720380.21330.8319580.415979
M70.8795894475086373.1713530.27740.7826990.391349
M8-1.762925601659793.171463-0.55590.5808810.29044
M9-2.551329666499623.171321-0.80450.4250750.212537
M100.05620017063212813.1713690.01770.9859350.492967
M110.5510958360967173.1714780.17380.862780.43139

\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.54623902332245 & 3.479677 & -0.7317 & 0.467881 & 0.233941 \tabularnewline
Aand & 0.0061421420368986 & 0.000795 & 7.722 & 0 & 0 \tabularnewline
M1 & 0.609520892164507 & 3.036513 & 0.2007 & 0.841757 & 0.420879 \tabularnewline
M2 & -0.280403213295958 & 3.175646 & -0.0883 & 0.930007 & 0.465004 \tabularnewline
M3 & 1.75852696995038 & 3.172402 & 0.5543 & 0.581933 & 0.290967 \tabularnewline
M4 & 0.577457909719086 & 3.171445 & 0.1821 & 0.856286 & 0.428143 \tabularnewline
M5 & 1.42655819316205 & 3.171394 & 0.4498 & 0.654865 & 0.327432 \tabularnewline
M6 & 0.676750919876607 & 3.172038 & 0.2133 & 0.831958 & 0.415979 \tabularnewline
M7 & 0.879589447508637 & 3.171353 & 0.2774 & 0.782699 & 0.391349 \tabularnewline
M8 & -1.76292560165979 & 3.171463 & -0.5559 & 0.580881 & 0.29044 \tabularnewline
M9 & -2.55132966649962 & 3.171321 & -0.8045 & 0.425075 & 0.212537 \tabularnewline
M10 & 0.0562001706321281 & 3.171369 & 0.0177 & 0.985935 & 0.492967 \tabularnewline
M11 & 0.551095836096717 & 3.171478 & 0.1738 & 0.86278 & 0.43139 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57640&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.54623902332245[/C][C]3.479677[/C][C]-0.7317[/C][C]0.467881[/C][C]0.233941[/C][/ROW]
[ROW][C]Aand[/C][C]0.0061421420368986[/C][C]0.000795[/C][C]7.722[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.609520892164507[/C][C]3.036513[/C][C]0.2007[/C][C]0.841757[/C][C]0.420879[/C][/ROW]
[ROW][C]M2[/C][C]-0.280403213295958[/C][C]3.175646[/C][C]-0.0883[/C][C]0.930007[/C][C]0.465004[/C][/ROW]
[ROW][C]M3[/C][C]1.75852696995038[/C][C]3.172402[/C][C]0.5543[/C][C]0.581933[/C][C]0.290967[/C][/ROW]
[ROW][C]M4[/C][C]0.577457909719086[/C][C]3.171445[/C][C]0.1821[/C][C]0.856286[/C][C]0.428143[/C][/ROW]
[ROW][C]M5[/C][C]1.42655819316205[/C][C]3.171394[/C][C]0.4498[/C][C]0.654865[/C][C]0.327432[/C][/ROW]
[ROW][C]M6[/C][C]0.676750919876607[/C][C]3.172038[/C][C]0.2133[/C][C]0.831958[/C][C]0.415979[/C][/ROW]
[ROW][C]M7[/C][C]0.879589447508637[/C][C]3.171353[/C][C]0.2774[/C][C]0.782699[/C][C]0.391349[/C][/ROW]
[ROW][C]M8[/C][C]-1.76292560165979[/C][C]3.171463[/C][C]-0.5559[/C][C]0.580881[/C][C]0.29044[/C][/ROW]
[ROW][C]M9[/C][C]-2.55132966649962[/C][C]3.171321[/C][C]-0.8045[/C][C]0.425075[/C][C]0.212537[/C][/ROW]
[ROW][C]M10[/C][C]0.0562001706321281[/C][C]3.171369[/C][C]0.0177[/C][C]0.985935[/C][C]0.492967[/C][/ROW]
[ROW][C]M11[/C][C]0.551095836096717[/C][C]3.171478[/C][C]0.1738[/C][C]0.86278[/C][C]0.43139[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57640&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57640&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.546239023322453.479677-0.73170.4678810.233941
Aand0.00614214203689860.0007957.72200
M10.6095208921645073.0365130.20070.8417570.420879
M2-0.2804032132959583.175646-0.08830.9300070.465004
M31.758526969950383.1724020.55430.5819330.290967
M40.5774579097190863.1714450.18210.8562860.428143
M51.426558193162053.1713940.44980.6548650.327432
M60.6767509198766073.1720380.21330.8319580.415979
M70.8795894475086373.1713530.27740.7826990.391349
M8-1.762925601659793.171463-0.55590.5808810.29044
M9-2.551329666499623.171321-0.80450.4250750.212537
M100.05620017063212813.1713690.01770.9859350.492967
M110.5510958360967173.1714780.17380.862780.43139







Multiple Linear Regression - Regression Statistics
Multiple R0.755982426459113
R-squared0.571509429115009
Adjusted R-squared0.464386786393761
F-TEST (value)5.33509456634839
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value1.24190173838024e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.01428849726404
Sum Squared Residuals1206.86827842214

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.755982426459113 \tabularnewline
R-squared & 0.571509429115009 \tabularnewline
Adjusted R-squared & 0.464386786393761 \tabularnewline
F-TEST (value) & 5.33509456634839 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 1.24190173838024e-05 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.01428849726404 \tabularnewline
Sum Squared Residuals & 1206.86827842214 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57640&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.755982426459113[/C][/ROW]
[ROW][C]R-squared[/C][C]0.571509429115009[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.464386786393761[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.33509456634839[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]1.24190173838024e-05[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.01428849726404[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1206.86827842214[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57640&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57640&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.755982426459113
R-squared0.571509429115009
Adjusted R-squared0.464386786393761
F-TEST (value)5.33509456634839
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value1.24190173838024e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.01428849726404
Sum Squared Residuals1206.86827842214







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12113.25163211910537.74836788089471
21911.96117893141877.03882106858135
32514.288912633240010.7110873667600
42113.06748969982627.93251030017375
52314.22240723528648.7775927647136
62314.38040855505468.61959144494545
71915.26576190582683.73423809417324
81813.19145641649184.80854358350818
91912.84633074245506.15366925754504
101915.82490738003583.17509261996425
112216.92621672880335.07378327119665
122316.53260541453276.4673945854673
132017.22252694596022.77747305403978
141415.9760514952578-1.97605149525779
151418.2364058989343-4.23640589893432
161417.4507679430386-3.45076794303856
171518.8862585267442-3.88625852674423
181118.2583727728912-7.25837277289122
191718.5736739212189-1.57367392121887
201616.3529397657243-0.352939765724267
212016.36411975124793.6358802487521
222420.03338026087793.96661973912206
232321.42521292799081.57478707200917
242021.5184277915648-1.51842779156477
252121.9900575950009-0.990057595000907
261920.5200081741554-1.52000817415537
272321.14047207540031.85952792459965
282320.76703327160092.23296672839915
292322.60293009469190.397069905308057
302322.51542999724530.484570002754728
312723.75272808673183.24727191326823
322621.48629639448264.51370360551736
331721.2576871548858-4.25768715488575
342424.8050875665037-0.805087566503718
352625.66071123379540.339288766204634
362424.214950988604-0.214950988603991
372726.26351433859350.736485661406522
382726.02275322501280.97724677498718
392627.5975831559511-1.59758315595110
402426.0568302580390-2.05683025803903
412324.6927939227467-1.69279392274669
422324.5201637366686-1.52016373666860
432425.5751630504999-1.57516305049995
441720.9054340220531-3.90543402205314
452120.18766459063760.812335409362354
461921.1233647867460-2.12336478674596
472220.85964448923321.14035551076679
482220.02244767705781.97755232294225
491821.7573318332228-3.75733183322282
501620.5200081741554-4.52000817415537
511420.7366262364743-6.73662623647426
521216.6578788274953-4.65787882749532
531417.5956102205307-3.59561022053073
541616.3256249381403-0.325624938140343
55811.8326730357227-3.83267303572266
5638.06387340124813-5.06387340124813
5706.34419776077374-6.34419776077374
5859.21326000583663-4.21326000583663
5919.12821462017726-8.12821462017726
6017.71156812824078-6.71156812824078
6139.51493716811727-6.51493716811727

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 21 & 13.2516321191053 & 7.74836788089471 \tabularnewline
2 & 19 & 11.9611789314187 & 7.03882106858135 \tabularnewline
3 & 25 & 14.2889126332400 & 10.7110873667600 \tabularnewline
4 & 21 & 13.0674896998262 & 7.93251030017375 \tabularnewline
5 & 23 & 14.2224072352864 & 8.7775927647136 \tabularnewline
6 & 23 & 14.3804085550546 & 8.61959144494545 \tabularnewline
7 & 19 & 15.2657619058268 & 3.73423809417324 \tabularnewline
8 & 18 & 13.1914564164918 & 4.80854358350818 \tabularnewline
9 & 19 & 12.8463307424550 & 6.15366925754504 \tabularnewline
10 & 19 & 15.8249073800358 & 3.17509261996425 \tabularnewline
11 & 22 & 16.9262167288033 & 5.07378327119665 \tabularnewline
12 & 23 & 16.5326054145327 & 6.4673945854673 \tabularnewline
13 & 20 & 17.2225269459602 & 2.77747305403978 \tabularnewline
14 & 14 & 15.9760514952578 & -1.97605149525779 \tabularnewline
15 & 14 & 18.2364058989343 & -4.23640589893432 \tabularnewline
16 & 14 & 17.4507679430386 & -3.45076794303856 \tabularnewline
17 & 15 & 18.8862585267442 & -3.88625852674423 \tabularnewline
18 & 11 & 18.2583727728912 & -7.25837277289122 \tabularnewline
19 & 17 & 18.5736739212189 & -1.57367392121887 \tabularnewline
20 & 16 & 16.3529397657243 & -0.352939765724267 \tabularnewline
21 & 20 & 16.3641197512479 & 3.6358802487521 \tabularnewline
22 & 24 & 20.0333802608779 & 3.96661973912206 \tabularnewline
23 & 23 & 21.4252129279908 & 1.57478707200917 \tabularnewline
24 & 20 & 21.5184277915648 & -1.51842779156477 \tabularnewline
25 & 21 & 21.9900575950009 & -0.990057595000907 \tabularnewline
26 & 19 & 20.5200081741554 & -1.52000817415537 \tabularnewline
27 & 23 & 21.1404720754003 & 1.85952792459965 \tabularnewline
28 & 23 & 20.7670332716009 & 2.23296672839915 \tabularnewline
29 & 23 & 22.6029300946919 & 0.397069905308057 \tabularnewline
30 & 23 & 22.5154299972453 & 0.484570002754728 \tabularnewline
31 & 27 & 23.7527280867318 & 3.24727191326823 \tabularnewline
32 & 26 & 21.4862963944826 & 4.51370360551736 \tabularnewline
33 & 17 & 21.2576871548858 & -4.25768715488575 \tabularnewline
34 & 24 & 24.8050875665037 & -0.805087566503718 \tabularnewline
35 & 26 & 25.6607112337954 & 0.339288766204634 \tabularnewline
36 & 24 & 24.214950988604 & -0.214950988603991 \tabularnewline
37 & 27 & 26.2635143385935 & 0.736485661406522 \tabularnewline
38 & 27 & 26.0227532250128 & 0.97724677498718 \tabularnewline
39 & 26 & 27.5975831559511 & -1.59758315595110 \tabularnewline
40 & 24 & 26.0568302580390 & -2.05683025803903 \tabularnewline
41 & 23 & 24.6927939227467 & -1.69279392274669 \tabularnewline
42 & 23 & 24.5201637366686 & -1.52016373666860 \tabularnewline
43 & 24 & 25.5751630504999 & -1.57516305049995 \tabularnewline
44 & 17 & 20.9054340220531 & -3.90543402205314 \tabularnewline
45 & 21 & 20.1876645906376 & 0.812335409362354 \tabularnewline
46 & 19 & 21.1233647867460 & -2.12336478674596 \tabularnewline
47 & 22 & 20.8596444892332 & 1.14035551076679 \tabularnewline
48 & 22 & 20.0224476770578 & 1.97755232294225 \tabularnewline
49 & 18 & 21.7573318332228 & -3.75733183322282 \tabularnewline
50 & 16 & 20.5200081741554 & -4.52000817415537 \tabularnewline
51 & 14 & 20.7366262364743 & -6.73662623647426 \tabularnewline
52 & 12 & 16.6578788274953 & -4.65787882749532 \tabularnewline
53 & 14 & 17.5956102205307 & -3.59561022053073 \tabularnewline
54 & 16 & 16.3256249381403 & -0.325624938140343 \tabularnewline
55 & 8 & 11.8326730357227 & -3.83267303572266 \tabularnewline
56 & 3 & 8.06387340124813 & -5.06387340124813 \tabularnewline
57 & 0 & 6.34419776077374 & -6.34419776077374 \tabularnewline
58 & 5 & 9.21326000583663 & -4.21326000583663 \tabularnewline
59 & 1 & 9.12821462017726 & -8.12821462017726 \tabularnewline
60 & 1 & 7.71156812824078 & -6.71156812824078 \tabularnewline
61 & 3 & 9.51493716811727 & -6.51493716811727 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57640&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]13.2516321191053[/C][C]7.74836788089471[/C][/ROW]
[ROW][C]2[/C][C]19[/C][C]11.9611789314187[/C][C]7.03882106858135[/C][/ROW]
[ROW][C]3[/C][C]25[/C][C]14.2889126332400[/C][C]10.7110873667600[/C][/ROW]
[ROW][C]4[/C][C]21[/C][C]13.0674896998262[/C][C]7.93251030017375[/C][/ROW]
[ROW][C]5[/C][C]23[/C][C]14.2224072352864[/C][C]8.7775927647136[/C][/ROW]
[ROW][C]6[/C][C]23[/C][C]14.3804085550546[/C][C]8.61959144494545[/C][/ROW]
[ROW][C]7[/C][C]19[/C][C]15.2657619058268[/C][C]3.73423809417324[/C][/ROW]
[ROW][C]8[/C][C]18[/C][C]13.1914564164918[/C][C]4.80854358350818[/C][/ROW]
[ROW][C]9[/C][C]19[/C][C]12.8463307424550[/C][C]6.15366925754504[/C][/ROW]
[ROW][C]10[/C][C]19[/C][C]15.8249073800358[/C][C]3.17509261996425[/C][/ROW]
[ROW][C]11[/C][C]22[/C][C]16.9262167288033[/C][C]5.07378327119665[/C][/ROW]
[ROW][C]12[/C][C]23[/C][C]16.5326054145327[/C][C]6.4673945854673[/C][/ROW]
[ROW][C]13[/C][C]20[/C][C]17.2225269459602[/C][C]2.77747305403978[/C][/ROW]
[ROW][C]14[/C][C]14[/C][C]15.9760514952578[/C][C]-1.97605149525779[/C][/ROW]
[ROW][C]15[/C][C]14[/C][C]18.2364058989343[/C][C]-4.23640589893432[/C][/ROW]
[ROW][C]16[/C][C]14[/C][C]17.4507679430386[/C][C]-3.45076794303856[/C][/ROW]
[ROW][C]17[/C][C]15[/C][C]18.8862585267442[/C][C]-3.88625852674423[/C][/ROW]
[ROW][C]18[/C][C]11[/C][C]18.2583727728912[/C][C]-7.25837277289122[/C][/ROW]
[ROW][C]19[/C][C]17[/C][C]18.5736739212189[/C][C]-1.57367392121887[/C][/ROW]
[ROW][C]20[/C][C]16[/C][C]16.3529397657243[/C][C]-0.352939765724267[/C][/ROW]
[ROW][C]21[/C][C]20[/C][C]16.3641197512479[/C][C]3.6358802487521[/C][/ROW]
[ROW][C]22[/C][C]24[/C][C]20.0333802608779[/C][C]3.96661973912206[/C][/ROW]
[ROW][C]23[/C][C]23[/C][C]21.4252129279908[/C][C]1.57478707200917[/C][/ROW]
[ROW][C]24[/C][C]20[/C][C]21.5184277915648[/C][C]-1.51842779156477[/C][/ROW]
[ROW][C]25[/C][C]21[/C][C]21.9900575950009[/C][C]-0.990057595000907[/C][/ROW]
[ROW][C]26[/C][C]19[/C][C]20.5200081741554[/C][C]-1.52000817415537[/C][/ROW]
[ROW][C]27[/C][C]23[/C][C]21.1404720754003[/C][C]1.85952792459965[/C][/ROW]
[ROW][C]28[/C][C]23[/C][C]20.7670332716009[/C][C]2.23296672839915[/C][/ROW]
[ROW][C]29[/C][C]23[/C][C]22.6029300946919[/C][C]0.397069905308057[/C][/ROW]
[ROW][C]30[/C][C]23[/C][C]22.5154299972453[/C][C]0.484570002754728[/C][/ROW]
[ROW][C]31[/C][C]27[/C][C]23.7527280867318[/C][C]3.24727191326823[/C][/ROW]
[ROW][C]32[/C][C]26[/C][C]21.4862963944826[/C][C]4.51370360551736[/C][/ROW]
[ROW][C]33[/C][C]17[/C][C]21.2576871548858[/C][C]-4.25768715488575[/C][/ROW]
[ROW][C]34[/C][C]24[/C][C]24.8050875665037[/C][C]-0.805087566503718[/C][/ROW]
[ROW][C]35[/C][C]26[/C][C]25.6607112337954[/C][C]0.339288766204634[/C][/ROW]
[ROW][C]36[/C][C]24[/C][C]24.214950988604[/C][C]-0.214950988603991[/C][/ROW]
[ROW][C]37[/C][C]27[/C][C]26.2635143385935[/C][C]0.736485661406522[/C][/ROW]
[ROW][C]38[/C][C]27[/C][C]26.0227532250128[/C][C]0.97724677498718[/C][/ROW]
[ROW][C]39[/C][C]26[/C][C]27.5975831559511[/C][C]-1.59758315595110[/C][/ROW]
[ROW][C]40[/C][C]24[/C][C]26.0568302580390[/C][C]-2.05683025803903[/C][/ROW]
[ROW][C]41[/C][C]23[/C][C]24.6927939227467[/C][C]-1.69279392274669[/C][/ROW]
[ROW][C]42[/C][C]23[/C][C]24.5201637366686[/C][C]-1.52016373666860[/C][/ROW]
[ROW][C]43[/C][C]24[/C][C]25.5751630504999[/C][C]-1.57516305049995[/C][/ROW]
[ROW][C]44[/C][C]17[/C][C]20.9054340220531[/C][C]-3.90543402205314[/C][/ROW]
[ROW][C]45[/C][C]21[/C][C]20.1876645906376[/C][C]0.812335409362354[/C][/ROW]
[ROW][C]46[/C][C]19[/C][C]21.1233647867460[/C][C]-2.12336478674596[/C][/ROW]
[ROW][C]47[/C][C]22[/C][C]20.8596444892332[/C][C]1.14035551076679[/C][/ROW]
[ROW][C]48[/C][C]22[/C][C]20.0224476770578[/C][C]1.97755232294225[/C][/ROW]
[ROW][C]49[/C][C]18[/C][C]21.7573318332228[/C][C]-3.75733183322282[/C][/ROW]
[ROW][C]50[/C][C]16[/C][C]20.5200081741554[/C][C]-4.52000817415537[/C][/ROW]
[ROW][C]51[/C][C]14[/C][C]20.7366262364743[/C][C]-6.73662623647426[/C][/ROW]
[ROW][C]52[/C][C]12[/C][C]16.6578788274953[/C][C]-4.65787882749532[/C][/ROW]
[ROW][C]53[/C][C]14[/C][C]17.5956102205307[/C][C]-3.59561022053073[/C][/ROW]
[ROW][C]54[/C][C]16[/C][C]16.3256249381403[/C][C]-0.325624938140343[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]11.8326730357227[/C][C]-3.83267303572266[/C][/ROW]
[ROW][C]56[/C][C]3[/C][C]8.06387340124813[/C][C]-5.06387340124813[/C][/ROW]
[ROW][C]57[/C][C]0[/C][C]6.34419776077374[/C][C]-6.34419776077374[/C][/ROW]
[ROW][C]58[/C][C]5[/C][C]9.21326000583663[/C][C]-4.21326000583663[/C][/ROW]
[ROW][C]59[/C][C]1[/C][C]9.12821462017726[/C][C]-8.12821462017726[/C][/ROW]
[ROW][C]60[/C][C]1[/C][C]7.71156812824078[/C][C]-6.71156812824078[/C][/ROW]
[ROW][C]61[/C][C]3[/C][C]9.51493716811727[/C][C]-6.51493716811727[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57640&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57640&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
12113.25163211910537.74836788089471
21911.96117893141877.03882106858135
32514.288912633240010.7110873667600
42113.06748969982627.93251030017375
52314.22240723528648.7775927647136
62314.38040855505468.61959144494545
71915.26576190582683.73423809417324
81813.19145641649184.80854358350818
91912.84633074245506.15366925754504
101915.82490738003583.17509261996425
112216.92621672880335.07378327119665
122316.53260541453276.4673945854673
132017.22252694596022.77747305403978
141415.9760514952578-1.97605149525779
151418.2364058989343-4.23640589893432
161417.4507679430386-3.45076794303856
171518.8862585267442-3.88625852674423
181118.2583727728912-7.25837277289122
191718.5736739212189-1.57367392121887
201616.3529397657243-0.352939765724267
212016.36411975124793.6358802487521
222420.03338026087793.96661973912206
232321.42521292799081.57478707200917
242021.5184277915648-1.51842779156477
252121.9900575950009-0.990057595000907
261920.5200081741554-1.52000817415537
272321.14047207540031.85952792459965
282320.76703327160092.23296672839915
292322.60293009469190.397069905308057
302322.51542999724530.484570002754728
312723.75272808673183.24727191326823
322621.48629639448264.51370360551736
331721.2576871548858-4.25768715488575
342424.8050875665037-0.805087566503718
352625.66071123379540.339288766204634
362424.214950988604-0.214950988603991
372726.26351433859350.736485661406522
382726.02275322501280.97724677498718
392627.5975831559511-1.59758315595110
402426.0568302580390-2.05683025803903
412324.6927939227467-1.69279392274669
422324.5201637366686-1.52016373666860
432425.5751630504999-1.57516305049995
441720.9054340220531-3.90543402205314
452120.18766459063760.812335409362354
461921.1233647867460-2.12336478674596
472220.85964448923321.14035551076679
482220.02244767705781.97755232294225
491821.7573318332228-3.75733183322282
501620.5200081741554-4.52000817415537
511420.7366262364743-6.73662623647426
521216.6578788274953-4.65787882749532
531417.5956102205307-3.59561022053073
541616.3256249381403-0.325624938140343
55811.8326730357227-3.83267303572266
5638.06387340124813-5.06387340124813
5706.34419776077374-6.34419776077374
5859.21326000583663-4.21326000583663
5919.12821462017726-8.12821462017726
6017.71156812824078-6.71156812824078
6139.51493716811727-6.51493716811727







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.6038016587010310.7923966825979380.396198341298969
170.4400811883895550.880162376779110.559918811610445
180.5837742389330110.8324515221339780.416225761066989
190.5329312156388960.9341375687222080.467068784361104
200.4651764758115770.9303529516231530.534823524188423
210.651035669253670.6979286614926580.348964330746329
220.9141561024322670.1716877951354660.085843897567733
230.9189126354584320.1621747290831350.0810873645415675
240.879735598266930.2405288034661420.120264401733071
250.890126981814460.2197460363710810.109873018185540
260.9018919235063150.1962161529873700.0981080764936852
270.9559274264966770.08814514700664670.0440725735033233
280.982987817080920.03402436583816010.0170121829190800
290.9812708092279240.03745838154415190.0187291907720759
300.9791283385456420.04174332290871590.0208716614543579
310.9888569757023360.02228604859532710.0111430242976635
320.9976648268763920.004670346247215920.00233517312360796
330.9982718358455450.00345632830891010.00172816415445505
340.9963382957959950.007323408408009580.00366170420400479
350.9922435729284880.01551285414302490.00775642707151247
360.9860806285137960.02783874297240740.0139193714862037
370.9786250333431560.04274993331368770.0213749666568438
380.9779911249533340.04401775009333150.0220088750466658
390.9661984035595230.06760319288095410.0338015964404771
400.934986409737380.1300271805252390.0650135902626197
410.8818387971313660.2363224057372680.118161202868634
420.8650824625833030.2698350748333940.134917537416697
430.8140251586194570.3719496827610870.185974841380543
440.8248187926782780.3503624146434450.175181207321723
450.6770847008254070.6458305983491870.322915299174593

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.603801658701031 & 0.792396682597938 & 0.396198341298969 \tabularnewline
17 & 0.440081188389555 & 0.88016237677911 & 0.559918811610445 \tabularnewline
18 & 0.583774238933011 & 0.832451522133978 & 0.416225761066989 \tabularnewline
19 & 0.532931215638896 & 0.934137568722208 & 0.467068784361104 \tabularnewline
20 & 0.465176475811577 & 0.930352951623153 & 0.534823524188423 \tabularnewline
21 & 0.65103566925367 & 0.697928661492658 & 0.348964330746329 \tabularnewline
22 & 0.914156102432267 & 0.171687795135466 & 0.085843897567733 \tabularnewline
23 & 0.918912635458432 & 0.162174729083135 & 0.0810873645415675 \tabularnewline
24 & 0.87973559826693 & 0.240528803466142 & 0.120264401733071 \tabularnewline
25 & 0.89012698181446 & 0.219746036371081 & 0.109873018185540 \tabularnewline
26 & 0.901891923506315 & 0.196216152987370 & 0.0981080764936852 \tabularnewline
27 & 0.955927426496677 & 0.0881451470066467 & 0.0440725735033233 \tabularnewline
28 & 0.98298781708092 & 0.0340243658381601 & 0.0170121829190800 \tabularnewline
29 & 0.981270809227924 & 0.0374583815441519 & 0.0187291907720759 \tabularnewline
30 & 0.979128338545642 & 0.0417433229087159 & 0.0208716614543579 \tabularnewline
31 & 0.988856975702336 & 0.0222860485953271 & 0.0111430242976635 \tabularnewline
32 & 0.997664826876392 & 0.00467034624721592 & 0.00233517312360796 \tabularnewline
33 & 0.998271835845545 & 0.0034563283089101 & 0.00172816415445505 \tabularnewline
34 & 0.996338295795995 & 0.00732340840800958 & 0.00366170420400479 \tabularnewline
35 & 0.992243572928488 & 0.0155128541430249 & 0.00775642707151247 \tabularnewline
36 & 0.986080628513796 & 0.0278387429724074 & 0.0139193714862037 \tabularnewline
37 & 0.978625033343156 & 0.0427499333136877 & 0.0213749666568438 \tabularnewline
38 & 0.977991124953334 & 0.0440177500933315 & 0.0220088750466658 \tabularnewline
39 & 0.966198403559523 & 0.0676031928809541 & 0.0338015964404771 \tabularnewline
40 & 0.93498640973738 & 0.130027180525239 & 0.0650135902626197 \tabularnewline
41 & 0.881838797131366 & 0.236322405737268 & 0.118161202868634 \tabularnewline
42 & 0.865082462583303 & 0.269835074833394 & 0.134917537416697 \tabularnewline
43 & 0.814025158619457 & 0.371949682761087 & 0.185974841380543 \tabularnewline
44 & 0.824818792678278 & 0.350362414643445 & 0.175181207321723 \tabularnewline
45 & 0.677084700825407 & 0.645830598349187 & 0.322915299174593 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57640&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]16[/C][C]0.603801658701031[/C][C]0.792396682597938[/C][C]0.396198341298969[/C][/ROW]
[ROW][C]17[/C][C]0.440081188389555[/C][C]0.88016237677911[/C][C]0.559918811610445[/C][/ROW]
[ROW][C]18[/C][C]0.583774238933011[/C][C]0.832451522133978[/C][C]0.416225761066989[/C][/ROW]
[ROW][C]19[/C][C]0.532931215638896[/C][C]0.934137568722208[/C][C]0.467068784361104[/C][/ROW]
[ROW][C]20[/C][C]0.465176475811577[/C][C]0.930352951623153[/C][C]0.534823524188423[/C][/ROW]
[ROW][C]21[/C][C]0.65103566925367[/C][C]0.697928661492658[/C][C]0.348964330746329[/C][/ROW]
[ROW][C]22[/C][C]0.914156102432267[/C][C]0.171687795135466[/C][C]0.085843897567733[/C][/ROW]
[ROW][C]23[/C][C]0.918912635458432[/C][C]0.162174729083135[/C][C]0.0810873645415675[/C][/ROW]
[ROW][C]24[/C][C]0.87973559826693[/C][C]0.240528803466142[/C][C]0.120264401733071[/C][/ROW]
[ROW][C]25[/C][C]0.89012698181446[/C][C]0.219746036371081[/C][C]0.109873018185540[/C][/ROW]
[ROW][C]26[/C][C]0.901891923506315[/C][C]0.196216152987370[/C][C]0.0981080764936852[/C][/ROW]
[ROW][C]27[/C][C]0.955927426496677[/C][C]0.0881451470066467[/C][C]0.0440725735033233[/C][/ROW]
[ROW][C]28[/C][C]0.98298781708092[/C][C]0.0340243658381601[/C][C]0.0170121829190800[/C][/ROW]
[ROW][C]29[/C][C]0.981270809227924[/C][C]0.0374583815441519[/C][C]0.0187291907720759[/C][/ROW]
[ROW][C]30[/C][C]0.979128338545642[/C][C]0.0417433229087159[/C][C]0.0208716614543579[/C][/ROW]
[ROW][C]31[/C][C]0.988856975702336[/C][C]0.0222860485953271[/C][C]0.0111430242976635[/C][/ROW]
[ROW][C]32[/C][C]0.997664826876392[/C][C]0.00467034624721592[/C][C]0.00233517312360796[/C][/ROW]
[ROW][C]33[/C][C]0.998271835845545[/C][C]0.0034563283089101[/C][C]0.00172816415445505[/C][/ROW]
[ROW][C]34[/C][C]0.996338295795995[/C][C]0.00732340840800958[/C][C]0.00366170420400479[/C][/ROW]
[ROW][C]35[/C][C]0.992243572928488[/C][C]0.0155128541430249[/C][C]0.00775642707151247[/C][/ROW]
[ROW][C]36[/C][C]0.986080628513796[/C][C]0.0278387429724074[/C][C]0.0139193714862037[/C][/ROW]
[ROW][C]37[/C][C]0.978625033343156[/C][C]0.0427499333136877[/C][C]0.0213749666568438[/C][/ROW]
[ROW][C]38[/C][C]0.977991124953334[/C][C]0.0440177500933315[/C][C]0.0220088750466658[/C][/ROW]
[ROW][C]39[/C][C]0.966198403559523[/C][C]0.0676031928809541[/C][C]0.0338015964404771[/C][/ROW]
[ROW][C]40[/C][C]0.93498640973738[/C][C]0.130027180525239[/C][C]0.0650135902626197[/C][/ROW]
[ROW][C]41[/C][C]0.881838797131366[/C][C]0.236322405737268[/C][C]0.118161202868634[/C][/ROW]
[ROW][C]42[/C][C]0.865082462583303[/C][C]0.269835074833394[/C][C]0.134917537416697[/C][/ROW]
[ROW][C]43[/C][C]0.814025158619457[/C][C]0.371949682761087[/C][C]0.185974841380543[/C][/ROW]
[ROW][C]44[/C][C]0.824818792678278[/C][C]0.350362414643445[/C][C]0.175181207321723[/C][/ROW]
[ROW][C]45[/C][C]0.677084700825407[/C][C]0.645830598349187[/C][C]0.322915299174593[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57640&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57640&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
160.6038016587010310.7923966825979380.396198341298969
170.4400811883895550.880162376779110.559918811610445
180.5837742389330110.8324515221339780.416225761066989
190.5329312156388960.9341375687222080.467068784361104
200.4651764758115770.9303529516231530.534823524188423
210.651035669253670.6979286614926580.348964330746329
220.9141561024322670.1716877951354660.085843897567733
230.9189126354584320.1621747290831350.0810873645415675
240.879735598266930.2405288034661420.120264401733071
250.890126981814460.2197460363710810.109873018185540
260.9018919235063150.1962161529873700.0981080764936852
270.9559274264966770.08814514700664670.0440725735033233
280.982987817080920.03402436583816010.0170121829190800
290.9812708092279240.03745838154415190.0187291907720759
300.9791283385456420.04174332290871590.0208716614543579
310.9888569757023360.02228604859532710.0111430242976635
320.9976648268763920.004670346247215920.00233517312360796
330.9982718358455450.00345632830891010.00172816415445505
340.9963382957959950.007323408408009580.00366170420400479
350.9922435729284880.01551285414302490.00775642707151247
360.9860806285137960.02783874297240740.0139193714862037
370.9786250333431560.04274993331368770.0213749666568438
380.9779911249533340.04401775009333150.0220088750466658
390.9661984035595230.06760319288095410.0338015964404771
400.934986409737380.1300271805252390.0650135902626197
410.8818387971313660.2363224057372680.118161202868634
420.8650824625833030.2698350748333940.134917537416697
430.8140251586194570.3719496827610870.185974841380543
440.8248187926782780.3503624146434450.175181207321723
450.6770847008254070.6458305983491870.322915299174593







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.1NOK
5% type I error level110.366666666666667NOK
10% type I error level130.433333333333333NOK

\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 & 3 & 0.1 & NOK \tabularnewline
5% type I error level & 11 & 0.366666666666667 & NOK \tabularnewline
10% type I error level & 13 & 0.433333333333333 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57640&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]3[/C][C]0.1[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]11[/C][C]0.366666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]13[/C][C]0.433333333333333[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57640&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57640&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 level30.1NOK
5% type I error level110.366666666666667NOK
10% type I error level130.433333333333333NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}