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, 20 Nov 2009 15:45:12 -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/20/t1258757141eugrz1zxw18e077.htm/, Retrieved Wed, 24 Apr 2024 22:46:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58482, Retrieved Wed, 24 Apr 2024 22:46:18 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact97
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:14:11] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [Seatbelt Law part 5] [2009-11-20 22:45:12] [befe6dd6a614b6d3a2a74a47a0a4f514] [Current]
Feedback Forum

Post a new message
Dataseries X:
7.2	1,9	7.5	8.3
7.4	1,6	7.2	7.5
8.8	1,7	7.4	7.2
9.3	1,6	8.8	7.4
9.3	1,4	9.3	8.8
8.7	2,1	9.3	9.3
8.2	1,9	8.7	9.3
8.3	1,7	8.2	8.7
8.5	1,8	8.3	8.2
8.6	2	8.5	8.3
8.5	2,5	8.6	8.5
8.2	2,1	8.5	8.6
8.1	2,1	8.2	8.5
7.9	2,3	8.1	8.2
8.6	2,4	7.9	8.1
8.7	2,4	8.6	7.9
8.7	2,3	8.7	8.6
8.5	1,7	8.7	8.7
8.4	2	8.5	8.7
8.5	2,3	8.4	8.5
8.7	2	8.5	8.4
8.7	2	8.7	8.5
8.6	1,3	8.7	8.7
8.5	1,7	8.6	8.7
8.3	1,9	8.5	8.6
8	1,7	8.3	8.5
8.2	1,6	8	8.3
8.1	1,7	8.2	8
8.1	1,8	8.1	8.2
8	1,9	8.1	8.1
7.9	1,9	8	8.1
7.9	1,9	7.9	8
8	2	7.9	7.9
8	2,1	8	7.9
7.9	1,9	8	8
8	1,9	7.9	8
7.7	1,3	8	7.9
7.2	1,3	7.7	8
7.5	1,4	7.2	7.7
7.3	1,2	7.5	7.2
7	1,3	7.3	7.5
7	1,8	7	7.3
7	2,2	7	7
7.2	2,6	7	7
7.3	2,8	7.2	7
7.1	3,1	7.3	7.2
6.8	3,9	7.1	7.3
6.4	3,7	6.8	7.1
6.1	4,6	6.4	6.8
6.5	5,1	6.1	6.4
7.7	5,2	6.5	6.1
7.9	4,9	7.7	6.5
7.5	5,1	7.9	7.7
6.9	4,8	7.5	7.9
6.6	3,9	6.9	7.5
6.9	3,5	6.6	6.9




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58482&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
TWIB[t] = + 2.82378101219517 -0.00508086181364818GI[t] + 1.32411297292159TWIB1[t] -0.64390045548293TWIB2[t] -0.0999061494232035M1[t] -0.0434877570194206M2[t] + 0.679808204282157M3[t] -0.266939596683318M4[t] -0.0382867494972436M5[t] -0.0765162377199005M6[t] + 0.0417633025188104M7[t] + 0.265115558769458M8[t] + 0.136208857605767M9[t] -0.0106577324371968M10[t] -0.0188635725354176M11[t] -0.0115981810749348t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
TWIB[t] =  +  2.82378101219517 -0.00508086181364818GI[t] +  1.32411297292159TWIB1[t] -0.64390045548293TWIB2[t] -0.0999061494232035M1[t] -0.0434877570194206M2[t] +  0.679808204282157M3[t] -0.266939596683318M4[t] -0.0382867494972436M5[t] -0.0765162377199005M6[t] +  0.0417633025188104M7[t] +  0.265115558769458M8[t] +  0.136208857605767M9[t] -0.0106577324371968M10[t] -0.0188635725354176M11[t] -0.0115981810749348t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58482&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]TWIB[t] =  +  2.82378101219517 -0.00508086181364818GI[t] +  1.32411297292159TWIB1[t] -0.64390045548293TWIB2[t] -0.0999061494232035M1[t] -0.0434877570194206M2[t] +  0.679808204282157M3[t] -0.266939596683318M4[t] -0.0382867494972436M5[t] -0.0765162377199005M6[t] +  0.0417633025188104M7[t] +  0.265115558769458M8[t] +  0.136208857605767M9[t] -0.0106577324371968M10[t] -0.0188635725354176M11[t] -0.0115981810749348t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58482&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58482&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
TWIB[t] = + 2.82378101219517 -0.00508086181364818GI[t] + 1.32411297292159TWIB1[t] -0.64390045548293TWIB2[t] -0.0999061494232035M1[t] -0.0434877570194206M2[t] + 0.679808204282157M3[t] -0.266939596683318M4[t] -0.0382867494972436M5[t] -0.0765162377199005M6[t] + 0.0417633025188104M7[t] + 0.265115558769458M8[t] + 0.136208857605767M9[t] -0.0106577324371968M10[t] -0.0188635725354176M11[t] -0.0115981810749348t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.823781012195170.5587755.05351e-055e-06
GI-0.005080861813648180.029186-0.17410.8626780.431339
TWIB11.324112972921590.10234112.938300
TWIB2-0.643900455482930.104332-6.171600
M1-0.09990614942320350.118572-0.84260.4044740.202237
M2-0.04348775701942060.120697-0.36030.7205150.360257
M30.6798082042821570.1226435.5432e-061e-06
M4-0.2669395966833180.147656-1.80780.0781540.039077
M5-0.03828674949724360.118652-0.32270.7486170.374308
M6-0.07651623771990050.116339-0.65770.5144970.257249
M70.04176330251881040.1167310.35780.7223930.361197
M80.2651155587694580.1168362.26910.0287260.014363
M90.1362088576057670.1253261.08680.2836150.141807
M10-0.01065773243719680.125573-0.08490.9327860.466393
M11-0.01886357253541760.122711-0.15370.87860.4393
t-0.01159818107493480.002468-4.69953.1e-051.5e-05

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 2.82378101219517 & 0.558775 & 5.0535 & 1e-05 & 5e-06 \tabularnewline
GI & -0.00508086181364818 & 0.029186 & -0.1741 & 0.862678 & 0.431339 \tabularnewline
TWIB1 & 1.32411297292159 & 0.102341 & 12.9383 & 0 & 0 \tabularnewline
TWIB2 & -0.64390045548293 & 0.104332 & -6.1716 & 0 & 0 \tabularnewline
M1 & -0.0999061494232035 & 0.118572 & -0.8426 & 0.404474 & 0.202237 \tabularnewline
M2 & -0.0434877570194206 & 0.120697 & -0.3603 & 0.720515 & 0.360257 \tabularnewline
M3 & 0.679808204282157 & 0.122643 & 5.543 & 2e-06 & 1e-06 \tabularnewline
M4 & -0.266939596683318 & 0.147656 & -1.8078 & 0.078154 & 0.039077 \tabularnewline
M5 & -0.0382867494972436 & 0.118652 & -0.3227 & 0.748617 & 0.374308 \tabularnewline
M6 & -0.0765162377199005 & 0.116339 & -0.6577 & 0.514497 & 0.257249 \tabularnewline
M7 & 0.0417633025188104 & 0.116731 & 0.3578 & 0.722393 & 0.361197 \tabularnewline
M8 & 0.265115558769458 & 0.116836 & 2.2691 & 0.028726 & 0.014363 \tabularnewline
M9 & 0.136208857605767 & 0.125326 & 1.0868 & 0.283615 & 0.141807 \tabularnewline
M10 & -0.0106577324371968 & 0.125573 & -0.0849 & 0.932786 & 0.466393 \tabularnewline
M11 & -0.0188635725354176 & 0.122711 & -0.1537 & 0.8786 & 0.4393 \tabularnewline
t & -0.0115981810749348 & 0.002468 & -4.6995 & 3.1e-05 & 1.5e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58482&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]2.82378101219517[/C][C]0.558775[/C][C]5.0535[/C][C]1e-05[/C][C]5e-06[/C][/ROW]
[ROW][C]GI[/C][C]-0.00508086181364818[/C][C]0.029186[/C][C]-0.1741[/C][C]0.862678[/C][C]0.431339[/C][/ROW]
[ROW][C]TWIB1[/C][C]1.32411297292159[/C][C]0.102341[/C][C]12.9383[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]TWIB2[/C][C]-0.64390045548293[/C][C]0.104332[/C][C]-6.1716[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.0999061494232035[/C][C]0.118572[/C][C]-0.8426[/C][C]0.404474[/C][C]0.202237[/C][/ROW]
[ROW][C]M2[/C][C]-0.0434877570194206[/C][C]0.120697[/C][C]-0.3603[/C][C]0.720515[/C][C]0.360257[/C][/ROW]
[ROW][C]M3[/C][C]0.679808204282157[/C][C]0.122643[/C][C]5.543[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M4[/C][C]-0.266939596683318[/C][C]0.147656[/C][C]-1.8078[/C][C]0.078154[/C][C]0.039077[/C][/ROW]
[ROW][C]M5[/C][C]-0.0382867494972436[/C][C]0.118652[/C][C]-0.3227[/C][C]0.748617[/C][C]0.374308[/C][/ROW]
[ROW][C]M6[/C][C]-0.0765162377199005[/C][C]0.116339[/C][C]-0.6577[/C][C]0.514497[/C][C]0.257249[/C][/ROW]
[ROW][C]M7[/C][C]0.0417633025188104[/C][C]0.116731[/C][C]0.3578[/C][C]0.722393[/C][C]0.361197[/C][/ROW]
[ROW][C]M8[/C][C]0.265115558769458[/C][C]0.116836[/C][C]2.2691[/C][C]0.028726[/C][C]0.014363[/C][/ROW]
[ROW][C]M9[/C][C]0.136208857605767[/C][C]0.125326[/C][C]1.0868[/C][C]0.283615[/C][C]0.141807[/C][/ROW]
[ROW][C]M10[/C][C]-0.0106577324371968[/C][C]0.125573[/C][C]-0.0849[/C][C]0.932786[/C][C]0.466393[/C][/ROW]
[ROW][C]M11[/C][C]-0.0188635725354176[/C][C]0.122711[/C][C]-0.1537[/C][C]0.8786[/C][C]0.4393[/C][/ROW]
[ROW][C]t[/C][C]-0.0115981810749348[/C][C]0.002468[/C][C]-4.6995[/C][C]3.1e-05[/C][C]1.5e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58482&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.823781012195170.5587755.05351e-055e-06
GI-0.005080861813648180.029186-0.17410.8626780.431339
TWIB11.324112972921590.10234112.938300
TWIB2-0.643900455482930.104332-6.171600
M1-0.09990614942320350.118572-0.84260.4044740.202237
M2-0.04348775701942060.120697-0.36030.7205150.360257
M30.6798082042821570.1226435.5432e-061e-06
M4-0.2669395966833180.147656-1.80780.0781540.039077
M5-0.03828674949724360.118652-0.32270.7486170.374308
M6-0.07651623771990050.116339-0.65770.5144970.257249
M70.04176330251881040.1167310.35780.7223930.361197
M80.2651155587694580.1168362.26910.0287260.014363
M90.1362088576057670.1253261.08680.2836150.141807
M10-0.01065773243719680.125573-0.08490.9327860.466393
M11-0.01886357253541760.122711-0.15370.87860.4393
t-0.01159818107493480.002468-4.69953.1e-051.5e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.980218702324364
R-squared0.96082870438646
Adjusted R-squared0.946139468531384
F-TEST (value)65.4103939691571
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.172624993167688
Sum Squared Residuals1.19197553064577

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.980218702324364 \tabularnewline
R-squared & 0.96082870438646 \tabularnewline
Adjusted R-squared & 0.946139468531384 \tabularnewline
F-TEST (value) & 65.4103939691571 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 40 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.172624993167688 \tabularnewline
Sum Squared Residuals & 1.19197553064577 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58482&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.980218702324364[/C][/ROW]
[ROW][C]R-squared[/C][C]0.96082870438646[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.946139468531384[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]65.4103939691571[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]40[/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]0.172624993167688[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.19197553064577[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58482&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58482&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.980218702324364
R-squared0.96082870438646
Adjusted R-squared0.946139468531384
F-TEST (value)65.4103939691571
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.172624993167688
Sum Squared Residuals1.19197553064577







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.27.28909656065474-0.0890965606547376
27.47.45332750303755-0.0533275030375519
38.88.622509928312030.177490071687974
49.39.38965010344663-0.0896501034466272
59.39.36831679070519-0.0683167907051918
68.78.99298229039658-0.292982290396583
78.28.30621203817013-0.106212038170130
88.38.243266072537530.056733927462467
98.58.55661462915117-0.0566146291511691
108.68.597566234706570.00243376529343414
118.58.57885298882216-0.078852988822159
128.28.39134938216765-0.19134938216765
138.17.947001205341320.152998794658675
147.98.05156408366016-0.151564083660164
158.68.562321228669420.0376787713305824
168.78.65963441877070.0403655812292921
178.78.558878149517320.141121850482679
188.58.447708951759620.0522910482403754
198.48.288043457794990.111956542205012
208.58.494642068231030.00535793176896607
218.78.552462787376950.147537212623046
228.78.594430565295080.105569434704919
238.68.44940305629490.150596943705106
248.58.322224805737760.177775194262242
258.38.141683051133020.158316948866977
2687.987086885788580.0129131142114237
278.28.43083895141669-0.230838951416692
288.17.929977614424110.170022385575887
298.17.885332805965140.214667194034856
3087.899387096034480.100612903965520
317.97.87365715790610.0263428420939034
327.98.01738998133794-0.117389981337944
3387.940767058466250.0592329415337546
3487.914205498459140.0857945015408585
357.97.831027604100420.0689723958995777
3687.705881698268750.294118301731254
377.77.79422722769925-0.0942272276992488
387.27.37742350160333-0.177423501603326
397.57.61972684583269-0.119726845832687
407.37.38158115577295-0.0815811557729485
4177.14013500447353-0.140135004473526
4276.819313103489220.180686896510782
4377.11713225457241-0.117132254572414
447.27.32685398502267-0.126853985022668
457.37.45015552500563-0.150155525005631
467.17.29379770153921-0.193797701539212
476.86.94071635078252-0.140716350782525
486.46.68054411382585-0.280544113825845
496.16.22799195517167-0.127991955171666
506.56.130598025910380.369401974089618
517.77.564603045769180.135396954230822
527.97.9391567075856-0.0391567075856032
537.57.64733724933882-0.147337249338817
546.96.94060855832010-0.0406085583200948
556.66.514955091556370.0850449084436289
566.96.717847892870820.182152107129178

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.2 & 7.28909656065474 & -0.0890965606547376 \tabularnewline
2 & 7.4 & 7.45332750303755 & -0.0533275030375519 \tabularnewline
3 & 8.8 & 8.62250992831203 & 0.177490071687974 \tabularnewline
4 & 9.3 & 9.38965010344663 & -0.0896501034466272 \tabularnewline
5 & 9.3 & 9.36831679070519 & -0.0683167907051918 \tabularnewline
6 & 8.7 & 8.99298229039658 & -0.292982290396583 \tabularnewline
7 & 8.2 & 8.30621203817013 & -0.106212038170130 \tabularnewline
8 & 8.3 & 8.24326607253753 & 0.056733927462467 \tabularnewline
9 & 8.5 & 8.55661462915117 & -0.0566146291511691 \tabularnewline
10 & 8.6 & 8.59756623470657 & 0.00243376529343414 \tabularnewline
11 & 8.5 & 8.57885298882216 & -0.078852988822159 \tabularnewline
12 & 8.2 & 8.39134938216765 & -0.19134938216765 \tabularnewline
13 & 8.1 & 7.94700120534132 & 0.152998794658675 \tabularnewline
14 & 7.9 & 8.05156408366016 & -0.151564083660164 \tabularnewline
15 & 8.6 & 8.56232122866942 & 0.0376787713305824 \tabularnewline
16 & 8.7 & 8.6596344187707 & 0.0403655812292921 \tabularnewline
17 & 8.7 & 8.55887814951732 & 0.141121850482679 \tabularnewline
18 & 8.5 & 8.44770895175962 & 0.0522910482403754 \tabularnewline
19 & 8.4 & 8.28804345779499 & 0.111956542205012 \tabularnewline
20 & 8.5 & 8.49464206823103 & 0.00535793176896607 \tabularnewline
21 & 8.7 & 8.55246278737695 & 0.147537212623046 \tabularnewline
22 & 8.7 & 8.59443056529508 & 0.105569434704919 \tabularnewline
23 & 8.6 & 8.4494030562949 & 0.150596943705106 \tabularnewline
24 & 8.5 & 8.32222480573776 & 0.177775194262242 \tabularnewline
25 & 8.3 & 8.14168305113302 & 0.158316948866977 \tabularnewline
26 & 8 & 7.98708688578858 & 0.0129131142114237 \tabularnewline
27 & 8.2 & 8.43083895141669 & -0.230838951416692 \tabularnewline
28 & 8.1 & 7.92997761442411 & 0.170022385575887 \tabularnewline
29 & 8.1 & 7.88533280596514 & 0.214667194034856 \tabularnewline
30 & 8 & 7.89938709603448 & 0.100612903965520 \tabularnewline
31 & 7.9 & 7.8736571579061 & 0.0263428420939034 \tabularnewline
32 & 7.9 & 8.01738998133794 & -0.117389981337944 \tabularnewline
33 & 8 & 7.94076705846625 & 0.0592329415337546 \tabularnewline
34 & 8 & 7.91420549845914 & 0.0857945015408585 \tabularnewline
35 & 7.9 & 7.83102760410042 & 0.0689723958995777 \tabularnewline
36 & 8 & 7.70588169826875 & 0.294118301731254 \tabularnewline
37 & 7.7 & 7.79422722769925 & -0.0942272276992488 \tabularnewline
38 & 7.2 & 7.37742350160333 & -0.177423501603326 \tabularnewline
39 & 7.5 & 7.61972684583269 & -0.119726845832687 \tabularnewline
40 & 7.3 & 7.38158115577295 & -0.0815811557729485 \tabularnewline
41 & 7 & 7.14013500447353 & -0.140135004473526 \tabularnewline
42 & 7 & 6.81931310348922 & 0.180686896510782 \tabularnewline
43 & 7 & 7.11713225457241 & -0.117132254572414 \tabularnewline
44 & 7.2 & 7.32685398502267 & -0.126853985022668 \tabularnewline
45 & 7.3 & 7.45015552500563 & -0.150155525005631 \tabularnewline
46 & 7.1 & 7.29379770153921 & -0.193797701539212 \tabularnewline
47 & 6.8 & 6.94071635078252 & -0.140716350782525 \tabularnewline
48 & 6.4 & 6.68054411382585 & -0.280544113825845 \tabularnewline
49 & 6.1 & 6.22799195517167 & -0.127991955171666 \tabularnewline
50 & 6.5 & 6.13059802591038 & 0.369401974089618 \tabularnewline
51 & 7.7 & 7.56460304576918 & 0.135396954230822 \tabularnewline
52 & 7.9 & 7.9391567075856 & -0.0391567075856032 \tabularnewline
53 & 7.5 & 7.64733724933882 & -0.147337249338817 \tabularnewline
54 & 6.9 & 6.94060855832010 & -0.0406085583200948 \tabularnewline
55 & 6.6 & 6.51495509155637 & 0.0850449084436289 \tabularnewline
56 & 6.9 & 6.71784789287082 & 0.182152107129178 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58482&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]7.2[/C][C]7.28909656065474[/C][C]-0.0890965606547376[/C][/ROW]
[ROW][C]2[/C][C]7.4[/C][C]7.45332750303755[/C][C]-0.0533275030375519[/C][/ROW]
[ROW][C]3[/C][C]8.8[/C][C]8.62250992831203[/C][C]0.177490071687974[/C][/ROW]
[ROW][C]4[/C][C]9.3[/C][C]9.38965010344663[/C][C]-0.0896501034466272[/C][/ROW]
[ROW][C]5[/C][C]9.3[/C][C]9.36831679070519[/C][C]-0.0683167907051918[/C][/ROW]
[ROW][C]6[/C][C]8.7[/C][C]8.99298229039658[/C][C]-0.292982290396583[/C][/ROW]
[ROW][C]7[/C][C]8.2[/C][C]8.30621203817013[/C][C]-0.106212038170130[/C][/ROW]
[ROW][C]8[/C][C]8.3[/C][C]8.24326607253753[/C][C]0.056733927462467[/C][/ROW]
[ROW][C]9[/C][C]8.5[/C][C]8.55661462915117[/C][C]-0.0566146291511691[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.59756623470657[/C][C]0.00243376529343414[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.57885298882216[/C][C]-0.078852988822159[/C][/ROW]
[ROW][C]12[/C][C]8.2[/C][C]8.39134938216765[/C][C]-0.19134938216765[/C][/ROW]
[ROW][C]13[/C][C]8.1[/C][C]7.94700120534132[/C][C]0.152998794658675[/C][/ROW]
[ROW][C]14[/C][C]7.9[/C][C]8.05156408366016[/C][C]-0.151564083660164[/C][/ROW]
[ROW][C]15[/C][C]8.6[/C][C]8.56232122866942[/C][C]0.0376787713305824[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.6596344187707[/C][C]0.0403655812292921[/C][/ROW]
[ROW][C]17[/C][C]8.7[/C][C]8.55887814951732[/C][C]0.141121850482679[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.44770895175962[/C][C]0.0522910482403754[/C][/ROW]
[ROW][C]19[/C][C]8.4[/C][C]8.28804345779499[/C][C]0.111956542205012[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.49464206823103[/C][C]0.00535793176896607[/C][/ROW]
[ROW][C]21[/C][C]8.7[/C][C]8.55246278737695[/C][C]0.147537212623046[/C][/ROW]
[ROW][C]22[/C][C]8.7[/C][C]8.59443056529508[/C][C]0.105569434704919[/C][/ROW]
[ROW][C]23[/C][C]8.6[/C][C]8.4494030562949[/C][C]0.150596943705106[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]8.32222480573776[/C][C]0.177775194262242[/C][/ROW]
[ROW][C]25[/C][C]8.3[/C][C]8.14168305113302[/C][C]0.158316948866977[/C][/ROW]
[ROW][C]26[/C][C]8[/C][C]7.98708688578858[/C][C]0.0129131142114237[/C][/ROW]
[ROW][C]27[/C][C]8.2[/C][C]8.43083895141669[/C][C]-0.230838951416692[/C][/ROW]
[ROW][C]28[/C][C]8.1[/C][C]7.92997761442411[/C][C]0.170022385575887[/C][/ROW]
[ROW][C]29[/C][C]8.1[/C][C]7.88533280596514[/C][C]0.214667194034856[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.89938709603448[/C][C]0.100612903965520[/C][/ROW]
[ROW][C]31[/C][C]7.9[/C][C]7.8736571579061[/C][C]0.0263428420939034[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]8.01738998133794[/C][C]-0.117389981337944[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.94076705846625[/C][C]0.0592329415337546[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]7.91420549845914[/C][C]0.0857945015408585[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.83102760410042[/C][C]0.0689723958995777[/C][/ROW]
[ROW][C]36[/C][C]8[/C][C]7.70588169826875[/C][C]0.294118301731254[/C][/ROW]
[ROW][C]37[/C][C]7.7[/C][C]7.79422722769925[/C][C]-0.0942272276992488[/C][/ROW]
[ROW][C]38[/C][C]7.2[/C][C]7.37742350160333[/C][C]-0.177423501603326[/C][/ROW]
[ROW][C]39[/C][C]7.5[/C][C]7.61972684583269[/C][C]-0.119726845832687[/C][/ROW]
[ROW][C]40[/C][C]7.3[/C][C]7.38158115577295[/C][C]-0.0815811557729485[/C][/ROW]
[ROW][C]41[/C][C]7[/C][C]7.14013500447353[/C][C]-0.140135004473526[/C][/ROW]
[ROW][C]42[/C][C]7[/C][C]6.81931310348922[/C][C]0.180686896510782[/C][/ROW]
[ROW][C]43[/C][C]7[/C][C]7.11713225457241[/C][C]-0.117132254572414[/C][/ROW]
[ROW][C]44[/C][C]7.2[/C][C]7.32685398502267[/C][C]-0.126853985022668[/C][/ROW]
[ROW][C]45[/C][C]7.3[/C][C]7.45015552500563[/C][C]-0.150155525005631[/C][/ROW]
[ROW][C]46[/C][C]7.1[/C][C]7.29379770153921[/C][C]-0.193797701539212[/C][/ROW]
[ROW][C]47[/C][C]6.8[/C][C]6.94071635078252[/C][C]-0.140716350782525[/C][/ROW]
[ROW][C]48[/C][C]6.4[/C][C]6.68054411382585[/C][C]-0.280544113825845[/C][/ROW]
[ROW][C]49[/C][C]6.1[/C][C]6.22799195517167[/C][C]-0.127991955171666[/C][/ROW]
[ROW][C]50[/C][C]6.5[/C][C]6.13059802591038[/C][C]0.369401974089618[/C][/ROW]
[ROW][C]51[/C][C]7.7[/C][C]7.56460304576918[/C][C]0.135396954230822[/C][/ROW]
[ROW][C]52[/C][C]7.9[/C][C]7.9391567075856[/C][C]-0.0391567075856032[/C][/ROW]
[ROW][C]53[/C][C]7.5[/C][C]7.64733724933882[/C][C]-0.147337249338817[/C][/ROW]
[ROW][C]54[/C][C]6.9[/C][C]6.94060855832010[/C][C]-0.0406085583200948[/C][/ROW]
[ROW][C]55[/C][C]6.6[/C][C]6.51495509155637[/C][C]0.0850449084436289[/C][/ROW]
[ROW][C]56[/C][C]6.9[/C][C]6.71784789287082[/C][C]0.182152107129178[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58482&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58482&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
17.27.28909656065474-0.0890965606547376
27.47.45332750303755-0.0533275030375519
38.88.622509928312030.177490071687974
49.39.38965010344663-0.0896501034466272
59.39.36831679070519-0.0683167907051918
68.78.99298229039658-0.292982290396583
78.28.30621203817013-0.106212038170130
88.38.243266072537530.056733927462467
98.58.55661462915117-0.0566146291511691
108.68.597566234706570.00243376529343414
118.58.57885298882216-0.078852988822159
128.28.39134938216765-0.19134938216765
138.17.947001205341320.152998794658675
147.98.05156408366016-0.151564083660164
158.68.562321228669420.0376787713305824
168.78.65963441877070.0403655812292921
178.78.558878149517320.141121850482679
188.58.447708951759620.0522910482403754
198.48.288043457794990.111956542205012
208.58.494642068231030.00535793176896607
218.78.552462787376950.147537212623046
228.78.594430565295080.105569434704919
238.68.44940305629490.150596943705106
248.58.322224805737760.177775194262242
258.38.141683051133020.158316948866977
2687.987086885788580.0129131142114237
278.28.43083895141669-0.230838951416692
288.17.929977614424110.170022385575887
298.17.885332805965140.214667194034856
3087.899387096034480.100612903965520
317.97.87365715790610.0263428420939034
327.98.01738998133794-0.117389981337944
3387.940767058466250.0592329415337546
3487.914205498459140.0857945015408585
357.97.831027604100420.0689723958995777
3687.705881698268750.294118301731254
377.77.79422722769925-0.0942272276992488
387.27.37742350160333-0.177423501603326
397.57.61972684583269-0.119726845832687
407.37.38158115577295-0.0815811557729485
4177.14013500447353-0.140135004473526
4276.819313103489220.180686896510782
4377.11713225457241-0.117132254572414
447.27.32685398502267-0.126853985022668
457.37.45015552500563-0.150155525005631
467.17.29379770153921-0.193797701539212
476.86.94071635078252-0.140716350782525
486.46.68054411382585-0.280544113825845
496.16.22799195517167-0.127991955171666
506.56.130598025910380.369401974089618
517.77.564603045769180.135396954230822
527.97.9391567075856-0.0391567075856032
537.57.64733724933882-0.147337249338817
546.96.94060855832010-0.0406085583200948
556.66.514955091556370.0850449084436289
566.96.717847892870820.182152107129178







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1250895733546520.2501791467093040.874910426645348
200.1106642186310850.2213284372621710.889335781368915
210.05175145083129280.1035029016625860.948248549168707
220.02350456554584410.04700913109168830.976495434454156
230.01097202380875260.02194404761750520.989027976191247
240.008864996960528810.01772999392105760.991135003039471
250.004528223792012620.009056447584025240.995471776207987
260.001796810997018780.003593621994037550.998203189002981
270.0857899984498370.1715799968996740.914210001550163
280.04929979365024710.09859958730049420.950700206349753
290.04548667318182240.09097334636364480.954513326818178
300.02872219855284170.05744439710568340.971277801447158
310.02796400381314120.05592800762628230.97203599618686
320.05261987303585250.1052397460717050.947380126964148
330.02985284301858230.05970568603716470.970147156981418
340.01733821385860870.03467642771721750.982661786141391
350.01062237447902310.02124474895804620.989377625520977
360.3437955652768880.6875911305537770.656204434723112
370.8177474133246130.3645051733507750.182252586675388

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.125089573354652 & 0.250179146709304 & 0.874910426645348 \tabularnewline
20 & 0.110664218631085 & 0.221328437262171 & 0.889335781368915 \tabularnewline
21 & 0.0517514508312928 & 0.103502901662586 & 0.948248549168707 \tabularnewline
22 & 0.0235045655458441 & 0.0470091310916883 & 0.976495434454156 \tabularnewline
23 & 0.0109720238087526 & 0.0219440476175052 & 0.989027976191247 \tabularnewline
24 & 0.00886499696052881 & 0.0177299939210576 & 0.991135003039471 \tabularnewline
25 & 0.00452822379201262 & 0.00905644758402524 & 0.995471776207987 \tabularnewline
26 & 0.00179681099701878 & 0.00359362199403755 & 0.998203189002981 \tabularnewline
27 & 0.085789998449837 & 0.171579996899674 & 0.914210001550163 \tabularnewline
28 & 0.0492997936502471 & 0.0985995873004942 & 0.950700206349753 \tabularnewline
29 & 0.0454866731818224 & 0.0909733463636448 & 0.954513326818178 \tabularnewline
30 & 0.0287221985528417 & 0.0574443971056834 & 0.971277801447158 \tabularnewline
31 & 0.0279640038131412 & 0.0559280076262823 & 0.97203599618686 \tabularnewline
32 & 0.0526198730358525 & 0.105239746071705 & 0.947380126964148 \tabularnewline
33 & 0.0298528430185823 & 0.0597056860371647 & 0.970147156981418 \tabularnewline
34 & 0.0173382138586087 & 0.0346764277172175 & 0.982661786141391 \tabularnewline
35 & 0.0106223744790231 & 0.0212447489580462 & 0.989377625520977 \tabularnewline
36 & 0.343795565276888 & 0.687591130553777 & 0.656204434723112 \tabularnewline
37 & 0.817747413324613 & 0.364505173350775 & 0.182252586675388 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58482&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]19[/C][C]0.125089573354652[/C][C]0.250179146709304[/C][C]0.874910426645348[/C][/ROW]
[ROW][C]20[/C][C]0.110664218631085[/C][C]0.221328437262171[/C][C]0.889335781368915[/C][/ROW]
[ROW][C]21[/C][C]0.0517514508312928[/C][C]0.103502901662586[/C][C]0.948248549168707[/C][/ROW]
[ROW][C]22[/C][C]0.0235045655458441[/C][C]0.0470091310916883[/C][C]0.976495434454156[/C][/ROW]
[ROW][C]23[/C][C]0.0109720238087526[/C][C]0.0219440476175052[/C][C]0.989027976191247[/C][/ROW]
[ROW][C]24[/C][C]0.00886499696052881[/C][C]0.0177299939210576[/C][C]0.991135003039471[/C][/ROW]
[ROW][C]25[/C][C]0.00452822379201262[/C][C]0.00905644758402524[/C][C]0.995471776207987[/C][/ROW]
[ROW][C]26[/C][C]0.00179681099701878[/C][C]0.00359362199403755[/C][C]0.998203189002981[/C][/ROW]
[ROW][C]27[/C][C]0.085789998449837[/C][C]0.171579996899674[/C][C]0.914210001550163[/C][/ROW]
[ROW][C]28[/C][C]0.0492997936502471[/C][C]0.0985995873004942[/C][C]0.950700206349753[/C][/ROW]
[ROW][C]29[/C][C]0.0454866731818224[/C][C]0.0909733463636448[/C][C]0.954513326818178[/C][/ROW]
[ROW][C]30[/C][C]0.0287221985528417[/C][C]0.0574443971056834[/C][C]0.971277801447158[/C][/ROW]
[ROW][C]31[/C][C]0.0279640038131412[/C][C]0.0559280076262823[/C][C]0.97203599618686[/C][/ROW]
[ROW][C]32[/C][C]0.0526198730358525[/C][C]0.105239746071705[/C][C]0.947380126964148[/C][/ROW]
[ROW][C]33[/C][C]0.0298528430185823[/C][C]0.0597056860371647[/C][C]0.970147156981418[/C][/ROW]
[ROW][C]34[/C][C]0.0173382138586087[/C][C]0.0346764277172175[/C][C]0.982661786141391[/C][/ROW]
[ROW][C]35[/C][C]0.0106223744790231[/C][C]0.0212447489580462[/C][C]0.989377625520977[/C][/ROW]
[ROW][C]36[/C][C]0.343795565276888[/C][C]0.687591130553777[/C][C]0.656204434723112[/C][/ROW]
[ROW][C]37[/C][C]0.817747413324613[/C][C]0.364505173350775[/C][C]0.182252586675388[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58482&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58482&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
190.1250895733546520.2501791467093040.874910426645348
200.1106642186310850.2213284372621710.889335781368915
210.05175145083129280.1035029016625860.948248549168707
220.02350456554584410.04700913109168830.976495434454156
230.01097202380875260.02194404761750520.989027976191247
240.008864996960528810.01772999392105760.991135003039471
250.004528223792012620.009056447584025240.995471776207987
260.001796810997018780.003593621994037550.998203189002981
270.0857899984498370.1715799968996740.914210001550163
280.04929979365024710.09859958730049420.950700206349753
290.04548667318182240.09097334636364480.954513326818178
300.02872219855284170.05744439710568340.971277801447158
310.02796400381314120.05592800762628230.97203599618686
320.05261987303585250.1052397460717050.947380126964148
330.02985284301858230.05970568603716470.970147156981418
340.01733821385860870.03467642771721750.982661786141391
350.01062237447902310.02124474895804620.989377625520977
360.3437955652768880.6875911305537770.656204434723112
370.8177474133246130.3645051733507750.182252586675388







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.105263157894737NOK
5% type I error level70.368421052631579NOK
10% type I error level120.631578947368421NOK

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

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]2[/C][C]0.105263157894737[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]7[/C][C]0.368421052631579[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]12[/C][C]0.631578947368421[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58482&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.105263157894737NOK
5% type I error level70.368421052631579NOK
10% type I error level120.631578947368421NOK



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No 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')
}