Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 09:55:24 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/20/t1258736179yyrq2g0u19at775.htm/, Retrieved Wed, 24 Apr 2024 15:17:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58329, Retrieved Wed, 24 Apr 2024 15:17:28 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact191
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [ws7_2] [2009-11-18 17:59:26] [8b1aef4e7013bd33fbc2a5833375c5f5]
-           [Multiple Regression] [] [2009-11-19 13:59:48] [08fc5c07292c885b941f0cb515ce13f3]
-    D          [Multiple Regression] [] [2009-11-20 16:55:24] [91df150cd527c563f0151b3a845ecd72] [Current]
Feedback Forum

Post a new message
Dataseries X:
8	5560
8.1	3922
7.7	3759
7.5	4138
7.6	4634
7.8	3996
7.8	4308
7.8	4143
7.5	4429
7.5	5219
7.1	4929
7.5	5755
7.5	5592
7.6	4163
7.7	4962
7.7	5208
7.9	4755
8.1	4491
8.2	5732
8.2	5731
8.2	5040
7.9	6102
7.3	4904
6.9	5369
6.7	5578
6.7	4619
6.9	4731
7	5011
7.1	5299
7.2	4146
7.1	4625
6.9	4736
7	4219
6.8	5116
6.4	4205
6.7	4121
6.6	5103
6.4	4300
6.3	4578
6.2	3809
6.5	5526
6.8	4247
6.8	3830
6.4	4394
6.1	4826
5.8	4409
6.1	4569
7.2	4106
7.3	4794
6.9	3914
6.1	3793
5.8	4405
6.2	4022
7.1	4100
7.7	4788
7.9	3163
7.7	3585
7.4	3903
7.5	4178
8	3863
8.1	4187




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time8 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 & 8 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58329&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]8 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=58329&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58329&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 time8 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
WerklM[t] = + 6.52362952102874 + 0.000158604824453189Bouwv[t] + 0.0284956355211745M1[t] -0.0471686646110958M2[t] -0.275876137837123M3[t] -0.39960341957532M4[t] -0.232418826118232M5[t] + 0.210864635565684M6[t] + 0.257811253422546M7[t] + 0.213211850240498M8[t] + 0.0753688758530607M9[t] -0.228691681107129M10[t] -0.366391706061917M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
WerklM[t] =  +  6.52362952102874 +  0.000158604824453189Bouwv[t] +  0.0284956355211745M1[t] -0.0471686646110958M2[t] -0.275876137837123M3[t] -0.39960341957532M4[t] -0.232418826118232M5[t] +  0.210864635565684M6[t] +  0.257811253422546M7[t] +  0.213211850240498M8[t] +  0.0753688758530607M9[t] -0.228691681107129M10[t] -0.366391706061917M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58329&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]WerklM[t] =  +  6.52362952102874 +  0.000158604824453189Bouwv[t] +  0.0284956355211745M1[t] -0.0471686646110958M2[t] -0.275876137837123M3[t] -0.39960341957532M4[t] -0.232418826118232M5[t] +  0.210864635565684M6[t] +  0.257811253422546M7[t] +  0.213211850240498M8[t] +  0.0753688758530607M9[t] -0.228691681107129M10[t] -0.366391706061917M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58329&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58329&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
WerklM[t] = + 6.52362952102874 + 0.000158604824453189Bouwv[t] + 0.0284956355211745M1[t] -0.0471686646110958M2[t] -0.275876137837123M3[t] -0.39960341957532M4[t] -0.232418826118232M5[t] + 0.210864635565684M6[t] + 0.257811253422546M7[t] + 0.213211850240498M8[t] + 0.0753688758530607M9[t] -0.228691681107129M10[t] -0.366391706061917M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)6.523629521028740.7953528.202200
Bouwv0.0001586048244531890.0001581.00460.3201330.160066
M10.02849563552117450.4251410.0670.9468390.47342
M2-0.04716866461109580.442524-0.10660.9155580.457779
M3-0.2758761378371230.438748-0.62880.5324740.266237
M4-0.399603419575320.437016-0.91440.3650820.182541
M5-0.2324188261182320.437736-0.5310.5978970.298948
M60.2108646355656840.4422070.47680.6356360.317818
M70.2578112534225460.436550.59060.5575820.278791
M80.2132118502404980.4377940.4870.6284650.314233
M90.07536887585306070.4379620.17210.864090.432045
M10-0.2286916811071290.439227-0.52070.6049910.302496
M11-0.3663917060619170.436755-0.83890.4056860.202843

\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) & 6.52362952102874 & 0.795352 & 8.2022 & 0 & 0 \tabularnewline
Bouwv & 0.000158604824453189 & 0.000158 & 1.0046 & 0.320133 & 0.160066 \tabularnewline
M1 & 0.0284956355211745 & 0.425141 & 0.067 & 0.946839 & 0.47342 \tabularnewline
M2 & -0.0471686646110958 & 0.442524 & -0.1066 & 0.915558 & 0.457779 \tabularnewline
M3 & -0.275876137837123 & 0.438748 & -0.6288 & 0.532474 & 0.266237 \tabularnewline
M4 & -0.39960341957532 & 0.437016 & -0.9144 & 0.365082 & 0.182541 \tabularnewline
M5 & -0.232418826118232 & 0.437736 & -0.531 & 0.597897 & 0.298948 \tabularnewline
M6 & 0.210864635565684 & 0.442207 & 0.4768 & 0.635636 & 0.317818 \tabularnewline
M7 & 0.257811253422546 & 0.43655 & 0.5906 & 0.557582 & 0.278791 \tabularnewline
M8 & 0.213211850240498 & 0.437794 & 0.487 & 0.628465 & 0.314233 \tabularnewline
M9 & 0.0753688758530607 & 0.437962 & 0.1721 & 0.86409 & 0.432045 \tabularnewline
M10 & -0.228691681107129 & 0.439227 & -0.5207 & 0.604991 & 0.302496 \tabularnewline
M11 & -0.366391706061917 & 0.436755 & -0.8389 & 0.405686 & 0.202843 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58329&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]6.52362952102874[/C][C]0.795352[/C][C]8.2022[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Bouwv[/C][C]0.000158604824453189[/C][C]0.000158[/C][C]1.0046[/C][C]0.320133[/C][C]0.160066[/C][/ROW]
[ROW][C]M1[/C][C]0.0284956355211745[/C][C]0.425141[/C][C]0.067[/C][C]0.946839[/C][C]0.47342[/C][/ROW]
[ROW][C]M2[/C][C]-0.0471686646110958[/C][C]0.442524[/C][C]-0.1066[/C][C]0.915558[/C][C]0.457779[/C][/ROW]
[ROW][C]M3[/C][C]-0.275876137837123[/C][C]0.438748[/C][C]-0.6288[/C][C]0.532474[/C][C]0.266237[/C][/ROW]
[ROW][C]M4[/C][C]-0.39960341957532[/C][C]0.437016[/C][C]-0.9144[/C][C]0.365082[/C][C]0.182541[/C][/ROW]
[ROW][C]M5[/C][C]-0.232418826118232[/C][C]0.437736[/C][C]-0.531[/C][C]0.597897[/C][C]0.298948[/C][/ROW]
[ROW][C]M6[/C][C]0.210864635565684[/C][C]0.442207[/C][C]0.4768[/C][C]0.635636[/C][C]0.317818[/C][/ROW]
[ROW][C]M7[/C][C]0.257811253422546[/C][C]0.43655[/C][C]0.5906[/C][C]0.557582[/C][C]0.278791[/C][/ROW]
[ROW][C]M8[/C][C]0.213211850240498[/C][C]0.437794[/C][C]0.487[/C][C]0.628465[/C][C]0.314233[/C][/ROW]
[ROW][C]M9[/C][C]0.0753688758530607[/C][C]0.437962[/C][C]0.1721[/C][C]0.86409[/C][C]0.432045[/C][/ROW]
[ROW][C]M10[/C][C]-0.228691681107129[/C][C]0.439227[/C][C]-0.5207[/C][C]0.604991[/C][C]0.302496[/C][/ROW]
[ROW][C]M11[/C][C]-0.366391706061917[/C][C]0.436755[/C][C]-0.8389[/C][C]0.405686[/C][C]0.202843[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58329&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58329&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)6.523629521028740.7953528.202200
Bouwv0.0001586048244531890.0001581.00460.3201330.160066
M10.02849563552117450.4251410.0670.9468390.47342
M2-0.04716866461109580.442524-0.10660.9155580.457779
M3-0.2758761378371230.438748-0.62880.5324740.266237
M4-0.399603419575320.437016-0.91440.3650820.182541
M5-0.2324188261182320.437736-0.5310.5978970.298948
M60.2108646355656840.4422070.47680.6356360.317818
M70.2578112534225460.436550.59060.5575820.278791
M80.2132118502404980.4377940.4870.6284650.314233
M90.07536887585306070.4379620.17210.864090.432045
M10-0.2286916811071290.439227-0.52070.6049910.302496
M11-0.3663917060619170.436755-0.83890.4056860.202843







Multiple Linear Regression - Regression Statistics
Multiple R0.359465052427854
R-squared0.129215123916960
Adjusted R-squared-0.0884810951038002
F-TEST (value)0.593557042461255
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.836476353996469
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.690237336376786
Sum Squared Residuals22.868523865369

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.359465052427854 \tabularnewline
R-squared & 0.129215123916960 \tabularnewline
Adjusted R-squared & -0.0884810951038002 \tabularnewline
F-TEST (value) & 0.593557042461255 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 0.836476353996469 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.690237336376786 \tabularnewline
Sum Squared Residuals & 22.868523865369 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58329&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.359465052427854[/C][/ROW]
[ROW][C]R-squared[/C][C]0.129215123916960[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.0884810951038002[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.593557042461255[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]0.836476353996469[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.690237336376786[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]22.868523865369[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58329&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58329&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.359465052427854
R-squared0.129215123916960
Adjusted R-squared-0.0884810951038002
F-TEST (value)0.593557042461255
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.836476353996469
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.690237336376786
Sum Squared Residuals22.868523865369







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
187.433967980509620.566032019490377
28.17.098508977923051.00149102207695
37.76.843948918311150.856051081688851
47.56.780332865040710.71966713495929
57.67.026185451426580.57381454857342
67.87.368279035109360.431720964890638
77.87.464710358195620.335289641804381
87.87.39394115897880.406058841021206
97.57.301459164384970.198540835615031
107.57.12269641874280.377303581257201
117.16.939000994696590.160999005303413
127.57.436400285756840.063599714243164
137.57.439043334892140.0609566651078591
147.67.136732740616260.463267259383735
157.77.034750522128340.665249477871665
167.76.950040027205620.749959972794378
177.97.045376635185420.854623364814584
188.17.446788423213690.65321157678631
198.27.690563628216960.509436371783041
208.27.645805620210460.554194379789542
218.27.398366712125870.801633287874132
227.97.262744478734960.637255521265037
237.36.935035874085260.364964125914743
246.97.3751788235179-0.475178823517905
256.77.4368228673498-0.736822867349796
266.77.20905654056692-0.509056540566918
276.96.99811280767965-0.098112807679648
2876.918794876788340.081205123211656
297.17.13165765968795-0.0316576596879509
307.27.39206975877734-0.192069758777340
317.17.51498808754728-0.414988087547280
326.97.48799381987954-0.587993819879535
3377.2681521512498-0.268152151249799
346.87.10636012182412-0.306360121824120
356.46.82417110179248-0.424171101792477
366.77.17724000260033-0.477240002600326
376.67.36148557573453-0.761485575734532
386.47.15846160156635-0.758461601566351
396.36.97384626953831-0.67384626953831
406.26.72815187779561-0.528151877795611
416.57.16766095483882-0.667660954838824
426.87.40808884604711-0.608088846047113
436.87.388897252107-0.588897252106994
446.47.43375096991655-1.03375096991654
456.17.36442527969289-1.26442527969289
465.86.99422651093572-1.19422651093572
476.16.88190325789344-0.781903257893439
487.27.174860930233530.0251390697664716
497.37.3124766849785-0.0124766849784967
506.97.09724013932742-0.19724013932742
516.16.84934148234256-0.749341482342558
525.86.82268035316971-1.02268035316971
536.26.92911929886123-0.729119298861229
547.17.38477393685249-0.284773936852494
557.77.540840673933150.159159326066852
567.97.238508431014670.661491568985331
577.77.167596692546480.532403307453522
587.46.91397246976240.486027530237598
597.56.819888771532240.680111228467759
6087.13631995789140.863680042108597
618.17.216203556535410.883796443464588

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8 & 7.43396798050962 & 0.566032019490377 \tabularnewline
2 & 8.1 & 7.09850897792305 & 1.00149102207695 \tabularnewline
3 & 7.7 & 6.84394891831115 & 0.856051081688851 \tabularnewline
4 & 7.5 & 6.78033286504071 & 0.71966713495929 \tabularnewline
5 & 7.6 & 7.02618545142658 & 0.57381454857342 \tabularnewline
6 & 7.8 & 7.36827903510936 & 0.431720964890638 \tabularnewline
7 & 7.8 & 7.46471035819562 & 0.335289641804381 \tabularnewline
8 & 7.8 & 7.3939411589788 & 0.406058841021206 \tabularnewline
9 & 7.5 & 7.30145916438497 & 0.198540835615031 \tabularnewline
10 & 7.5 & 7.1226964187428 & 0.377303581257201 \tabularnewline
11 & 7.1 & 6.93900099469659 & 0.160999005303413 \tabularnewline
12 & 7.5 & 7.43640028575684 & 0.063599714243164 \tabularnewline
13 & 7.5 & 7.43904333489214 & 0.0609566651078591 \tabularnewline
14 & 7.6 & 7.13673274061626 & 0.463267259383735 \tabularnewline
15 & 7.7 & 7.03475052212834 & 0.665249477871665 \tabularnewline
16 & 7.7 & 6.95004002720562 & 0.749959972794378 \tabularnewline
17 & 7.9 & 7.04537663518542 & 0.854623364814584 \tabularnewline
18 & 8.1 & 7.44678842321369 & 0.65321157678631 \tabularnewline
19 & 8.2 & 7.69056362821696 & 0.509436371783041 \tabularnewline
20 & 8.2 & 7.64580562021046 & 0.554194379789542 \tabularnewline
21 & 8.2 & 7.39836671212587 & 0.801633287874132 \tabularnewline
22 & 7.9 & 7.26274447873496 & 0.637255521265037 \tabularnewline
23 & 7.3 & 6.93503587408526 & 0.364964125914743 \tabularnewline
24 & 6.9 & 7.3751788235179 & -0.475178823517905 \tabularnewline
25 & 6.7 & 7.4368228673498 & -0.736822867349796 \tabularnewline
26 & 6.7 & 7.20905654056692 & -0.509056540566918 \tabularnewline
27 & 6.9 & 6.99811280767965 & -0.098112807679648 \tabularnewline
28 & 7 & 6.91879487678834 & 0.081205123211656 \tabularnewline
29 & 7.1 & 7.13165765968795 & -0.0316576596879509 \tabularnewline
30 & 7.2 & 7.39206975877734 & -0.192069758777340 \tabularnewline
31 & 7.1 & 7.51498808754728 & -0.414988087547280 \tabularnewline
32 & 6.9 & 7.48799381987954 & -0.587993819879535 \tabularnewline
33 & 7 & 7.2681521512498 & -0.268152151249799 \tabularnewline
34 & 6.8 & 7.10636012182412 & -0.306360121824120 \tabularnewline
35 & 6.4 & 6.82417110179248 & -0.424171101792477 \tabularnewline
36 & 6.7 & 7.17724000260033 & -0.477240002600326 \tabularnewline
37 & 6.6 & 7.36148557573453 & -0.761485575734532 \tabularnewline
38 & 6.4 & 7.15846160156635 & -0.758461601566351 \tabularnewline
39 & 6.3 & 6.97384626953831 & -0.67384626953831 \tabularnewline
40 & 6.2 & 6.72815187779561 & -0.528151877795611 \tabularnewline
41 & 6.5 & 7.16766095483882 & -0.667660954838824 \tabularnewline
42 & 6.8 & 7.40808884604711 & -0.608088846047113 \tabularnewline
43 & 6.8 & 7.388897252107 & -0.588897252106994 \tabularnewline
44 & 6.4 & 7.43375096991655 & -1.03375096991654 \tabularnewline
45 & 6.1 & 7.36442527969289 & -1.26442527969289 \tabularnewline
46 & 5.8 & 6.99422651093572 & -1.19422651093572 \tabularnewline
47 & 6.1 & 6.88190325789344 & -0.781903257893439 \tabularnewline
48 & 7.2 & 7.17486093023353 & 0.0251390697664716 \tabularnewline
49 & 7.3 & 7.3124766849785 & -0.0124766849784967 \tabularnewline
50 & 6.9 & 7.09724013932742 & -0.19724013932742 \tabularnewline
51 & 6.1 & 6.84934148234256 & -0.749341482342558 \tabularnewline
52 & 5.8 & 6.82268035316971 & -1.02268035316971 \tabularnewline
53 & 6.2 & 6.92911929886123 & -0.729119298861229 \tabularnewline
54 & 7.1 & 7.38477393685249 & -0.284773936852494 \tabularnewline
55 & 7.7 & 7.54084067393315 & 0.159159326066852 \tabularnewline
56 & 7.9 & 7.23850843101467 & 0.661491568985331 \tabularnewline
57 & 7.7 & 7.16759669254648 & 0.532403307453522 \tabularnewline
58 & 7.4 & 6.9139724697624 & 0.486027530237598 \tabularnewline
59 & 7.5 & 6.81988877153224 & 0.680111228467759 \tabularnewline
60 & 8 & 7.1363199578914 & 0.863680042108597 \tabularnewline
61 & 8.1 & 7.21620355653541 & 0.883796443464588 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58329&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[/C][C]7.43396798050962[/C][C]0.566032019490377[/C][/ROW]
[ROW][C]2[/C][C]8.1[/C][C]7.09850897792305[/C][C]1.00149102207695[/C][/ROW]
[ROW][C]3[/C][C]7.7[/C][C]6.84394891831115[/C][C]0.856051081688851[/C][/ROW]
[ROW][C]4[/C][C]7.5[/C][C]6.78033286504071[/C][C]0.71966713495929[/C][/ROW]
[ROW][C]5[/C][C]7.6[/C][C]7.02618545142658[/C][C]0.57381454857342[/C][/ROW]
[ROW][C]6[/C][C]7.8[/C][C]7.36827903510936[/C][C]0.431720964890638[/C][/ROW]
[ROW][C]7[/C][C]7.8[/C][C]7.46471035819562[/C][C]0.335289641804381[/C][/ROW]
[ROW][C]8[/C][C]7.8[/C][C]7.3939411589788[/C][C]0.406058841021206[/C][/ROW]
[ROW][C]9[/C][C]7.5[/C][C]7.30145916438497[/C][C]0.198540835615031[/C][/ROW]
[ROW][C]10[/C][C]7.5[/C][C]7.1226964187428[/C][C]0.377303581257201[/C][/ROW]
[ROW][C]11[/C][C]7.1[/C][C]6.93900099469659[/C][C]0.160999005303413[/C][/ROW]
[ROW][C]12[/C][C]7.5[/C][C]7.43640028575684[/C][C]0.063599714243164[/C][/ROW]
[ROW][C]13[/C][C]7.5[/C][C]7.43904333489214[/C][C]0.0609566651078591[/C][/ROW]
[ROW][C]14[/C][C]7.6[/C][C]7.13673274061626[/C][C]0.463267259383735[/C][/ROW]
[ROW][C]15[/C][C]7.7[/C][C]7.03475052212834[/C][C]0.665249477871665[/C][/ROW]
[ROW][C]16[/C][C]7.7[/C][C]6.95004002720562[/C][C]0.749959972794378[/C][/ROW]
[ROW][C]17[/C][C]7.9[/C][C]7.04537663518542[/C][C]0.854623364814584[/C][/ROW]
[ROW][C]18[/C][C]8.1[/C][C]7.44678842321369[/C][C]0.65321157678631[/C][/ROW]
[ROW][C]19[/C][C]8.2[/C][C]7.69056362821696[/C][C]0.509436371783041[/C][/ROW]
[ROW][C]20[/C][C]8.2[/C][C]7.64580562021046[/C][C]0.554194379789542[/C][/ROW]
[ROW][C]21[/C][C]8.2[/C][C]7.39836671212587[/C][C]0.801633287874132[/C][/ROW]
[ROW][C]22[/C][C]7.9[/C][C]7.26274447873496[/C][C]0.637255521265037[/C][/ROW]
[ROW][C]23[/C][C]7.3[/C][C]6.93503587408526[/C][C]0.364964125914743[/C][/ROW]
[ROW][C]24[/C][C]6.9[/C][C]7.3751788235179[/C][C]-0.475178823517905[/C][/ROW]
[ROW][C]25[/C][C]6.7[/C][C]7.4368228673498[/C][C]-0.736822867349796[/C][/ROW]
[ROW][C]26[/C][C]6.7[/C][C]7.20905654056692[/C][C]-0.509056540566918[/C][/ROW]
[ROW][C]27[/C][C]6.9[/C][C]6.99811280767965[/C][C]-0.098112807679648[/C][/ROW]
[ROW][C]28[/C][C]7[/C][C]6.91879487678834[/C][C]0.081205123211656[/C][/ROW]
[ROW][C]29[/C][C]7.1[/C][C]7.13165765968795[/C][C]-0.0316576596879509[/C][/ROW]
[ROW][C]30[/C][C]7.2[/C][C]7.39206975877734[/C][C]-0.192069758777340[/C][/ROW]
[ROW][C]31[/C][C]7.1[/C][C]7.51498808754728[/C][C]-0.414988087547280[/C][/ROW]
[ROW][C]32[/C][C]6.9[/C][C]7.48799381987954[/C][C]-0.587993819879535[/C][/ROW]
[ROW][C]33[/C][C]7[/C][C]7.2681521512498[/C][C]-0.268152151249799[/C][/ROW]
[ROW][C]34[/C][C]6.8[/C][C]7.10636012182412[/C][C]-0.306360121824120[/C][/ROW]
[ROW][C]35[/C][C]6.4[/C][C]6.82417110179248[/C][C]-0.424171101792477[/C][/ROW]
[ROW][C]36[/C][C]6.7[/C][C]7.17724000260033[/C][C]-0.477240002600326[/C][/ROW]
[ROW][C]37[/C][C]6.6[/C][C]7.36148557573453[/C][C]-0.761485575734532[/C][/ROW]
[ROW][C]38[/C][C]6.4[/C][C]7.15846160156635[/C][C]-0.758461601566351[/C][/ROW]
[ROW][C]39[/C][C]6.3[/C][C]6.97384626953831[/C][C]-0.67384626953831[/C][/ROW]
[ROW][C]40[/C][C]6.2[/C][C]6.72815187779561[/C][C]-0.528151877795611[/C][/ROW]
[ROW][C]41[/C][C]6.5[/C][C]7.16766095483882[/C][C]-0.667660954838824[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]7.40808884604711[/C][C]-0.608088846047113[/C][/ROW]
[ROW][C]43[/C][C]6.8[/C][C]7.388897252107[/C][C]-0.588897252106994[/C][/ROW]
[ROW][C]44[/C][C]6.4[/C][C]7.43375096991655[/C][C]-1.03375096991654[/C][/ROW]
[ROW][C]45[/C][C]6.1[/C][C]7.36442527969289[/C][C]-1.26442527969289[/C][/ROW]
[ROW][C]46[/C][C]5.8[/C][C]6.99422651093572[/C][C]-1.19422651093572[/C][/ROW]
[ROW][C]47[/C][C]6.1[/C][C]6.88190325789344[/C][C]-0.781903257893439[/C][/ROW]
[ROW][C]48[/C][C]7.2[/C][C]7.17486093023353[/C][C]0.0251390697664716[/C][/ROW]
[ROW][C]49[/C][C]7.3[/C][C]7.3124766849785[/C][C]-0.0124766849784967[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]7.09724013932742[/C][C]-0.19724013932742[/C][/ROW]
[ROW][C]51[/C][C]6.1[/C][C]6.84934148234256[/C][C]-0.749341482342558[/C][/ROW]
[ROW][C]52[/C][C]5.8[/C][C]6.82268035316971[/C][C]-1.02268035316971[/C][/ROW]
[ROW][C]53[/C][C]6.2[/C][C]6.92911929886123[/C][C]-0.729119298861229[/C][/ROW]
[ROW][C]54[/C][C]7.1[/C][C]7.38477393685249[/C][C]-0.284773936852494[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.54084067393315[/C][C]0.159159326066852[/C][/ROW]
[ROW][C]56[/C][C]7.9[/C][C]7.23850843101467[/C][C]0.661491568985331[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]7.16759669254648[/C][C]0.532403307453522[/C][/ROW]
[ROW][C]58[/C][C]7.4[/C][C]6.9139724697624[/C][C]0.486027530237598[/C][/ROW]
[ROW][C]59[/C][C]7.5[/C][C]6.81988877153224[/C][C]0.680111228467759[/C][/ROW]
[ROW][C]60[/C][C]8[/C][C]7.1363199578914[/C][C]0.863680042108597[/C][/ROW]
[ROW][C]61[/C][C]8.1[/C][C]7.21620355653541[/C][C]0.883796443464588[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58329&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58329&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
187.433967980509620.566032019490377
28.17.098508977923051.00149102207695
37.76.843948918311150.856051081688851
47.56.780332865040710.71966713495929
57.67.026185451426580.57381454857342
67.87.368279035109360.431720964890638
77.87.464710358195620.335289641804381
87.87.39394115897880.406058841021206
97.57.301459164384970.198540835615031
107.57.12269641874280.377303581257201
117.16.939000994696590.160999005303413
127.57.436400285756840.063599714243164
137.57.439043334892140.0609566651078591
147.67.136732740616260.463267259383735
157.77.034750522128340.665249477871665
167.76.950040027205620.749959972794378
177.97.045376635185420.854623364814584
188.17.446788423213690.65321157678631
198.27.690563628216960.509436371783041
208.27.645805620210460.554194379789542
218.27.398366712125870.801633287874132
227.97.262744478734960.637255521265037
237.36.935035874085260.364964125914743
246.97.3751788235179-0.475178823517905
256.77.4368228673498-0.736822867349796
266.77.20905654056692-0.509056540566918
276.96.99811280767965-0.098112807679648
2876.918794876788340.081205123211656
297.17.13165765968795-0.0316576596879509
307.27.39206975877734-0.192069758777340
317.17.51498808754728-0.414988087547280
326.97.48799381987954-0.587993819879535
3377.2681521512498-0.268152151249799
346.87.10636012182412-0.306360121824120
356.46.82417110179248-0.424171101792477
366.77.17724000260033-0.477240002600326
376.67.36148557573453-0.761485575734532
386.47.15846160156635-0.758461601566351
396.36.97384626953831-0.67384626953831
406.26.72815187779561-0.528151877795611
416.57.16766095483882-0.667660954838824
426.87.40808884604711-0.608088846047113
436.87.388897252107-0.588897252106994
446.47.43375096991655-1.03375096991654
456.17.36442527969289-1.26442527969289
465.86.99422651093572-1.19422651093572
476.16.88190325789344-0.781903257893439
487.27.174860930233530.0251390697664716
497.37.3124766849785-0.0124766849784967
506.97.09724013932742-0.19724013932742
516.16.84934148234256-0.749341482342558
525.86.82268035316971-1.02268035316971
536.26.92911929886123-0.729119298861229
547.17.38477393685249-0.284773936852494
557.77.540840673933150.159159326066852
567.97.238508431014670.661491568985331
577.77.167596692546480.532403307453522
587.46.91397246976240.486027530237598
597.56.819888771532240.680111228467759
6087.13631995789140.863680042108597
618.17.216203556535410.883796443464588







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.09412014407659230.1882402881531850.905879855923408
170.04834296372537930.09668592745075870.95165703627462
180.02339479566172100.04678959132344190.976605204338279
190.01012145433683960.02024290867367930.98987854566316
200.004187596591725010.008375193183450020.995812403408275
210.006523898195255390.01304779639051080.993476101804745
220.005009993052978430.01001998610595690.994990006947022
230.002722177595956470.005444355191912930.997277822404044
240.002368703857745490.004737407715490990.997631296142254
250.02322068051663180.04644136103326360.976779319483368
260.1026860439433360.2053720878866730.897313956056664
270.1400650897757310.2801301795514620.859934910224269
280.2009740937744710.4019481875489420.799025906225529
290.2455339506791690.4910679013583390.75446604932083
300.2345161456564010.4690322913128030.765483854343599
310.2345268390997370.4690536781994730.765473160900263
320.2662582772932150.5325165545864310.733741722706785
330.2368971046723230.4737942093446460.763102895327677
340.2516622741864240.5033245483728480.748337725813576
350.2212641178244200.4425282356488390.77873588217558
360.1987062266225320.3974124532450650.801293773377468
370.195106620285440.390213240570880.80489337971456
380.1954133645144950.390826729028990.804586635485505
390.2166439003122820.4332878006245640.783356099687718
400.1725708319201310.3451416638402610.82742916807987
410.3295739709503780.6591479419007560.670426029049622
420.2578878080779450.5157756161558910.742112191922055
430.7926475337256120.4147049325487760.207352466274388
440.7342024757324650.531595048535070.265797524267535
450.8078944964665960.3842110070668090.192105503533404

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0941201440765923 & 0.188240288153185 & 0.905879855923408 \tabularnewline
17 & 0.0483429637253793 & 0.0966859274507587 & 0.95165703627462 \tabularnewline
18 & 0.0233947956617210 & 0.0467895913234419 & 0.976605204338279 \tabularnewline
19 & 0.0101214543368396 & 0.0202429086736793 & 0.98987854566316 \tabularnewline
20 & 0.00418759659172501 & 0.00837519318345002 & 0.995812403408275 \tabularnewline
21 & 0.00652389819525539 & 0.0130477963905108 & 0.993476101804745 \tabularnewline
22 & 0.00500999305297843 & 0.0100199861059569 & 0.994990006947022 \tabularnewline
23 & 0.00272217759595647 & 0.00544435519191293 & 0.997277822404044 \tabularnewline
24 & 0.00236870385774549 & 0.00473740771549099 & 0.997631296142254 \tabularnewline
25 & 0.0232206805166318 & 0.0464413610332636 & 0.976779319483368 \tabularnewline
26 & 0.102686043943336 & 0.205372087886673 & 0.897313956056664 \tabularnewline
27 & 0.140065089775731 & 0.280130179551462 & 0.859934910224269 \tabularnewline
28 & 0.200974093774471 & 0.401948187548942 & 0.799025906225529 \tabularnewline
29 & 0.245533950679169 & 0.491067901358339 & 0.75446604932083 \tabularnewline
30 & 0.234516145656401 & 0.469032291312803 & 0.765483854343599 \tabularnewline
31 & 0.234526839099737 & 0.469053678199473 & 0.765473160900263 \tabularnewline
32 & 0.266258277293215 & 0.532516554586431 & 0.733741722706785 \tabularnewline
33 & 0.236897104672323 & 0.473794209344646 & 0.763102895327677 \tabularnewline
34 & 0.251662274186424 & 0.503324548372848 & 0.748337725813576 \tabularnewline
35 & 0.221264117824420 & 0.442528235648839 & 0.77873588217558 \tabularnewline
36 & 0.198706226622532 & 0.397412453245065 & 0.801293773377468 \tabularnewline
37 & 0.19510662028544 & 0.39021324057088 & 0.80489337971456 \tabularnewline
38 & 0.195413364514495 & 0.39082672902899 & 0.804586635485505 \tabularnewline
39 & 0.216643900312282 & 0.433287800624564 & 0.783356099687718 \tabularnewline
40 & 0.172570831920131 & 0.345141663840261 & 0.82742916807987 \tabularnewline
41 & 0.329573970950378 & 0.659147941900756 & 0.670426029049622 \tabularnewline
42 & 0.257887808077945 & 0.515775616155891 & 0.742112191922055 \tabularnewline
43 & 0.792647533725612 & 0.414704932548776 & 0.207352466274388 \tabularnewline
44 & 0.734202475732465 & 0.53159504853507 & 0.265797524267535 \tabularnewline
45 & 0.807894496466596 & 0.384211007066809 & 0.192105503533404 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58329&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.0941201440765923[/C][C]0.188240288153185[/C][C]0.905879855923408[/C][/ROW]
[ROW][C]17[/C][C]0.0483429637253793[/C][C]0.0966859274507587[/C][C]0.95165703627462[/C][/ROW]
[ROW][C]18[/C][C]0.0233947956617210[/C][C]0.0467895913234419[/C][C]0.976605204338279[/C][/ROW]
[ROW][C]19[/C][C]0.0101214543368396[/C][C]0.0202429086736793[/C][C]0.98987854566316[/C][/ROW]
[ROW][C]20[/C][C]0.00418759659172501[/C][C]0.00837519318345002[/C][C]0.995812403408275[/C][/ROW]
[ROW][C]21[/C][C]0.00652389819525539[/C][C]0.0130477963905108[/C][C]0.993476101804745[/C][/ROW]
[ROW][C]22[/C][C]0.00500999305297843[/C][C]0.0100199861059569[/C][C]0.994990006947022[/C][/ROW]
[ROW][C]23[/C][C]0.00272217759595647[/C][C]0.00544435519191293[/C][C]0.997277822404044[/C][/ROW]
[ROW][C]24[/C][C]0.00236870385774549[/C][C]0.00473740771549099[/C][C]0.997631296142254[/C][/ROW]
[ROW][C]25[/C][C]0.0232206805166318[/C][C]0.0464413610332636[/C][C]0.976779319483368[/C][/ROW]
[ROW][C]26[/C][C]0.102686043943336[/C][C]0.205372087886673[/C][C]0.897313956056664[/C][/ROW]
[ROW][C]27[/C][C]0.140065089775731[/C][C]0.280130179551462[/C][C]0.859934910224269[/C][/ROW]
[ROW][C]28[/C][C]0.200974093774471[/C][C]0.401948187548942[/C][C]0.799025906225529[/C][/ROW]
[ROW][C]29[/C][C]0.245533950679169[/C][C]0.491067901358339[/C][C]0.75446604932083[/C][/ROW]
[ROW][C]30[/C][C]0.234516145656401[/C][C]0.469032291312803[/C][C]0.765483854343599[/C][/ROW]
[ROW][C]31[/C][C]0.234526839099737[/C][C]0.469053678199473[/C][C]0.765473160900263[/C][/ROW]
[ROW][C]32[/C][C]0.266258277293215[/C][C]0.532516554586431[/C][C]0.733741722706785[/C][/ROW]
[ROW][C]33[/C][C]0.236897104672323[/C][C]0.473794209344646[/C][C]0.763102895327677[/C][/ROW]
[ROW][C]34[/C][C]0.251662274186424[/C][C]0.503324548372848[/C][C]0.748337725813576[/C][/ROW]
[ROW][C]35[/C][C]0.221264117824420[/C][C]0.442528235648839[/C][C]0.77873588217558[/C][/ROW]
[ROW][C]36[/C][C]0.198706226622532[/C][C]0.397412453245065[/C][C]0.801293773377468[/C][/ROW]
[ROW][C]37[/C][C]0.19510662028544[/C][C]0.39021324057088[/C][C]0.80489337971456[/C][/ROW]
[ROW][C]38[/C][C]0.195413364514495[/C][C]0.39082672902899[/C][C]0.804586635485505[/C][/ROW]
[ROW][C]39[/C][C]0.216643900312282[/C][C]0.433287800624564[/C][C]0.783356099687718[/C][/ROW]
[ROW][C]40[/C][C]0.172570831920131[/C][C]0.345141663840261[/C][C]0.82742916807987[/C][/ROW]
[ROW][C]41[/C][C]0.329573970950378[/C][C]0.659147941900756[/C][C]0.670426029049622[/C][/ROW]
[ROW][C]42[/C][C]0.257887808077945[/C][C]0.515775616155891[/C][C]0.742112191922055[/C][/ROW]
[ROW][C]43[/C][C]0.792647533725612[/C][C]0.414704932548776[/C][C]0.207352466274388[/C][/ROW]
[ROW][C]44[/C][C]0.734202475732465[/C][C]0.53159504853507[/C][C]0.265797524267535[/C][/ROW]
[ROW][C]45[/C][C]0.807894496466596[/C][C]0.384211007066809[/C][C]0.192105503533404[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58329&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58329&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.09412014407659230.1882402881531850.905879855923408
170.04834296372537930.09668592745075870.95165703627462
180.02339479566172100.04678959132344190.976605204338279
190.01012145433683960.02024290867367930.98987854566316
200.004187596591725010.008375193183450020.995812403408275
210.006523898195255390.01304779639051080.993476101804745
220.005009993052978430.01001998610595690.994990006947022
230.002722177595956470.005444355191912930.997277822404044
240.002368703857745490.004737407715490990.997631296142254
250.02322068051663180.04644136103326360.976779319483368
260.1026860439433360.2053720878866730.897313956056664
270.1400650897757310.2801301795514620.859934910224269
280.2009740937744710.4019481875489420.799025906225529
290.2455339506791690.4910679013583390.75446604932083
300.2345161456564010.4690322913128030.765483854343599
310.2345268390997370.4690536781994730.765473160900263
320.2662582772932150.5325165545864310.733741722706785
330.2368971046723230.4737942093446460.763102895327677
340.2516622741864240.5033245483728480.748337725813576
350.2212641178244200.4425282356488390.77873588217558
360.1987062266225320.3974124532450650.801293773377468
370.195106620285440.390213240570880.80489337971456
380.1954133645144950.390826729028990.804586635485505
390.2166439003122820.4332878006245640.783356099687718
400.1725708319201310.3451416638402610.82742916807987
410.3295739709503780.6591479419007560.670426029049622
420.2578878080779450.5157756161558910.742112191922055
430.7926475337256120.4147049325487760.207352466274388
440.7342024757324650.531595048535070.265797524267535
450.8078944964665960.3842110070668090.192105503533404







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.1NOK
5% type I error level80.266666666666667NOK
10% type I error level90.3NOK

\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 & 3 & 0.1 & NOK \tabularnewline
5% type I error level & 8 & 0.266666666666667 & NOK \tabularnewline
10% type I error level & 9 & 0.3 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58329&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]3[/C][C]0.1[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]8[/C][C]0.266666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]9[/C][C]0.3[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58329&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58329&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 level30.1NOK
5% type I error level80.266666666666667NOK
10% type I error level90.3NOK



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