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 computationFri, 27 Nov 2009 08:58:30 -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/27/t1259337591a527iz0uvjcjs5h.htm/, Retrieved Sun, 28 Apr 2024 22:27:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60928, Retrieved Sun, 28 Apr 2024 22:27:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact229
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [SHW WS7] [2009-11-20 12:32:24] [253127ae8da904b75450fbd69fe4eb21]
- R  D        [Multiple Regression] [WorkShop7 (SHW)] [2009-11-27 15:58:30] [2d9a0b3c2f25bb8f387fafb994d0d852] [Current]
Feedback Forum

Post a new message
Dataseries X:
277026	1	277051	277838	276610	282965
274960	1	277026	277051	277838	276610
270073	1	274960	277026	277051	277838
267063	1	270073	274960	277026	277051
264916	1	267063	270073	274960	277026
287182	1	264916	267063	270073	274960
291109	1	287182	264916	267063	270073
292223	1	291109	287182	264916	267063
288109	1	292223	291109	287182	264916
281400	1	288109	292223	291109	287182
282579	1	281400	288109	292223	291109
280113	1	282579	281400	288109	292223
280331	1	280113	282579	281400	288109
276759	1	280331	280113	282579	281400
275139	1	276759	280331	280113	282579
274275	1	275139	276759	280331	280113
271234	1	274275	275139	276759	280331
289725	1	271234	274275	275139	276759
290649	1	289725	271234	274275	275139
292223	1	290649	289725	271234	274275
278429	0	292223	290649	289725	271234
269749	0	278429	292223	290649	289725
265784	0	269749	278429	292223	290649
268957	0	265784	269749	278429	292223
264099	0	268957	265784	269749	278429
255121	0	264099	268957	265784	269749
253276	0	255121	264099	268957	265784
245980	0	253276	255121	264099	268957
235295	0	245980	253276	255121	264099
258479	0	235295	245980	253276	255121
260916	0	258479	235295	245980	253276
254586	0	260916	258479	235295	245980
250566	0	254586	260916	258479	235295
243345	0	250566	254586	260916	258479
247028	0	243345	250566	254586	260916
248464	0	247028	243345	250566	254586
244962	0	248464	247028	243345	250566
237003	0	244962	248464	247028	243345
237008	0	237003	244962	248464	247028
225477	0	237008	237003	244962	248464
226762	0	225477	237008	237003	244962
247857	0	226762	225477	237008	237003
248256	0	247857	226762	225477	237008
246892	0	248256	247857	226762	225477
245021	0	246892	248256	247857	226762
246186	0	245021	246892	248256	247857
255688	0	246186	245021	246892	248256
264242	0	255688	246186	245021	246892
268270	0	264242	255688	246186	245021
272969	0	268270	264242	255688	246186
273886	0	272969	268270	264242	255688
267353	0	273886	272969	268270	264242
271916	0	267353	273886	272969	268270
292633	0	271916	267353	273886	272969
295804	0	292633	271916	267353	273886
293222	0	295804	292633	271916	267353




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 23742.1551966182 + 6615.98887332214X[t] + 0.902769444396003Y1[t] + 0.187257523728878Y2[t] + 0.0782568056750277Y3[t] -0.261594494752365Y4[t] -4817.45387065382M1[t] -9797.82497078342M2[t] -7592.9204932169M3[t] -10990.3561951020M4[t] -7520.4387858831M5[t] + 15571.2127480332M6[t] -1051.92432274379M7[t] -10008.0686935439M8[t] -15844.4644416581M9[t] -10334.1572687118M10[t] -1324.53698797528M11[t] + 144.895467430072t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  23742.1551966182 +  6615.98887332214X[t] +  0.902769444396003Y1[t] +  0.187257523728878Y2[t] +  0.0782568056750277Y3[t] -0.261594494752365Y4[t] -4817.45387065382M1[t] -9797.82497078342M2[t] -7592.9204932169M3[t] -10990.3561951020M4[t] -7520.4387858831M5[t] +  15571.2127480332M6[t] -1051.92432274379M7[t] -10008.0686935439M8[t] -15844.4644416581M9[t] -10334.1572687118M10[t] -1324.53698797528M11[t] +  144.895467430072t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60928&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  23742.1551966182 +  6615.98887332214X[t] +  0.902769444396003Y1[t] +  0.187257523728878Y2[t] +  0.0782568056750277Y3[t] -0.261594494752365Y4[t] -4817.45387065382M1[t] -9797.82497078342M2[t] -7592.9204932169M3[t] -10990.3561951020M4[t] -7520.4387858831M5[t] +  15571.2127480332M6[t] -1051.92432274379M7[t] -10008.0686935439M8[t] -15844.4644416581M9[t] -10334.1572687118M10[t] -1324.53698797528M11[t] +  144.895467430072t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60928&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60928&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
Y[t] = + 23742.1551966182 + 6615.98887332214X[t] + 0.902769444396003Y1[t] + 0.187257523728878Y2[t] + 0.0782568056750277Y3[t] -0.261594494752365Y4[t] -4817.45387065382M1[t] -9797.82497078342M2[t] -7592.9204932169M3[t] -10990.3561951020M4[t] -7520.4387858831M5[t] + 15571.2127480332M6[t] -1051.92432274379M7[t] -10008.0686935439M8[t] -15844.4644416581M9[t] -10334.1572687118M10[t] -1324.53698797528M11[t] + 144.895467430072t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)23742.155196618212205.5788931.94520.0591790.029589
X6615.988873322142553.859072.59060.0135140.006757
Y10.9027694443960030.1477666.109500
Y20.1872575237288780.2063730.90740.3699280.184964
Y30.07825680567502770.206250.37940.7064830.353241
Y4-0.2615944947523650.162849-1.60640.1164740.058237
M1-4817.453870653822604.005125-1.850.0720990.036049
M2-9797.824970783422998.209807-3.26790.0023030.001152
M3-7592.92049321692926.792723-2.59430.0133920.006696
M4-10990.35619510202565.546722-4.28380.0001216e-05
M5-7520.43878588312775.472514-2.70960.0100490.005025
M615571.21274803322595.6642525.99891e-060
M7-1051.924322743793485.975333-0.30180.7644810.382241
M8-10008.06869354394463.886007-2.2420.0308770.015439
M9-15844.46444165815372.774649-2.9490.0054290.002714
M10-10334.15726871183144.926122-3.2860.0021910.001096
M11-1324.536987975282822.16277-0.46930.6415130.320756
t144.89546743007282.5290971.75570.08720.0436

\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) & 23742.1551966182 & 12205.578893 & 1.9452 & 0.059179 & 0.029589 \tabularnewline
X & 6615.98887332214 & 2553.85907 & 2.5906 & 0.013514 & 0.006757 \tabularnewline
Y1 & 0.902769444396003 & 0.147766 & 6.1095 & 0 & 0 \tabularnewline
Y2 & 0.187257523728878 & 0.206373 & 0.9074 & 0.369928 & 0.184964 \tabularnewline
Y3 & 0.0782568056750277 & 0.20625 & 0.3794 & 0.706483 & 0.353241 \tabularnewline
Y4 & -0.261594494752365 & 0.162849 & -1.6064 & 0.116474 & 0.058237 \tabularnewline
M1 & -4817.45387065382 & 2604.005125 & -1.85 & 0.072099 & 0.036049 \tabularnewline
M2 & -9797.82497078342 & 2998.209807 & -3.2679 & 0.002303 & 0.001152 \tabularnewline
M3 & -7592.9204932169 & 2926.792723 & -2.5943 & 0.013392 & 0.006696 \tabularnewline
M4 & -10990.3561951020 & 2565.546722 & -4.2838 & 0.000121 & 6e-05 \tabularnewline
M5 & -7520.4387858831 & 2775.472514 & -2.7096 & 0.010049 & 0.005025 \tabularnewline
M6 & 15571.2127480332 & 2595.664252 & 5.9989 & 1e-06 & 0 \tabularnewline
M7 & -1051.92432274379 & 3485.975333 & -0.3018 & 0.764481 & 0.382241 \tabularnewline
M8 & -10008.0686935439 & 4463.886007 & -2.242 & 0.030877 & 0.015439 \tabularnewline
M9 & -15844.4644416581 & 5372.774649 & -2.949 & 0.005429 & 0.002714 \tabularnewline
M10 & -10334.1572687118 & 3144.926122 & -3.286 & 0.002191 & 0.001096 \tabularnewline
M11 & -1324.53698797528 & 2822.16277 & -0.4693 & 0.641513 & 0.320756 \tabularnewline
t & 144.895467430072 & 82.529097 & 1.7557 & 0.0872 & 0.0436 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60928&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]23742.1551966182[/C][C]12205.578893[/C][C]1.9452[/C][C]0.059179[/C][C]0.029589[/C][/ROW]
[ROW][C]X[/C][C]6615.98887332214[/C][C]2553.85907[/C][C]2.5906[/C][C]0.013514[/C][C]0.006757[/C][/ROW]
[ROW][C]Y1[/C][C]0.902769444396003[/C][C]0.147766[/C][C]6.1095[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]0.187257523728878[/C][C]0.206373[/C][C]0.9074[/C][C]0.369928[/C][C]0.184964[/C][/ROW]
[ROW][C]Y3[/C][C]0.0782568056750277[/C][C]0.20625[/C][C]0.3794[/C][C]0.706483[/C][C]0.353241[/C][/ROW]
[ROW][C]Y4[/C][C]-0.261594494752365[/C][C]0.162849[/C][C]-1.6064[/C][C]0.116474[/C][C]0.058237[/C][/ROW]
[ROW][C]M1[/C][C]-4817.45387065382[/C][C]2604.005125[/C][C]-1.85[/C][C]0.072099[/C][C]0.036049[/C][/ROW]
[ROW][C]M2[/C][C]-9797.82497078342[/C][C]2998.209807[/C][C]-3.2679[/C][C]0.002303[/C][C]0.001152[/C][/ROW]
[ROW][C]M3[/C][C]-7592.9204932169[/C][C]2926.792723[/C][C]-2.5943[/C][C]0.013392[/C][C]0.006696[/C][/ROW]
[ROW][C]M4[/C][C]-10990.3561951020[/C][C]2565.546722[/C][C]-4.2838[/C][C]0.000121[/C][C]6e-05[/C][/ROW]
[ROW][C]M5[/C][C]-7520.4387858831[/C][C]2775.472514[/C][C]-2.7096[/C][C]0.010049[/C][C]0.005025[/C][/ROW]
[ROW][C]M6[/C][C]15571.2127480332[/C][C]2595.664252[/C][C]5.9989[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-1051.92432274379[/C][C]3485.975333[/C][C]-0.3018[/C][C]0.764481[/C][C]0.382241[/C][/ROW]
[ROW][C]M8[/C][C]-10008.0686935439[/C][C]4463.886007[/C][C]-2.242[/C][C]0.030877[/C][C]0.015439[/C][/ROW]
[ROW][C]M9[/C][C]-15844.4644416581[/C][C]5372.774649[/C][C]-2.949[/C][C]0.005429[/C][C]0.002714[/C][/ROW]
[ROW][C]M10[/C][C]-10334.1572687118[/C][C]3144.926122[/C][C]-3.286[/C][C]0.002191[/C][C]0.001096[/C][/ROW]
[ROW][C]M11[/C][C]-1324.53698797528[/C][C]2822.16277[/C][C]-0.4693[/C][C]0.641513[/C][C]0.320756[/C][/ROW]
[ROW][C]t[/C][C]144.895467430072[/C][C]82.529097[/C][C]1.7557[/C][C]0.0872[/C][C]0.0436[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60928&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60928&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)23742.155196618212205.5788931.94520.0591790.029589
X6615.988873322142553.859072.59060.0135140.006757
Y10.9027694443960030.1477666.109500
Y20.1872575237288780.2063730.90740.3699280.184964
Y30.07825680567502770.206250.37940.7064830.353241
Y4-0.2615944947523650.162849-1.60640.1164740.058237
M1-4817.453870653822604.005125-1.850.0720990.036049
M2-9797.824970783422998.209807-3.26790.0023030.001152
M3-7592.92049321692926.792723-2.59430.0133920.006696
M4-10990.35619510202565.546722-4.28380.0001216e-05
M5-7520.43878588312775.472514-2.70960.0100490.005025
M615571.21274803322595.6642525.99891e-060
M7-1051.924322743793485.975333-0.30180.7644810.382241
M8-10008.06869354394463.886007-2.2420.0308770.015439
M9-15844.46444165815372.774649-2.9490.0054290.002714
M10-10334.15726871183144.926122-3.2860.0021910.001096
M11-1324.536987975282822.16277-0.46930.6415130.320756
t144.89546743007282.5290971.75570.08720.0436







Multiple Linear Regression - Regression Statistics
Multiple R0.987881224556706
R-squared0.975909313831657
Adjusted R-squared0.96513190159845
F-TEST (value)90.5513580360972
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3444.73750487735
Sum Squared Residuals450916226.145328

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.987881224556706 \tabularnewline
R-squared & 0.975909313831657 \tabularnewline
Adjusted R-squared & 0.96513190159845 \tabularnewline
F-TEST (value) & 90.5513580360972 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3444.73750487735 \tabularnewline
Sum Squared Residuals & 450916226.145328 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60928&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.987881224556706[/C][/ROW]
[ROW][C]R-squared[/C][C]0.975909313831657[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.96513190159845[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]90.5513580360972[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/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]3444.73750487735[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]450916226.145328[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60928&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60928&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.987881224556706
R-squared0.975909313831657
Adjusted R-squared0.96513190159845
F-TEST (value)90.5513580360972
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3444.73750487735
Sum Squared Residuals450916226.145328







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1277026275450.5476940241575.45230597623
2274960272203.663525562756.33647443986
3270073272300.834214719-2227.83421471922
4267063264453.5041087052609.49589129474
5264916264280.714741103635.285258896512
6287182285173.3838157322008.61618426771
7291109289437.0240686341671.97593136619
8292223288959.8088641743263.19113582563
9288109287313.463455624795.536544375801
10281400283945.928938919-2545.92893891904
11282579285333.283532642-2754.28353264171
12280113285997.405670592-5884.4056705917
13280331279870.569280101460.430719898766
14276759276617.422571949141.577428050907
15275139275281.951009628-142.951009628418
16274275270560.1924081893714.80759181126
17271234272755.094386712-1521.09438671162
18289725293892.16851721-4167.16851720995
19290649293893.755781926-3244.75578192557
20292223289367.2834138562855.71658614362
21278429280896.334769534-2467.33476953379
22269749269628.644522239120.355477761316
23265784268245.554109713-2461.55410971316
24268957263018.88629995938.11370009986
25264099263397.504649515701.495350485206
26255121256730.89515868-1609.89515868026
27253276251351.4649977151924.53500228535
28245980243541.9061964932438.09380350746
29235295240792.859529705-5497.85952970512
30258479255221.2956919713257.70430802932
31260916257583.6944350713332.30556492931
32254586256386.292562900-1800.29256289958
33250566250046.051243715519.948756285099
34243345245012.685661507-1667.68566150673
35247028245762.6566426651265.34335733471
36248464250546.103175904-2082.10317590375
37244962248346.108629851-3384.10862985125
38237003242795.229868860-5792.22986885955
39237008236453.036206586554.963793413793
40225477231064.922160057-5587.92216005662
41226762224564.0948652492197.90513475080
42247857248883.855964289-1026.85596428925
43248256250786.474509755-2530.47450975508
44246892249402.634192042-2510.63419204164
45245021243869.1505311271151.84946887290
46246186242092.7408773364093.25912266446
47255688251737.505714983950.49428502015
48264242262213.6048536042028.39514639559
49268270267623.269746509646.73025349105
50272969268464.7888749514504.21112504904
51273886273994.713571351-108.713571351506
52267353270527.475126557-3174.47512655684
53271916267730.2364772314185.76352276943
54292633292705.296010798-72.296010797836
55295804295033.051204615770.948795385147
56293222295029.980967028-1807.98096702804

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 277026 & 275450.547694024 & 1575.45230597623 \tabularnewline
2 & 274960 & 272203.66352556 & 2756.33647443986 \tabularnewline
3 & 270073 & 272300.834214719 & -2227.83421471922 \tabularnewline
4 & 267063 & 264453.504108705 & 2609.49589129474 \tabularnewline
5 & 264916 & 264280.714741103 & 635.285258896512 \tabularnewline
6 & 287182 & 285173.383815732 & 2008.61618426771 \tabularnewline
7 & 291109 & 289437.024068634 & 1671.97593136619 \tabularnewline
8 & 292223 & 288959.808864174 & 3263.19113582563 \tabularnewline
9 & 288109 & 287313.463455624 & 795.536544375801 \tabularnewline
10 & 281400 & 283945.928938919 & -2545.92893891904 \tabularnewline
11 & 282579 & 285333.283532642 & -2754.28353264171 \tabularnewline
12 & 280113 & 285997.405670592 & -5884.4056705917 \tabularnewline
13 & 280331 & 279870.569280101 & 460.430719898766 \tabularnewline
14 & 276759 & 276617.422571949 & 141.577428050907 \tabularnewline
15 & 275139 & 275281.951009628 & -142.951009628418 \tabularnewline
16 & 274275 & 270560.192408189 & 3714.80759181126 \tabularnewline
17 & 271234 & 272755.094386712 & -1521.09438671162 \tabularnewline
18 & 289725 & 293892.16851721 & -4167.16851720995 \tabularnewline
19 & 290649 & 293893.755781926 & -3244.75578192557 \tabularnewline
20 & 292223 & 289367.283413856 & 2855.71658614362 \tabularnewline
21 & 278429 & 280896.334769534 & -2467.33476953379 \tabularnewline
22 & 269749 & 269628.644522239 & 120.355477761316 \tabularnewline
23 & 265784 & 268245.554109713 & -2461.55410971316 \tabularnewline
24 & 268957 & 263018.8862999 & 5938.11370009986 \tabularnewline
25 & 264099 & 263397.504649515 & 701.495350485206 \tabularnewline
26 & 255121 & 256730.89515868 & -1609.89515868026 \tabularnewline
27 & 253276 & 251351.464997715 & 1924.53500228535 \tabularnewline
28 & 245980 & 243541.906196493 & 2438.09380350746 \tabularnewline
29 & 235295 & 240792.859529705 & -5497.85952970512 \tabularnewline
30 & 258479 & 255221.295691971 & 3257.70430802932 \tabularnewline
31 & 260916 & 257583.694435071 & 3332.30556492931 \tabularnewline
32 & 254586 & 256386.292562900 & -1800.29256289958 \tabularnewline
33 & 250566 & 250046.051243715 & 519.948756285099 \tabularnewline
34 & 243345 & 245012.685661507 & -1667.68566150673 \tabularnewline
35 & 247028 & 245762.656642665 & 1265.34335733471 \tabularnewline
36 & 248464 & 250546.103175904 & -2082.10317590375 \tabularnewline
37 & 244962 & 248346.108629851 & -3384.10862985125 \tabularnewline
38 & 237003 & 242795.229868860 & -5792.22986885955 \tabularnewline
39 & 237008 & 236453.036206586 & 554.963793413793 \tabularnewline
40 & 225477 & 231064.922160057 & -5587.92216005662 \tabularnewline
41 & 226762 & 224564.094865249 & 2197.90513475080 \tabularnewline
42 & 247857 & 248883.855964289 & -1026.85596428925 \tabularnewline
43 & 248256 & 250786.474509755 & -2530.47450975508 \tabularnewline
44 & 246892 & 249402.634192042 & -2510.63419204164 \tabularnewline
45 & 245021 & 243869.150531127 & 1151.84946887290 \tabularnewline
46 & 246186 & 242092.740877336 & 4093.25912266446 \tabularnewline
47 & 255688 & 251737.50571498 & 3950.49428502015 \tabularnewline
48 & 264242 & 262213.604853604 & 2028.39514639559 \tabularnewline
49 & 268270 & 267623.269746509 & 646.73025349105 \tabularnewline
50 & 272969 & 268464.788874951 & 4504.21112504904 \tabularnewline
51 & 273886 & 273994.713571351 & -108.713571351506 \tabularnewline
52 & 267353 & 270527.475126557 & -3174.47512655684 \tabularnewline
53 & 271916 & 267730.236477231 & 4185.76352276943 \tabularnewline
54 & 292633 & 292705.296010798 & -72.296010797836 \tabularnewline
55 & 295804 & 295033.051204615 & 770.948795385147 \tabularnewline
56 & 293222 & 295029.980967028 & -1807.98096702804 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60928&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]277026[/C][C]275450.547694024[/C][C]1575.45230597623[/C][/ROW]
[ROW][C]2[/C][C]274960[/C][C]272203.66352556[/C][C]2756.33647443986[/C][/ROW]
[ROW][C]3[/C][C]270073[/C][C]272300.834214719[/C][C]-2227.83421471922[/C][/ROW]
[ROW][C]4[/C][C]267063[/C][C]264453.504108705[/C][C]2609.49589129474[/C][/ROW]
[ROW][C]5[/C][C]264916[/C][C]264280.714741103[/C][C]635.285258896512[/C][/ROW]
[ROW][C]6[/C][C]287182[/C][C]285173.383815732[/C][C]2008.61618426771[/C][/ROW]
[ROW][C]7[/C][C]291109[/C][C]289437.024068634[/C][C]1671.97593136619[/C][/ROW]
[ROW][C]8[/C][C]292223[/C][C]288959.808864174[/C][C]3263.19113582563[/C][/ROW]
[ROW][C]9[/C][C]288109[/C][C]287313.463455624[/C][C]795.536544375801[/C][/ROW]
[ROW][C]10[/C][C]281400[/C][C]283945.928938919[/C][C]-2545.92893891904[/C][/ROW]
[ROW][C]11[/C][C]282579[/C][C]285333.283532642[/C][C]-2754.28353264171[/C][/ROW]
[ROW][C]12[/C][C]280113[/C][C]285997.405670592[/C][C]-5884.4056705917[/C][/ROW]
[ROW][C]13[/C][C]280331[/C][C]279870.569280101[/C][C]460.430719898766[/C][/ROW]
[ROW][C]14[/C][C]276759[/C][C]276617.422571949[/C][C]141.577428050907[/C][/ROW]
[ROW][C]15[/C][C]275139[/C][C]275281.951009628[/C][C]-142.951009628418[/C][/ROW]
[ROW][C]16[/C][C]274275[/C][C]270560.192408189[/C][C]3714.80759181126[/C][/ROW]
[ROW][C]17[/C][C]271234[/C][C]272755.094386712[/C][C]-1521.09438671162[/C][/ROW]
[ROW][C]18[/C][C]289725[/C][C]293892.16851721[/C][C]-4167.16851720995[/C][/ROW]
[ROW][C]19[/C][C]290649[/C][C]293893.755781926[/C][C]-3244.75578192557[/C][/ROW]
[ROW][C]20[/C][C]292223[/C][C]289367.283413856[/C][C]2855.71658614362[/C][/ROW]
[ROW][C]21[/C][C]278429[/C][C]280896.334769534[/C][C]-2467.33476953379[/C][/ROW]
[ROW][C]22[/C][C]269749[/C][C]269628.644522239[/C][C]120.355477761316[/C][/ROW]
[ROW][C]23[/C][C]265784[/C][C]268245.554109713[/C][C]-2461.55410971316[/C][/ROW]
[ROW][C]24[/C][C]268957[/C][C]263018.8862999[/C][C]5938.11370009986[/C][/ROW]
[ROW][C]25[/C][C]264099[/C][C]263397.504649515[/C][C]701.495350485206[/C][/ROW]
[ROW][C]26[/C][C]255121[/C][C]256730.89515868[/C][C]-1609.89515868026[/C][/ROW]
[ROW][C]27[/C][C]253276[/C][C]251351.464997715[/C][C]1924.53500228535[/C][/ROW]
[ROW][C]28[/C][C]245980[/C][C]243541.906196493[/C][C]2438.09380350746[/C][/ROW]
[ROW][C]29[/C][C]235295[/C][C]240792.859529705[/C][C]-5497.85952970512[/C][/ROW]
[ROW][C]30[/C][C]258479[/C][C]255221.295691971[/C][C]3257.70430802932[/C][/ROW]
[ROW][C]31[/C][C]260916[/C][C]257583.694435071[/C][C]3332.30556492931[/C][/ROW]
[ROW][C]32[/C][C]254586[/C][C]256386.292562900[/C][C]-1800.29256289958[/C][/ROW]
[ROW][C]33[/C][C]250566[/C][C]250046.051243715[/C][C]519.948756285099[/C][/ROW]
[ROW][C]34[/C][C]243345[/C][C]245012.685661507[/C][C]-1667.68566150673[/C][/ROW]
[ROW][C]35[/C][C]247028[/C][C]245762.656642665[/C][C]1265.34335733471[/C][/ROW]
[ROW][C]36[/C][C]248464[/C][C]250546.103175904[/C][C]-2082.10317590375[/C][/ROW]
[ROW][C]37[/C][C]244962[/C][C]248346.108629851[/C][C]-3384.10862985125[/C][/ROW]
[ROW][C]38[/C][C]237003[/C][C]242795.229868860[/C][C]-5792.22986885955[/C][/ROW]
[ROW][C]39[/C][C]237008[/C][C]236453.036206586[/C][C]554.963793413793[/C][/ROW]
[ROW][C]40[/C][C]225477[/C][C]231064.922160057[/C][C]-5587.92216005662[/C][/ROW]
[ROW][C]41[/C][C]226762[/C][C]224564.094865249[/C][C]2197.90513475080[/C][/ROW]
[ROW][C]42[/C][C]247857[/C][C]248883.855964289[/C][C]-1026.85596428925[/C][/ROW]
[ROW][C]43[/C][C]248256[/C][C]250786.474509755[/C][C]-2530.47450975508[/C][/ROW]
[ROW][C]44[/C][C]246892[/C][C]249402.634192042[/C][C]-2510.63419204164[/C][/ROW]
[ROW][C]45[/C][C]245021[/C][C]243869.150531127[/C][C]1151.84946887290[/C][/ROW]
[ROW][C]46[/C][C]246186[/C][C]242092.740877336[/C][C]4093.25912266446[/C][/ROW]
[ROW][C]47[/C][C]255688[/C][C]251737.50571498[/C][C]3950.49428502015[/C][/ROW]
[ROW][C]48[/C][C]264242[/C][C]262213.604853604[/C][C]2028.39514639559[/C][/ROW]
[ROW][C]49[/C][C]268270[/C][C]267623.269746509[/C][C]646.73025349105[/C][/ROW]
[ROW][C]50[/C][C]272969[/C][C]268464.788874951[/C][C]4504.21112504904[/C][/ROW]
[ROW][C]51[/C][C]273886[/C][C]273994.713571351[/C][C]-108.713571351506[/C][/ROW]
[ROW][C]52[/C][C]267353[/C][C]270527.475126557[/C][C]-3174.47512655684[/C][/ROW]
[ROW][C]53[/C][C]271916[/C][C]267730.236477231[/C][C]4185.76352276943[/C][/ROW]
[ROW][C]54[/C][C]292633[/C][C]292705.296010798[/C][C]-72.296010797836[/C][/ROW]
[ROW][C]55[/C][C]295804[/C][C]295033.051204615[/C][C]770.948795385147[/C][/ROW]
[ROW][C]56[/C][C]293222[/C][C]295029.980967028[/C][C]-1807.98096702804[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60928&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60928&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
1277026275450.5476940241575.45230597623
2274960272203.663525562756.33647443986
3270073272300.834214719-2227.83421471922
4267063264453.5041087052609.49589129474
5264916264280.714741103635.285258896512
6287182285173.3838157322008.61618426771
7291109289437.0240686341671.97593136619
8292223288959.8088641743263.19113582563
9288109287313.463455624795.536544375801
10281400283945.928938919-2545.92893891904
11282579285333.283532642-2754.28353264171
12280113285997.405670592-5884.4056705917
13280331279870.569280101460.430719898766
14276759276617.422571949141.577428050907
15275139275281.951009628-142.951009628418
16274275270560.1924081893714.80759181126
17271234272755.094386712-1521.09438671162
18289725293892.16851721-4167.16851720995
19290649293893.755781926-3244.75578192557
20292223289367.2834138562855.71658614362
21278429280896.334769534-2467.33476953379
22269749269628.644522239120.355477761316
23265784268245.554109713-2461.55410971316
24268957263018.88629995938.11370009986
25264099263397.504649515701.495350485206
26255121256730.89515868-1609.89515868026
27253276251351.4649977151924.53500228535
28245980243541.9061964932438.09380350746
29235295240792.859529705-5497.85952970512
30258479255221.2956919713257.70430802932
31260916257583.6944350713332.30556492931
32254586256386.292562900-1800.29256289958
33250566250046.051243715519.948756285099
34243345245012.685661507-1667.68566150673
35247028245762.6566426651265.34335733471
36248464250546.103175904-2082.10317590375
37244962248346.108629851-3384.10862985125
38237003242795.229868860-5792.22986885955
39237008236453.036206586554.963793413793
40225477231064.922160057-5587.92216005662
41226762224564.0948652492197.90513475080
42247857248883.855964289-1026.85596428925
43248256250786.474509755-2530.47450975508
44246892249402.634192042-2510.63419204164
45245021243869.1505311271151.84946887290
46246186242092.7408773364093.25912266446
47255688251737.505714983950.49428502015
48264242262213.6048536042028.39514639559
49268270267623.269746509646.73025349105
50272969268464.7888749514504.21112504904
51273886273994.713571351-108.713571351506
52267353270527.475126557-3174.47512655684
53271916267730.2364772314185.76352276943
54292633292705.296010798-72.296010797836
55295804295033.051204615770.948795385147
56293222295029.980967028-1807.98096702804







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.01590909602088240.03181819204176490.984090903979118
220.005071234106339580.01014246821267920.99492876589366
230.006914394179285660.01382878835857130.993085605820714
240.005819565339534630.01163913067906930.994180434660465
250.006797665661356620.01359533132271320.993202334338643
260.02438050139003340.04876100278006680.975619498609967
270.0396585525665960.0793171051331920.960341447433404
280.1548944111493580.3097888222987170.845105588850642
290.3797468943931110.7594937887862230.620253105606889
300.4251999150339640.8503998300679270.574800084966036
310.6122308122475460.7755383755049080.387769187752454
320.6014762332916170.7970475334167660.398523766708383
330.5319939291526550.9360121416946910.468006070847345
340.3762021307157170.7524042614314350.623797869284283
350.3580060886714130.7160121773428250.641993911328587

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.0159090960208824 & 0.0318181920417649 & 0.984090903979118 \tabularnewline
22 & 0.00507123410633958 & 0.0101424682126792 & 0.99492876589366 \tabularnewline
23 & 0.00691439417928566 & 0.0138287883585713 & 0.993085605820714 \tabularnewline
24 & 0.00581956533953463 & 0.0116391306790693 & 0.994180434660465 \tabularnewline
25 & 0.00679766566135662 & 0.0135953313227132 & 0.993202334338643 \tabularnewline
26 & 0.0243805013900334 & 0.0487610027800668 & 0.975619498609967 \tabularnewline
27 & 0.039658552566596 & 0.079317105133192 & 0.960341447433404 \tabularnewline
28 & 0.154894411149358 & 0.309788822298717 & 0.845105588850642 \tabularnewline
29 & 0.379746894393111 & 0.759493788786223 & 0.620253105606889 \tabularnewline
30 & 0.425199915033964 & 0.850399830067927 & 0.574800084966036 \tabularnewline
31 & 0.612230812247546 & 0.775538375504908 & 0.387769187752454 \tabularnewline
32 & 0.601476233291617 & 0.797047533416766 & 0.398523766708383 \tabularnewline
33 & 0.531993929152655 & 0.936012141694691 & 0.468006070847345 \tabularnewline
34 & 0.376202130715717 & 0.752404261431435 & 0.623797869284283 \tabularnewline
35 & 0.358006088671413 & 0.716012177342825 & 0.641993911328587 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60928&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]21[/C][C]0.0159090960208824[/C][C]0.0318181920417649[/C][C]0.984090903979118[/C][/ROW]
[ROW][C]22[/C][C]0.00507123410633958[/C][C]0.0101424682126792[/C][C]0.99492876589366[/C][/ROW]
[ROW][C]23[/C][C]0.00691439417928566[/C][C]0.0138287883585713[/C][C]0.993085605820714[/C][/ROW]
[ROW][C]24[/C][C]0.00581956533953463[/C][C]0.0116391306790693[/C][C]0.994180434660465[/C][/ROW]
[ROW][C]25[/C][C]0.00679766566135662[/C][C]0.0135953313227132[/C][C]0.993202334338643[/C][/ROW]
[ROW][C]26[/C][C]0.0243805013900334[/C][C]0.0487610027800668[/C][C]0.975619498609967[/C][/ROW]
[ROW][C]27[/C][C]0.039658552566596[/C][C]0.079317105133192[/C][C]0.960341447433404[/C][/ROW]
[ROW][C]28[/C][C]0.154894411149358[/C][C]0.309788822298717[/C][C]0.845105588850642[/C][/ROW]
[ROW][C]29[/C][C]0.379746894393111[/C][C]0.759493788786223[/C][C]0.620253105606889[/C][/ROW]
[ROW][C]30[/C][C]0.425199915033964[/C][C]0.850399830067927[/C][C]0.574800084966036[/C][/ROW]
[ROW][C]31[/C][C]0.612230812247546[/C][C]0.775538375504908[/C][C]0.387769187752454[/C][/ROW]
[ROW][C]32[/C][C]0.601476233291617[/C][C]0.797047533416766[/C][C]0.398523766708383[/C][/ROW]
[ROW][C]33[/C][C]0.531993929152655[/C][C]0.936012141694691[/C][C]0.468006070847345[/C][/ROW]
[ROW][C]34[/C][C]0.376202130715717[/C][C]0.752404261431435[/C][C]0.623797869284283[/C][/ROW]
[ROW][C]35[/C][C]0.358006088671413[/C][C]0.716012177342825[/C][C]0.641993911328587[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60928&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60928&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
210.01590909602088240.03181819204176490.984090903979118
220.005071234106339580.01014246821267920.99492876589366
230.006914394179285660.01382878835857130.993085605820714
240.005819565339534630.01163913067906930.994180434660465
250.006797665661356620.01359533132271320.993202334338643
260.02438050139003340.04876100278006680.975619498609967
270.0396585525665960.0793171051331920.960341447433404
280.1548944111493580.3097888222987170.845105588850642
290.3797468943931110.7594937887862230.620253105606889
300.4251999150339640.8503998300679270.574800084966036
310.6122308122475460.7755383755049080.387769187752454
320.6014762332916170.7970475334167660.398523766708383
330.5319939291526550.9360121416946910.468006070847345
340.3762021307157170.7524042614314350.623797869284283
350.3580060886714130.7160121773428250.641993911328587







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level60.4NOK
10% type I error level70.466666666666667NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60928&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 level60.4NOK
10% type I error level70.466666666666667NOK



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