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 11:21:11 -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/t1259259867n1ytaddg16j1e5p.htm/, Retrieved Sun, 28 Apr 2024 22:58:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60230, Retrieved Sun, 28 Apr 2024 22:58:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords2 lags
Estimated Impact110
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] [WS 7: Multiple Re...] [2009-11-26 18:21:11] [63d6214c2814604a6f6cfa44dba5912e] [Current]
-    D        [Multiple Regression] [WS 7: Multiple Re...] [2009-11-26 18:26:06] [b00a5c3d5f6ccb867aa9e2de58adfa61]
-    D          [Multiple Regression] [WS 7: Multiple Re...] [2009-11-26 18:29:20] [b00a5c3d5f6ccb867aa9e2de58adfa61]
Feedback Forum

Post a new message
Dataseries X:
7.5	9.2	7.7	8.1
7.6	9.2	7.5	7.7
7.8	9.5	7.6	7.5
7.8	9.6	7.8	7.6
7.8	9.5	7.8	7.8
7.5	9.1	7.8	7.8
7.5	8.9	7.5	7.8
7.1	9	7.5	7.5
7.5	10.1	7.1	7.5
7.5	10.3	7.5	7.1
7.6	10.2	7.5	7.5
7.7	9.6	7.6	7.5
7.7	9.2	7.7	7.6
7.9	9.3	7.7	7.7
8.1	9.4	7.9	7.7
8.2	9.4	8.1	7.9
8.2	9.2	8.2	8.1
8.2	9	8.2	8.2
7.9	9	8.2	8.2
7.3	9	7.9	8.2
6.9	9.8	7.3	7.9
6.6	10	6.9	7.3
6.7	9.8	6.6	6.9
6.9	9.3	6.7	6.6
7	9	6.9	6.7
7.1	9	7	6.9
7.2	9.1	7.1	7
7.1	9.1	7.2	7.1
6.9	9.1	7.1	7.2
7	9.2	6.9	7.1
6.8	8.8	7	6.9
6.4	8.3	6.8	7
6.7	8.4	6.4	6.8
6.6	8.1	6.7	6.4
6.4	7.7	6.6	6.7
6.3	7.9	6.4	6.6
6.2	7.9	6.3	6.4
6.5	8	6.2	6.3
6.8	7.9	6.5	6.2
6.8	7.6	6.8	6.5
6.4	7.1	6.8	6.8
6.1	6.8	6.4	6.8
5.8	6.5	6.1	6.4
6.1	6.9	5.8	6.1
7.2	8.2	6.1	5.8
7.3	8.7	7.2	6.1
6.9	8.3	7.3	7.2
6.1	7.9	6.9	7.3
5.8	7.5	6.1	6.9
6.2	7.8	5.8	6.1
7.1	8.3	6.2	5.8
7.7	8.4	7.1	6.2
7.9	8.2	7.7	7.1
7.7	7.7	7.9	7.7
7.4	7.2	7.7	7.9
7.5	7.3	7.4	7.7
8	8.1	7.5	7.4
8.1	8.5	8	7.5




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60230&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] = + 0.253786890021161 + 0.117297499777638X[t] + 1.38717974201476Y1[t] -0.594692239920104Y2[t] + 0.142919396207107M1[t] + 0.368637080481907M2[t] + 0.320542671321784M3[t] + 0.0997477098498515M4[t] + 0.076608910371553M5[t] + 0.147111616500441M6[t] + 0.104252609161747M7[t] + 0.121497196855735M8[t] + 0.54958481069371M9[t] -0.162273531176337M10[t] + 0.0200943483296912M11[t] + 0.00233209196489073t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  0.253786890021161 +  0.117297499777638X[t] +  1.38717974201476Y1[t] -0.594692239920104Y2[t] +  0.142919396207107M1[t] +  0.368637080481907M2[t] +  0.320542671321784M3[t] +  0.0997477098498515M4[t] +  0.076608910371553M5[t] +  0.147111616500441M6[t] +  0.104252609161747M7[t] +  0.121497196855735M8[t] +  0.54958481069371M9[t] -0.162273531176337M10[t] +  0.0200943483296912M11[t] +  0.00233209196489073t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60230&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  0.253786890021161 +  0.117297499777638X[t] +  1.38717974201476Y1[t] -0.594692239920104Y2[t] +  0.142919396207107M1[t] +  0.368637080481907M2[t] +  0.320542671321784M3[t] +  0.0997477098498515M4[t] +  0.076608910371553M5[t] +  0.147111616500441M6[t] +  0.104252609161747M7[t] +  0.121497196855735M8[t] +  0.54958481069371M9[t] -0.162273531176337M10[t] +  0.0200943483296912M11[t] +  0.00233209196489073t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60230&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60230&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] = + 0.253786890021161 + 0.117297499777638X[t] + 1.38717974201476Y1[t] -0.594692239920104Y2[t] + 0.142919396207107M1[t] + 0.368637080481907M2[t] + 0.320542671321784M3[t] + 0.0997477098498515M4[t] + 0.076608910371553M5[t] + 0.147111616500441M6[t] + 0.104252609161747M7[t] + 0.121497196855735M8[t] + 0.54958481069371M9[t] -0.162273531176337M10[t] + 0.0200943483296912M11[t] + 0.00233209196489073t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.2537868900211610.7371650.34430.7323580.366179
X0.1172974997776380.0732941.60040.1170120.058506
Y11.387179742014760.12828810.81300
Y2-0.5946922399201040.129254-4.6013.8e-051.9e-05
M10.1429193962071070.1590590.89850.3740260.187013
M20.3686370804819070.1578062.3360.0243390.012169
M30.3205426713217840.1623291.97460.0549070.027454
M40.09974770984985150.1668580.59780.5531830.276591
M50.0766089103715530.1638190.46760.6424560.321228
M60.1471116165004410.1647650.89290.377020.18851
M70.1042526091617470.1674590.62260.5369420.268471
M80.1214971968557350.1638320.74160.4624590.23123
M90.549584810693710.1603083.42830.0013720.000686
M10-0.1622735311763370.169222-0.95890.3430770.171538
M110.02009434832969120.1666150.12060.904580.45229
t0.002332091964890730.0035310.66040.5126080.256304

\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) & 0.253786890021161 & 0.737165 & 0.3443 & 0.732358 & 0.366179 \tabularnewline
X & 0.117297499777638 & 0.073294 & 1.6004 & 0.117012 & 0.058506 \tabularnewline
Y1 & 1.38717974201476 & 0.128288 & 10.813 & 0 & 0 \tabularnewline
Y2 & -0.594692239920104 & 0.129254 & -4.601 & 3.8e-05 & 1.9e-05 \tabularnewline
M1 & 0.142919396207107 & 0.159059 & 0.8985 & 0.374026 & 0.187013 \tabularnewline
M2 & 0.368637080481907 & 0.157806 & 2.336 & 0.024339 & 0.012169 \tabularnewline
M3 & 0.320542671321784 & 0.162329 & 1.9746 & 0.054907 & 0.027454 \tabularnewline
M4 & 0.0997477098498515 & 0.166858 & 0.5978 & 0.553183 & 0.276591 \tabularnewline
M5 & 0.076608910371553 & 0.163819 & 0.4676 & 0.642456 & 0.321228 \tabularnewline
M6 & 0.147111616500441 & 0.164765 & 0.8929 & 0.37702 & 0.18851 \tabularnewline
M7 & 0.104252609161747 & 0.167459 & 0.6226 & 0.536942 & 0.268471 \tabularnewline
M8 & 0.121497196855735 & 0.163832 & 0.7416 & 0.462459 & 0.23123 \tabularnewline
M9 & 0.54958481069371 & 0.160308 & 3.4283 & 0.001372 & 0.000686 \tabularnewline
M10 & -0.162273531176337 & 0.169222 & -0.9589 & 0.343077 & 0.171538 \tabularnewline
M11 & 0.0200943483296912 & 0.166615 & 0.1206 & 0.90458 & 0.45229 \tabularnewline
t & 0.00233209196489073 & 0.003531 & 0.6604 & 0.512608 & 0.256304 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60230&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]0.253786890021161[/C][C]0.737165[/C][C]0.3443[/C][C]0.732358[/C][C]0.366179[/C][/ROW]
[ROW][C]X[/C][C]0.117297499777638[/C][C]0.073294[/C][C]1.6004[/C][C]0.117012[/C][C]0.058506[/C][/ROW]
[ROW][C]Y1[/C][C]1.38717974201476[/C][C]0.128288[/C][C]10.813[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.594692239920104[/C][C]0.129254[/C][C]-4.601[/C][C]3.8e-05[/C][C]1.9e-05[/C][/ROW]
[ROW][C]M1[/C][C]0.142919396207107[/C][C]0.159059[/C][C]0.8985[/C][C]0.374026[/C][C]0.187013[/C][/ROW]
[ROW][C]M2[/C][C]0.368637080481907[/C][C]0.157806[/C][C]2.336[/C][C]0.024339[/C][C]0.012169[/C][/ROW]
[ROW][C]M3[/C][C]0.320542671321784[/C][C]0.162329[/C][C]1.9746[/C][C]0.054907[/C][C]0.027454[/C][/ROW]
[ROW][C]M4[/C][C]0.0997477098498515[/C][C]0.166858[/C][C]0.5978[/C][C]0.553183[/C][C]0.276591[/C][/ROW]
[ROW][C]M5[/C][C]0.076608910371553[/C][C]0.163819[/C][C]0.4676[/C][C]0.642456[/C][C]0.321228[/C][/ROW]
[ROW][C]M6[/C][C]0.147111616500441[/C][C]0.164765[/C][C]0.8929[/C][C]0.37702[/C][C]0.18851[/C][/ROW]
[ROW][C]M7[/C][C]0.104252609161747[/C][C]0.167459[/C][C]0.6226[/C][C]0.536942[/C][C]0.268471[/C][/ROW]
[ROW][C]M8[/C][C]0.121497196855735[/C][C]0.163832[/C][C]0.7416[/C][C]0.462459[/C][C]0.23123[/C][/ROW]
[ROW][C]M9[/C][C]0.54958481069371[/C][C]0.160308[/C][C]3.4283[/C][C]0.001372[/C][C]0.000686[/C][/ROW]
[ROW][C]M10[/C][C]-0.162273531176337[/C][C]0.169222[/C][C]-0.9589[/C][C]0.343077[/C][C]0.171538[/C][/ROW]
[ROW][C]M11[/C][C]0.0200943483296912[/C][C]0.166615[/C][C]0.1206[/C][C]0.90458[/C][C]0.45229[/C][/ROW]
[ROW][C]t[/C][C]0.00233209196489073[/C][C]0.003531[/C][C]0.6604[/C][C]0.512608[/C][C]0.256304[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60230&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60230&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)0.2537868900211610.7371650.34430.7323580.366179
X0.1172974997776380.0732941.60040.1170120.058506
Y11.387179742014760.12828810.81300
Y2-0.5946922399201040.129254-4.6013.8e-051.9e-05
M10.1429193962071070.1590590.89850.3740260.187013
M20.3686370804819070.1578062.3360.0243390.012169
M30.3205426713217840.1623291.97460.0549070.027454
M40.09974770984985150.1668580.59780.5531830.276591
M50.0766089103715530.1638190.46760.6424560.321228
M60.1471116165004410.1647650.89290.377020.18851
M70.1042526091617470.1674590.62260.5369420.268471
M80.1214971968557350.1638320.74160.4624590.23123
M90.549584810693710.1603083.42830.0013720.000686
M10-0.1622735311763370.169222-0.95890.3430770.171538
M110.02009434832969120.1666150.12060.904580.45229
t0.002332091964890730.0035310.66040.5126080.256304







Multiple Linear Regression - Regression Statistics
Multiple R0.95192436469737
R-squared0.90615999610449
Adjusted R-squared0.872645708998951
F-TEST (value)27.0380209267444
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value1.11022302462516e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.234084331376249
Sum Squared Residuals2.30140991622636

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.95192436469737 \tabularnewline
R-squared & 0.90615999610449 \tabularnewline
Adjusted R-squared & 0.872645708998951 \tabularnewline
F-TEST (value) & 27.0380209267444 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 1.11022302462516e-16 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.234084331376249 \tabularnewline
Sum Squared Residuals & 2.30140991622636 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60230&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.95192436469737[/C][/ROW]
[ROW][C]R-squared[/C][C]0.90615999610449[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.872645708998951[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]27.0380209267444[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]1.11022302462516e-16[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.234084331376249[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2.30140991622636[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60230&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60230&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.95192436469737
R-squared0.90615999610449
Adjusted R-squared0.872645708998951
F-TEST (value)27.0380209267444
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value1.11022302462516e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.234084331376249
Sum Squared Residuals2.30140991622636







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.57.342452246308230.157547753691775
27.67.530942970113010.0690570298869905
37.87.778026325036560.0219736749634351
47.87.789259929918230.0107400700817726
57.87.637785024443040.162214975556965
67.57.66370082262576-0.163700822625758
77.57.1835604846920.316439515307999
87.17.39327458630467-0.293274586304675
97.57.397849645057040.102150354942961
107.57.50453168788135-0.00453168788135466
117.67.439625013406470.160374986593531
127.77.490202231376560.20979776862344
137.77.667783469846970.0322165301530307
147.97.848093772072410.0519062279275875
158.18.09149715325790.00850284674210331
168.28.031531784169780.168468215830215
178.28.00704510291830.192954897081696
188.27.996951177064540.203048822935455
197.97.95642426169074-0.0564242616907414
207.37.5598470187452-0.259847018745195
216.97.43020455113735-0.530204551137346
226.66.546081248333880.0539187516661231
236.76.529044693212880.170955306787119
246.96.769759333136770.130240666863231
2577.09778829578642-0.0977882957864174
267.17.34561759824356-0.245617598243563
277.27.39083378123556-0.190833781235559
287.17.25161966193798-0.151619661937984
296.97.03262575623109-0.132625756231088
3076.899223579891690.100776420108309
316.87.06943408679233-0.269434086792328
326.46.69345684416743-0.293456844167426
336.76.699672851126170.000327148873825966
346.66.6089881698602-0.00898816986019411
356.46.42964349524255-0.0296434952425499
366.36.217374014422340.0826259855776623
376.26.34284597637688-0.142845976376879
386.56.50337675238487-0.00337675238486883
396.86.92150783180831-0.121507831808310
406.86.90560196299637-0.105601962996373
416.46.64773883361812-0.247738833618115
426.16.1305124849727-0.0305124849726999
435.85.87651929302922-0.0765192930292182
446.15.705268721970760.394731278029243
457.26.882736772065010.317263227934990
467.37.57934931628888-0.279349316288876
476.97.2016867981381-0.301686798138101
486.16.52266442106433-0.422664421064333
495.85.749130011681510.050869988318491
506.26.071968907186150.128031092813853
517.16.818134908661670.281865091338331
527.77.621986660977630.0780133390223694
537.97.874805282789460.0251947172105426
547.77.80961193544531-0.109611935445306
557.47.314061873795710.0859381262042888
567.57.048152828811950.451847171188052
5787.889536180614430.110463819385569
588.17.86104957763570.238950422364302

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.5 & 7.34245224630823 & 0.157547753691775 \tabularnewline
2 & 7.6 & 7.53094297011301 & 0.0690570298869905 \tabularnewline
3 & 7.8 & 7.77802632503656 & 0.0219736749634351 \tabularnewline
4 & 7.8 & 7.78925992991823 & 0.0107400700817726 \tabularnewline
5 & 7.8 & 7.63778502444304 & 0.162214975556965 \tabularnewline
6 & 7.5 & 7.66370082262576 & -0.163700822625758 \tabularnewline
7 & 7.5 & 7.183560484692 & 0.316439515307999 \tabularnewline
8 & 7.1 & 7.39327458630467 & -0.293274586304675 \tabularnewline
9 & 7.5 & 7.39784964505704 & 0.102150354942961 \tabularnewline
10 & 7.5 & 7.50453168788135 & -0.00453168788135466 \tabularnewline
11 & 7.6 & 7.43962501340647 & 0.160374986593531 \tabularnewline
12 & 7.7 & 7.49020223137656 & 0.20979776862344 \tabularnewline
13 & 7.7 & 7.66778346984697 & 0.0322165301530307 \tabularnewline
14 & 7.9 & 7.84809377207241 & 0.0519062279275875 \tabularnewline
15 & 8.1 & 8.0914971532579 & 0.00850284674210331 \tabularnewline
16 & 8.2 & 8.03153178416978 & 0.168468215830215 \tabularnewline
17 & 8.2 & 8.0070451029183 & 0.192954897081696 \tabularnewline
18 & 8.2 & 7.99695117706454 & 0.203048822935455 \tabularnewline
19 & 7.9 & 7.95642426169074 & -0.0564242616907414 \tabularnewline
20 & 7.3 & 7.5598470187452 & -0.259847018745195 \tabularnewline
21 & 6.9 & 7.43020455113735 & -0.530204551137346 \tabularnewline
22 & 6.6 & 6.54608124833388 & 0.0539187516661231 \tabularnewline
23 & 6.7 & 6.52904469321288 & 0.170955306787119 \tabularnewline
24 & 6.9 & 6.76975933313677 & 0.130240666863231 \tabularnewline
25 & 7 & 7.09778829578642 & -0.0977882957864174 \tabularnewline
26 & 7.1 & 7.34561759824356 & -0.245617598243563 \tabularnewline
27 & 7.2 & 7.39083378123556 & -0.190833781235559 \tabularnewline
28 & 7.1 & 7.25161966193798 & -0.151619661937984 \tabularnewline
29 & 6.9 & 7.03262575623109 & -0.132625756231088 \tabularnewline
30 & 7 & 6.89922357989169 & 0.100776420108309 \tabularnewline
31 & 6.8 & 7.06943408679233 & -0.269434086792328 \tabularnewline
32 & 6.4 & 6.69345684416743 & -0.293456844167426 \tabularnewline
33 & 6.7 & 6.69967285112617 & 0.000327148873825966 \tabularnewline
34 & 6.6 & 6.6089881698602 & -0.00898816986019411 \tabularnewline
35 & 6.4 & 6.42964349524255 & -0.0296434952425499 \tabularnewline
36 & 6.3 & 6.21737401442234 & 0.0826259855776623 \tabularnewline
37 & 6.2 & 6.34284597637688 & -0.142845976376879 \tabularnewline
38 & 6.5 & 6.50337675238487 & -0.00337675238486883 \tabularnewline
39 & 6.8 & 6.92150783180831 & -0.121507831808310 \tabularnewline
40 & 6.8 & 6.90560196299637 & -0.105601962996373 \tabularnewline
41 & 6.4 & 6.64773883361812 & -0.247738833618115 \tabularnewline
42 & 6.1 & 6.1305124849727 & -0.0305124849726999 \tabularnewline
43 & 5.8 & 5.87651929302922 & -0.0765192930292182 \tabularnewline
44 & 6.1 & 5.70526872197076 & 0.394731278029243 \tabularnewline
45 & 7.2 & 6.88273677206501 & 0.317263227934990 \tabularnewline
46 & 7.3 & 7.57934931628888 & -0.279349316288876 \tabularnewline
47 & 6.9 & 7.2016867981381 & -0.301686798138101 \tabularnewline
48 & 6.1 & 6.52266442106433 & -0.422664421064333 \tabularnewline
49 & 5.8 & 5.74913001168151 & 0.050869988318491 \tabularnewline
50 & 6.2 & 6.07196890718615 & 0.128031092813853 \tabularnewline
51 & 7.1 & 6.81813490866167 & 0.281865091338331 \tabularnewline
52 & 7.7 & 7.62198666097763 & 0.0780133390223694 \tabularnewline
53 & 7.9 & 7.87480528278946 & 0.0251947172105426 \tabularnewline
54 & 7.7 & 7.80961193544531 & -0.109611935445306 \tabularnewline
55 & 7.4 & 7.31406187379571 & 0.0859381262042888 \tabularnewline
56 & 7.5 & 7.04815282881195 & 0.451847171188052 \tabularnewline
57 & 8 & 7.88953618061443 & 0.110463819385569 \tabularnewline
58 & 8.1 & 7.8610495776357 & 0.238950422364302 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60230&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.5[/C][C]7.34245224630823[/C][C]0.157547753691775[/C][/ROW]
[ROW][C]2[/C][C]7.6[/C][C]7.53094297011301[/C][C]0.0690570298869905[/C][/ROW]
[ROW][C]3[/C][C]7.8[/C][C]7.77802632503656[/C][C]0.0219736749634351[/C][/ROW]
[ROW][C]4[/C][C]7.8[/C][C]7.78925992991823[/C][C]0.0107400700817726[/C][/ROW]
[ROW][C]5[/C][C]7.8[/C][C]7.63778502444304[/C][C]0.162214975556965[/C][/ROW]
[ROW][C]6[/C][C]7.5[/C][C]7.66370082262576[/C][C]-0.163700822625758[/C][/ROW]
[ROW][C]7[/C][C]7.5[/C][C]7.183560484692[/C][C]0.316439515307999[/C][/ROW]
[ROW][C]8[/C][C]7.1[/C][C]7.39327458630467[/C][C]-0.293274586304675[/C][/ROW]
[ROW][C]9[/C][C]7.5[/C][C]7.39784964505704[/C][C]0.102150354942961[/C][/ROW]
[ROW][C]10[/C][C]7.5[/C][C]7.50453168788135[/C][C]-0.00453168788135466[/C][/ROW]
[ROW][C]11[/C][C]7.6[/C][C]7.43962501340647[/C][C]0.160374986593531[/C][/ROW]
[ROW][C]12[/C][C]7.7[/C][C]7.49020223137656[/C][C]0.20979776862344[/C][/ROW]
[ROW][C]13[/C][C]7.7[/C][C]7.66778346984697[/C][C]0.0322165301530307[/C][/ROW]
[ROW][C]14[/C][C]7.9[/C][C]7.84809377207241[/C][C]0.0519062279275875[/C][/ROW]
[ROW][C]15[/C][C]8.1[/C][C]8.0914971532579[/C][C]0.00850284674210331[/C][/ROW]
[ROW][C]16[/C][C]8.2[/C][C]8.03153178416978[/C][C]0.168468215830215[/C][/ROW]
[ROW][C]17[/C][C]8.2[/C][C]8.0070451029183[/C][C]0.192954897081696[/C][/ROW]
[ROW][C]18[/C][C]8.2[/C][C]7.99695117706454[/C][C]0.203048822935455[/C][/ROW]
[ROW][C]19[/C][C]7.9[/C][C]7.95642426169074[/C][C]-0.0564242616907414[/C][/ROW]
[ROW][C]20[/C][C]7.3[/C][C]7.5598470187452[/C][C]-0.259847018745195[/C][/ROW]
[ROW][C]21[/C][C]6.9[/C][C]7.43020455113735[/C][C]-0.530204551137346[/C][/ROW]
[ROW][C]22[/C][C]6.6[/C][C]6.54608124833388[/C][C]0.0539187516661231[/C][/ROW]
[ROW][C]23[/C][C]6.7[/C][C]6.52904469321288[/C][C]0.170955306787119[/C][/ROW]
[ROW][C]24[/C][C]6.9[/C][C]6.76975933313677[/C][C]0.130240666863231[/C][/ROW]
[ROW][C]25[/C][C]7[/C][C]7.09778829578642[/C][C]-0.0977882957864174[/C][/ROW]
[ROW][C]26[/C][C]7.1[/C][C]7.34561759824356[/C][C]-0.245617598243563[/C][/ROW]
[ROW][C]27[/C][C]7.2[/C][C]7.39083378123556[/C][C]-0.190833781235559[/C][/ROW]
[ROW][C]28[/C][C]7.1[/C][C]7.25161966193798[/C][C]-0.151619661937984[/C][/ROW]
[ROW][C]29[/C][C]6.9[/C][C]7.03262575623109[/C][C]-0.132625756231088[/C][/ROW]
[ROW][C]30[/C][C]7[/C][C]6.89922357989169[/C][C]0.100776420108309[/C][/ROW]
[ROW][C]31[/C][C]6.8[/C][C]7.06943408679233[/C][C]-0.269434086792328[/C][/ROW]
[ROW][C]32[/C][C]6.4[/C][C]6.69345684416743[/C][C]-0.293456844167426[/C][/ROW]
[ROW][C]33[/C][C]6.7[/C][C]6.69967285112617[/C][C]0.000327148873825966[/C][/ROW]
[ROW][C]34[/C][C]6.6[/C][C]6.6089881698602[/C][C]-0.00898816986019411[/C][/ROW]
[ROW][C]35[/C][C]6.4[/C][C]6.42964349524255[/C][C]-0.0296434952425499[/C][/ROW]
[ROW][C]36[/C][C]6.3[/C][C]6.21737401442234[/C][C]0.0826259855776623[/C][/ROW]
[ROW][C]37[/C][C]6.2[/C][C]6.34284597637688[/C][C]-0.142845976376879[/C][/ROW]
[ROW][C]38[/C][C]6.5[/C][C]6.50337675238487[/C][C]-0.00337675238486883[/C][/ROW]
[ROW][C]39[/C][C]6.8[/C][C]6.92150783180831[/C][C]-0.121507831808310[/C][/ROW]
[ROW][C]40[/C][C]6.8[/C][C]6.90560196299637[/C][C]-0.105601962996373[/C][/ROW]
[ROW][C]41[/C][C]6.4[/C][C]6.64773883361812[/C][C]-0.247738833618115[/C][/ROW]
[ROW][C]42[/C][C]6.1[/C][C]6.1305124849727[/C][C]-0.0305124849726999[/C][/ROW]
[ROW][C]43[/C][C]5.8[/C][C]5.87651929302922[/C][C]-0.0765192930292182[/C][/ROW]
[ROW][C]44[/C][C]6.1[/C][C]5.70526872197076[/C][C]0.394731278029243[/C][/ROW]
[ROW][C]45[/C][C]7.2[/C][C]6.88273677206501[/C][C]0.317263227934990[/C][/ROW]
[ROW][C]46[/C][C]7.3[/C][C]7.57934931628888[/C][C]-0.279349316288876[/C][/ROW]
[ROW][C]47[/C][C]6.9[/C][C]7.2016867981381[/C][C]-0.301686798138101[/C][/ROW]
[ROW][C]48[/C][C]6.1[/C][C]6.52266442106433[/C][C]-0.422664421064333[/C][/ROW]
[ROW][C]49[/C][C]5.8[/C][C]5.74913001168151[/C][C]0.050869988318491[/C][/ROW]
[ROW][C]50[/C][C]6.2[/C][C]6.07196890718615[/C][C]0.128031092813853[/C][/ROW]
[ROW][C]51[/C][C]7.1[/C][C]6.81813490866167[/C][C]0.281865091338331[/C][/ROW]
[ROW][C]52[/C][C]7.7[/C][C]7.62198666097763[/C][C]0.0780133390223694[/C][/ROW]
[ROW][C]53[/C][C]7.9[/C][C]7.87480528278946[/C][C]0.0251947172105426[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]7.80961193544531[/C][C]-0.109611935445306[/C][/ROW]
[ROW][C]55[/C][C]7.4[/C][C]7.31406187379571[/C][C]0.0859381262042888[/C][/ROW]
[ROW][C]56[/C][C]7.5[/C][C]7.04815282881195[/C][C]0.451847171188052[/C][/ROW]
[ROW][C]57[/C][C]8[/C][C]7.88953618061443[/C][C]0.110463819385569[/C][/ROW]
[ROW][C]58[/C][C]8.1[/C][C]7.8610495776357[/C][C]0.238950422364302[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60230&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60230&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.57.342452246308230.157547753691775
27.67.530942970113010.0690570298869905
37.87.778026325036560.0219736749634351
47.87.789259929918230.0107400700817726
57.87.637785024443040.162214975556965
67.57.66370082262576-0.163700822625758
77.57.1835604846920.316439515307999
87.17.39327458630467-0.293274586304675
97.57.397849645057040.102150354942961
107.57.50453168788135-0.00453168788135466
117.67.439625013406470.160374986593531
127.77.490202231376560.20979776862344
137.77.667783469846970.0322165301530307
147.97.848093772072410.0519062279275875
158.18.09149715325790.00850284674210331
168.28.031531784169780.168468215830215
178.28.00704510291830.192954897081696
188.27.996951177064540.203048822935455
197.97.95642426169074-0.0564242616907414
207.37.5598470187452-0.259847018745195
216.97.43020455113735-0.530204551137346
226.66.546081248333880.0539187516661231
236.76.529044693212880.170955306787119
246.96.769759333136770.130240666863231
2577.09778829578642-0.0977882957864174
267.17.34561759824356-0.245617598243563
277.27.39083378123556-0.190833781235559
287.17.25161966193798-0.151619661937984
296.97.03262575623109-0.132625756231088
3076.899223579891690.100776420108309
316.87.06943408679233-0.269434086792328
326.46.69345684416743-0.293456844167426
336.76.699672851126170.000327148873825966
346.66.6089881698602-0.00898816986019411
356.46.42964349524255-0.0296434952425499
366.36.217374014422340.0826259855776623
376.26.34284597637688-0.142845976376879
386.56.50337675238487-0.00337675238486883
396.86.92150783180831-0.121507831808310
406.86.90560196299637-0.105601962996373
416.46.64773883361812-0.247738833618115
426.16.1305124849727-0.0305124849726999
435.85.87651929302922-0.0765192930292182
446.15.705268721970760.394731278029243
457.26.882736772065010.317263227934990
467.37.57934931628888-0.279349316288876
476.97.2016867981381-0.301686798138101
486.16.52266442106433-0.422664421064333
495.85.749130011681510.050869988318491
506.26.071968907186150.128031092813853
517.16.818134908661670.281865091338331
527.77.621986660977630.0780133390223694
537.97.874805282789460.0251947172105426
547.77.80961193544531-0.109611935445306
557.47.314061873795710.0859381262042888
567.57.048152828811950.451847171188052
5787.889536180614430.110463819385569
588.17.86104957763570.238950422364302







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1385126532937190.2770253065874380.86148734670628
200.1501453914760790.3002907829521580.849854608523921
210.7888058955660570.4223882088678850.211194104433943
220.676381971740380.647236056519240.32361802825962
230.5872735300950830.8254529398098350.412726469904917
240.5690824767817070.8618350464365850.430917523218293
250.5048861891598570.9902276216802870.495113810840143
260.4246319042935240.8492638085870480.575368095706476
270.3191854765619770.6383709531239530.680814523438023
280.2298083207052730.4596166414105450.770191679294727
290.1715683362244790.3431366724489580.828431663775521
300.1740250419987210.3480500839974420.825974958001279
310.1434654393411760.2869308786823520.856534560658824
320.2094326457479770.4188652914959540.790567354252023
330.2880311914022640.5760623828045290.711968808597736
340.2415672733593680.4831345467187350.758432726640632
350.3917487834374540.7834975668749090.608251216562546
360.8986949199701280.2026101600597440.101305080029872
370.967806780628520.06438643874296050.0321932193714802
380.9485960961355480.1028078077289050.0514039038644524
390.959082706771430.08183458645713920.0409172932285696

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.138512653293719 & 0.277025306587438 & 0.86148734670628 \tabularnewline
20 & 0.150145391476079 & 0.300290782952158 & 0.849854608523921 \tabularnewline
21 & 0.788805895566057 & 0.422388208867885 & 0.211194104433943 \tabularnewline
22 & 0.67638197174038 & 0.64723605651924 & 0.32361802825962 \tabularnewline
23 & 0.587273530095083 & 0.825452939809835 & 0.412726469904917 \tabularnewline
24 & 0.569082476781707 & 0.861835046436585 & 0.430917523218293 \tabularnewline
25 & 0.504886189159857 & 0.990227621680287 & 0.495113810840143 \tabularnewline
26 & 0.424631904293524 & 0.849263808587048 & 0.575368095706476 \tabularnewline
27 & 0.319185476561977 & 0.638370953123953 & 0.680814523438023 \tabularnewline
28 & 0.229808320705273 & 0.459616641410545 & 0.770191679294727 \tabularnewline
29 & 0.171568336224479 & 0.343136672448958 & 0.828431663775521 \tabularnewline
30 & 0.174025041998721 & 0.348050083997442 & 0.825974958001279 \tabularnewline
31 & 0.143465439341176 & 0.286930878682352 & 0.856534560658824 \tabularnewline
32 & 0.209432645747977 & 0.418865291495954 & 0.790567354252023 \tabularnewline
33 & 0.288031191402264 & 0.576062382804529 & 0.711968808597736 \tabularnewline
34 & 0.241567273359368 & 0.483134546718735 & 0.758432726640632 \tabularnewline
35 & 0.391748783437454 & 0.783497566874909 & 0.608251216562546 \tabularnewline
36 & 0.898694919970128 & 0.202610160059744 & 0.101305080029872 \tabularnewline
37 & 0.96780678062852 & 0.0643864387429605 & 0.0321932193714802 \tabularnewline
38 & 0.948596096135548 & 0.102807807728905 & 0.0514039038644524 \tabularnewline
39 & 0.95908270677143 & 0.0818345864571392 & 0.0409172932285696 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60230&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.138512653293719[/C][C]0.277025306587438[/C][C]0.86148734670628[/C][/ROW]
[ROW][C]20[/C][C]0.150145391476079[/C][C]0.300290782952158[/C][C]0.849854608523921[/C][/ROW]
[ROW][C]21[/C][C]0.788805895566057[/C][C]0.422388208867885[/C][C]0.211194104433943[/C][/ROW]
[ROW][C]22[/C][C]0.67638197174038[/C][C]0.64723605651924[/C][C]0.32361802825962[/C][/ROW]
[ROW][C]23[/C][C]0.587273530095083[/C][C]0.825452939809835[/C][C]0.412726469904917[/C][/ROW]
[ROW][C]24[/C][C]0.569082476781707[/C][C]0.861835046436585[/C][C]0.430917523218293[/C][/ROW]
[ROW][C]25[/C][C]0.504886189159857[/C][C]0.990227621680287[/C][C]0.495113810840143[/C][/ROW]
[ROW][C]26[/C][C]0.424631904293524[/C][C]0.849263808587048[/C][C]0.575368095706476[/C][/ROW]
[ROW][C]27[/C][C]0.319185476561977[/C][C]0.638370953123953[/C][C]0.680814523438023[/C][/ROW]
[ROW][C]28[/C][C]0.229808320705273[/C][C]0.459616641410545[/C][C]0.770191679294727[/C][/ROW]
[ROW][C]29[/C][C]0.171568336224479[/C][C]0.343136672448958[/C][C]0.828431663775521[/C][/ROW]
[ROW][C]30[/C][C]0.174025041998721[/C][C]0.348050083997442[/C][C]0.825974958001279[/C][/ROW]
[ROW][C]31[/C][C]0.143465439341176[/C][C]0.286930878682352[/C][C]0.856534560658824[/C][/ROW]
[ROW][C]32[/C][C]0.209432645747977[/C][C]0.418865291495954[/C][C]0.790567354252023[/C][/ROW]
[ROW][C]33[/C][C]0.288031191402264[/C][C]0.576062382804529[/C][C]0.711968808597736[/C][/ROW]
[ROW][C]34[/C][C]0.241567273359368[/C][C]0.483134546718735[/C][C]0.758432726640632[/C][/ROW]
[ROW][C]35[/C][C]0.391748783437454[/C][C]0.783497566874909[/C][C]0.608251216562546[/C][/ROW]
[ROW][C]36[/C][C]0.898694919970128[/C][C]0.202610160059744[/C][C]0.101305080029872[/C][/ROW]
[ROW][C]37[/C][C]0.96780678062852[/C][C]0.0643864387429605[/C][C]0.0321932193714802[/C][/ROW]
[ROW][C]38[/C][C]0.948596096135548[/C][C]0.102807807728905[/C][C]0.0514039038644524[/C][/ROW]
[ROW][C]39[/C][C]0.95908270677143[/C][C]0.0818345864571392[/C][C]0.0409172932285696[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60230&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60230&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.1385126532937190.2770253065874380.86148734670628
200.1501453914760790.3002907829521580.849854608523921
210.7888058955660570.4223882088678850.211194104433943
220.676381971740380.647236056519240.32361802825962
230.5872735300950830.8254529398098350.412726469904917
240.5690824767817070.8618350464365850.430917523218293
250.5048861891598570.9902276216802870.495113810840143
260.4246319042935240.8492638085870480.575368095706476
270.3191854765619770.6383709531239530.680814523438023
280.2298083207052730.4596166414105450.770191679294727
290.1715683362244790.3431366724489580.828431663775521
300.1740250419987210.3480500839974420.825974958001279
310.1434654393411760.2869308786823520.856534560658824
320.2094326457479770.4188652914959540.790567354252023
330.2880311914022640.5760623828045290.711968808597736
340.2415672733593680.4831345467187350.758432726640632
350.3917487834374540.7834975668749090.608251216562546
360.8986949199701280.2026101600597440.101305080029872
370.967806780628520.06438643874296050.0321932193714802
380.9485960961355480.1028078077289050.0514039038644524
390.959082706771430.08183458645713920.0409172932285696







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level20.0952380952380952OK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60230&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 level00OK
10% type I error level20.0952380952380952OK



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