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 computationMon, 23 Nov 2009 09:53:08 -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/23/t1258996566mp6z1eg2jm2747c.htm/, Retrieved Mon, 29 Apr 2024 17:01:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58832, Retrieved Mon, 29 Apr 2024 17:01:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWS 7 Model 6
Estimated Impact159
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [WS 7] [2009-11-19 23:41:15] [9717cb857c153ca3061376906953b329]
-    D      [Multiple Regression] [WS 7 Model 1] [2009-11-20 18:02:51] [9717cb857c153ca3061376906953b329]
-   P         [Multiple Regression] [WS 7 Model 2] [2009-11-20 18:37:24] [9717cb857c153ca3061376906953b329]
-   P           [Multiple Regression] [WS 7 Model 3] [2009-11-20 18:55:39] [9717cb857c153ca3061376906953b329]
-    D            [Multiple Regression] [WS 7 Model 4] [2009-11-22 16:57:43] [9717cb857c153ca3061376906953b329]
-    D              [Multiple Regression] [WS 7 Model 5] [2009-11-22 20:04:45] [9717cb857c153ca3061376906953b329]
-    D                  [Multiple Regression] [WS 7 Model 6] [2009-11-23 16:53:08] [52b85b290d6f50b0921ad6729b8a5af2] [Current]
Feedback Forum

Post a new message
Dataseries X:
277128	0	277915
277103	0	277128
275037	0	277103
270150	0	275037
267140	0	270150
264993	0	267140
287259	0	264993
291186	0	287259
292300	0	291186
288186	0	292300
281477	0	288186
282656	0	281477
280190	0	282656
280408	0	280190
276836	0	280408
275216	0	276836
274352	0	275216
271311	0	274352
289802	0	271311
290726	0	289802
292300	0	290726
278506	0	292300
269826	0	278506
265861	0	269826
269034	0	265861
264176	0	269034
255198	0	264176
253353	0	255198
246057	0	253353
235372	0	246057
258556	0	235372
260993	0	258556
254663	0	260993
250643	0	254663
243422	0	250643
247105	0	243422
248541	0	247105
245039	0	248541
237080	0	245039
237085	0	237080
225554	0	237085
226839	1	225554
247934	1	226839
248333	1	247934
246969	1	248333
245098	1	246969
246263	1	245098
255765	1	246263
264319	1	255765
268347	1	264319
273046	1	268347
273963	1	273046
267430	1	273963
271993	1	267430
292710	1	271993
295881	1	292710




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58832&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
nwwmb[t] = + 6488.09269370416 + 6674.20303615999dummy_variable[t] + 0.988129051900833`y[t-1]`[t] -628.655938595416M1[t] -3332.67722537028M2[t] -6007.65350211412M3[t] -3878.64402166556M4[t] -8174.83375644826M5[t] -5655.03092893379M6[t] + 17559.0183142201M7[t] -1086.65351682104M8[t] -3948.87269678224M9[t] -8579.72869423567M10[t] -7979.60737359601M11[t] -82.2504940926742t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
nwwmb[t] =  +  6488.09269370416 +  6674.20303615999dummy_variable[t] +  0.988129051900833`y[t-1]`[t] -628.655938595416M1[t] -3332.67722537028M2[t] -6007.65350211412M3[t] -3878.64402166556M4[t] -8174.83375644826M5[t] -5655.03092893379M6[t] +  17559.0183142201M7[t] -1086.65351682104M8[t] -3948.87269678224M9[t] -8579.72869423567M10[t] -7979.60737359601M11[t] -82.2504940926742t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58832&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]nwwmb[t] =  +  6488.09269370416 +  6674.20303615999dummy_variable[t] +  0.988129051900833`y[t-1]`[t] -628.655938595416M1[t] -3332.67722537028M2[t] -6007.65350211412M3[t] -3878.64402166556M4[t] -8174.83375644826M5[t] -5655.03092893379M6[t] +  17559.0183142201M7[t] -1086.65351682104M8[t] -3948.87269678224M9[t] -8579.72869423567M10[t] -7979.60737359601M11[t] -82.2504940926742t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58832&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58832&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
nwwmb[t] = + 6488.09269370416 + 6674.20303615999dummy_variable[t] + 0.988129051900833`y[t-1]`[t] -628.655938595416M1[t] -3332.67722537028M2[t] -6007.65350211412M3[t] -3878.64402166556M4[t] -8174.83375644826M5[t] -5655.03092893379M6[t] + 17559.0183142201M7[t] -1086.65351682104M8[t] -3948.87269678224M9[t] -8579.72869423567M10[t] -7979.60737359601M11[t] -82.2504940926742t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)6488.0926937041610361.0272970.62620.5346540.267327
dummy_variable6674.203036159991763.1285033.78540.0004920.000246
`y[t-1]`0.9881290519008330.03594527.489800
M1-628.6559385954162380.00936-0.26410.7929950.396498
M2-3332.677225370282382.569038-1.39880.16940.0847
M3-6007.653502114122380.775222-2.52340.0155940.007797
M4-3878.644021665562374.587875-1.63340.1100430.055021
M5-8174.833756448262373.873537-3.44370.0013360.000668
M6-5655.030928933792396.370695-2.35980.0231250.011562
M717559.01831422012397.2542117.324600
M8-1086.653516821042438.242907-0.44570.658180.32909
M9-3948.872696782242530.405254-1.56060.1263120.063156
M10-8579.728694235672526.299992-3.39620.0015290.000765
M11-7979.607373596012506.550104-3.18350.0027770.001388
t-82.250494092674255.23241-1.48920.1440950.072048

\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) & 6488.09269370416 & 10361.027297 & 0.6262 & 0.534654 & 0.267327 \tabularnewline
dummy_variable & 6674.20303615999 & 1763.128503 & 3.7854 & 0.000492 & 0.000246 \tabularnewline
`y[t-1]` & 0.988129051900833 & 0.035945 & 27.4898 & 0 & 0 \tabularnewline
M1 & -628.655938595416 & 2380.00936 & -0.2641 & 0.792995 & 0.396498 \tabularnewline
M2 & -3332.67722537028 & 2382.569038 & -1.3988 & 0.1694 & 0.0847 \tabularnewline
M3 & -6007.65350211412 & 2380.775222 & -2.5234 & 0.015594 & 0.007797 \tabularnewline
M4 & -3878.64402166556 & 2374.587875 & -1.6334 & 0.110043 & 0.055021 \tabularnewline
M5 & -8174.83375644826 & 2373.873537 & -3.4437 & 0.001336 & 0.000668 \tabularnewline
M6 & -5655.03092893379 & 2396.370695 & -2.3598 & 0.023125 & 0.011562 \tabularnewline
M7 & 17559.0183142201 & 2397.254211 & 7.3246 & 0 & 0 \tabularnewline
M8 & -1086.65351682104 & 2438.242907 & -0.4457 & 0.65818 & 0.32909 \tabularnewline
M9 & -3948.87269678224 & 2530.405254 & -1.5606 & 0.126312 & 0.063156 \tabularnewline
M10 & -8579.72869423567 & 2526.299992 & -3.3962 & 0.001529 & 0.000765 \tabularnewline
M11 & -7979.60737359601 & 2506.550104 & -3.1835 & 0.002777 & 0.001388 \tabularnewline
t & -82.2504940926742 & 55.23241 & -1.4892 & 0.144095 & 0.072048 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58832&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]6488.09269370416[/C][C]10361.027297[/C][C]0.6262[/C][C]0.534654[/C][C]0.267327[/C][/ROW]
[ROW][C]dummy_variable[/C][C]6674.20303615999[/C][C]1763.128503[/C][C]3.7854[/C][C]0.000492[/C][C]0.000246[/C][/ROW]
[ROW][C]`y[t-1]`[/C][C]0.988129051900833[/C][C]0.035945[/C][C]27.4898[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-628.655938595416[/C][C]2380.00936[/C][C]-0.2641[/C][C]0.792995[/C][C]0.396498[/C][/ROW]
[ROW][C]M2[/C][C]-3332.67722537028[/C][C]2382.569038[/C][C]-1.3988[/C][C]0.1694[/C][C]0.0847[/C][/ROW]
[ROW][C]M3[/C][C]-6007.65350211412[/C][C]2380.775222[/C][C]-2.5234[/C][C]0.015594[/C][C]0.007797[/C][/ROW]
[ROW][C]M4[/C][C]-3878.64402166556[/C][C]2374.587875[/C][C]-1.6334[/C][C]0.110043[/C][C]0.055021[/C][/ROW]
[ROW][C]M5[/C][C]-8174.83375644826[/C][C]2373.873537[/C][C]-3.4437[/C][C]0.001336[/C][C]0.000668[/C][/ROW]
[ROW][C]M6[/C][C]-5655.03092893379[/C][C]2396.370695[/C][C]-2.3598[/C][C]0.023125[/C][C]0.011562[/C][/ROW]
[ROW][C]M7[/C][C]17559.0183142201[/C][C]2397.254211[/C][C]7.3246[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-1086.65351682104[/C][C]2438.242907[/C][C]-0.4457[/C][C]0.65818[/C][C]0.32909[/C][/ROW]
[ROW][C]M9[/C][C]-3948.87269678224[/C][C]2530.405254[/C][C]-1.5606[/C][C]0.126312[/C][C]0.063156[/C][/ROW]
[ROW][C]M10[/C][C]-8579.72869423567[/C][C]2526.299992[/C][C]-3.3962[/C][C]0.001529[/C][C]0.000765[/C][/ROW]
[ROW][C]M11[/C][C]-7979.60737359601[/C][C]2506.550104[/C][C]-3.1835[/C][C]0.002777[/C][C]0.001388[/C][/ROW]
[ROW][C]t[/C][C]-82.2504940926742[/C][C]55.23241[/C][C]-1.4892[/C][C]0.144095[/C][C]0.072048[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58832&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58832&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)6488.0926937041610361.0272970.62620.5346540.267327
dummy_variable6674.203036159991763.1285033.78540.0004920.000246
`y[t-1]`0.9881290519008330.03594527.489800
M1-628.6559385954162380.00936-0.26410.7929950.396498
M2-3332.677225370282382.569038-1.39880.16940.0847
M3-6007.653502114122380.775222-2.52340.0155940.007797
M4-3878.644021665562374.587875-1.63340.1100430.055021
M5-8174.833756448262373.873537-3.44370.0013360.000668
M6-5655.030928933792396.370695-2.35980.0231250.011562
M717559.01831422012397.2542117.324600
M8-1086.653516821042438.242907-0.44570.658180.32909
M9-3948.872696782242530.405254-1.56060.1263120.063156
M10-8579.728694235672526.299992-3.39620.0015290.000765
M11-7979.607373596012506.550104-3.18350.0027770.001388
t-82.250494092674255.23241-1.48920.1440950.072048







Multiple Linear Regression - Regression Statistics
Multiple R0.985713337178518
R-squared0.97163078309161
Adjusted R-squared0.961943733415575
F-TEST (value)100.302033703338
F-TEST (DF numerator)14
F-TEST (DF denominator)41
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3536.77348711924
Sum Squared Residuals512859434.666773

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.985713337178518 \tabularnewline
R-squared & 0.97163078309161 \tabularnewline
Adjusted R-squared & 0.961943733415575 \tabularnewline
F-TEST (value) & 100.302033703338 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 41 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3536.77348711924 \tabularnewline
Sum Squared Residuals & 512859434.666773 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58832&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.985713337178518[/C][/ROW]
[ROW][C]R-squared[/C][C]0.97163078309161[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.961943733415575[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]100.302033703338[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]41[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]3536.77348711924[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]512859434.666773[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58832&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58832&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.985713337178518
R-squared0.97163078309161
Adjusted R-squared0.961943733415575
F-TEST (value)100.302033703338
F-TEST (DF numerator)14
F-TEST (DF denominator)41
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3536.77348711924
Sum Squared Residuals512859434.666773







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1277128280393.071720036-3265.0717200356
2277103276829.142375323273.857624677456
3275037274047.212378189989.787621811412
4270150274052.496743317-3902.49674331729
5267140264845.0698378032294.93016219744
6264993264308.353725003684.646274997167
7287259285318.6393996331940.36060036708
8291186288592.3985441232593.60145587690
9292300289528.3116568842771.68834311621
10288186285915.9809291552270.01907084478
11281477282368.688836182-891.688836182172
12282656283636.687906483-980.687906482825
13280190284090.785625986-3900.78562598582
14280408278867.7876031311540.21239686918
15276836276325.972965609510.027034391299
16275216274843.134978575372.865021425208
17274352268863.925685625488.07431437992
18271311270447.734518200863.265481800446
19289802290574.63282043-772.632820430293
20290726290118.204793995607.795206005168
21292300288086.7663638974213.23363610268
22278506284928.975000043-6422.97500004313
23269826271816.59368467-1990.59368467002
24265861271136.990393674-5275.99039367413
25269034266508.1522701992525.84772980077
26264176266857.213971013-2681.21397101304
27255198259299.656266042-4101.65626604228
28253353252474.992624432878.007375567527
29246057246273.4542948-216.454294800073
30235372241501.617065553-6129.61706555339
31258556254075.2568950544480.74310494585
32260993258256.1185091892736.88149081069
33254663257719.719334618-3056.71933461776
34250643246751.7559445393891.24405546063
35243422243297.347982445124.65201755499
36247105244059.4249781723045.57502182757
37248541246987.7978436351553.20215636489
38245039245620.479381297-581.479381297165
39237080239402.824670704-2322.82467070394
40237085233585.0645329813499.93546701892
41225554229211.564949365-3657.56494936523
42226839226929.204221479-90.2042214785065
43247934251330.748802232-3396.74880223226
44248333253447.408826947-5114.40882694657
45246969250897.202644601-3928.20264460112
46245098244836.288126262261.711873737726
47246263243505.3694967032757.6305032972
48255765252553.8967216713211.10327832938
49264319261232.1925401443086.80745985576
50268347266898.3766692361448.62333076357
51273046268121.3337194564924.66628054352
52273963274811.311120694-848.311120694364
53267430271338.985232412-3908.98523241206
54271993267321.0904697664671.90953023428
55292710294961.722082650-2251.72208265039
56295881296704.869325746-823.869325746182

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 277128 & 280393.071720036 & -3265.0717200356 \tabularnewline
2 & 277103 & 276829.142375323 & 273.857624677456 \tabularnewline
3 & 275037 & 274047.212378189 & 989.787621811412 \tabularnewline
4 & 270150 & 274052.496743317 & -3902.49674331729 \tabularnewline
5 & 267140 & 264845.069837803 & 2294.93016219744 \tabularnewline
6 & 264993 & 264308.353725003 & 684.646274997167 \tabularnewline
7 & 287259 & 285318.639399633 & 1940.36060036708 \tabularnewline
8 & 291186 & 288592.398544123 & 2593.60145587690 \tabularnewline
9 & 292300 & 289528.311656884 & 2771.68834311621 \tabularnewline
10 & 288186 & 285915.980929155 & 2270.01907084478 \tabularnewline
11 & 281477 & 282368.688836182 & -891.688836182172 \tabularnewline
12 & 282656 & 283636.687906483 & -980.687906482825 \tabularnewline
13 & 280190 & 284090.785625986 & -3900.78562598582 \tabularnewline
14 & 280408 & 278867.787603131 & 1540.21239686918 \tabularnewline
15 & 276836 & 276325.972965609 & 510.027034391299 \tabularnewline
16 & 275216 & 274843.134978575 & 372.865021425208 \tabularnewline
17 & 274352 & 268863.92568562 & 5488.07431437992 \tabularnewline
18 & 271311 & 270447.734518200 & 863.265481800446 \tabularnewline
19 & 289802 & 290574.63282043 & -772.632820430293 \tabularnewline
20 & 290726 & 290118.204793995 & 607.795206005168 \tabularnewline
21 & 292300 & 288086.766363897 & 4213.23363610268 \tabularnewline
22 & 278506 & 284928.975000043 & -6422.97500004313 \tabularnewline
23 & 269826 & 271816.59368467 & -1990.59368467002 \tabularnewline
24 & 265861 & 271136.990393674 & -5275.99039367413 \tabularnewline
25 & 269034 & 266508.152270199 & 2525.84772980077 \tabularnewline
26 & 264176 & 266857.213971013 & -2681.21397101304 \tabularnewline
27 & 255198 & 259299.656266042 & -4101.65626604228 \tabularnewline
28 & 253353 & 252474.992624432 & 878.007375567527 \tabularnewline
29 & 246057 & 246273.4542948 & -216.454294800073 \tabularnewline
30 & 235372 & 241501.617065553 & -6129.61706555339 \tabularnewline
31 & 258556 & 254075.256895054 & 4480.74310494585 \tabularnewline
32 & 260993 & 258256.118509189 & 2736.88149081069 \tabularnewline
33 & 254663 & 257719.719334618 & -3056.71933461776 \tabularnewline
34 & 250643 & 246751.755944539 & 3891.24405546063 \tabularnewline
35 & 243422 & 243297.347982445 & 124.65201755499 \tabularnewline
36 & 247105 & 244059.424978172 & 3045.57502182757 \tabularnewline
37 & 248541 & 246987.797843635 & 1553.20215636489 \tabularnewline
38 & 245039 & 245620.479381297 & -581.479381297165 \tabularnewline
39 & 237080 & 239402.824670704 & -2322.82467070394 \tabularnewline
40 & 237085 & 233585.064532981 & 3499.93546701892 \tabularnewline
41 & 225554 & 229211.564949365 & -3657.56494936523 \tabularnewline
42 & 226839 & 226929.204221479 & -90.2042214785065 \tabularnewline
43 & 247934 & 251330.748802232 & -3396.74880223226 \tabularnewline
44 & 248333 & 253447.408826947 & -5114.40882694657 \tabularnewline
45 & 246969 & 250897.202644601 & -3928.20264460112 \tabularnewline
46 & 245098 & 244836.288126262 & 261.711873737726 \tabularnewline
47 & 246263 & 243505.369496703 & 2757.6305032972 \tabularnewline
48 & 255765 & 252553.896721671 & 3211.10327832938 \tabularnewline
49 & 264319 & 261232.192540144 & 3086.80745985576 \tabularnewline
50 & 268347 & 266898.376669236 & 1448.62333076357 \tabularnewline
51 & 273046 & 268121.333719456 & 4924.66628054352 \tabularnewline
52 & 273963 & 274811.311120694 & -848.311120694364 \tabularnewline
53 & 267430 & 271338.985232412 & -3908.98523241206 \tabularnewline
54 & 271993 & 267321.090469766 & 4671.90953023428 \tabularnewline
55 & 292710 & 294961.722082650 & -2251.72208265039 \tabularnewline
56 & 295881 & 296704.869325746 & -823.869325746182 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58832&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]277128[/C][C]280393.071720036[/C][C]-3265.0717200356[/C][/ROW]
[ROW][C]2[/C][C]277103[/C][C]276829.142375323[/C][C]273.857624677456[/C][/ROW]
[ROW][C]3[/C][C]275037[/C][C]274047.212378189[/C][C]989.787621811412[/C][/ROW]
[ROW][C]4[/C][C]270150[/C][C]274052.496743317[/C][C]-3902.49674331729[/C][/ROW]
[ROW][C]5[/C][C]267140[/C][C]264845.069837803[/C][C]2294.93016219744[/C][/ROW]
[ROW][C]6[/C][C]264993[/C][C]264308.353725003[/C][C]684.646274997167[/C][/ROW]
[ROW][C]7[/C][C]287259[/C][C]285318.639399633[/C][C]1940.36060036708[/C][/ROW]
[ROW][C]8[/C][C]291186[/C][C]288592.398544123[/C][C]2593.60145587690[/C][/ROW]
[ROW][C]9[/C][C]292300[/C][C]289528.311656884[/C][C]2771.68834311621[/C][/ROW]
[ROW][C]10[/C][C]288186[/C][C]285915.980929155[/C][C]2270.01907084478[/C][/ROW]
[ROW][C]11[/C][C]281477[/C][C]282368.688836182[/C][C]-891.688836182172[/C][/ROW]
[ROW][C]12[/C][C]282656[/C][C]283636.687906483[/C][C]-980.687906482825[/C][/ROW]
[ROW][C]13[/C][C]280190[/C][C]284090.785625986[/C][C]-3900.78562598582[/C][/ROW]
[ROW][C]14[/C][C]280408[/C][C]278867.787603131[/C][C]1540.21239686918[/C][/ROW]
[ROW][C]15[/C][C]276836[/C][C]276325.972965609[/C][C]510.027034391299[/C][/ROW]
[ROW][C]16[/C][C]275216[/C][C]274843.134978575[/C][C]372.865021425208[/C][/ROW]
[ROW][C]17[/C][C]274352[/C][C]268863.92568562[/C][C]5488.07431437992[/C][/ROW]
[ROW][C]18[/C][C]271311[/C][C]270447.734518200[/C][C]863.265481800446[/C][/ROW]
[ROW][C]19[/C][C]289802[/C][C]290574.63282043[/C][C]-772.632820430293[/C][/ROW]
[ROW][C]20[/C][C]290726[/C][C]290118.204793995[/C][C]607.795206005168[/C][/ROW]
[ROW][C]21[/C][C]292300[/C][C]288086.766363897[/C][C]4213.23363610268[/C][/ROW]
[ROW][C]22[/C][C]278506[/C][C]284928.975000043[/C][C]-6422.97500004313[/C][/ROW]
[ROW][C]23[/C][C]269826[/C][C]271816.59368467[/C][C]-1990.59368467002[/C][/ROW]
[ROW][C]24[/C][C]265861[/C][C]271136.990393674[/C][C]-5275.99039367413[/C][/ROW]
[ROW][C]25[/C][C]269034[/C][C]266508.152270199[/C][C]2525.84772980077[/C][/ROW]
[ROW][C]26[/C][C]264176[/C][C]266857.213971013[/C][C]-2681.21397101304[/C][/ROW]
[ROW][C]27[/C][C]255198[/C][C]259299.656266042[/C][C]-4101.65626604228[/C][/ROW]
[ROW][C]28[/C][C]253353[/C][C]252474.992624432[/C][C]878.007375567527[/C][/ROW]
[ROW][C]29[/C][C]246057[/C][C]246273.4542948[/C][C]-216.454294800073[/C][/ROW]
[ROW][C]30[/C][C]235372[/C][C]241501.617065553[/C][C]-6129.61706555339[/C][/ROW]
[ROW][C]31[/C][C]258556[/C][C]254075.256895054[/C][C]4480.74310494585[/C][/ROW]
[ROW][C]32[/C][C]260993[/C][C]258256.118509189[/C][C]2736.88149081069[/C][/ROW]
[ROW][C]33[/C][C]254663[/C][C]257719.719334618[/C][C]-3056.71933461776[/C][/ROW]
[ROW][C]34[/C][C]250643[/C][C]246751.755944539[/C][C]3891.24405546063[/C][/ROW]
[ROW][C]35[/C][C]243422[/C][C]243297.347982445[/C][C]124.65201755499[/C][/ROW]
[ROW][C]36[/C][C]247105[/C][C]244059.424978172[/C][C]3045.57502182757[/C][/ROW]
[ROW][C]37[/C][C]248541[/C][C]246987.797843635[/C][C]1553.20215636489[/C][/ROW]
[ROW][C]38[/C][C]245039[/C][C]245620.479381297[/C][C]-581.479381297165[/C][/ROW]
[ROW][C]39[/C][C]237080[/C][C]239402.824670704[/C][C]-2322.82467070394[/C][/ROW]
[ROW][C]40[/C][C]237085[/C][C]233585.064532981[/C][C]3499.93546701892[/C][/ROW]
[ROW][C]41[/C][C]225554[/C][C]229211.564949365[/C][C]-3657.56494936523[/C][/ROW]
[ROW][C]42[/C][C]226839[/C][C]226929.204221479[/C][C]-90.2042214785065[/C][/ROW]
[ROW][C]43[/C][C]247934[/C][C]251330.748802232[/C][C]-3396.74880223226[/C][/ROW]
[ROW][C]44[/C][C]248333[/C][C]253447.408826947[/C][C]-5114.40882694657[/C][/ROW]
[ROW][C]45[/C][C]246969[/C][C]250897.202644601[/C][C]-3928.20264460112[/C][/ROW]
[ROW][C]46[/C][C]245098[/C][C]244836.288126262[/C][C]261.711873737726[/C][/ROW]
[ROW][C]47[/C][C]246263[/C][C]243505.369496703[/C][C]2757.6305032972[/C][/ROW]
[ROW][C]48[/C][C]255765[/C][C]252553.896721671[/C][C]3211.10327832938[/C][/ROW]
[ROW][C]49[/C][C]264319[/C][C]261232.192540144[/C][C]3086.80745985576[/C][/ROW]
[ROW][C]50[/C][C]268347[/C][C]266898.376669236[/C][C]1448.62333076357[/C][/ROW]
[ROW][C]51[/C][C]273046[/C][C]268121.333719456[/C][C]4924.66628054352[/C][/ROW]
[ROW][C]52[/C][C]273963[/C][C]274811.311120694[/C][C]-848.311120694364[/C][/ROW]
[ROW][C]53[/C][C]267430[/C][C]271338.985232412[/C][C]-3908.98523241206[/C][/ROW]
[ROW][C]54[/C][C]271993[/C][C]267321.090469766[/C][C]4671.90953023428[/C][/ROW]
[ROW][C]55[/C][C]292710[/C][C]294961.722082650[/C][C]-2251.72208265039[/C][/ROW]
[ROW][C]56[/C][C]295881[/C][C]296704.869325746[/C][C]-823.869325746182[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58832&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58832&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
1277128280393.071720036-3265.0717200356
2277103276829.142375323273.857624677456
3275037274047.212378189989.787621811412
4270150274052.496743317-3902.49674331729
5267140264845.0698378032294.93016219744
6264993264308.353725003684.646274997167
7287259285318.6393996331940.36060036708
8291186288592.3985441232593.60145587690
9292300289528.3116568842771.68834311621
10288186285915.9809291552270.01907084478
11281477282368.688836182-891.688836182172
12282656283636.687906483-980.687906482825
13280190284090.785625986-3900.78562598582
14280408278867.7876031311540.21239686918
15276836276325.972965609510.027034391299
16275216274843.134978575372.865021425208
17274352268863.925685625488.07431437992
18271311270447.734518200863.265481800446
19289802290574.63282043-772.632820430293
20290726290118.204793995607.795206005168
21292300288086.7663638974213.23363610268
22278506284928.975000043-6422.97500004313
23269826271816.59368467-1990.59368467002
24265861271136.990393674-5275.99039367413
25269034266508.1522701992525.84772980077
26264176266857.213971013-2681.21397101304
27255198259299.656266042-4101.65626604228
28253353252474.992624432878.007375567527
29246057246273.4542948-216.454294800073
30235372241501.617065553-6129.61706555339
31258556254075.2568950544480.74310494585
32260993258256.1185091892736.88149081069
33254663257719.719334618-3056.71933461776
34250643246751.7559445393891.24405546063
35243422243297.347982445124.65201755499
36247105244059.4249781723045.57502182757
37248541246987.7978436351553.20215636489
38245039245620.479381297-581.479381297165
39237080239402.824670704-2322.82467070394
40237085233585.0645329813499.93546701892
41225554229211.564949365-3657.56494936523
42226839226929.204221479-90.2042214785065
43247934251330.748802232-3396.74880223226
44248333253447.408826947-5114.40882694657
45246969250897.202644601-3928.20264460112
46245098244836.288126262261.711873737726
47246263243505.3694967032757.6305032972
48255765252553.8967216713211.10327832938
49264319261232.1925401443086.80745985576
50268347266898.3766692361448.62333076357
51273046268121.3337194564924.66628054352
52273963274811.311120694-848.311120694364
53267430271338.985232412-3908.98523241206
54271993267321.0904697664671.90953023428
55292710294961.722082650-2251.72208265039
56295881296704.869325746-823.869325746182







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.09936177724574250.1987235544914850.900638222754257
190.06014490206847340.1202898041369470.939855097931527
200.05801130385133310.1160226077026660.941988696148667
210.04774038036223590.09548076072447170.952259619637764
220.3131912298556410.6263824597112820.686808770144359
230.2144263373647350.428852674729470.785573662635265
240.1901856937738380.3803713875476770.809814306226162
250.3259279521150750.651855904230150.674072047884925
260.2906692302723570.5813384605447140.709330769727643
270.3068740143980590.6137480287961180.693125985601941
280.2548208227265850.5096416454531690.745179177273415
290.2279437391281970.4558874782563950.772056260871803
300.4978298756386790.9956597512773590.502170124361321
310.6694530658298060.6610938683403870.330546934170194
320.7987984808529740.4024030382940530.201201519147026
330.7641613467896070.4716773064207850.235838653210393
340.8649753602061280.2700492795877430.135024639793872
350.7762097059211720.4475805881576550.223790294078828
360.7629118671041310.4741762657917380.237088132895869
370.7300033557010210.5399932885979580.269996644298979
380.8704499820175310.2591000359649370.129550017982469

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.0993617772457425 & 0.198723554491485 & 0.900638222754257 \tabularnewline
19 & 0.0601449020684734 & 0.120289804136947 & 0.939855097931527 \tabularnewline
20 & 0.0580113038513331 & 0.116022607702666 & 0.941988696148667 \tabularnewline
21 & 0.0477403803622359 & 0.0954807607244717 & 0.952259619637764 \tabularnewline
22 & 0.313191229855641 & 0.626382459711282 & 0.686808770144359 \tabularnewline
23 & 0.214426337364735 & 0.42885267472947 & 0.785573662635265 \tabularnewline
24 & 0.190185693773838 & 0.380371387547677 & 0.809814306226162 \tabularnewline
25 & 0.325927952115075 & 0.65185590423015 & 0.674072047884925 \tabularnewline
26 & 0.290669230272357 & 0.581338460544714 & 0.709330769727643 \tabularnewline
27 & 0.306874014398059 & 0.613748028796118 & 0.693125985601941 \tabularnewline
28 & 0.254820822726585 & 0.509641645453169 & 0.745179177273415 \tabularnewline
29 & 0.227943739128197 & 0.455887478256395 & 0.772056260871803 \tabularnewline
30 & 0.497829875638679 & 0.995659751277359 & 0.502170124361321 \tabularnewline
31 & 0.669453065829806 & 0.661093868340387 & 0.330546934170194 \tabularnewline
32 & 0.798798480852974 & 0.402403038294053 & 0.201201519147026 \tabularnewline
33 & 0.764161346789607 & 0.471677306420785 & 0.235838653210393 \tabularnewline
34 & 0.864975360206128 & 0.270049279587743 & 0.135024639793872 \tabularnewline
35 & 0.776209705921172 & 0.447580588157655 & 0.223790294078828 \tabularnewline
36 & 0.762911867104131 & 0.474176265791738 & 0.237088132895869 \tabularnewline
37 & 0.730003355701021 & 0.539993288597958 & 0.269996644298979 \tabularnewline
38 & 0.870449982017531 & 0.259100035964937 & 0.129550017982469 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58832&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]18[/C][C]0.0993617772457425[/C][C]0.198723554491485[/C][C]0.900638222754257[/C][/ROW]
[ROW][C]19[/C][C]0.0601449020684734[/C][C]0.120289804136947[/C][C]0.939855097931527[/C][/ROW]
[ROW][C]20[/C][C]0.0580113038513331[/C][C]0.116022607702666[/C][C]0.941988696148667[/C][/ROW]
[ROW][C]21[/C][C]0.0477403803622359[/C][C]0.0954807607244717[/C][C]0.952259619637764[/C][/ROW]
[ROW][C]22[/C][C]0.313191229855641[/C][C]0.626382459711282[/C][C]0.686808770144359[/C][/ROW]
[ROW][C]23[/C][C]0.214426337364735[/C][C]0.42885267472947[/C][C]0.785573662635265[/C][/ROW]
[ROW][C]24[/C][C]0.190185693773838[/C][C]0.380371387547677[/C][C]0.809814306226162[/C][/ROW]
[ROW][C]25[/C][C]0.325927952115075[/C][C]0.65185590423015[/C][C]0.674072047884925[/C][/ROW]
[ROW][C]26[/C][C]0.290669230272357[/C][C]0.581338460544714[/C][C]0.709330769727643[/C][/ROW]
[ROW][C]27[/C][C]0.306874014398059[/C][C]0.613748028796118[/C][C]0.693125985601941[/C][/ROW]
[ROW][C]28[/C][C]0.254820822726585[/C][C]0.509641645453169[/C][C]0.745179177273415[/C][/ROW]
[ROW][C]29[/C][C]0.227943739128197[/C][C]0.455887478256395[/C][C]0.772056260871803[/C][/ROW]
[ROW][C]30[/C][C]0.497829875638679[/C][C]0.995659751277359[/C][C]0.502170124361321[/C][/ROW]
[ROW][C]31[/C][C]0.669453065829806[/C][C]0.661093868340387[/C][C]0.330546934170194[/C][/ROW]
[ROW][C]32[/C][C]0.798798480852974[/C][C]0.402403038294053[/C][C]0.201201519147026[/C][/ROW]
[ROW][C]33[/C][C]0.764161346789607[/C][C]0.471677306420785[/C][C]0.235838653210393[/C][/ROW]
[ROW][C]34[/C][C]0.864975360206128[/C][C]0.270049279587743[/C][C]0.135024639793872[/C][/ROW]
[ROW][C]35[/C][C]0.776209705921172[/C][C]0.447580588157655[/C][C]0.223790294078828[/C][/ROW]
[ROW][C]36[/C][C]0.762911867104131[/C][C]0.474176265791738[/C][C]0.237088132895869[/C][/ROW]
[ROW][C]37[/C][C]0.730003355701021[/C][C]0.539993288597958[/C][C]0.269996644298979[/C][/ROW]
[ROW][C]38[/C][C]0.870449982017531[/C][C]0.259100035964937[/C][C]0.129550017982469[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58832&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58832&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
180.09936177724574250.1987235544914850.900638222754257
190.06014490206847340.1202898041369470.939855097931527
200.05801130385133310.1160226077026660.941988696148667
210.04774038036223590.09548076072447170.952259619637764
220.3131912298556410.6263824597112820.686808770144359
230.2144263373647350.428852674729470.785573662635265
240.1901856937738380.3803713875476770.809814306226162
250.3259279521150750.651855904230150.674072047884925
260.2906692302723570.5813384605447140.709330769727643
270.3068740143980590.6137480287961180.693125985601941
280.2548208227265850.5096416454531690.745179177273415
290.2279437391281970.4558874782563950.772056260871803
300.4978298756386790.9956597512773590.502170124361321
310.6694530658298060.6610938683403870.330546934170194
320.7987984808529740.4024030382940530.201201519147026
330.7641613467896070.4716773064207850.235838653210393
340.8649753602061280.2700492795877430.135024639793872
350.7762097059211720.4475805881576550.223790294078828
360.7629118671041310.4741762657917380.237088132895869
370.7300033557010210.5399932885979580.269996644298979
380.8704499820175310.2591000359649370.129550017982469







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level10.0476190476190476OK

\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 & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 1 & 0.0476190476190476 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58832&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]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]1[/C][C]0.0476190476190476[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58832&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58832&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 level00OK
5% type I error level00OK
10% type I error level10.0476190476190476OK



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