Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 14 Dec 2009 13:15:52 -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/Dec/14/t1260821826o58jjvesdkjzj5s.htm/, Retrieved Sun, 05 May 2024 12:32:09 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67658, Retrieved Sun, 05 May 2024 12:32:09 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
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]
-    D      [Multiple Regression] [Seatbelt Law Model 5] [2009-12-14 20:15:52] [befe6dd6a614b6d3a2a74a47a0a4f514] [Current]
Feedback Forum

Post a new message
Dataseries X:
7.2	-6	7.5	8.3
7.4	0	7.2	7.5
8.8	-4	7.4	7.2
9.3	-2	8.8	7.4
9.3	-2	9.3	8.8
8.7	-6	9.3	9.3
8.2	-7	8.7	9.3
8.3	-6	8.2	8.7
8.5	-6	8.3	8.2
8.6	-3	8.5	8.3
8.5	-2	8.6	8.5
8.2	-5	8.5	8.6
8.1	-11	8.2	8.5
7.9	-11	8.1	8.2
8.6	-11	7.9	8.1
8.7	-10	8.6	7.9
8.7	-14	8.7	8.6
8.5	-8	8.7	8.7
8.4	-9	8.5	8.7
8.5	-5	8.4	8.5
8.7	-1	8.5	8.4
8.7	-2	8.7	8.5
8.6	-5	8.7	8.7
8.5	-4	8.6	8.7
8.3	-6	8.5	8.6
8	-2	8.3	8.5
8.2	-2	8	8.3
8.1	-2	8.2	8
8.1	-2	8.1	8.2
8	2	8.1	8.1
7.9	1	8	8.1
7.9	-8	7.9	8
8	-1	7.9	7.9
8	1	8	7.9
7.9	-1	8	8
8	2	7.9	8
7.7	2	8	7.9
7.2	1	7.7	8
7.5	-1	7.2	7.7
7.3	-2	7.5	7.2
7	-2	7.3	7.5
7	-1	7	7.3
7	-8	7	7
7.2	-4	7	7
7.3	-6	7.2	7
7.1	-3	7.3	7.2
6.8	-3	7.1	7.3
6.4	-7	6.8	7.1
6.1	-9	6.4	6.8
6.5	-11	6.1	6.4
7.7	-13	6.5	6.1
7.9	-11	7.7	6.5
7.5	-9	7.9	7.7
6.9	-17	7.5	7.9
6.6	-22	6.9	7.5
6.9	-25	6.6	6.9




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67658&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
TW[t] = + 2.75714764262054 -0.00337666443229272CV[t] + 1.32623679314269TW1[t] -0.639603306651212TW2[t] -0.109035744813868M1[t] -0.0460005199250042M2[t] + 0.673083023163224M3[t] -0.271431816286714M4[t] -0.0474155919942077M5[t] -0.0865653868507958M6[t] + 0.0235232511887366M7[t] + 0.246755675487309M8[t] + 0.137257167200593M9[t] -0.00491680202440453M10[t] -0.0173049943056759M11[t] -0.0118920563247720t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
TW[t] =  +  2.75714764262054 -0.00337666443229272CV[t] +  1.32623679314269TW1[t] -0.639603306651212TW2[t] -0.109035744813868M1[t] -0.0460005199250042M2[t] +  0.673083023163224M3[t] -0.271431816286714M4[t] -0.0474155919942077M5[t] -0.0865653868507958M6[t] +  0.0235232511887366M7[t] +  0.246755675487309M8[t] +  0.137257167200593M9[t] -0.00491680202440453M10[t] -0.0173049943056759M11[t] -0.0118920563247720t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67658&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]TW[t] =  +  2.75714764262054 -0.00337666443229272CV[t] +  1.32623679314269TW1[t] -0.639603306651212TW2[t] -0.109035744813868M1[t] -0.0460005199250042M2[t] +  0.673083023163224M3[t] -0.271431816286714M4[t] -0.0474155919942077M5[t] -0.0865653868507958M6[t] +  0.0235232511887366M7[t] +  0.246755675487309M8[t] +  0.137257167200593M9[t] -0.00491680202440453M10[t] -0.0173049943056759M11[t] -0.0118920563247720t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67658&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67658&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
TW[t] = + 2.75714764262054 -0.00337666443229272CV[t] + 1.32623679314269TW1[t] -0.639603306651212TW2[t] -0.109035744813868M1[t] -0.0460005199250042M2[t] + 0.673083023163224M3[t] -0.271431816286714M4[t] -0.0474155919942077M5[t] -0.0865653868507958M6[t] + 0.0235232511887366M7[t] + 0.246755675487309M8[t] + 0.137257167200593M9[t] -0.00491680202440453M10[t] -0.0173049943056759M11[t] -0.0118920563247720t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.757147642620540.5274715.22716e-063e-06
CV-0.003376664432292720.004699-0.71860.4765780.238289
TW11.326236793142690.1012313.101200
TW2-0.6396033066512120.099888-6.403200
M1-0.1090357448138680.118356-0.92130.362440.18122
M2-0.04600051992500420.120025-0.38330.7035580.351779
M30.6730830231632240.1222485.50592e-061e-06
M4-0.2714318162867140.145796-1.86170.0700020.035001
M5-0.04741559199420770.118628-0.39970.6915040.345752
M6-0.08656538685079580.116184-0.74510.4605840.230292
M70.02352325118873660.1186380.19830.8438320.421916
M80.2467556754873090.1190562.07260.0446960.022348
M90.1372571672005930.1241561.10550.275540.13777
M10-0.004916802024404530.124872-0.03940.9687870.484394
M11-0.01730499430567590.121992-0.14190.8879070.443954
t-0.01189205632477200.002358-5.04311e-055e-06

\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.75714764262054 & 0.527471 & 5.2271 & 6e-06 & 3e-06 \tabularnewline
CV & -0.00337666443229272 & 0.004699 & -0.7186 & 0.476578 & 0.238289 \tabularnewline
TW1 & 1.32623679314269 & 0.10123 & 13.1012 & 0 & 0 \tabularnewline
TW2 & -0.639603306651212 & 0.099888 & -6.4032 & 0 & 0 \tabularnewline
M1 & -0.109035744813868 & 0.118356 & -0.9213 & 0.36244 & 0.18122 \tabularnewline
M2 & -0.0460005199250042 & 0.120025 & -0.3833 & 0.703558 & 0.351779 \tabularnewline
M3 & 0.673083023163224 & 0.122248 & 5.5059 & 2e-06 & 1e-06 \tabularnewline
M4 & -0.271431816286714 & 0.145796 & -1.8617 & 0.070002 & 0.035001 \tabularnewline
M5 & -0.0474155919942077 & 0.118628 & -0.3997 & 0.691504 & 0.345752 \tabularnewline
M6 & -0.0865653868507958 & 0.116184 & -0.7451 & 0.460584 & 0.230292 \tabularnewline
M7 & 0.0235232511887366 & 0.118638 & 0.1983 & 0.843832 & 0.421916 \tabularnewline
M8 & 0.246755675487309 & 0.119056 & 2.0726 & 0.044696 & 0.022348 \tabularnewline
M9 & 0.137257167200593 & 0.124156 & 1.1055 & 0.27554 & 0.13777 \tabularnewline
M10 & -0.00491680202440453 & 0.124872 & -0.0394 & 0.968787 & 0.484394 \tabularnewline
M11 & -0.0173049943056759 & 0.121992 & -0.1419 & 0.887907 & 0.443954 \tabularnewline
t & -0.0118920563247720 & 0.002358 & -5.0431 & 1e-05 & 5e-06 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67658&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.75714764262054[/C][C]0.527471[/C][C]5.2271[/C][C]6e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]CV[/C][C]-0.00337666443229272[/C][C]0.004699[/C][C]-0.7186[/C][C]0.476578[/C][C]0.238289[/C][/ROW]
[ROW][C]TW1[/C][C]1.32623679314269[/C][C]0.10123[/C][C]13.1012[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]TW2[/C][C]-0.639603306651212[/C][C]0.099888[/C][C]-6.4032[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.109035744813868[/C][C]0.118356[/C][C]-0.9213[/C][C]0.36244[/C][C]0.18122[/C][/ROW]
[ROW][C]M2[/C][C]-0.0460005199250042[/C][C]0.120025[/C][C]-0.3833[/C][C]0.703558[/C][C]0.351779[/C][/ROW]
[ROW][C]M3[/C][C]0.673083023163224[/C][C]0.122248[/C][C]5.5059[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M4[/C][C]-0.271431816286714[/C][C]0.145796[/C][C]-1.8617[/C][C]0.070002[/C][C]0.035001[/C][/ROW]
[ROW][C]M5[/C][C]-0.0474155919942077[/C][C]0.118628[/C][C]-0.3997[/C][C]0.691504[/C][C]0.345752[/C][/ROW]
[ROW][C]M6[/C][C]-0.0865653868507958[/C][C]0.116184[/C][C]-0.7451[/C][C]0.460584[/C][C]0.230292[/C][/ROW]
[ROW][C]M7[/C][C]0.0235232511887366[/C][C]0.118638[/C][C]0.1983[/C][C]0.843832[/C][C]0.421916[/C][/ROW]
[ROW][C]M8[/C][C]0.246755675487309[/C][C]0.119056[/C][C]2.0726[/C][C]0.044696[/C][C]0.022348[/C][/ROW]
[ROW][C]M9[/C][C]0.137257167200593[/C][C]0.124156[/C][C]1.1055[/C][C]0.27554[/C][C]0.13777[/C][/ROW]
[ROW][C]M10[/C][C]-0.00491680202440453[/C][C]0.124872[/C][C]-0.0394[/C][C]0.968787[/C][C]0.484394[/C][/ROW]
[ROW][C]M11[/C][C]-0.0173049943056759[/C][C]0.121992[/C][C]-0.1419[/C][C]0.887907[/C][C]0.443954[/C][/ROW]
[ROW][C]t[/C][C]-0.0118920563247720[/C][C]0.002358[/C][C]-5.0431[/C][C]1e-05[/C][C]5e-06[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67658&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67658&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.757147642620540.5274715.22716e-063e-06
CV-0.003376664432292720.004699-0.71860.4765780.238289
TW11.326236793142690.1012313.101200
TW2-0.6396033066512120.099888-6.403200
M1-0.1090357448138680.118356-0.92130.362440.18122
M2-0.04600051992500420.120025-0.38330.7035580.351779
M30.6730830231632240.1222485.50592e-061e-06
M4-0.2714318162867140.145796-1.86170.0700020.035001
M5-0.04741559199420770.118628-0.39970.6915040.345752
M6-0.08656538685079580.116184-0.74510.4605840.230292
M70.02352325118873660.1186380.19830.8438320.421916
M80.2467556754873090.1190562.07260.0446960.022348
M90.1372571672005930.1241561.10550.275540.13777
M10-0.004916802024404530.124872-0.03940.9687870.484394
M11-0.01730499430567590.121992-0.14190.8879070.443954
t-0.01189205632477200.002358-5.04311e-055e-06







Multiple Linear Regression - Regression Statistics
Multiple R0.980458370849766
R-squared0.961298616969377
Adjusted R-squared0.946785598332893
F-TEST (value)66.2369863256984
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.171586434098140
Sum Squared Residuals1.17767617466061

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.980458370849766 \tabularnewline
R-squared & 0.961298616969377 \tabularnewline
Adjusted R-squared & 0.946785598332893 \tabularnewline
F-TEST (value) & 66.2369863256984 \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.171586434098140 \tabularnewline
Sum Squared Residuals & 1.17767617466061 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67658&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.980458370849766[/C][/ROW]
[ROW][C]R-squared[/C][C]0.961298616969377[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.946785598332893[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]66.2369863256984[/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.171586434098140[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.17767617466061[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67658&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67658&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.980458370849766
R-squared0.961298616969377
Adjusted R-squared0.946785598332893
F-TEST (value)66.2369863256984
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.171586434098140
Sum Squared Residuals1.17767617466061







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.27.2945483314408-0.0945483314407923
27.47.4392431207893-0.0392431207892947
38.88.617069615905820.182930384094177
49.39.38272024033606-0.0827202403360574
59.39.36251817556344-0.0625181755634421
68.79.00518132878565-0.305181328785649
78.28.31101249904708-0.111012499047083
88.38.239619790007970.06038020999203
98.58.57065455803636-0.0706545580363608
108.68.60774556715313-0.00774556715312895
118.58.58479167209882-0.0847916720988191
128.28.40375059339721-0.203750593397212
138.17.969172071574640.13082792842536
147.98.07957255281983-0.179572552819826
158.68.585477011619870.0145229883801341
168.78.6819798679430.0180201320570091
178.78.592512058298320.107487941701683
188.58.457249889858080.0427501101419214
198.48.29357577737660.106424222623407
208.58.48670646963720.0132935303628041
218.78.548393257275930.151606742724072
228.78.598990924121870.101009075878132
238.68.456920007482460.143079992517539
248.58.32633260171680.173667398283198
258.38.14349478079360.156505219206401
2687.97984426366510.0201557363348963
278.28.41708537381599-0.217085373815993
288.17.917806828665180.182193171334815
298.17.86938665598840.230613344011592
3087.8687984777430.131201522257002
317.97.837748044575780.0622519554242182
327.98.01081504379107-0.110815043791068
3387.929748158818650.0702518411813467
3487.901552483718570.0984475162814332
357.97.820065233311990.0799347666880124
3687.682724498681740.317275501318255
377.77.75838070752249-0.0583807075224943
387.27.35106917191095-0.151069171910950
397.57.59377658296301-0.093776582963008
407.37.358419042889-0.0584190428890049
4177.11341486023284-0.113414860232837
4276.789045968006620.210954031993382
4377.10276019274279-0.102760192742791
447.27.30059390298742-0.100593902987420
457.37.45120402586906-0.151204025869058
467.17.29171102500644-0.191711025006436
476.86.93822308710673-0.138223087106733
486.46.68719230620424-0.287192306204241
496.16.23440410866847-0.134404108668474
506.56.150270890814830.349729109185174
517.77.586591415695310.113408584304690
527.97.95907402016676-0.0590740201667619
537.57.662168249917-0.162168249916996
546.96.97972433560666-0.0797243356066566
556.66.554903486257750.0450965137422496
566.96.762264793576350.137735206423654

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.2 & 7.2945483314408 & -0.0945483314407923 \tabularnewline
2 & 7.4 & 7.4392431207893 & -0.0392431207892947 \tabularnewline
3 & 8.8 & 8.61706961590582 & 0.182930384094177 \tabularnewline
4 & 9.3 & 9.38272024033606 & -0.0827202403360574 \tabularnewline
5 & 9.3 & 9.36251817556344 & -0.0625181755634421 \tabularnewline
6 & 8.7 & 9.00518132878565 & -0.305181328785649 \tabularnewline
7 & 8.2 & 8.31101249904708 & -0.111012499047083 \tabularnewline
8 & 8.3 & 8.23961979000797 & 0.06038020999203 \tabularnewline
9 & 8.5 & 8.57065455803636 & -0.0706545580363608 \tabularnewline
10 & 8.6 & 8.60774556715313 & -0.00774556715312895 \tabularnewline
11 & 8.5 & 8.58479167209882 & -0.0847916720988191 \tabularnewline
12 & 8.2 & 8.40375059339721 & -0.203750593397212 \tabularnewline
13 & 8.1 & 7.96917207157464 & 0.13082792842536 \tabularnewline
14 & 7.9 & 8.07957255281983 & -0.179572552819826 \tabularnewline
15 & 8.6 & 8.58547701161987 & 0.0145229883801341 \tabularnewline
16 & 8.7 & 8.681979867943 & 0.0180201320570091 \tabularnewline
17 & 8.7 & 8.59251205829832 & 0.107487941701683 \tabularnewline
18 & 8.5 & 8.45724988985808 & 0.0427501101419214 \tabularnewline
19 & 8.4 & 8.2935757773766 & 0.106424222623407 \tabularnewline
20 & 8.5 & 8.4867064696372 & 0.0132935303628041 \tabularnewline
21 & 8.7 & 8.54839325727593 & 0.151606742724072 \tabularnewline
22 & 8.7 & 8.59899092412187 & 0.101009075878132 \tabularnewline
23 & 8.6 & 8.45692000748246 & 0.143079992517539 \tabularnewline
24 & 8.5 & 8.3263326017168 & 0.173667398283198 \tabularnewline
25 & 8.3 & 8.1434947807936 & 0.156505219206401 \tabularnewline
26 & 8 & 7.9798442636651 & 0.0201557363348963 \tabularnewline
27 & 8.2 & 8.41708537381599 & -0.217085373815993 \tabularnewline
28 & 8.1 & 7.91780682866518 & 0.182193171334815 \tabularnewline
29 & 8.1 & 7.8693866559884 & 0.230613344011592 \tabularnewline
30 & 8 & 7.868798477743 & 0.131201522257002 \tabularnewline
31 & 7.9 & 7.83774804457578 & 0.0622519554242182 \tabularnewline
32 & 7.9 & 8.01081504379107 & -0.110815043791068 \tabularnewline
33 & 8 & 7.92974815881865 & 0.0702518411813467 \tabularnewline
34 & 8 & 7.90155248371857 & 0.0984475162814332 \tabularnewline
35 & 7.9 & 7.82006523331199 & 0.0799347666880124 \tabularnewline
36 & 8 & 7.68272449868174 & 0.317275501318255 \tabularnewline
37 & 7.7 & 7.75838070752249 & -0.0583807075224943 \tabularnewline
38 & 7.2 & 7.35106917191095 & -0.151069171910950 \tabularnewline
39 & 7.5 & 7.59377658296301 & -0.093776582963008 \tabularnewline
40 & 7.3 & 7.358419042889 & -0.0584190428890049 \tabularnewline
41 & 7 & 7.11341486023284 & -0.113414860232837 \tabularnewline
42 & 7 & 6.78904596800662 & 0.210954031993382 \tabularnewline
43 & 7 & 7.10276019274279 & -0.102760192742791 \tabularnewline
44 & 7.2 & 7.30059390298742 & -0.100593902987420 \tabularnewline
45 & 7.3 & 7.45120402586906 & -0.151204025869058 \tabularnewline
46 & 7.1 & 7.29171102500644 & -0.191711025006436 \tabularnewline
47 & 6.8 & 6.93822308710673 & -0.138223087106733 \tabularnewline
48 & 6.4 & 6.68719230620424 & -0.287192306204241 \tabularnewline
49 & 6.1 & 6.23440410866847 & -0.134404108668474 \tabularnewline
50 & 6.5 & 6.15027089081483 & 0.349729109185174 \tabularnewline
51 & 7.7 & 7.58659141569531 & 0.113408584304690 \tabularnewline
52 & 7.9 & 7.95907402016676 & -0.0590740201667619 \tabularnewline
53 & 7.5 & 7.662168249917 & -0.162168249916996 \tabularnewline
54 & 6.9 & 6.97972433560666 & -0.0797243356066566 \tabularnewline
55 & 6.6 & 6.55490348625775 & 0.0450965137422496 \tabularnewline
56 & 6.9 & 6.76226479357635 & 0.137735206423654 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67658&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.2945483314408[/C][C]-0.0945483314407923[/C][/ROW]
[ROW][C]2[/C][C]7.4[/C][C]7.4392431207893[/C][C]-0.0392431207892947[/C][/ROW]
[ROW][C]3[/C][C]8.8[/C][C]8.61706961590582[/C][C]0.182930384094177[/C][/ROW]
[ROW][C]4[/C][C]9.3[/C][C]9.38272024033606[/C][C]-0.0827202403360574[/C][/ROW]
[ROW][C]5[/C][C]9.3[/C][C]9.36251817556344[/C][C]-0.0625181755634421[/C][/ROW]
[ROW][C]6[/C][C]8.7[/C][C]9.00518132878565[/C][C]-0.305181328785649[/C][/ROW]
[ROW][C]7[/C][C]8.2[/C][C]8.31101249904708[/C][C]-0.111012499047083[/C][/ROW]
[ROW][C]8[/C][C]8.3[/C][C]8.23961979000797[/C][C]0.06038020999203[/C][/ROW]
[ROW][C]9[/C][C]8.5[/C][C]8.57065455803636[/C][C]-0.0706545580363608[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.60774556715313[/C][C]-0.00774556715312895[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.58479167209882[/C][C]-0.0847916720988191[/C][/ROW]
[ROW][C]12[/C][C]8.2[/C][C]8.40375059339721[/C][C]-0.203750593397212[/C][/ROW]
[ROW][C]13[/C][C]8.1[/C][C]7.96917207157464[/C][C]0.13082792842536[/C][/ROW]
[ROW][C]14[/C][C]7.9[/C][C]8.07957255281983[/C][C]-0.179572552819826[/C][/ROW]
[ROW][C]15[/C][C]8.6[/C][C]8.58547701161987[/C][C]0.0145229883801341[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.681979867943[/C][C]0.0180201320570091[/C][/ROW]
[ROW][C]17[/C][C]8.7[/C][C]8.59251205829832[/C][C]0.107487941701683[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.45724988985808[/C][C]0.0427501101419214[/C][/ROW]
[ROW][C]19[/C][C]8.4[/C][C]8.2935757773766[/C][C]0.106424222623407[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.4867064696372[/C][C]0.0132935303628041[/C][/ROW]
[ROW][C]21[/C][C]8.7[/C][C]8.54839325727593[/C][C]0.151606742724072[/C][/ROW]
[ROW][C]22[/C][C]8.7[/C][C]8.59899092412187[/C][C]0.101009075878132[/C][/ROW]
[ROW][C]23[/C][C]8.6[/C][C]8.45692000748246[/C][C]0.143079992517539[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]8.3263326017168[/C][C]0.173667398283198[/C][/ROW]
[ROW][C]25[/C][C]8.3[/C][C]8.1434947807936[/C][C]0.156505219206401[/C][/ROW]
[ROW][C]26[/C][C]8[/C][C]7.9798442636651[/C][C]0.0201557363348963[/C][/ROW]
[ROW][C]27[/C][C]8.2[/C][C]8.41708537381599[/C][C]-0.217085373815993[/C][/ROW]
[ROW][C]28[/C][C]8.1[/C][C]7.91780682866518[/C][C]0.182193171334815[/C][/ROW]
[ROW][C]29[/C][C]8.1[/C][C]7.8693866559884[/C][C]0.230613344011592[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.868798477743[/C][C]0.131201522257002[/C][/ROW]
[ROW][C]31[/C][C]7.9[/C][C]7.83774804457578[/C][C]0.0622519554242182[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]8.01081504379107[/C][C]-0.110815043791068[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.92974815881865[/C][C]0.0702518411813467[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]7.90155248371857[/C][C]0.0984475162814332[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.82006523331199[/C][C]0.0799347666880124[/C][/ROW]
[ROW][C]36[/C][C]8[/C][C]7.68272449868174[/C][C]0.317275501318255[/C][/ROW]
[ROW][C]37[/C][C]7.7[/C][C]7.75838070752249[/C][C]-0.0583807075224943[/C][/ROW]
[ROW][C]38[/C][C]7.2[/C][C]7.35106917191095[/C][C]-0.151069171910950[/C][/ROW]
[ROW][C]39[/C][C]7.5[/C][C]7.59377658296301[/C][C]-0.093776582963008[/C][/ROW]
[ROW][C]40[/C][C]7.3[/C][C]7.358419042889[/C][C]-0.0584190428890049[/C][/ROW]
[ROW][C]41[/C][C]7[/C][C]7.11341486023284[/C][C]-0.113414860232837[/C][/ROW]
[ROW][C]42[/C][C]7[/C][C]6.78904596800662[/C][C]0.210954031993382[/C][/ROW]
[ROW][C]43[/C][C]7[/C][C]7.10276019274279[/C][C]-0.102760192742791[/C][/ROW]
[ROW][C]44[/C][C]7.2[/C][C]7.30059390298742[/C][C]-0.100593902987420[/C][/ROW]
[ROW][C]45[/C][C]7.3[/C][C]7.45120402586906[/C][C]-0.151204025869058[/C][/ROW]
[ROW][C]46[/C][C]7.1[/C][C]7.29171102500644[/C][C]-0.191711025006436[/C][/ROW]
[ROW][C]47[/C][C]6.8[/C][C]6.93822308710673[/C][C]-0.138223087106733[/C][/ROW]
[ROW][C]48[/C][C]6.4[/C][C]6.68719230620424[/C][C]-0.287192306204241[/C][/ROW]
[ROW][C]49[/C][C]6.1[/C][C]6.23440410866847[/C][C]-0.134404108668474[/C][/ROW]
[ROW][C]50[/C][C]6.5[/C][C]6.15027089081483[/C][C]0.349729109185174[/C][/ROW]
[ROW][C]51[/C][C]7.7[/C][C]7.58659141569531[/C][C]0.113408584304690[/C][/ROW]
[ROW][C]52[/C][C]7.9[/C][C]7.95907402016676[/C][C]-0.0590740201667619[/C][/ROW]
[ROW][C]53[/C][C]7.5[/C][C]7.662168249917[/C][C]-0.162168249916996[/C][/ROW]
[ROW][C]54[/C][C]6.9[/C][C]6.97972433560666[/C][C]-0.0797243356066566[/C][/ROW]
[ROW][C]55[/C][C]6.6[/C][C]6.55490348625775[/C][C]0.0450965137422496[/C][/ROW]
[ROW][C]56[/C][C]6.9[/C][C]6.76226479357635[/C][C]0.137735206423654[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67658&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67658&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.2945483314408-0.0945483314407923
27.47.4392431207893-0.0392431207892947
38.88.617069615905820.182930384094177
49.39.38272024033606-0.0827202403360574
59.39.36251817556344-0.0625181755634421
68.79.00518132878565-0.305181328785649
78.28.31101249904708-0.111012499047083
88.38.239619790007970.06038020999203
98.58.57065455803636-0.0706545580363608
108.68.60774556715313-0.00774556715312895
118.58.58479167209882-0.0847916720988191
128.28.40375059339721-0.203750593397212
138.17.969172071574640.13082792842536
147.98.07957255281983-0.179572552819826
158.68.585477011619870.0145229883801341
168.78.6819798679430.0180201320570091
178.78.592512058298320.107487941701683
188.58.457249889858080.0427501101419214
198.48.29357577737660.106424222623407
208.58.48670646963720.0132935303628041
218.78.548393257275930.151606742724072
228.78.598990924121870.101009075878132
238.68.456920007482460.143079992517539
248.58.32633260171680.173667398283198
258.38.14349478079360.156505219206401
2687.97984426366510.0201557363348963
278.28.41708537381599-0.217085373815993
288.17.917806828665180.182193171334815
298.17.86938665598840.230613344011592
3087.8687984777430.131201522257002
317.97.837748044575780.0622519554242182
327.98.01081504379107-0.110815043791068
3387.929748158818650.0702518411813467
3487.901552483718570.0984475162814332
357.97.820065233311990.0799347666880124
3687.682724498681740.317275501318255
377.77.75838070752249-0.0583807075224943
387.27.35106917191095-0.151069171910950
397.57.59377658296301-0.093776582963008
407.37.358419042889-0.0584190428890049
4177.11341486023284-0.113414860232837
4276.789045968006620.210954031993382
4377.10276019274279-0.102760192742791
447.27.30059390298742-0.100593902987420
457.37.45120402586906-0.151204025869058
467.17.29171102500644-0.191711025006436
476.86.93822308710673-0.138223087106733
486.46.68719230620424-0.287192306204241
496.16.23440410866847-0.134404108668474
506.56.150270890814830.349729109185174
517.77.586591415695310.113408584304690
527.97.95907402016676-0.0590740201667619
537.57.662168249917-0.162168249916996
546.96.97972433560666-0.0797243356066566
556.66.554903486257750.0450965137422496
566.96.762264793576350.137735206423654







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1708367060275060.3416734120550130.829163293972494
200.2015166909337040.4030333818674090.798483309066295
210.1500509020508330.3001018041016660.849949097949167
220.07592135087740940.1518427017548190.92407864912259
230.04924110892021350.0984822178404270.950758891079787
240.05157327699934170.1031465539986830.948426723000658
250.0272114303778220.0544228607556440.972788569622178
260.01492082417810740.02984164835621480.985079175821893
270.1536124152896360.3072248305792720.846387584710364
280.1027399905132640.2054799810265270.897260009486736
290.07267349314753490.145346986295070.927326506852465
300.04676580897002940.09353161794005880.95323419102997
310.04268574446720380.08537148893440750.957314255532796
320.1521862213838710.3043724427677420.847813778616129
330.1000209849111610.2000419698223220.89997901508884
340.05904340179922820.1180868035984560.940956598200772
350.03411727478094870.06823454956189750.965882725219051
360.2404143793661490.4808287587322970.759585620633851
370.7524172364517760.4951655270964480.247582763548224

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.170836706027506 & 0.341673412055013 & 0.829163293972494 \tabularnewline
20 & 0.201516690933704 & 0.403033381867409 & 0.798483309066295 \tabularnewline
21 & 0.150050902050833 & 0.300101804101666 & 0.849949097949167 \tabularnewline
22 & 0.0759213508774094 & 0.151842701754819 & 0.92407864912259 \tabularnewline
23 & 0.0492411089202135 & 0.098482217840427 & 0.950758891079787 \tabularnewline
24 & 0.0515732769993417 & 0.103146553998683 & 0.948426723000658 \tabularnewline
25 & 0.027211430377822 & 0.054422860755644 & 0.972788569622178 \tabularnewline
26 & 0.0149208241781074 & 0.0298416483562148 & 0.985079175821893 \tabularnewline
27 & 0.153612415289636 & 0.307224830579272 & 0.846387584710364 \tabularnewline
28 & 0.102739990513264 & 0.205479981026527 & 0.897260009486736 \tabularnewline
29 & 0.0726734931475349 & 0.14534698629507 & 0.927326506852465 \tabularnewline
30 & 0.0467658089700294 & 0.0935316179400588 & 0.95323419102997 \tabularnewline
31 & 0.0426857444672038 & 0.0853714889344075 & 0.957314255532796 \tabularnewline
32 & 0.152186221383871 & 0.304372442767742 & 0.847813778616129 \tabularnewline
33 & 0.100020984911161 & 0.200041969822322 & 0.89997901508884 \tabularnewline
34 & 0.0590434017992282 & 0.118086803598456 & 0.940956598200772 \tabularnewline
35 & 0.0341172747809487 & 0.0682345495618975 & 0.965882725219051 \tabularnewline
36 & 0.240414379366149 & 0.480828758732297 & 0.759585620633851 \tabularnewline
37 & 0.752417236451776 & 0.495165527096448 & 0.247582763548224 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67658&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.170836706027506[/C][C]0.341673412055013[/C][C]0.829163293972494[/C][/ROW]
[ROW][C]20[/C][C]0.201516690933704[/C][C]0.403033381867409[/C][C]0.798483309066295[/C][/ROW]
[ROW][C]21[/C][C]0.150050902050833[/C][C]0.300101804101666[/C][C]0.849949097949167[/C][/ROW]
[ROW][C]22[/C][C]0.0759213508774094[/C][C]0.151842701754819[/C][C]0.92407864912259[/C][/ROW]
[ROW][C]23[/C][C]0.0492411089202135[/C][C]0.098482217840427[/C][C]0.950758891079787[/C][/ROW]
[ROW][C]24[/C][C]0.0515732769993417[/C][C]0.103146553998683[/C][C]0.948426723000658[/C][/ROW]
[ROW][C]25[/C][C]0.027211430377822[/C][C]0.054422860755644[/C][C]0.972788569622178[/C][/ROW]
[ROW][C]26[/C][C]0.0149208241781074[/C][C]0.0298416483562148[/C][C]0.985079175821893[/C][/ROW]
[ROW][C]27[/C][C]0.153612415289636[/C][C]0.307224830579272[/C][C]0.846387584710364[/C][/ROW]
[ROW][C]28[/C][C]0.102739990513264[/C][C]0.205479981026527[/C][C]0.897260009486736[/C][/ROW]
[ROW][C]29[/C][C]0.0726734931475349[/C][C]0.14534698629507[/C][C]0.927326506852465[/C][/ROW]
[ROW][C]30[/C][C]0.0467658089700294[/C][C]0.0935316179400588[/C][C]0.95323419102997[/C][/ROW]
[ROW][C]31[/C][C]0.0426857444672038[/C][C]0.0853714889344075[/C][C]0.957314255532796[/C][/ROW]
[ROW][C]32[/C][C]0.152186221383871[/C][C]0.304372442767742[/C][C]0.847813778616129[/C][/ROW]
[ROW][C]33[/C][C]0.100020984911161[/C][C]0.200041969822322[/C][C]0.89997901508884[/C][/ROW]
[ROW][C]34[/C][C]0.0590434017992282[/C][C]0.118086803598456[/C][C]0.940956598200772[/C][/ROW]
[ROW][C]35[/C][C]0.0341172747809487[/C][C]0.0682345495618975[/C][C]0.965882725219051[/C][/ROW]
[ROW][C]36[/C][C]0.240414379366149[/C][C]0.480828758732297[/C][C]0.759585620633851[/C][/ROW]
[ROW][C]37[/C][C]0.752417236451776[/C][C]0.495165527096448[/C][C]0.247582763548224[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67658&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67658&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.1708367060275060.3416734120550130.829163293972494
200.2015166909337040.4030333818674090.798483309066295
210.1500509020508330.3001018041016660.849949097949167
220.07592135087740940.1518427017548190.92407864912259
230.04924110892021350.0984822178404270.950758891079787
240.05157327699934170.1031465539986830.948426723000658
250.0272114303778220.0544228607556440.972788569622178
260.01492082417810740.02984164835621480.985079175821893
270.1536124152896360.3072248305792720.846387584710364
280.1027399905132640.2054799810265270.897260009486736
290.07267349314753490.145346986295070.927326506852465
300.04676580897002940.09353161794005880.95323419102997
310.04268574446720380.08537148893440750.957314255532796
320.1521862213838710.3043724427677420.847813778616129
330.1000209849111610.2000419698223220.89997901508884
340.05904340179922820.1180868035984560.940956598200772
350.03411727478094870.06823454956189750.965882725219051
360.2404143793661490.4808287587322970.759585620633851
370.7524172364517760.4951655270964480.247582763548224







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

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

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



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