Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 26 Nov 2009 09:36:09 -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/26/t12592535217p1ydwtdj23oitw.htm/, Retrieved Mon, 29 Apr 2024 04:02:21 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60166, Retrieved Mon, 29 Apr 2024 04:02:21 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsSeasonal Dummis
Estimated Impact226
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [WS 7: Multiple Re...] [2009-11-26 15:53:55] [b00a5c3d5f6ccb867aa9e2de58adfa61]
-   P         [Multiple Regression] [WS 7: Multiple Re...] [2009-11-26 16:36:09] [63d6214c2814604a6f6cfa44dba5912e] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.1	1.3
7.7	1.3
7.5	1.2
7.6	1.1
7.8	1.4
7.8	1.2
7.8	1.5
7.5	1.1
7.5	1.3
7.1	1.5
7.5	1.1
7.5	1.4
7.6	1.3
7.7	1.5
7.7	1.6
7.9	1.7
8.1	1.1
8.2	1.6
8.2	1.3
8.2	1.7
7.9	1.6
7.3	1.7
6.9	1.9
6.6	1.8
6.7	1.9
6.9	1.6
7.0	1.5
7.1	1.6
7.2	1.6
7.1	1.7
6.9	2.0
7.0	2.0
6.8	1.9
6.4	1.7
6.7	1.8
6.6	1.9
6.4	1.7
6.3	2.0
6.2	2.1
6.5	2.4
6.8	2.5
6.8	2.5
6.4	2.6
6.1	2.2
5.8	2.5
6.1	2.8
7.2	2.8
7.3	2.9
6.9	3.0
6.1	3.1
5.8	2.9
6.2	2.7
7.1	2.2
7.7	2.5
7.9	2.3
7.7	2.6
7.4	2.3
7.5	2.2
8.0	1.8
8.1	1.8




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60166&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] = + 8.55716459197787 -0.68222683264177X[t] -0.161867219917016M1[t] -0.320933609958506M2[t] -0.448222683264177M3[t] -0.200933609958506M4[t] + 0.0435546334716457M5[t] + 0.259066390041494M6[t] + 0.206355463347164M7[t] + 0.0527109266943289M8[t] -0.167289073305671M9[t] -0.326355463347165M10[t] -0.0145781466113415M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  8.55716459197787 -0.68222683264177X[t] -0.161867219917016M1[t] -0.320933609958506M2[t] -0.448222683264177M3[t] -0.200933609958506M4[t] +  0.0435546334716457M5[t] +  0.259066390041494M6[t] +  0.206355463347164M7[t] +  0.0527109266943289M8[t] -0.167289073305671M9[t] -0.326355463347165M10[t] -0.0145781466113415M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60166&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  8.55716459197787 -0.68222683264177X[t] -0.161867219917016M1[t] -0.320933609958506M2[t] -0.448222683264177M3[t] -0.200933609958506M4[t] +  0.0435546334716457M5[t] +  0.259066390041494M6[t] +  0.206355463347164M7[t] +  0.0527109266943289M8[t] -0.167289073305671M9[t] -0.326355463347165M10[t] -0.0145781466113415M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60166&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60166&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] = + 8.55716459197787 -0.68222683264177X[t] -0.161867219917016M1[t] -0.320933609958506M2[t] -0.448222683264177M3[t] -0.200933609958506M4[t] + 0.0435546334716457M5[t] + 0.259066390041494M6[t] + 0.206355463347164M7[t] + 0.0527109266943289M8[t] -0.167289073305671M9[t] -0.326355463347165M10[t] -0.0145781466113415M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.557164591977870.36559623.406100
X-0.682226832641770.135202-5.0467e-064e-06
M1-0.1618672199170160.356564-0.4540.6519440.325972
M2-0.3209336099585060.356287-0.90080.3723020.186151
M3-0.4482226832641770.356452-1.25750.21480.1074
M4-0.2009336099585060.356287-0.5640.5754590.28773
M50.04355463347164570.357220.12190.9034770.451738
M60.2590663900414940.3562870.72710.4707540.235377
M70.2063554633471640.3562050.57930.5651420.282571
M80.05271092669432890.3562360.1480.8830020.441501
M9-0.1672890733056710.356236-0.46960.6408110.320406
M10-0.3263554633471650.356205-0.91620.3642390.182119
M11-0.01457814661134150.356359-0.04090.9675420.483771

\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) & 8.55716459197787 & 0.365596 & 23.4061 & 0 & 0 \tabularnewline
X & -0.68222683264177 & 0.135202 & -5.046 & 7e-06 & 4e-06 \tabularnewline
M1 & -0.161867219917016 & 0.356564 & -0.454 & 0.651944 & 0.325972 \tabularnewline
M2 & -0.320933609958506 & 0.356287 & -0.9008 & 0.372302 & 0.186151 \tabularnewline
M3 & -0.448222683264177 & 0.356452 & -1.2575 & 0.2148 & 0.1074 \tabularnewline
M4 & -0.200933609958506 & 0.356287 & -0.564 & 0.575459 & 0.28773 \tabularnewline
M5 & 0.0435546334716457 & 0.35722 & 0.1219 & 0.903477 & 0.451738 \tabularnewline
M6 & 0.259066390041494 & 0.356287 & 0.7271 & 0.470754 & 0.235377 \tabularnewline
M7 & 0.206355463347164 & 0.356205 & 0.5793 & 0.565142 & 0.282571 \tabularnewline
M8 & 0.0527109266943289 & 0.356236 & 0.148 & 0.883002 & 0.441501 \tabularnewline
M9 & -0.167289073305671 & 0.356236 & -0.4696 & 0.640811 & 0.320406 \tabularnewline
M10 & -0.326355463347165 & 0.356205 & -0.9162 & 0.364239 & 0.182119 \tabularnewline
M11 & -0.0145781466113415 & 0.356359 & -0.0409 & 0.967542 & 0.483771 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60166&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]8.55716459197787[/C][C]0.365596[/C][C]23.4061[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.68222683264177[/C][C]0.135202[/C][C]-5.046[/C][C]7e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M1[/C][C]-0.161867219917016[/C][C]0.356564[/C][C]-0.454[/C][C]0.651944[/C][C]0.325972[/C][/ROW]
[ROW][C]M2[/C][C]-0.320933609958506[/C][C]0.356287[/C][C]-0.9008[/C][C]0.372302[/C][C]0.186151[/C][/ROW]
[ROW][C]M3[/C][C]-0.448222683264177[/C][C]0.356452[/C][C]-1.2575[/C][C]0.2148[/C][C]0.1074[/C][/ROW]
[ROW][C]M4[/C][C]-0.200933609958506[/C][C]0.356287[/C][C]-0.564[/C][C]0.575459[/C][C]0.28773[/C][/ROW]
[ROW][C]M5[/C][C]0.0435546334716457[/C][C]0.35722[/C][C]0.1219[/C][C]0.903477[/C][C]0.451738[/C][/ROW]
[ROW][C]M6[/C][C]0.259066390041494[/C][C]0.356287[/C][C]0.7271[/C][C]0.470754[/C][C]0.235377[/C][/ROW]
[ROW][C]M7[/C][C]0.206355463347164[/C][C]0.356205[/C][C]0.5793[/C][C]0.565142[/C][C]0.282571[/C][/ROW]
[ROW][C]M8[/C][C]0.0527109266943289[/C][C]0.356236[/C][C]0.148[/C][C]0.883002[/C][C]0.441501[/C][/ROW]
[ROW][C]M9[/C][C]-0.167289073305671[/C][C]0.356236[/C][C]-0.4696[/C][C]0.640811[/C][C]0.320406[/C][/ROW]
[ROW][C]M10[/C][C]-0.326355463347165[/C][C]0.356205[/C][C]-0.9162[/C][C]0.364239[/C][C]0.182119[/C][/ROW]
[ROW][C]M11[/C][C]-0.0145781466113415[/C][C]0.356359[/C][C]-0.0409[/C][C]0.967542[/C][C]0.483771[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60166&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60166&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)8.557164591977870.36559623.406100
X-0.682226832641770.135202-5.0467e-064e-06
M1-0.1618672199170160.356564-0.4540.6519440.325972
M2-0.3209336099585060.356287-0.90080.3723020.186151
M3-0.4482226832641770.356452-1.25750.21480.1074
M4-0.2009336099585060.356287-0.5640.5754590.28773
M50.04355463347164570.357220.12190.9034770.451738
M60.2590663900414940.3562870.72710.4707540.235377
M70.2063554633471640.3562050.57930.5651420.282571
M80.05271092669432890.3562360.1480.8830020.441501
M9-0.1672890733056710.356236-0.46960.6408110.320406
M10-0.3263554633471650.356205-0.91620.3642390.182119
M11-0.01457814661134150.356359-0.04090.9675420.483771







Multiple Linear Regression - Regression Statistics
Multiple R0.647973621712503
R-squared0.419869814435218
Adjusted R-squared0.271751469184636
F-TEST (value)2.83469150107567
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.00529516321303269
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.563193756674525
Sum Squared Residuals14.9077987551867

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.647973621712503 \tabularnewline
R-squared & 0.419869814435218 \tabularnewline
Adjusted R-squared & 0.271751469184636 \tabularnewline
F-TEST (value) & 2.83469150107567 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.00529516321303269 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.563193756674525 \tabularnewline
Sum Squared Residuals & 14.9077987551867 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60166&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.647973621712503[/C][/ROW]
[ROW][C]R-squared[/C][C]0.419869814435218[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.271751469184636[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.83469150107567[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.00529516321303269[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.563193756674525[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]14.9077987551867[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60166&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60166&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.647973621712503
R-squared0.419869814435218
Adjusted R-squared0.271751469184636
F-TEST (value)2.83469150107567
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.00529516321303269
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.563193756674525
Sum Squared Residuals14.9077987551867







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.17.508402489626570.591597510373431
27.77.349336099585060.350663900414938
37.57.290269709543570.209730290456432
47.67.60578146611342-0.00578146611341634
57.87.645601659751040.154398340248963
67.87.99755878284924-0.197558782849239
77.87.740179806362380.0598201936376213
87.57.85942600276625-0.359426002766251
97.57.5029806362379-0.00298063623789704
107.17.20746887966805-0.107468879668050
117.57.79213692946058-0.292136929460580
127.57.60204702627939-0.102047026279391
137.67.508402489626550.0915975103734475
147.77.212890733056710.487109266943292
157.77.017378976486860.68262102351314
167.97.196445366528350.703554633471647
178.17.850269709543570.249730290456432
188.27.724668049792530.475331950207469
198.27.876625172890730.323374827109267
208.27.450089903181190.74991009681881
217.97.298312586445370.601687413554634
227.37.07102351313970.228976486860305
236.97.24635546334716-0.346355463347164
246.67.32915629322268-0.729156293222683
256.77.09906639004149-0.39906639004149
266.97.14466804979253-0.244668049792531
2777.08560165975104-0.0856016597510371
287.17.26466804979253-0.164668049792531
297.27.50915629322268-0.309156293222683
307.17.65644536652835-0.556445366528354
316.97.3990663900415-0.499066390041494
3277.24542185338866-0.245421853388658
336.87.09364453665284-0.293644536652836
346.47.0710235131397-0.671023513139695
356.77.31457814661134-0.614578146611341
366.67.2609336099585-0.660933609958506
376.47.23551175656984-0.835511756569844
386.36.87177731673582-0.571777316735823
396.26.67626556016597-0.476265560165975
406.56.71888658367912-0.218886583679115
416.86.89515214384509-0.0951521438450902
426.87.11066390041494-0.310663900414938
436.46.98973029045643-0.589730290456431
446.17.1089764868603-1.00897648686030
455.86.68430843706777-0.884308437067774
466.16.32057399723375-0.220573997233749
477.26.632351313969570.567648686030428
487.36.578706777316740.721293222683264
496.96.348616874135540.551383125864457
506.16.12132780082988-0.0213278008298763
515.86.13048409405256-0.330484094052560
526.26.51421853388658-0.314218533886584
537.17.099820193637620.000179806362378812
547.77.110663900414940.589336099585062
557.97.194398340248960.705601659751037
567.76.83608575380360.863914246196404
577.46.820753803596130.579246196403873
587.56.729910096818810.77008990318119
5987.314578146611340.685421853388658
608.17.329156293222680.770843706777317

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.1 & 7.50840248962657 & 0.591597510373431 \tabularnewline
2 & 7.7 & 7.34933609958506 & 0.350663900414938 \tabularnewline
3 & 7.5 & 7.29026970954357 & 0.209730290456432 \tabularnewline
4 & 7.6 & 7.60578146611342 & -0.00578146611341634 \tabularnewline
5 & 7.8 & 7.64560165975104 & 0.154398340248963 \tabularnewline
6 & 7.8 & 7.99755878284924 & -0.197558782849239 \tabularnewline
7 & 7.8 & 7.74017980636238 & 0.0598201936376213 \tabularnewline
8 & 7.5 & 7.85942600276625 & -0.359426002766251 \tabularnewline
9 & 7.5 & 7.5029806362379 & -0.00298063623789704 \tabularnewline
10 & 7.1 & 7.20746887966805 & -0.107468879668050 \tabularnewline
11 & 7.5 & 7.79213692946058 & -0.292136929460580 \tabularnewline
12 & 7.5 & 7.60204702627939 & -0.102047026279391 \tabularnewline
13 & 7.6 & 7.50840248962655 & 0.0915975103734475 \tabularnewline
14 & 7.7 & 7.21289073305671 & 0.487109266943292 \tabularnewline
15 & 7.7 & 7.01737897648686 & 0.68262102351314 \tabularnewline
16 & 7.9 & 7.19644536652835 & 0.703554633471647 \tabularnewline
17 & 8.1 & 7.85026970954357 & 0.249730290456432 \tabularnewline
18 & 8.2 & 7.72466804979253 & 0.475331950207469 \tabularnewline
19 & 8.2 & 7.87662517289073 & 0.323374827109267 \tabularnewline
20 & 8.2 & 7.45008990318119 & 0.74991009681881 \tabularnewline
21 & 7.9 & 7.29831258644537 & 0.601687413554634 \tabularnewline
22 & 7.3 & 7.0710235131397 & 0.228976486860305 \tabularnewline
23 & 6.9 & 7.24635546334716 & -0.346355463347164 \tabularnewline
24 & 6.6 & 7.32915629322268 & -0.729156293222683 \tabularnewline
25 & 6.7 & 7.09906639004149 & -0.39906639004149 \tabularnewline
26 & 6.9 & 7.14466804979253 & -0.244668049792531 \tabularnewline
27 & 7 & 7.08560165975104 & -0.0856016597510371 \tabularnewline
28 & 7.1 & 7.26466804979253 & -0.164668049792531 \tabularnewline
29 & 7.2 & 7.50915629322268 & -0.309156293222683 \tabularnewline
30 & 7.1 & 7.65644536652835 & -0.556445366528354 \tabularnewline
31 & 6.9 & 7.3990663900415 & -0.499066390041494 \tabularnewline
32 & 7 & 7.24542185338866 & -0.245421853388658 \tabularnewline
33 & 6.8 & 7.09364453665284 & -0.293644536652836 \tabularnewline
34 & 6.4 & 7.0710235131397 & -0.671023513139695 \tabularnewline
35 & 6.7 & 7.31457814661134 & -0.614578146611341 \tabularnewline
36 & 6.6 & 7.2609336099585 & -0.660933609958506 \tabularnewline
37 & 6.4 & 7.23551175656984 & -0.835511756569844 \tabularnewline
38 & 6.3 & 6.87177731673582 & -0.571777316735823 \tabularnewline
39 & 6.2 & 6.67626556016597 & -0.476265560165975 \tabularnewline
40 & 6.5 & 6.71888658367912 & -0.218886583679115 \tabularnewline
41 & 6.8 & 6.89515214384509 & -0.0951521438450902 \tabularnewline
42 & 6.8 & 7.11066390041494 & -0.310663900414938 \tabularnewline
43 & 6.4 & 6.98973029045643 & -0.589730290456431 \tabularnewline
44 & 6.1 & 7.1089764868603 & -1.00897648686030 \tabularnewline
45 & 5.8 & 6.68430843706777 & -0.884308437067774 \tabularnewline
46 & 6.1 & 6.32057399723375 & -0.220573997233749 \tabularnewline
47 & 7.2 & 6.63235131396957 & 0.567648686030428 \tabularnewline
48 & 7.3 & 6.57870677731674 & 0.721293222683264 \tabularnewline
49 & 6.9 & 6.34861687413554 & 0.551383125864457 \tabularnewline
50 & 6.1 & 6.12132780082988 & -0.0213278008298763 \tabularnewline
51 & 5.8 & 6.13048409405256 & -0.330484094052560 \tabularnewline
52 & 6.2 & 6.51421853388658 & -0.314218533886584 \tabularnewline
53 & 7.1 & 7.09982019363762 & 0.000179806362378812 \tabularnewline
54 & 7.7 & 7.11066390041494 & 0.589336099585062 \tabularnewline
55 & 7.9 & 7.19439834024896 & 0.705601659751037 \tabularnewline
56 & 7.7 & 6.8360857538036 & 0.863914246196404 \tabularnewline
57 & 7.4 & 6.82075380359613 & 0.579246196403873 \tabularnewline
58 & 7.5 & 6.72991009681881 & 0.77008990318119 \tabularnewline
59 & 8 & 7.31457814661134 & 0.685421853388658 \tabularnewline
60 & 8.1 & 7.32915629322268 & 0.770843706777317 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60166&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]8.1[/C][C]7.50840248962657[/C][C]0.591597510373431[/C][/ROW]
[ROW][C]2[/C][C]7.7[/C][C]7.34933609958506[/C][C]0.350663900414938[/C][/ROW]
[ROW][C]3[/C][C]7.5[/C][C]7.29026970954357[/C][C]0.209730290456432[/C][/ROW]
[ROW][C]4[/C][C]7.6[/C][C]7.60578146611342[/C][C]-0.00578146611341634[/C][/ROW]
[ROW][C]5[/C][C]7.8[/C][C]7.64560165975104[/C][C]0.154398340248963[/C][/ROW]
[ROW][C]6[/C][C]7.8[/C][C]7.99755878284924[/C][C]-0.197558782849239[/C][/ROW]
[ROW][C]7[/C][C]7.8[/C][C]7.74017980636238[/C][C]0.0598201936376213[/C][/ROW]
[ROW][C]8[/C][C]7.5[/C][C]7.85942600276625[/C][C]-0.359426002766251[/C][/ROW]
[ROW][C]9[/C][C]7.5[/C][C]7.5029806362379[/C][C]-0.00298063623789704[/C][/ROW]
[ROW][C]10[/C][C]7.1[/C][C]7.20746887966805[/C][C]-0.107468879668050[/C][/ROW]
[ROW][C]11[/C][C]7.5[/C][C]7.79213692946058[/C][C]-0.292136929460580[/C][/ROW]
[ROW][C]12[/C][C]7.5[/C][C]7.60204702627939[/C][C]-0.102047026279391[/C][/ROW]
[ROW][C]13[/C][C]7.6[/C][C]7.50840248962655[/C][C]0.0915975103734475[/C][/ROW]
[ROW][C]14[/C][C]7.7[/C][C]7.21289073305671[/C][C]0.487109266943292[/C][/ROW]
[ROW][C]15[/C][C]7.7[/C][C]7.01737897648686[/C][C]0.68262102351314[/C][/ROW]
[ROW][C]16[/C][C]7.9[/C][C]7.19644536652835[/C][C]0.703554633471647[/C][/ROW]
[ROW][C]17[/C][C]8.1[/C][C]7.85026970954357[/C][C]0.249730290456432[/C][/ROW]
[ROW][C]18[/C][C]8.2[/C][C]7.72466804979253[/C][C]0.475331950207469[/C][/ROW]
[ROW][C]19[/C][C]8.2[/C][C]7.87662517289073[/C][C]0.323374827109267[/C][/ROW]
[ROW][C]20[/C][C]8.2[/C][C]7.45008990318119[/C][C]0.74991009681881[/C][/ROW]
[ROW][C]21[/C][C]7.9[/C][C]7.29831258644537[/C][C]0.601687413554634[/C][/ROW]
[ROW][C]22[/C][C]7.3[/C][C]7.0710235131397[/C][C]0.228976486860305[/C][/ROW]
[ROW][C]23[/C][C]6.9[/C][C]7.24635546334716[/C][C]-0.346355463347164[/C][/ROW]
[ROW][C]24[/C][C]6.6[/C][C]7.32915629322268[/C][C]-0.729156293222683[/C][/ROW]
[ROW][C]25[/C][C]6.7[/C][C]7.09906639004149[/C][C]-0.39906639004149[/C][/ROW]
[ROW][C]26[/C][C]6.9[/C][C]7.14466804979253[/C][C]-0.244668049792531[/C][/ROW]
[ROW][C]27[/C][C]7[/C][C]7.08560165975104[/C][C]-0.0856016597510371[/C][/ROW]
[ROW][C]28[/C][C]7.1[/C][C]7.26466804979253[/C][C]-0.164668049792531[/C][/ROW]
[ROW][C]29[/C][C]7.2[/C][C]7.50915629322268[/C][C]-0.309156293222683[/C][/ROW]
[ROW][C]30[/C][C]7.1[/C][C]7.65644536652835[/C][C]-0.556445366528354[/C][/ROW]
[ROW][C]31[/C][C]6.9[/C][C]7.3990663900415[/C][C]-0.499066390041494[/C][/ROW]
[ROW][C]32[/C][C]7[/C][C]7.24542185338866[/C][C]-0.245421853388658[/C][/ROW]
[ROW][C]33[/C][C]6.8[/C][C]7.09364453665284[/C][C]-0.293644536652836[/C][/ROW]
[ROW][C]34[/C][C]6.4[/C][C]7.0710235131397[/C][C]-0.671023513139695[/C][/ROW]
[ROW][C]35[/C][C]6.7[/C][C]7.31457814661134[/C][C]-0.614578146611341[/C][/ROW]
[ROW][C]36[/C][C]6.6[/C][C]7.2609336099585[/C][C]-0.660933609958506[/C][/ROW]
[ROW][C]37[/C][C]6.4[/C][C]7.23551175656984[/C][C]-0.835511756569844[/C][/ROW]
[ROW][C]38[/C][C]6.3[/C][C]6.87177731673582[/C][C]-0.571777316735823[/C][/ROW]
[ROW][C]39[/C][C]6.2[/C][C]6.67626556016597[/C][C]-0.476265560165975[/C][/ROW]
[ROW][C]40[/C][C]6.5[/C][C]6.71888658367912[/C][C]-0.218886583679115[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]6.89515214384509[/C][C]-0.0951521438450902[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]7.11066390041494[/C][C]-0.310663900414938[/C][/ROW]
[ROW][C]43[/C][C]6.4[/C][C]6.98973029045643[/C][C]-0.589730290456431[/C][/ROW]
[ROW][C]44[/C][C]6.1[/C][C]7.1089764868603[/C][C]-1.00897648686030[/C][/ROW]
[ROW][C]45[/C][C]5.8[/C][C]6.68430843706777[/C][C]-0.884308437067774[/C][/ROW]
[ROW][C]46[/C][C]6.1[/C][C]6.32057399723375[/C][C]-0.220573997233749[/C][/ROW]
[ROW][C]47[/C][C]7.2[/C][C]6.63235131396957[/C][C]0.567648686030428[/C][/ROW]
[ROW][C]48[/C][C]7.3[/C][C]6.57870677731674[/C][C]0.721293222683264[/C][/ROW]
[ROW][C]49[/C][C]6.9[/C][C]6.34861687413554[/C][C]0.551383125864457[/C][/ROW]
[ROW][C]50[/C][C]6.1[/C][C]6.12132780082988[/C][C]-0.0213278008298763[/C][/ROW]
[ROW][C]51[/C][C]5.8[/C][C]6.13048409405256[/C][C]-0.330484094052560[/C][/ROW]
[ROW][C]52[/C][C]6.2[/C][C]6.51421853388658[/C][C]-0.314218533886584[/C][/ROW]
[ROW][C]53[/C][C]7.1[/C][C]7.09982019363762[/C][C]0.000179806362378812[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]7.11066390041494[/C][C]0.589336099585062[/C][/ROW]
[ROW][C]55[/C][C]7.9[/C][C]7.19439834024896[/C][C]0.705601659751037[/C][/ROW]
[ROW][C]56[/C][C]7.7[/C][C]6.8360857538036[/C][C]0.863914246196404[/C][/ROW]
[ROW][C]57[/C][C]7.4[/C][C]6.82075380359613[/C][C]0.579246196403873[/C][/ROW]
[ROW][C]58[/C][C]7.5[/C][C]6.72991009681881[/C][C]0.77008990318119[/C][/ROW]
[ROW][C]59[/C][C]8[/C][C]7.31457814661134[/C][C]0.685421853388658[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]7.32915629322268[/C][C]0.770843706777317[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60166&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60166&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
18.17.508402489626570.591597510373431
27.77.349336099585060.350663900414938
37.57.290269709543570.209730290456432
47.67.60578146611342-0.00578146611341634
57.87.645601659751040.154398340248963
67.87.99755878284924-0.197558782849239
77.87.740179806362380.0598201936376213
87.57.85942600276625-0.359426002766251
97.57.5029806362379-0.00298063623789704
107.17.20746887966805-0.107468879668050
117.57.79213692946058-0.292136929460580
127.57.60204702627939-0.102047026279391
137.67.508402489626550.0915975103734475
147.77.212890733056710.487109266943292
157.77.017378976486860.68262102351314
167.97.196445366528350.703554633471647
178.17.850269709543570.249730290456432
188.27.724668049792530.475331950207469
198.27.876625172890730.323374827109267
208.27.450089903181190.74991009681881
217.97.298312586445370.601687413554634
227.37.07102351313970.228976486860305
236.97.24635546334716-0.346355463347164
246.67.32915629322268-0.729156293222683
256.77.09906639004149-0.39906639004149
266.97.14466804979253-0.244668049792531
2777.08560165975104-0.0856016597510371
287.17.26466804979253-0.164668049792531
297.27.50915629322268-0.309156293222683
307.17.65644536652835-0.556445366528354
316.97.3990663900415-0.499066390041494
3277.24542185338866-0.245421853388658
336.87.09364453665284-0.293644536652836
346.47.0710235131397-0.671023513139695
356.77.31457814661134-0.614578146611341
366.67.2609336099585-0.660933609958506
376.47.23551175656984-0.835511756569844
386.36.87177731673582-0.571777316735823
396.26.67626556016597-0.476265560165975
406.56.71888658367912-0.218886583679115
416.86.89515214384509-0.0951521438450902
426.87.11066390041494-0.310663900414938
436.46.98973029045643-0.589730290456431
446.17.1089764868603-1.00897648686030
455.86.68430843706777-0.884308437067774
466.16.32057399723375-0.220573997233749
477.26.632351313969570.567648686030428
487.36.578706777316740.721293222683264
496.96.348616874135540.551383125864457
506.16.12132780082988-0.0213278008298763
515.86.13048409405256-0.330484094052560
526.26.51421853388658-0.314218533886584
537.17.099820193637620.000179806362378812
547.77.110663900414940.589336099585062
557.97.194398340248960.705601659751037
567.76.83608575380360.863914246196404
577.46.820753803596130.579246196403873
587.56.729910096818810.77008990318119
5987.314578146611340.685421853388658
608.17.329156293222680.770843706777317







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.04851429831657550.09702859663315090.951485701683425
170.03308734358017270.06617468716034550.966912656419827
180.01523425141992360.03046850283984730.984765748580076
190.01341880152010410.02683760304020810.986581198479896
200.01176410046948380.02352820093896760.988235899530516
210.006800123484437460.01360024696887490.993199876515563
220.002705875040640890.005411750081281770.99729412495936
230.01167415098588680.02334830197177350.988325849014113
240.03090541209820480.06181082419640960.969094587901795
250.07694531334870940.1538906266974190.92305468665129
260.0821811636728380.1643623273456760.917818836327162
270.07921767183417450.1584353436683490.920782328165826
280.07131521893261250.1426304378652250.928684781067387
290.05693546373894860.1138709274778970.943064536261051
300.05246541167622580.1049308233524520.947534588323774
310.04418011731626160.08836023463252310.955819882683738
320.02758448313316290.05516896626632590.972415516866837
330.01846949652819910.03693899305639820.9815305034718
340.01694026311671680.03388052623343360.983059736883283
350.01553940019393120.03107880038786240.984460599806069
360.02032396742592290.04064793485184570.979676032574077
370.03803444662794240.07606889325588480.961965553372058
380.03109470137148620.06218940274297230.968905298628514
390.01920257567356740.03840515134713470.980797424326433
400.009542213539989280.01908442707997860.99045778646001
410.004981480216801040.009962960433602080.995018519783199
420.003631844123601110.007263688247202220.996368155876399
430.004457727741816180.008915455483632360.995542272258184
440.0816525404139840.1633050808279680.918347459586016

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0485142983165755 & 0.0970285966331509 & 0.951485701683425 \tabularnewline
17 & 0.0330873435801727 & 0.0661746871603455 & 0.966912656419827 \tabularnewline
18 & 0.0152342514199236 & 0.0304685028398473 & 0.984765748580076 \tabularnewline
19 & 0.0134188015201041 & 0.0268376030402081 & 0.986581198479896 \tabularnewline
20 & 0.0117641004694838 & 0.0235282009389676 & 0.988235899530516 \tabularnewline
21 & 0.00680012348443746 & 0.0136002469688749 & 0.993199876515563 \tabularnewline
22 & 0.00270587504064089 & 0.00541175008128177 & 0.99729412495936 \tabularnewline
23 & 0.0116741509858868 & 0.0233483019717735 & 0.988325849014113 \tabularnewline
24 & 0.0309054120982048 & 0.0618108241964096 & 0.969094587901795 \tabularnewline
25 & 0.0769453133487094 & 0.153890626697419 & 0.92305468665129 \tabularnewline
26 & 0.082181163672838 & 0.164362327345676 & 0.917818836327162 \tabularnewline
27 & 0.0792176718341745 & 0.158435343668349 & 0.920782328165826 \tabularnewline
28 & 0.0713152189326125 & 0.142630437865225 & 0.928684781067387 \tabularnewline
29 & 0.0569354637389486 & 0.113870927477897 & 0.943064536261051 \tabularnewline
30 & 0.0524654116762258 & 0.104930823352452 & 0.947534588323774 \tabularnewline
31 & 0.0441801173162616 & 0.0883602346325231 & 0.955819882683738 \tabularnewline
32 & 0.0275844831331629 & 0.0551689662663259 & 0.972415516866837 \tabularnewline
33 & 0.0184694965281991 & 0.0369389930563982 & 0.9815305034718 \tabularnewline
34 & 0.0169402631167168 & 0.0338805262334336 & 0.983059736883283 \tabularnewline
35 & 0.0155394001939312 & 0.0310788003878624 & 0.984460599806069 \tabularnewline
36 & 0.0203239674259229 & 0.0406479348518457 & 0.979676032574077 \tabularnewline
37 & 0.0380344466279424 & 0.0760688932558848 & 0.961965553372058 \tabularnewline
38 & 0.0310947013714862 & 0.0621894027429723 & 0.968905298628514 \tabularnewline
39 & 0.0192025756735674 & 0.0384051513471347 & 0.980797424326433 \tabularnewline
40 & 0.00954221353998928 & 0.0190844270799786 & 0.99045778646001 \tabularnewline
41 & 0.00498148021680104 & 0.00996296043360208 & 0.995018519783199 \tabularnewline
42 & 0.00363184412360111 & 0.00726368824720222 & 0.996368155876399 \tabularnewline
43 & 0.00445772774181618 & 0.00891545548363236 & 0.995542272258184 \tabularnewline
44 & 0.081652540413984 & 0.163305080827968 & 0.918347459586016 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60166&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]16[/C][C]0.0485142983165755[/C][C]0.0970285966331509[/C][C]0.951485701683425[/C][/ROW]
[ROW][C]17[/C][C]0.0330873435801727[/C][C]0.0661746871603455[/C][C]0.966912656419827[/C][/ROW]
[ROW][C]18[/C][C]0.0152342514199236[/C][C]0.0304685028398473[/C][C]0.984765748580076[/C][/ROW]
[ROW][C]19[/C][C]0.0134188015201041[/C][C]0.0268376030402081[/C][C]0.986581198479896[/C][/ROW]
[ROW][C]20[/C][C]0.0117641004694838[/C][C]0.0235282009389676[/C][C]0.988235899530516[/C][/ROW]
[ROW][C]21[/C][C]0.00680012348443746[/C][C]0.0136002469688749[/C][C]0.993199876515563[/C][/ROW]
[ROW][C]22[/C][C]0.00270587504064089[/C][C]0.00541175008128177[/C][C]0.99729412495936[/C][/ROW]
[ROW][C]23[/C][C]0.0116741509858868[/C][C]0.0233483019717735[/C][C]0.988325849014113[/C][/ROW]
[ROW][C]24[/C][C]0.0309054120982048[/C][C]0.0618108241964096[/C][C]0.969094587901795[/C][/ROW]
[ROW][C]25[/C][C]0.0769453133487094[/C][C]0.153890626697419[/C][C]0.92305468665129[/C][/ROW]
[ROW][C]26[/C][C]0.082181163672838[/C][C]0.164362327345676[/C][C]0.917818836327162[/C][/ROW]
[ROW][C]27[/C][C]0.0792176718341745[/C][C]0.158435343668349[/C][C]0.920782328165826[/C][/ROW]
[ROW][C]28[/C][C]0.0713152189326125[/C][C]0.142630437865225[/C][C]0.928684781067387[/C][/ROW]
[ROW][C]29[/C][C]0.0569354637389486[/C][C]0.113870927477897[/C][C]0.943064536261051[/C][/ROW]
[ROW][C]30[/C][C]0.0524654116762258[/C][C]0.104930823352452[/C][C]0.947534588323774[/C][/ROW]
[ROW][C]31[/C][C]0.0441801173162616[/C][C]0.0883602346325231[/C][C]0.955819882683738[/C][/ROW]
[ROW][C]32[/C][C]0.0275844831331629[/C][C]0.0551689662663259[/C][C]0.972415516866837[/C][/ROW]
[ROW][C]33[/C][C]0.0184694965281991[/C][C]0.0369389930563982[/C][C]0.9815305034718[/C][/ROW]
[ROW][C]34[/C][C]0.0169402631167168[/C][C]0.0338805262334336[/C][C]0.983059736883283[/C][/ROW]
[ROW][C]35[/C][C]0.0155394001939312[/C][C]0.0310788003878624[/C][C]0.984460599806069[/C][/ROW]
[ROW][C]36[/C][C]0.0203239674259229[/C][C]0.0406479348518457[/C][C]0.979676032574077[/C][/ROW]
[ROW][C]37[/C][C]0.0380344466279424[/C][C]0.0760688932558848[/C][C]0.961965553372058[/C][/ROW]
[ROW][C]38[/C][C]0.0310947013714862[/C][C]0.0621894027429723[/C][C]0.968905298628514[/C][/ROW]
[ROW][C]39[/C][C]0.0192025756735674[/C][C]0.0384051513471347[/C][C]0.980797424326433[/C][/ROW]
[ROW][C]40[/C][C]0.00954221353998928[/C][C]0.0190844270799786[/C][C]0.99045778646001[/C][/ROW]
[ROW][C]41[/C][C]0.00498148021680104[/C][C]0.00996296043360208[/C][C]0.995018519783199[/C][/ROW]
[ROW][C]42[/C][C]0.00363184412360111[/C][C]0.00726368824720222[/C][C]0.996368155876399[/C][/ROW]
[ROW][C]43[/C][C]0.00445772774181618[/C][C]0.00891545548363236[/C][C]0.995542272258184[/C][/ROW]
[ROW][C]44[/C][C]0.081652540413984[/C][C]0.163305080827968[/C][C]0.918347459586016[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60166&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60166&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
160.04851429831657550.09702859663315090.951485701683425
170.03308734358017270.06617468716034550.966912656419827
180.01523425141992360.03046850283984730.984765748580076
190.01341880152010410.02683760304020810.986581198479896
200.01176410046948380.02352820093896760.988235899530516
210.006800123484437460.01360024696887490.993199876515563
220.002705875040640890.005411750081281770.99729412495936
230.01167415098588680.02334830197177350.988325849014113
240.03090541209820480.06181082419640960.969094587901795
250.07694531334870940.1538906266974190.92305468665129
260.0821811636728380.1643623273456760.917818836327162
270.07921767183417450.1584353436683490.920782328165826
280.07131521893261250.1426304378652250.928684781067387
290.05693546373894860.1138709274778970.943064536261051
300.05246541167622580.1049308233524520.947534588323774
310.04418011731626160.08836023463252310.955819882683738
320.02758448313316290.05516896626632590.972415516866837
330.01846949652819910.03693899305639820.9815305034718
340.01694026311671680.03388052623343360.983059736883283
350.01553940019393120.03107880038786240.984460599806069
360.02032396742592290.04064793485184570.979676032574077
370.03803444662794240.07606889325588480.961965553372058
380.03109470137148620.06218940274297230.968905298628514
390.01920257567356740.03840515134713470.980797424326433
400.009542213539989280.01908442707997860.99045778646001
410.004981480216801040.009962960433602080.995018519783199
420.003631844123601110.007263688247202220.996368155876399
430.004457727741816180.008915455483632360.995542272258184
440.0816525404139840.1633050808279680.918347459586016







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.137931034482759NOK
5% type I error level150.517241379310345NOK
10% type I error level220.758620689655172NOK

\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 & 4 & 0.137931034482759 & NOK \tabularnewline
5% type I error level & 15 & 0.517241379310345 & NOK \tabularnewline
10% type I error level & 22 & 0.758620689655172 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60166&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]4[/C][C]0.137931034482759[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]15[/C][C]0.517241379310345[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]22[/C][C]0.758620689655172[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60166&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60166&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 level40.137931034482759NOK
5% type I error level150.517241379310345NOK
10% type I error level220.758620689655172NOK



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