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 03:06:32 -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/t1258626341kdjdcuz539hl65l.htm/, Retrieved Thu, 18 Apr 2024 17:49:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57681, Retrieved Thu, 18 Apr 2024 17:49:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact176
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2009-11-19 10:06:32] [fd7715938ba69fff5a3edaf7913b7ba1] [Current]
Feedback Forum

Post a new message
Dataseries X:
96.8	610763
114.1	612613
110.3	611324
103.9	594167
101.6	595454
94.6	590865
95.9	589379
104.7	584428
102.8	573100
98.1	567456
113.9	569028
80.9	620735
95.7	628884
113.2	628232
105.9	612117
108.8	595404
102.3	597141
99	593408
100.7	590072
115.5	579799
100.7	574205
109.9	572775
114.6	572942
85.4	619567
100.5	625809
114.8	619916
116.5	587625
112.9	565742
102	557274
106	560576
105.3	548854
118.8	531673
106.1	525919
109.3	511038
117.2	498662
92.5	555362
104.2	564591
112.5	541657
122.4	527070
113.3	509846
100	514258
110.7	516922
112.8	507561
109.8	492622
117.3	490243
109.1	469357
115.9	477580
96	528379
99.8	533590
116.8	517945
115.7	506174
99.4	501866
94.3	516141
91	528222
93.2	532638
103.1	536322
94.1	536535
91.8	523597
102.7	536214
82.6	586570
89.1	596594




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57681&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
Tot_nietwerkende_werkzoekenden[t] = + 838838.18799994 -2239.06649810638Tot_ind_productie[t] + 25644.8903432349M1[t] + 45056.4124976968M2[t] + 31267.1814830794M3[t] + 2946.30621054342M4[t] -9776.7235398718M5[t] -5649.07194513298M6[t] -5301.24720247713M7[t] + 7360.59494601442M8[t] -9755.17904712758M9[t] -20474.7993209117M10[t] + 3900.0507567845M11[t] -1690.05696515542t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Tot_nietwerkende_werkzoekenden[t] =  +  838838.18799994 -2239.06649810638Tot_ind_productie[t] +  25644.8903432349M1[t] +  45056.4124976968M2[t] +  31267.1814830794M3[t] +  2946.30621054342M4[t] -9776.7235398718M5[t] -5649.07194513298M6[t] -5301.24720247713M7[t] +  7360.59494601442M8[t] -9755.17904712758M9[t] -20474.7993209117M10[t] +  3900.0507567845M11[t] -1690.05696515542t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57681&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Tot_nietwerkende_werkzoekenden[t] =  +  838838.18799994 -2239.06649810638Tot_ind_productie[t] +  25644.8903432349M1[t] +  45056.4124976968M2[t] +  31267.1814830794M3[t] +  2946.30621054342M4[t] -9776.7235398718M5[t] -5649.07194513298M6[t] -5301.24720247713M7[t] +  7360.59494601442M8[t] -9755.17904712758M9[t] -20474.7993209117M10[t] +  3900.0507567845M11[t] -1690.05696515542t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57681&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57681&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
Tot_nietwerkende_werkzoekenden[t] = + 838838.18799994 -2239.06649810638Tot_ind_productie[t] + 25644.8903432349M1[t] + 45056.4124976968M2[t] + 31267.1814830794M3[t] + 2946.30621054342M4[t] -9776.7235398718M5[t] -5649.07194513298M6[t] -5301.24720247713M7[t] + 7360.59494601442M8[t] -9755.17904712758M9[t] -20474.7993209117M10[t] + 3900.0507567845M11[t] -1690.05696515542t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)838838.1879999444098.41098719.02200
Tot_ind_productie-2239.06649810638484.43716-4.6223e-051.5e-05
M125644.890343234914160.5669971.8110.0765340.038267
M245056.412497696819007.243272.37050.0219180.010959
M331267.181483079418958.9170671.64920.1057740.052887
M42946.3062105434216970.2498670.17360.8629130.431456
M5-9776.723539871815149.022085-0.64540.5218260.260913
M6-5649.0719451329815183.182751-0.37210.711520.35576
M7-5301.2472024771315446.860603-0.34320.7329840.366492
M87360.5949460144217738.5064620.4150.6800670.340033
M9-9755.1790471275816039.319974-0.60820.545980.27299
M10-20474.799320911715903.31724-1.28750.204240.10212
M113900.050756784518513.8006540.21070.8340660.417033
t-1690.05696515542161.692331-10.452300

\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) & 838838.18799994 & 44098.410987 & 19.022 & 0 & 0 \tabularnewline
Tot_ind_productie & -2239.06649810638 & 484.43716 & -4.622 & 3e-05 & 1.5e-05 \tabularnewline
M1 & 25644.8903432349 & 14160.566997 & 1.811 & 0.076534 & 0.038267 \tabularnewline
M2 & 45056.4124976968 & 19007.24327 & 2.3705 & 0.021918 & 0.010959 \tabularnewline
M3 & 31267.1814830794 & 18958.917067 & 1.6492 & 0.105774 & 0.052887 \tabularnewline
M4 & 2946.30621054342 & 16970.249867 & 0.1736 & 0.862913 & 0.431456 \tabularnewline
M5 & -9776.7235398718 & 15149.022085 & -0.6454 & 0.521826 & 0.260913 \tabularnewline
M6 & -5649.07194513298 & 15183.182751 & -0.3721 & 0.71152 & 0.35576 \tabularnewline
M7 & -5301.24720247713 & 15446.860603 & -0.3432 & 0.732984 & 0.366492 \tabularnewline
M8 & 7360.59494601442 & 17738.506462 & 0.415 & 0.680067 & 0.340033 \tabularnewline
M9 & -9755.17904712758 & 16039.319974 & -0.6082 & 0.54598 & 0.27299 \tabularnewline
M10 & -20474.7993209117 & 15903.31724 & -1.2875 & 0.20424 & 0.10212 \tabularnewline
M11 & 3900.0507567845 & 18513.800654 & 0.2107 & 0.834066 & 0.417033 \tabularnewline
t & -1690.05696515542 & 161.692331 & -10.4523 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57681&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]838838.18799994[/C][C]44098.410987[/C][C]19.022[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Tot_ind_productie[/C][C]-2239.06649810638[/C][C]484.43716[/C][C]-4.622[/C][C]3e-05[/C][C]1.5e-05[/C][/ROW]
[ROW][C]M1[/C][C]25644.8903432349[/C][C]14160.566997[/C][C]1.811[/C][C]0.076534[/C][C]0.038267[/C][/ROW]
[ROW][C]M2[/C][C]45056.4124976968[/C][C]19007.24327[/C][C]2.3705[/C][C]0.021918[/C][C]0.010959[/C][/ROW]
[ROW][C]M3[/C][C]31267.1814830794[/C][C]18958.917067[/C][C]1.6492[/C][C]0.105774[/C][C]0.052887[/C][/ROW]
[ROW][C]M4[/C][C]2946.30621054342[/C][C]16970.249867[/C][C]0.1736[/C][C]0.862913[/C][C]0.431456[/C][/ROW]
[ROW][C]M5[/C][C]-9776.7235398718[/C][C]15149.022085[/C][C]-0.6454[/C][C]0.521826[/C][C]0.260913[/C][/ROW]
[ROW][C]M6[/C][C]-5649.07194513298[/C][C]15183.182751[/C][C]-0.3721[/C][C]0.71152[/C][C]0.35576[/C][/ROW]
[ROW][C]M7[/C][C]-5301.24720247713[/C][C]15446.860603[/C][C]-0.3432[/C][C]0.732984[/C][C]0.366492[/C][/ROW]
[ROW][C]M8[/C][C]7360.59494601442[/C][C]17738.506462[/C][C]0.415[/C][C]0.680067[/C][C]0.340033[/C][/ROW]
[ROW][C]M9[/C][C]-9755.17904712758[/C][C]16039.319974[/C][C]-0.6082[/C][C]0.54598[/C][C]0.27299[/C][/ROW]
[ROW][C]M10[/C][C]-20474.7993209117[/C][C]15903.31724[/C][C]-1.2875[/C][C]0.20424[/C][C]0.10212[/C][/ROW]
[ROW][C]M11[/C][C]3900.0507567845[/C][C]18513.800654[/C][C]0.2107[/C][C]0.834066[/C][C]0.417033[/C][/ROW]
[ROW][C]t[/C][C]-1690.05696515542[/C][C]161.692331[/C][C]-10.4523[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57681&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57681&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)838838.1879999444098.41098719.02200
Tot_ind_productie-2239.06649810638484.43716-4.6223e-051.5e-05
M125644.890343234914160.5669971.8110.0765340.038267
M245056.412497696819007.243272.37050.0219180.010959
M331267.181483079418958.9170671.64920.1057740.052887
M42946.3062105434216970.2498670.17360.8629130.431456
M5-9776.723539871815149.022085-0.64540.5218260.260913
M6-5649.0719451329815183.182751-0.37210.711520.35576
M7-5301.2472024771315446.860603-0.34320.7329840.366492
M87360.5949460144217738.5064620.4150.6800670.340033
M9-9755.1790471275816039.319974-0.60820.545980.27299
M10-20474.799320911715903.31724-1.28750.204240.10212
M113900.050756784518513.8006540.21070.8340660.417033
t-1690.05696515542161.692331-10.452300







Multiple Linear Regression - Regression Statistics
Multiple R0.890095379048494
R-squared0.792269783803483
Adjusted R-squared0.734812489961893
F-TEST (value)13.7888461295754
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value6.57685017557696e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation21892.9363583838
Sum Squared Residuals22527131132.4354

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.890095379048494 \tabularnewline
R-squared & 0.792269783803483 \tabularnewline
Adjusted R-squared & 0.734812489961893 \tabularnewline
F-TEST (value) & 13.7888461295754 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 6.57685017557696e-12 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 21892.9363583838 \tabularnewline
Sum Squared Residuals & 22527131132.4354 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57681&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.890095379048494[/C][/ROW]
[ROW][C]R-squared[/C][C]0.792269783803483[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.734812489961893[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]13.7888461295754[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]6.57685017557696e-12[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]21892.9363583838[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]22527131132.4354[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57681&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57681&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.890095379048494
R-squared0.792269783803483
Adjusted R-squared0.734812489961893
F-TEST (value)13.7888461295754
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value6.57685017557696e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation21892.9363583838
Sum Squared Residuals22527131132.4354







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1610763646051.384361324-35288.3843613239
2612613625036.999133389-12423.9991333891
3611324618066.163846421-6742.16384642067
4594167602385.25719661-8218.25719661001
5595454593122.0234266842331.97657331597
6590865611233.083543012-20368.0835430122
7589379606980.064872974-17601.0648729742
8584428598248.064872974-13820.0648729742
9573100583696.460261079-10596.4602610789
10567456581810.39556324-14354.3955632393
11569028569117.938005699-89.9380056993582
12620735637417.02472127-16682.02472127
13628884628233.673927375650.326072625002
14628232606771.4753998221460.5246001800
15612117607637.3728562244479.6271437763
16595404571133.14777402424270.8522259763
17597141571273.99329614525867.0067038554
18593408581100.50736947912307.4926305210
19590072575951.86210019914120.1378998014
20579799553785.4631115626013.5368884397
21574205568117.8163252376087.18367476267
22572775535108.72730371937666.2726962809
23572942547269.9078751625672.0921248401
24619567607060.54189792612506.4581020737
25625809597205.471154628603.5288454006
26619916582908.28542098537007.7145790153
27587625563622.58439443124002.4156055689
28565742541672.29154992324069.7084500774
29557274551665.0296637125608.9703362885
30560576545146.35830086915429.6416991306
31548854545371.4726270443482.52737295573
32531673526115.8600859445557.13991405572
33525919535746.173653598-9827.17365359789
34511038516171.483620718-5133.48362071788
35498662521167.651398218-22505.6513982183
36555362570882.486179506-15520.4861795060
37564591568640.241529741-4049.24152974076
38541657567777.454784764-26120.4547847644
39527070530131.408473738-3061.40847373838
40509846520495.981368815-10649.981368815
41514258535862.479078059-21604.4790780593
42516922514342.0621779042579.93782209561
43507561508297.790309381-736.790309381435
44492622525986.774987037-33364.7749870367
45490243490387.945292941-144.945292941415
46469357496338.613338474-26981.6133384741
47477580503797.754263892-26217.7542638916
48528379542765.069854269-14386.0698542686
49533590558211.450539544-24621.4505395439
50517945537868.785261042-19923.7852610419
51506174524852.470429186-18678.4704291862
52501866531338.322110629-29472.3221106287
53516141528344.4745354-12203.4745354006
54528222538170.988608735-9948.98860873506
55532638531902.810090401735.189909598565
56536322520707.83694248415614.1630575156
57536535522053.60446714414481.3955328556
58523597514793.780173858803.21982615045
59536214513072.74845703123141.2515429692
60586570552487.87734702934082.1226529709
61596594561888.77848741734705.2215125829

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 610763 & 646051.384361324 & -35288.3843613239 \tabularnewline
2 & 612613 & 625036.999133389 & -12423.9991333891 \tabularnewline
3 & 611324 & 618066.163846421 & -6742.16384642067 \tabularnewline
4 & 594167 & 602385.25719661 & -8218.25719661001 \tabularnewline
5 & 595454 & 593122.023426684 & 2331.97657331597 \tabularnewline
6 & 590865 & 611233.083543012 & -20368.0835430122 \tabularnewline
7 & 589379 & 606980.064872974 & -17601.0648729742 \tabularnewline
8 & 584428 & 598248.064872974 & -13820.0648729742 \tabularnewline
9 & 573100 & 583696.460261079 & -10596.4602610789 \tabularnewline
10 & 567456 & 581810.39556324 & -14354.3955632393 \tabularnewline
11 & 569028 & 569117.938005699 & -89.9380056993582 \tabularnewline
12 & 620735 & 637417.02472127 & -16682.02472127 \tabularnewline
13 & 628884 & 628233.673927375 & 650.326072625002 \tabularnewline
14 & 628232 & 606771.47539982 & 21460.5246001800 \tabularnewline
15 & 612117 & 607637.372856224 & 4479.6271437763 \tabularnewline
16 & 595404 & 571133.147774024 & 24270.8522259763 \tabularnewline
17 & 597141 & 571273.993296145 & 25867.0067038554 \tabularnewline
18 & 593408 & 581100.507369479 & 12307.4926305210 \tabularnewline
19 & 590072 & 575951.862100199 & 14120.1378998014 \tabularnewline
20 & 579799 & 553785.46311156 & 26013.5368884397 \tabularnewline
21 & 574205 & 568117.816325237 & 6087.18367476267 \tabularnewline
22 & 572775 & 535108.727303719 & 37666.2726962809 \tabularnewline
23 & 572942 & 547269.90787516 & 25672.0921248401 \tabularnewline
24 & 619567 & 607060.541897926 & 12506.4581020737 \tabularnewline
25 & 625809 & 597205.4711546 & 28603.5288454006 \tabularnewline
26 & 619916 & 582908.285420985 & 37007.7145790153 \tabularnewline
27 & 587625 & 563622.584394431 & 24002.4156055689 \tabularnewline
28 & 565742 & 541672.291549923 & 24069.7084500774 \tabularnewline
29 & 557274 & 551665.029663712 & 5608.9703362885 \tabularnewline
30 & 560576 & 545146.358300869 & 15429.6416991306 \tabularnewline
31 & 548854 & 545371.472627044 & 3482.52737295573 \tabularnewline
32 & 531673 & 526115.860085944 & 5557.13991405572 \tabularnewline
33 & 525919 & 535746.173653598 & -9827.17365359789 \tabularnewline
34 & 511038 & 516171.483620718 & -5133.48362071788 \tabularnewline
35 & 498662 & 521167.651398218 & -22505.6513982183 \tabularnewline
36 & 555362 & 570882.486179506 & -15520.4861795060 \tabularnewline
37 & 564591 & 568640.241529741 & -4049.24152974076 \tabularnewline
38 & 541657 & 567777.454784764 & -26120.4547847644 \tabularnewline
39 & 527070 & 530131.408473738 & -3061.40847373838 \tabularnewline
40 & 509846 & 520495.981368815 & -10649.981368815 \tabularnewline
41 & 514258 & 535862.479078059 & -21604.4790780593 \tabularnewline
42 & 516922 & 514342.062177904 & 2579.93782209561 \tabularnewline
43 & 507561 & 508297.790309381 & -736.790309381435 \tabularnewline
44 & 492622 & 525986.774987037 & -33364.7749870367 \tabularnewline
45 & 490243 & 490387.945292941 & -144.945292941415 \tabularnewline
46 & 469357 & 496338.613338474 & -26981.6133384741 \tabularnewline
47 & 477580 & 503797.754263892 & -26217.7542638916 \tabularnewline
48 & 528379 & 542765.069854269 & -14386.0698542686 \tabularnewline
49 & 533590 & 558211.450539544 & -24621.4505395439 \tabularnewline
50 & 517945 & 537868.785261042 & -19923.7852610419 \tabularnewline
51 & 506174 & 524852.470429186 & -18678.4704291862 \tabularnewline
52 & 501866 & 531338.322110629 & -29472.3221106287 \tabularnewline
53 & 516141 & 528344.4745354 & -12203.4745354006 \tabularnewline
54 & 528222 & 538170.988608735 & -9948.98860873506 \tabularnewline
55 & 532638 & 531902.810090401 & 735.189909598565 \tabularnewline
56 & 536322 & 520707.836942484 & 15614.1630575156 \tabularnewline
57 & 536535 & 522053.604467144 & 14481.3955328556 \tabularnewline
58 & 523597 & 514793.78017385 & 8803.21982615045 \tabularnewline
59 & 536214 & 513072.748457031 & 23141.2515429692 \tabularnewline
60 & 586570 & 552487.877347029 & 34082.1226529709 \tabularnewline
61 & 596594 & 561888.778487417 & 34705.2215125829 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57681&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]610763[/C][C]646051.384361324[/C][C]-35288.3843613239[/C][/ROW]
[ROW][C]2[/C][C]612613[/C][C]625036.999133389[/C][C]-12423.9991333891[/C][/ROW]
[ROW][C]3[/C][C]611324[/C][C]618066.163846421[/C][C]-6742.16384642067[/C][/ROW]
[ROW][C]4[/C][C]594167[/C][C]602385.25719661[/C][C]-8218.25719661001[/C][/ROW]
[ROW][C]5[/C][C]595454[/C][C]593122.023426684[/C][C]2331.97657331597[/C][/ROW]
[ROW][C]6[/C][C]590865[/C][C]611233.083543012[/C][C]-20368.0835430122[/C][/ROW]
[ROW][C]7[/C][C]589379[/C][C]606980.064872974[/C][C]-17601.0648729742[/C][/ROW]
[ROW][C]8[/C][C]584428[/C][C]598248.064872974[/C][C]-13820.0648729742[/C][/ROW]
[ROW][C]9[/C][C]573100[/C][C]583696.460261079[/C][C]-10596.4602610789[/C][/ROW]
[ROW][C]10[/C][C]567456[/C][C]581810.39556324[/C][C]-14354.3955632393[/C][/ROW]
[ROW][C]11[/C][C]569028[/C][C]569117.938005699[/C][C]-89.9380056993582[/C][/ROW]
[ROW][C]12[/C][C]620735[/C][C]637417.02472127[/C][C]-16682.02472127[/C][/ROW]
[ROW][C]13[/C][C]628884[/C][C]628233.673927375[/C][C]650.326072625002[/C][/ROW]
[ROW][C]14[/C][C]628232[/C][C]606771.47539982[/C][C]21460.5246001800[/C][/ROW]
[ROW][C]15[/C][C]612117[/C][C]607637.372856224[/C][C]4479.6271437763[/C][/ROW]
[ROW][C]16[/C][C]595404[/C][C]571133.147774024[/C][C]24270.8522259763[/C][/ROW]
[ROW][C]17[/C][C]597141[/C][C]571273.993296145[/C][C]25867.0067038554[/C][/ROW]
[ROW][C]18[/C][C]593408[/C][C]581100.507369479[/C][C]12307.4926305210[/C][/ROW]
[ROW][C]19[/C][C]590072[/C][C]575951.862100199[/C][C]14120.1378998014[/C][/ROW]
[ROW][C]20[/C][C]579799[/C][C]553785.46311156[/C][C]26013.5368884397[/C][/ROW]
[ROW][C]21[/C][C]574205[/C][C]568117.816325237[/C][C]6087.18367476267[/C][/ROW]
[ROW][C]22[/C][C]572775[/C][C]535108.727303719[/C][C]37666.2726962809[/C][/ROW]
[ROW][C]23[/C][C]572942[/C][C]547269.90787516[/C][C]25672.0921248401[/C][/ROW]
[ROW][C]24[/C][C]619567[/C][C]607060.541897926[/C][C]12506.4581020737[/C][/ROW]
[ROW][C]25[/C][C]625809[/C][C]597205.4711546[/C][C]28603.5288454006[/C][/ROW]
[ROW][C]26[/C][C]619916[/C][C]582908.285420985[/C][C]37007.7145790153[/C][/ROW]
[ROW][C]27[/C][C]587625[/C][C]563622.584394431[/C][C]24002.4156055689[/C][/ROW]
[ROW][C]28[/C][C]565742[/C][C]541672.291549923[/C][C]24069.7084500774[/C][/ROW]
[ROW][C]29[/C][C]557274[/C][C]551665.029663712[/C][C]5608.9703362885[/C][/ROW]
[ROW][C]30[/C][C]560576[/C][C]545146.358300869[/C][C]15429.6416991306[/C][/ROW]
[ROW][C]31[/C][C]548854[/C][C]545371.472627044[/C][C]3482.52737295573[/C][/ROW]
[ROW][C]32[/C][C]531673[/C][C]526115.860085944[/C][C]5557.13991405572[/C][/ROW]
[ROW][C]33[/C][C]525919[/C][C]535746.173653598[/C][C]-9827.17365359789[/C][/ROW]
[ROW][C]34[/C][C]511038[/C][C]516171.483620718[/C][C]-5133.48362071788[/C][/ROW]
[ROW][C]35[/C][C]498662[/C][C]521167.651398218[/C][C]-22505.6513982183[/C][/ROW]
[ROW][C]36[/C][C]555362[/C][C]570882.486179506[/C][C]-15520.4861795060[/C][/ROW]
[ROW][C]37[/C][C]564591[/C][C]568640.241529741[/C][C]-4049.24152974076[/C][/ROW]
[ROW][C]38[/C][C]541657[/C][C]567777.454784764[/C][C]-26120.4547847644[/C][/ROW]
[ROW][C]39[/C][C]527070[/C][C]530131.408473738[/C][C]-3061.40847373838[/C][/ROW]
[ROW][C]40[/C][C]509846[/C][C]520495.981368815[/C][C]-10649.981368815[/C][/ROW]
[ROW][C]41[/C][C]514258[/C][C]535862.479078059[/C][C]-21604.4790780593[/C][/ROW]
[ROW][C]42[/C][C]516922[/C][C]514342.062177904[/C][C]2579.93782209561[/C][/ROW]
[ROW][C]43[/C][C]507561[/C][C]508297.790309381[/C][C]-736.790309381435[/C][/ROW]
[ROW][C]44[/C][C]492622[/C][C]525986.774987037[/C][C]-33364.7749870367[/C][/ROW]
[ROW][C]45[/C][C]490243[/C][C]490387.945292941[/C][C]-144.945292941415[/C][/ROW]
[ROW][C]46[/C][C]469357[/C][C]496338.613338474[/C][C]-26981.6133384741[/C][/ROW]
[ROW][C]47[/C][C]477580[/C][C]503797.754263892[/C][C]-26217.7542638916[/C][/ROW]
[ROW][C]48[/C][C]528379[/C][C]542765.069854269[/C][C]-14386.0698542686[/C][/ROW]
[ROW][C]49[/C][C]533590[/C][C]558211.450539544[/C][C]-24621.4505395439[/C][/ROW]
[ROW][C]50[/C][C]517945[/C][C]537868.785261042[/C][C]-19923.7852610419[/C][/ROW]
[ROW][C]51[/C][C]506174[/C][C]524852.470429186[/C][C]-18678.4704291862[/C][/ROW]
[ROW][C]52[/C][C]501866[/C][C]531338.322110629[/C][C]-29472.3221106287[/C][/ROW]
[ROW][C]53[/C][C]516141[/C][C]528344.4745354[/C][C]-12203.4745354006[/C][/ROW]
[ROW][C]54[/C][C]528222[/C][C]538170.988608735[/C][C]-9948.98860873506[/C][/ROW]
[ROW][C]55[/C][C]532638[/C][C]531902.810090401[/C][C]735.189909598565[/C][/ROW]
[ROW][C]56[/C][C]536322[/C][C]520707.836942484[/C][C]15614.1630575156[/C][/ROW]
[ROW][C]57[/C][C]536535[/C][C]522053.604467144[/C][C]14481.3955328556[/C][/ROW]
[ROW][C]58[/C][C]523597[/C][C]514793.78017385[/C][C]8803.21982615045[/C][/ROW]
[ROW][C]59[/C][C]536214[/C][C]513072.748457031[/C][C]23141.2515429692[/C][/ROW]
[ROW][C]60[/C][C]586570[/C][C]552487.877347029[/C][C]34082.1226529709[/C][/ROW]
[ROW][C]61[/C][C]596594[/C][C]561888.778487417[/C][C]34705.2215125829[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57681&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57681&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
1610763646051.384361324-35288.3843613239
2612613625036.999133389-12423.9991333891
3611324618066.163846421-6742.16384642067
4594167602385.25719661-8218.25719661001
5595454593122.0234266842331.97657331597
6590865611233.083543012-20368.0835430122
7589379606980.064872974-17601.0648729742
8584428598248.064872974-13820.0648729742
9573100583696.460261079-10596.4602610789
10567456581810.39556324-14354.3955632393
11569028569117.938005699-89.9380056993582
12620735637417.02472127-16682.02472127
13628884628233.673927375650.326072625002
14628232606771.4753998221460.5246001800
15612117607637.3728562244479.6271437763
16595404571133.14777402424270.8522259763
17597141571273.99329614525867.0067038554
18593408581100.50736947912307.4926305210
19590072575951.86210019914120.1378998014
20579799553785.4631115626013.5368884397
21574205568117.8163252376087.18367476267
22572775535108.72730371937666.2726962809
23572942547269.9078751625672.0921248401
24619567607060.54189792612506.4581020737
25625809597205.471154628603.5288454006
26619916582908.28542098537007.7145790153
27587625563622.58439443124002.4156055689
28565742541672.29154992324069.7084500774
29557274551665.0296637125608.9703362885
30560576545146.35830086915429.6416991306
31548854545371.4726270443482.52737295573
32531673526115.8600859445557.13991405572
33525919535746.173653598-9827.17365359789
34511038516171.483620718-5133.48362071788
35498662521167.651398218-22505.6513982183
36555362570882.486179506-15520.4861795060
37564591568640.241529741-4049.24152974076
38541657567777.454784764-26120.4547847644
39527070530131.408473738-3061.40847373838
40509846520495.981368815-10649.981368815
41514258535862.479078059-21604.4790780593
42516922514342.0621779042579.93782209561
43507561508297.790309381-736.790309381435
44492622525986.774987037-33364.7749870367
45490243490387.945292941-144.945292941415
46469357496338.613338474-26981.6133384741
47477580503797.754263892-26217.7542638916
48528379542765.069854269-14386.0698542686
49533590558211.450539544-24621.4505395439
50517945537868.785261042-19923.7852610419
51506174524852.470429186-18678.4704291862
52501866531338.322110629-29472.3221106287
53516141528344.4745354-12203.4745354006
54528222538170.988608735-9948.98860873506
55532638531902.810090401735.189909598565
56536322520707.83694248415614.1630575156
57536535522053.60446714414481.3955328556
58523597514793.780173858803.21982615045
59536214513072.74845703123141.2515429692
60586570552487.87734702934082.1226529709
61596594561888.77848741734705.2215125829







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.04494564637302260.08989129274604510.955054353626977
180.01209484578590710.02418969157181430.987905154214093
190.003016502335146090.006033004670292180.996983497664854
200.0006918966267494560.001383793253498910.99930810337325
210.0002512919509081340.0005025839018162670.999748708049092
220.0001087094464705070.0002174188929410140.99989129055353
232.53150873273935e-055.0630174654787e-050.999974684912673
246.54273682993918e-061.30854736598784e-050.99999345726317
251.28483206443595e-062.5696641288719e-060.999998715167935
261.31865181637720e-062.63730363275439e-060.999998681348184
279.5789886066480e-050.0001915797721329600.999904210113933
280.001884867551706380.003769735103412760.998115132448294
290.02634946011835690.05269892023671380.973650539881643
300.03774217965259340.07548435930518680.962257820347407
310.05726577904697810.1145315580939560.942734220953022
320.1284191004031060.2568382008062120.871580899596894
330.1522195587885070.3044391175770140.847780441211493
340.2551413720620210.5102827441240420.744858627937979
350.3730691235185230.7461382470370460.626930876481477
360.3503537851335240.7007075702670480.649646214866476
370.3114051860148150.6228103720296290.688594813985185
380.3615608108573070.7231216217146140.638439189142693
390.5162561420667790.9674877158664420.483743857933221
400.6928935958957380.6142128082085250.307106404104262
410.9013985019878740.1972029960242520.098601498012126
420.9560807186955330.08783856260893330.0439192813044667
430.9857215085362310.02855698292753710.0142784914637686
440.999982387177093.52256458211766e-051.76128229105883e-05

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0449456463730226 & 0.0898912927460451 & 0.955054353626977 \tabularnewline
18 & 0.0120948457859071 & 0.0241896915718143 & 0.987905154214093 \tabularnewline
19 & 0.00301650233514609 & 0.00603300467029218 & 0.996983497664854 \tabularnewline
20 & 0.000691896626749456 & 0.00138379325349891 & 0.99930810337325 \tabularnewline
21 & 0.000251291950908134 & 0.000502583901816267 & 0.999748708049092 \tabularnewline
22 & 0.000108709446470507 & 0.000217418892941014 & 0.99989129055353 \tabularnewline
23 & 2.53150873273935e-05 & 5.0630174654787e-05 & 0.999974684912673 \tabularnewline
24 & 6.54273682993918e-06 & 1.30854736598784e-05 & 0.99999345726317 \tabularnewline
25 & 1.28483206443595e-06 & 2.5696641288719e-06 & 0.999998715167935 \tabularnewline
26 & 1.31865181637720e-06 & 2.63730363275439e-06 & 0.999998681348184 \tabularnewline
27 & 9.5789886066480e-05 & 0.000191579772132960 & 0.999904210113933 \tabularnewline
28 & 0.00188486755170638 & 0.00376973510341276 & 0.998115132448294 \tabularnewline
29 & 0.0263494601183569 & 0.0526989202367138 & 0.973650539881643 \tabularnewline
30 & 0.0377421796525934 & 0.0754843593051868 & 0.962257820347407 \tabularnewline
31 & 0.0572657790469781 & 0.114531558093956 & 0.942734220953022 \tabularnewline
32 & 0.128419100403106 & 0.256838200806212 & 0.871580899596894 \tabularnewline
33 & 0.152219558788507 & 0.304439117577014 & 0.847780441211493 \tabularnewline
34 & 0.255141372062021 & 0.510282744124042 & 0.744858627937979 \tabularnewline
35 & 0.373069123518523 & 0.746138247037046 & 0.626930876481477 \tabularnewline
36 & 0.350353785133524 & 0.700707570267048 & 0.649646214866476 \tabularnewline
37 & 0.311405186014815 & 0.622810372029629 & 0.688594813985185 \tabularnewline
38 & 0.361560810857307 & 0.723121621714614 & 0.638439189142693 \tabularnewline
39 & 0.516256142066779 & 0.967487715866442 & 0.483743857933221 \tabularnewline
40 & 0.692893595895738 & 0.614212808208525 & 0.307106404104262 \tabularnewline
41 & 0.901398501987874 & 0.197202996024252 & 0.098601498012126 \tabularnewline
42 & 0.956080718695533 & 0.0878385626089333 & 0.0439192813044667 \tabularnewline
43 & 0.985721508536231 & 0.0285569829275371 & 0.0142784914637686 \tabularnewline
44 & 0.99998238717709 & 3.52256458211766e-05 & 1.76128229105883e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57681&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.0449456463730226[/C][C]0.0898912927460451[/C][C]0.955054353626977[/C][/ROW]
[ROW][C]18[/C][C]0.0120948457859071[/C][C]0.0241896915718143[/C][C]0.987905154214093[/C][/ROW]
[ROW][C]19[/C][C]0.00301650233514609[/C][C]0.00603300467029218[/C][C]0.996983497664854[/C][/ROW]
[ROW][C]20[/C][C]0.000691896626749456[/C][C]0.00138379325349891[/C][C]0.99930810337325[/C][/ROW]
[ROW][C]21[/C][C]0.000251291950908134[/C][C]0.000502583901816267[/C][C]0.999748708049092[/C][/ROW]
[ROW][C]22[/C][C]0.000108709446470507[/C][C]0.000217418892941014[/C][C]0.99989129055353[/C][/ROW]
[ROW][C]23[/C][C]2.53150873273935e-05[/C][C]5.0630174654787e-05[/C][C]0.999974684912673[/C][/ROW]
[ROW][C]24[/C][C]6.54273682993918e-06[/C][C]1.30854736598784e-05[/C][C]0.99999345726317[/C][/ROW]
[ROW][C]25[/C][C]1.28483206443595e-06[/C][C]2.5696641288719e-06[/C][C]0.999998715167935[/C][/ROW]
[ROW][C]26[/C][C]1.31865181637720e-06[/C][C]2.63730363275439e-06[/C][C]0.999998681348184[/C][/ROW]
[ROW][C]27[/C][C]9.5789886066480e-05[/C][C]0.000191579772132960[/C][C]0.999904210113933[/C][/ROW]
[ROW][C]28[/C][C]0.00188486755170638[/C][C]0.00376973510341276[/C][C]0.998115132448294[/C][/ROW]
[ROW][C]29[/C][C]0.0263494601183569[/C][C]0.0526989202367138[/C][C]0.973650539881643[/C][/ROW]
[ROW][C]30[/C][C]0.0377421796525934[/C][C]0.0754843593051868[/C][C]0.962257820347407[/C][/ROW]
[ROW][C]31[/C][C]0.0572657790469781[/C][C]0.114531558093956[/C][C]0.942734220953022[/C][/ROW]
[ROW][C]32[/C][C]0.128419100403106[/C][C]0.256838200806212[/C][C]0.871580899596894[/C][/ROW]
[ROW][C]33[/C][C]0.152219558788507[/C][C]0.304439117577014[/C][C]0.847780441211493[/C][/ROW]
[ROW][C]34[/C][C]0.255141372062021[/C][C]0.510282744124042[/C][C]0.744858627937979[/C][/ROW]
[ROW][C]35[/C][C]0.373069123518523[/C][C]0.746138247037046[/C][C]0.626930876481477[/C][/ROW]
[ROW][C]36[/C][C]0.350353785133524[/C][C]0.700707570267048[/C][C]0.649646214866476[/C][/ROW]
[ROW][C]37[/C][C]0.311405186014815[/C][C]0.622810372029629[/C][C]0.688594813985185[/C][/ROW]
[ROW][C]38[/C][C]0.361560810857307[/C][C]0.723121621714614[/C][C]0.638439189142693[/C][/ROW]
[ROW][C]39[/C][C]0.516256142066779[/C][C]0.967487715866442[/C][C]0.483743857933221[/C][/ROW]
[ROW][C]40[/C][C]0.692893595895738[/C][C]0.614212808208525[/C][C]0.307106404104262[/C][/ROW]
[ROW][C]41[/C][C]0.901398501987874[/C][C]0.197202996024252[/C][C]0.098601498012126[/C][/ROW]
[ROW][C]42[/C][C]0.956080718695533[/C][C]0.0878385626089333[/C][C]0.0439192813044667[/C][/ROW]
[ROW][C]43[/C][C]0.985721508536231[/C][C]0.0285569829275371[/C][C]0.0142784914637686[/C][/ROW]
[ROW][C]44[/C][C]0.99998238717709[/C][C]3.52256458211766e-05[/C][C]1.76128229105883e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57681&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.04494564637302260.08989129274604510.955054353626977
180.01209484578590710.02418969157181430.987905154214093
190.003016502335146090.006033004670292180.996983497664854
200.0006918966267494560.001383793253498910.99930810337325
210.0002512919509081340.0005025839018162670.999748708049092
220.0001087094464705070.0002174188929410140.99989129055353
232.53150873273935e-055.0630174654787e-050.999974684912673
246.54273682993918e-061.30854736598784e-050.99999345726317
251.28483206443595e-062.5696641288719e-060.999998715167935
261.31865181637720e-062.63730363275439e-060.999998681348184
279.5789886066480e-050.0001915797721329600.999904210113933
280.001884867551706380.003769735103412760.998115132448294
290.02634946011835690.05269892023671380.973650539881643
300.03774217965259340.07548435930518680.962257820347407
310.05726577904697810.1145315580939560.942734220953022
320.1284191004031060.2568382008062120.871580899596894
330.1522195587885070.3044391175770140.847780441211493
340.2551413720620210.5102827441240420.744858627937979
350.3730691235185230.7461382470370460.626930876481477
360.3503537851335240.7007075702670480.649646214866476
370.3114051860148150.6228103720296290.688594813985185
380.3615608108573070.7231216217146140.638439189142693
390.5162561420667790.9674877158664420.483743857933221
400.6928935958957380.6142128082085250.307106404104262
410.9013985019878740.1972029960242520.098601498012126
420.9560807186955330.08783856260893330.0439192813044667
430.9857215085362310.02855698292753710.0142784914637686
440.999982387177093.52256458211766e-051.76128229105883e-05







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level110.392857142857143NOK
5% type I error level130.464285714285714NOK
10% type I error level170.607142857142857NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57681&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 level110.392857142857143NOK
5% type I error level130.464285714285714NOK
10% type I error level170.607142857142857NOK



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