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 05:32: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/t12587204412k910azzdmc4dnx.htm/, Retrieved Thu, 25 Apr 2024 22:44:50 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58083, Retrieved Thu, 25 Apr 2024 22:44:50 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact169
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:10:54] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [SHW WS7] [2009-11-20 12:32:24] [b7e46d23597387652ca7420fdeb9acca] [Current]
-    D        [Multiple Regression] [SHW WS7] [2009-11-20 12:47:50] [253127ae8da904b75450fbd69fe4eb21]
- R  D          [Multiple Regression] [WorkShop7 (SHW)] [2009-11-27 16:41:59] [37daf76adc256428993ec4063536c760]
-    D        [Multiple Regression] [SHW WS7 - Model 4] [2009-11-21 09:08:37] [e477350c00858f5884f75ca2ff5ea637]
- R  D        [Multiple Regression] [WorkShop7 (SHW)] [2009-11-27 15:58:30] [37daf76adc256428993ec4063536c760]
-    D        [Multiple Regression] [SHW paper] [2009-12-06 12:46:31] [253127ae8da904b75450fbd69fe4eb21]
-    D          [Multiple Regression] [SHW Paper] [2009-12-09 14:36:30] [253127ae8da904b75450fbd69fe4eb21]
-    D        [Multiple Regression] [SHW paper] [2009-12-06 12:51:03] [253127ae8da904b75450fbd69fe4eb21]
Feedback Forum

Post a new message
Dataseries X:
7.8	0	7.8	8.3	8.5	8.6
8	0	7.8	7.8	8.3	8.5
8.6	0	8	7.8	7.8	8.3
8.9	0	8.6	8	7.8	7.8
8.9	0	8.9	8.6	8	7.8
8.6	0	8.9	8.9	8.6	8
8.3	0	8.6	8.9	8.9	8.6
8.3	0	8.3	8.6	8.9	8.9
8.3	0	8.3	8.3	8.6	8.9
8.4	0	8.3	8.3	8.3	8.6
8.5	0	8.4	8.3	8.3	8.3
8.4	0	8.5	8.4	8.3	8.3
8.6	0	8.4	8.5	8.4	8.3
8.5	0	8.6	8.4	8.5	8.4
8.5	0	8.5	8.6	8.4	8.5
8.5	0	8.5	8.5	8.6	8.4
8.5	0	8.5	8.5	8.5	8.6
8.5	0	8.5	8.5	8.5	8.5
8.5	0	8.5	8.5	8.5	8.5
8.5	0	8.5	8.5	8.5	8.5
8.5	0	8.5	8.5	8.5	8.5
8.5	0	8.5	8.5	8.5	8.5
8.5	0	8.5	8.5	8.5	8.5
8.5	0	8.5	8.5	8.5	8.5
8.6	0	8.5	8.5	8.5	8.5
8.4	0	8.6	8.5	8.5	8.5
8.1	0	8.4	8.6	8.5	8.5
8	0	8.1	8.4	8.6	8.5
8	0	8	8.1	8.4	8.6
8	0	8	8	8.1	8.4
8	0	8	8	8	8.1
7.9	0	8	8	8	8
7.8	0	7.9	8	8	8
7.8	0	7.8	7.9	8	8
7.9	0	7.8	7.8	7.9	8
8.1	0	7.9	7.8	7.8	7.9
8	0	8.1	7.9	7.8	7.8
7.6	0	8	8.1	7.9	7.8
7.3	0	7.6	8	8.1	7.9
7	0	7.3	7.6	8	8.1
6.8	0	7	7.3	7.6	8
7	0	6.8	7	7.3	7.6
7.1	0	7	6.8	7	7.3
7.2	0	7.1	7	6.8	7
7.1	1	7.2	7.1	7	6.8
6.9	1	7.1	7.2	7.1	7
6.7	1	6.9	7.1	7.2	7.1
6.7	1	6.7	6.9	7.1	7.2
6.6	1	6.7	6.7	6.9	7.1
6.9	1	6.6	6.7	6.7	6.9
7.3	1	6.9	6.6	6.7	6.7
7.5	1	7.3	6.9	6.6	6.7
7.3	1	7.5	7.3	6.9	6.6
7.1	1	7.3	7.5	7.3	6.9
6.9	1	7.1	7.3	7.5	7.3
7.1	1	6.9	7.1	7.3	7.5




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 0.828054484333973 + 0.118092413961489X[t] + 1.39245913482402Y1[t] -0.532231626987506Y2[t] -0.386918622865897Y3[t] + 0.441898655528487Y4[t] + 0.0116479357493733M1[t] -0.0903743560875964M2[t] + 0.0488973179489897M3[t] -0.0144921933048258M4[t] -0.0978713441555035M5[t] + 0.0190056749325876M6[t] -0.0414326074099239M7[t] + 0.0444449825289134M8[t] -0.0775862591018103M9[t] -0.0350555474036831M10[t] + 0.00144550210597445M11[t] -0.00620621971200828t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  0.828054484333973 +  0.118092413961489X[t] +  1.39245913482402Y1[t] -0.532231626987506Y2[t] -0.386918622865897Y3[t] +  0.441898655528487Y4[t] +  0.0116479357493733M1[t] -0.0903743560875964M2[t] +  0.0488973179489897M3[t] -0.0144921933048258M4[t] -0.0978713441555035M5[t] +  0.0190056749325876M6[t] -0.0414326074099239M7[t] +  0.0444449825289134M8[t] -0.0775862591018103M9[t] -0.0350555474036831M10[t] +  0.00144550210597445M11[t] -0.00620621971200828t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58083&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  0.828054484333973 +  0.118092413961489X[t] +  1.39245913482402Y1[t] -0.532231626987506Y2[t] -0.386918622865897Y3[t] +  0.441898655528487Y4[t] +  0.0116479357493733M1[t] -0.0903743560875964M2[t] +  0.0488973179489897M3[t] -0.0144921933048258M4[t] -0.0978713441555035M5[t] +  0.0190056749325876M6[t] -0.0414326074099239M7[t] +  0.0444449825289134M8[t] -0.0775862591018103M9[t] -0.0350555474036831M10[t] +  0.00144550210597445M11[t] -0.00620621971200828t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58083&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58083&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.828054484333973 + 0.118092413961489X[t] + 1.39245913482402Y1[t] -0.532231626987506Y2[t] -0.386918622865897Y3[t] + 0.441898655528487Y4[t] + 0.0116479357493733M1[t] -0.0903743560875964M2[t] + 0.0488973179489897M3[t] -0.0144921933048258M4[t] -0.0978713441555035M5[t] + 0.0190056749325876M6[t] -0.0414326074099239M7[t] + 0.0444449825289134M8[t] -0.0775862591018103M9[t] -0.0350555474036831M10[t] + 0.00144550210597445M11[t] -0.00620621971200828t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.8280544843339730.661621.25160.2183820.109191
X0.1180924139614890.0835231.41390.1655360.082768
Y11.392459134824020.13398110.39300
Y2-0.5322316269875060.24471-2.1750.0359250.017963
Y3-0.3869186228658970.249732-1.54930.1295910.064795
Y40.4418986555284870.1493012.95980.0052780.002639
M10.01164793574937330.0913880.12750.8992520.449626
M2-0.09037435608759640.091278-0.99010.328390.164195
M30.04889731794898970.0916260.53370.5966820.298341
M4-0.01449219330482580.092508-0.15670.8763440.438172
M5-0.09787134415550350.091328-1.07170.2906360.145318
M60.01900567493258760.0923970.20570.8381270.419063
M7-0.04143260740992390.091657-0.4520.653810.326905
M80.04444498252891340.0909650.48860.6279390.313969
M9-0.07758625910181030.095506-0.81240.4216410.210821
M10-0.03505554740368310.095754-0.36610.7163210.358161
M110.001445502105974450.0956080.01510.9880160.494008
t-0.006206219712008280.00226-2.74630.0091590.004579

\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.828054484333973 & 0.66162 & 1.2516 & 0.218382 & 0.109191 \tabularnewline
X & 0.118092413961489 & 0.083523 & 1.4139 & 0.165536 & 0.082768 \tabularnewline
Y1 & 1.39245913482402 & 0.133981 & 10.393 & 0 & 0 \tabularnewline
Y2 & -0.532231626987506 & 0.24471 & -2.175 & 0.035925 & 0.017963 \tabularnewline
Y3 & -0.386918622865897 & 0.249732 & -1.5493 & 0.129591 & 0.064795 \tabularnewline
Y4 & 0.441898655528487 & 0.149301 & 2.9598 & 0.005278 & 0.002639 \tabularnewline
M1 & 0.0116479357493733 & 0.091388 & 0.1275 & 0.899252 & 0.449626 \tabularnewline
M2 & -0.0903743560875964 & 0.091278 & -0.9901 & 0.32839 & 0.164195 \tabularnewline
M3 & 0.0488973179489897 & 0.091626 & 0.5337 & 0.596682 & 0.298341 \tabularnewline
M4 & -0.0144921933048258 & 0.092508 & -0.1567 & 0.876344 & 0.438172 \tabularnewline
M5 & -0.0978713441555035 & 0.091328 & -1.0717 & 0.290636 & 0.145318 \tabularnewline
M6 & 0.0190056749325876 & 0.092397 & 0.2057 & 0.838127 & 0.419063 \tabularnewline
M7 & -0.0414326074099239 & 0.091657 & -0.452 & 0.65381 & 0.326905 \tabularnewline
M8 & 0.0444449825289134 & 0.090965 & 0.4886 & 0.627939 & 0.313969 \tabularnewline
M9 & -0.0775862591018103 & 0.095506 & -0.8124 & 0.421641 & 0.210821 \tabularnewline
M10 & -0.0350555474036831 & 0.095754 & -0.3661 & 0.716321 & 0.358161 \tabularnewline
M11 & 0.00144550210597445 & 0.095608 & 0.0151 & 0.988016 & 0.494008 \tabularnewline
t & -0.00620621971200828 & 0.00226 & -2.7463 & 0.009159 & 0.004579 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58083&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.828054484333973[/C][C]0.66162[/C][C]1.2516[/C][C]0.218382[/C][C]0.109191[/C][/ROW]
[ROW][C]X[/C][C]0.118092413961489[/C][C]0.083523[/C][C]1.4139[/C][C]0.165536[/C][C]0.082768[/C][/ROW]
[ROW][C]Y1[/C][C]1.39245913482402[/C][C]0.133981[/C][C]10.393[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.532231626987506[/C][C]0.24471[/C][C]-2.175[/C][C]0.035925[/C][C]0.017963[/C][/ROW]
[ROW][C]Y3[/C][C]-0.386918622865897[/C][C]0.249732[/C][C]-1.5493[/C][C]0.129591[/C][C]0.064795[/C][/ROW]
[ROW][C]Y4[/C][C]0.441898655528487[/C][C]0.149301[/C][C]2.9598[/C][C]0.005278[/C][C]0.002639[/C][/ROW]
[ROW][C]M1[/C][C]0.0116479357493733[/C][C]0.091388[/C][C]0.1275[/C][C]0.899252[/C][C]0.449626[/C][/ROW]
[ROW][C]M2[/C][C]-0.0903743560875964[/C][C]0.091278[/C][C]-0.9901[/C][C]0.32839[/C][C]0.164195[/C][/ROW]
[ROW][C]M3[/C][C]0.0488973179489897[/C][C]0.091626[/C][C]0.5337[/C][C]0.596682[/C][C]0.298341[/C][/ROW]
[ROW][C]M4[/C][C]-0.0144921933048258[/C][C]0.092508[/C][C]-0.1567[/C][C]0.876344[/C][C]0.438172[/C][/ROW]
[ROW][C]M5[/C][C]-0.0978713441555035[/C][C]0.091328[/C][C]-1.0717[/C][C]0.290636[/C][C]0.145318[/C][/ROW]
[ROW][C]M6[/C][C]0.0190056749325876[/C][C]0.092397[/C][C]0.2057[/C][C]0.838127[/C][C]0.419063[/C][/ROW]
[ROW][C]M7[/C][C]-0.0414326074099239[/C][C]0.091657[/C][C]-0.452[/C][C]0.65381[/C][C]0.326905[/C][/ROW]
[ROW][C]M8[/C][C]0.0444449825289134[/C][C]0.090965[/C][C]0.4886[/C][C]0.627939[/C][C]0.313969[/C][/ROW]
[ROW][C]M9[/C][C]-0.0775862591018103[/C][C]0.095506[/C][C]-0.8124[/C][C]0.421641[/C][C]0.210821[/C][/ROW]
[ROW][C]M10[/C][C]-0.0350555474036831[/C][C]0.095754[/C][C]-0.3661[/C][C]0.716321[/C][C]0.358161[/C][/ROW]
[ROW][C]M11[/C][C]0.00144550210597445[/C][C]0.095608[/C][C]0.0151[/C][C]0.988016[/C][C]0.494008[/C][/ROW]
[ROW][C]t[/C][C]-0.00620621971200828[/C][C]0.00226[/C][C]-2.7463[/C][C]0.009159[/C][C]0.004579[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58083&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58083&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.8280544843339730.661621.25160.2183820.109191
X0.1180924139614890.0835231.41390.1655360.082768
Y11.392459134824020.13398110.39300
Y2-0.5322316269875060.24471-2.1750.0359250.017963
Y3-0.3869186228658970.249732-1.54930.1295910.064795
Y40.4418986555284870.1493012.95980.0052780.002639
M10.01164793574937330.0913880.12750.8992520.449626
M2-0.09037435608759640.091278-0.99010.328390.164195
M30.04889731794898970.0916260.53370.5966820.298341
M4-0.01449219330482580.092508-0.15670.8763440.438172
M5-0.09787134415550350.091328-1.07170.2906360.145318
M60.01900567493258760.0923970.20570.8381270.419063
M7-0.04143260740992390.091657-0.4520.653810.326905
M80.04444498252891340.0909650.48860.6279390.313969
M9-0.07758625910181030.095506-0.81240.4216410.210821
M10-0.03505554740368310.095754-0.36610.7163210.358161
M110.001445502105974450.0956080.01510.9880160.494008
t-0.006206219712008280.00226-2.74630.0091590.004579







Multiple Linear Regression - Regression Statistics
Multiple R0.985809336202448
R-squared0.971820047343912
Adjusted R-squared0.95921322641882
F-TEST (value)77.0868447420907
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.134663370271501
Sum Squared Residuals0.689100485129412

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.985809336202448 \tabularnewline
R-squared & 0.971820047343912 \tabularnewline
Adjusted R-squared & 0.95921322641882 \tabularnewline
F-TEST (value) & 77.0868447420907 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.134663370271501 \tabularnewline
Sum Squared Residuals & 0.689100485129412 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58083&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.985809336202448[/C][/ROW]
[ROW][C]R-squared[/C][C]0.971820047343912[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.95921322641882[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]77.0868447420907[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.134663370271501[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]0.689100485129412[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58083&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58083&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.985809336202448
R-squared0.971820047343912
Adjusted R-squared0.95921322641882
F-TEST (value)77.0868447420907
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.134663370271501
Sum Squared Residuals0.689100485129412







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.87.788675091187240.0113249088127546
287.979756252152360.0202437478476421
38.68.496393113768990.103606886231010
48.98.93487721053583-0.0348772105358308
58.98.866306879654670.0336931203453313
68.68.67353674832066-0.0735367483206594
78.38.33821811227626-0.0382181122762552
88.38.292390826810680.00760917318932146
98.38.43989844042397-0.139898440423967
108.48.4597289226113-0.0597289226113085
118.58.496700069232810.00329993076718614
128.48.57507109819848-0.175071098198482
138.68.34935187576810.250648124231894
148.58.57833635714894-0.07833635714894
158.58.54859130043305-0.0485913004330537
168.58.410645142039950.0893548579600474
178.58.448131364869550.0518686351304466
188.58.51461229869279-0.0146122986927875
198.58.447967796638270.0520322033617322
208.58.5276391668651-0.0276391668650969
218.58.399401705522370.100598294477635
228.58.435726197508480.0642738024915162
238.58.466021027306130.0339789726938670
248.58.458369305488150.0416306945118497
258.68.463811021525520.136188978474484
268.48.49482842345894-0.0948284234589384
278.18.29617888811996-0.196178888119964
2887.876599879817840.123400120182156
2987.929011673995040.0709883260049633
3088.12060149182394-0.120601491823942
3187.960079255397470.0399207446025346
327.97.99556076007145-0.0955607600714455
337.87.728077385246310.0719226147536874
347.87.678379126448780.121620873551221
357.97.800588981231770.0994110187682314
368.17.926685169629930.173314830370070
3788.1132056843805-0.113205684380498
387.67.72059307166503-0.120593071665028
397.37.31670417573842-0.0167041757384182
4077.16933494851268-0.169334948512678
416.86.93225890919255-0.132258909192549
4276.863423494348450.136576505651547
437.17.16522313485746-0.065223134857462
447.27.22250822108382-0.0225082210838241
457.17.13262246880736-0.0326224688073557
466.97.02616575343143-0.126165753431428
476.76.83668992222928-0.136689922229285
486.76.73987442668344-0.0398744266834375
496.66.88495632713863-0.284956327138635
506.96.626485895574740.273514104425264
517.37.142132521939570.157867478060426
527.57.50854281909369-0.0085428190936946
537.37.3242911722882-0.0242911722881923
547.17.027825966814160.072174033185842
556.96.888511700830550.0114882991694502
567.16.961901025168960.138098974831045

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.8 & 7.78867509118724 & 0.0113249088127546 \tabularnewline
2 & 8 & 7.97975625215236 & 0.0202437478476421 \tabularnewline
3 & 8.6 & 8.49639311376899 & 0.103606886231010 \tabularnewline
4 & 8.9 & 8.93487721053583 & -0.0348772105358308 \tabularnewline
5 & 8.9 & 8.86630687965467 & 0.0336931203453313 \tabularnewline
6 & 8.6 & 8.67353674832066 & -0.0735367483206594 \tabularnewline
7 & 8.3 & 8.33821811227626 & -0.0382181122762552 \tabularnewline
8 & 8.3 & 8.29239082681068 & 0.00760917318932146 \tabularnewline
9 & 8.3 & 8.43989844042397 & -0.139898440423967 \tabularnewline
10 & 8.4 & 8.4597289226113 & -0.0597289226113085 \tabularnewline
11 & 8.5 & 8.49670006923281 & 0.00329993076718614 \tabularnewline
12 & 8.4 & 8.57507109819848 & -0.175071098198482 \tabularnewline
13 & 8.6 & 8.3493518757681 & 0.250648124231894 \tabularnewline
14 & 8.5 & 8.57833635714894 & -0.07833635714894 \tabularnewline
15 & 8.5 & 8.54859130043305 & -0.0485913004330537 \tabularnewline
16 & 8.5 & 8.41064514203995 & 0.0893548579600474 \tabularnewline
17 & 8.5 & 8.44813136486955 & 0.0518686351304466 \tabularnewline
18 & 8.5 & 8.51461229869279 & -0.0146122986927875 \tabularnewline
19 & 8.5 & 8.44796779663827 & 0.0520322033617322 \tabularnewline
20 & 8.5 & 8.5276391668651 & -0.0276391668650969 \tabularnewline
21 & 8.5 & 8.39940170552237 & 0.100598294477635 \tabularnewline
22 & 8.5 & 8.43572619750848 & 0.0642738024915162 \tabularnewline
23 & 8.5 & 8.46602102730613 & 0.0339789726938670 \tabularnewline
24 & 8.5 & 8.45836930548815 & 0.0416306945118497 \tabularnewline
25 & 8.6 & 8.46381102152552 & 0.136188978474484 \tabularnewline
26 & 8.4 & 8.49482842345894 & -0.0948284234589384 \tabularnewline
27 & 8.1 & 8.29617888811996 & -0.196178888119964 \tabularnewline
28 & 8 & 7.87659987981784 & 0.123400120182156 \tabularnewline
29 & 8 & 7.92901167399504 & 0.0709883260049633 \tabularnewline
30 & 8 & 8.12060149182394 & -0.120601491823942 \tabularnewline
31 & 8 & 7.96007925539747 & 0.0399207446025346 \tabularnewline
32 & 7.9 & 7.99556076007145 & -0.0955607600714455 \tabularnewline
33 & 7.8 & 7.72807738524631 & 0.0719226147536874 \tabularnewline
34 & 7.8 & 7.67837912644878 & 0.121620873551221 \tabularnewline
35 & 7.9 & 7.80058898123177 & 0.0994110187682314 \tabularnewline
36 & 8.1 & 7.92668516962993 & 0.173314830370070 \tabularnewline
37 & 8 & 8.1132056843805 & -0.113205684380498 \tabularnewline
38 & 7.6 & 7.72059307166503 & -0.120593071665028 \tabularnewline
39 & 7.3 & 7.31670417573842 & -0.0167041757384182 \tabularnewline
40 & 7 & 7.16933494851268 & -0.169334948512678 \tabularnewline
41 & 6.8 & 6.93225890919255 & -0.132258909192549 \tabularnewline
42 & 7 & 6.86342349434845 & 0.136576505651547 \tabularnewline
43 & 7.1 & 7.16522313485746 & -0.065223134857462 \tabularnewline
44 & 7.2 & 7.22250822108382 & -0.0225082210838241 \tabularnewline
45 & 7.1 & 7.13262246880736 & -0.0326224688073557 \tabularnewline
46 & 6.9 & 7.02616575343143 & -0.126165753431428 \tabularnewline
47 & 6.7 & 6.83668992222928 & -0.136689922229285 \tabularnewline
48 & 6.7 & 6.73987442668344 & -0.0398744266834375 \tabularnewline
49 & 6.6 & 6.88495632713863 & -0.284956327138635 \tabularnewline
50 & 6.9 & 6.62648589557474 & 0.273514104425264 \tabularnewline
51 & 7.3 & 7.14213252193957 & 0.157867478060426 \tabularnewline
52 & 7.5 & 7.50854281909369 & -0.0085428190936946 \tabularnewline
53 & 7.3 & 7.3242911722882 & -0.0242911722881923 \tabularnewline
54 & 7.1 & 7.02782596681416 & 0.072174033185842 \tabularnewline
55 & 6.9 & 6.88851170083055 & 0.0114882991694502 \tabularnewline
56 & 7.1 & 6.96190102516896 & 0.138098974831045 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58083&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.8[/C][C]7.78867509118724[/C][C]0.0113249088127546[/C][/ROW]
[ROW][C]2[/C][C]8[/C][C]7.97975625215236[/C][C]0.0202437478476421[/C][/ROW]
[ROW][C]3[/C][C]8.6[/C][C]8.49639311376899[/C][C]0.103606886231010[/C][/ROW]
[ROW][C]4[/C][C]8.9[/C][C]8.93487721053583[/C][C]-0.0348772105358308[/C][/ROW]
[ROW][C]5[/C][C]8.9[/C][C]8.86630687965467[/C][C]0.0336931203453313[/C][/ROW]
[ROW][C]6[/C][C]8.6[/C][C]8.67353674832066[/C][C]-0.0735367483206594[/C][/ROW]
[ROW][C]7[/C][C]8.3[/C][C]8.33821811227626[/C][C]-0.0382181122762552[/C][/ROW]
[ROW][C]8[/C][C]8.3[/C][C]8.29239082681068[/C][C]0.00760917318932146[/C][/ROW]
[ROW][C]9[/C][C]8.3[/C][C]8.43989844042397[/C][C]-0.139898440423967[/C][/ROW]
[ROW][C]10[/C][C]8.4[/C][C]8.4597289226113[/C][C]-0.0597289226113085[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.49670006923281[/C][C]0.00329993076718614[/C][/ROW]
[ROW][C]12[/C][C]8.4[/C][C]8.57507109819848[/C][C]-0.175071098198482[/C][/ROW]
[ROW][C]13[/C][C]8.6[/C][C]8.3493518757681[/C][C]0.250648124231894[/C][/ROW]
[ROW][C]14[/C][C]8.5[/C][C]8.57833635714894[/C][C]-0.07833635714894[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.54859130043305[/C][C]-0.0485913004330537[/C][/ROW]
[ROW][C]16[/C][C]8.5[/C][C]8.41064514203995[/C][C]0.0893548579600474[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]8.44813136486955[/C][C]0.0518686351304466[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.51461229869279[/C][C]-0.0146122986927875[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.44796779663827[/C][C]0.0520322033617322[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.5276391668651[/C][C]-0.0276391668650969[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]8.39940170552237[/C][C]0.100598294477635[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]8.43572619750848[/C][C]0.0642738024915162[/C][/ROW]
[ROW][C]23[/C][C]8.5[/C][C]8.46602102730613[/C][C]0.0339789726938670[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]8.45836930548815[/C][C]0.0416306945118497[/C][/ROW]
[ROW][C]25[/C][C]8.6[/C][C]8.46381102152552[/C][C]0.136188978474484[/C][/ROW]
[ROW][C]26[/C][C]8.4[/C][C]8.49482842345894[/C][C]-0.0948284234589384[/C][/ROW]
[ROW][C]27[/C][C]8.1[/C][C]8.29617888811996[/C][C]-0.196178888119964[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]7.87659987981784[/C][C]0.123400120182156[/C][/ROW]
[ROW][C]29[/C][C]8[/C][C]7.92901167399504[/C][C]0.0709883260049633[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]8.12060149182394[/C][C]-0.120601491823942[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.96007925539747[/C][C]0.0399207446025346[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]7.99556076007145[/C][C]-0.0955607600714455[/C][/ROW]
[ROW][C]33[/C][C]7.8[/C][C]7.72807738524631[/C][C]0.0719226147536874[/C][/ROW]
[ROW][C]34[/C][C]7.8[/C][C]7.67837912644878[/C][C]0.121620873551221[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.80058898123177[/C][C]0.0994110187682314[/C][/ROW]
[ROW][C]36[/C][C]8.1[/C][C]7.92668516962993[/C][C]0.173314830370070[/C][/ROW]
[ROW][C]37[/C][C]8[/C][C]8.1132056843805[/C][C]-0.113205684380498[/C][/ROW]
[ROW][C]38[/C][C]7.6[/C][C]7.72059307166503[/C][C]-0.120593071665028[/C][/ROW]
[ROW][C]39[/C][C]7.3[/C][C]7.31670417573842[/C][C]-0.0167041757384182[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]7.16933494851268[/C][C]-0.169334948512678[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]6.93225890919255[/C][C]-0.132258909192549[/C][/ROW]
[ROW][C]42[/C][C]7[/C][C]6.86342349434845[/C][C]0.136576505651547[/C][/ROW]
[ROW][C]43[/C][C]7.1[/C][C]7.16522313485746[/C][C]-0.065223134857462[/C][/ROW]
[ROW][C]44[/C][C]7.2[/C][C]7.22250822108382[/C][C]-0.0225082210838241[/C][/ROW]
[ROW][C]45[/C][C]7.1[/C][C]7.13262246880736[/C][C]-0.0326224688073557[/C][/ROW]
[ROW][C]46[/C][C]6.9[/C][C]7.02616575343143[/C][C]-0.126165753431428[/C][/ROW]
[ROW][C]47[/C][C]6.7[/C][C]6.83668992222928[/C][C]-0.136689922229285[/C][/ROW]
[ROW][C]48[/C][C]6.7[/C][C]6.73987442668344[/C][C]-0.0398744266834375[/C][/ROW]
[ROW][C]49[/C][C]6.6[/C][C]6.88495632713863[/C][C]-0.284956327138635[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]6.62648589557474[/C][C]0.273514104425264[/C][/ROW]
[ROW][C]51[/C][C]7.3[/C][C]7.14213252193957[/C][C]0.157867478060426[/C][/ROW]
[ROW][C]52[/C][C]7.5[/C][C]7.50854281909369[/C][C]-0.0085428190936946[/C][/ROW]
[ROW][C]53[/C][C]7.3[/C][C]7.3242911722882[/C][C]-0.0242911722881923[/C][/ROW]
[ROW][C]54[/C][C]7.1[/C][C]7.02782596681416[/C][C]0.072174033185842[/C][/ROW]
[ROW][C]55[/C][C]6.9[/C][C]6.88851170083055[/C][C]0.0114882991694502[/C][/ROW]
[ROW][C]56[/C][C]7.1[/C][C]6.96190102516896[/C][C]0.138098974831045[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58083&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58083&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.87.788675091187240.0113249088127546
287.979756252152360.0202437478476421
38.68.496393113768990.103606886231010
48.98.93487721053583-0.0348772105358308
58.98.866306879654670.0336931203453313
68.68.67353674832066-0.0735367483206594
78.38.33821811227626-0.0382181122762552
88.38.292390826810680.00760917318932146
98.38.43989844042397-0.139898440423967
108.48.4597289226113-0.0597289226113085
118.58.496700069232810.00329993076718614
128.48.57507109819848-0.175071098198482
138.68.34935187576810.250648124231894
148.58.57833635714894-0.07833635714894
158.58.54859130043305-0.0485913004330537
168.58.410645142039950.0893548579600474
178.58.448131364869550.0518686351304466
188.58.51461229869279-0.0146122986927875
198.58.447967796638270.0520322033617322
208.58.5276391668651-0.0276391668650969
218.58.399401705522370.100598294477635
228.58.435726197508480.0642738024915162
238.58.466021027306130.0339789726938670
248.58.458369305488150.0416306945118497
258.68.463811021525520.136188978474484
268.48.49482842345894-0.0948284234589384
278.18.29617888811996-0.196178888119964
2887.876599879817840.123400120182156
2987.929011673995040.0709883260049633
3088.12060149182394-0.120601491823942
3187.960079255397470.0399207446025346
327.97.99556076007145-0.0955607600714455
337.87.728077385246310.0719226147536874
347.87.678379126448780.121620873551221
357.97.800588981231770.0994110187682314
368.17.926685169629930.173314830370070
3788.1132056843805-0.113205684380498
387.67.72059307166503-0.120593071665028
397.37.31670417573842-0.0167041757384182
4077.16933494851268-0.169334948512678
416.86.93225890919255-0.132258909192549
4276.863423494348450.136576505651547
437.17.16522313485746-0.065223134857462
447.27.22250822108382-0.0225082210838241
457.17.13262246880736-0.0326224688073557
466.97.02616575343143-0.126165753431428
476.76.83668992222928-0.136689922229285
486.76.73987442668344-0.0398744266834375
496.66.88495632713863-0.284956327138635
506.96.626485895574740.273514104425264
517.37.142132521939570.157867478060426
527.57.50854281909369-0.0085428190936946
537.37.3242911722882-0.0242911722881923
547.17.027825966814160.072174033185842
556.96.888511700830550.0114882991694502
567.16.961901025168960.138098974831045







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.2782215909876480.5564431819752960.721778409012352
220.171588558355350.34317711671070.82841144164465
230.08194419770416490.1638883954083300.918055802295835
240.05332851666550580.1066570333310120.946671483334494
250.05523212895289830.1104642579057970.944767871047102
260.03460618980819010.06921237961638020.96539381019181
270.1646564864189270.3293129728378540.835343513581073
280.1835944297881140.3671888595762290.816405570211886
290.1800485089470940.3600970178941880.819951491052906
300.3182477929120900.6364955858241790.68175220708791
310.2395475526205470.4790951052410940.760452447379453
320.1699252440448640.3398504880897290.830074755955136
330.1050518027891580.2101036055783160.894948197210842
340.08261478019722880.1652295603944580.917385219802771
350.04672099525604670.09344199051209340.953279004743953

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.278221590987648 & 0.556443181975296 & 0.721778409012352 \tabularnewline
22 & 0.17158855835535 & 0.3431771167107 & 0.82841144164465 \tabularnewline
23 & 0.0819441977041649 & 0.163888395408330 & 0.918055802295835 \tabularnewline
24 & 0.0533285166655058 & 0.106657033331012 & 0.946671483334494 \tabularnewline
25 & 0.0552321289528983 & 0.110464257905797 & 0.944767871047102 \tabularnewline
26 & 0.0346061898081901 & 0.0692123796163802 & 0.96539381019181 \tabularnewline
27 & 0.164656486418927 & 0.329312972837854 & 0.835343513581073 \tabularnewline
28 & 0.183594429788114 & 0.367188859576229 & 0.816405570211886 \tabularnewline
29 & 0.180048508947094 & 0.360097017894188 & 0.819951491052906 \tabularnewline
30 & 0.318247792912090 & 0.636495585824179 & 0.68175220708791 \tabularnewline
31 & 0.239547552620547 & 0.479095105241094 & 0.760452447379453 \tabularnewline
32 & 0.169925244044864 & 0.339850488089729 & 0.830074755955136 \tabularnewline
33 & 0.105051802789158 & 0.210103605578316 & 0.894948197210842 \tabularnewline
34 & 0.0826147801972288 & 0.165229560394458 & 0.917385219802771 \tabularnewline
35 & 0.0467209952560467 & 0.0934419905120934 & 0.953279004743953 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58083&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]21[/C][C]0.278221590987648[/C][C]0.556443181975296[/C][C]0.721778409012352[/C][/ROW]
[ROW][C]22[/C][C]0.17158855835535[/C][C]0.3431771167107[/C][C]0.82841144164465[/C][/ROW]
[ROW][C]23[/C][C]0.0819441977041649[/C][C]0.163888395408330[/C][C]0.918055802295835[/C][/ROW]
[ROW][C]24[/C][C]0.0533285166655058[/C][C]0.106657033331012[/C][C]0.946671483334494[/C][/ROW]
[ROW][C]25[/C][C]0.0552321289528983[/C][C]0.110464257905797[/C][C]0.944767871047102[/C][/ROW]
[ROW][C]26[/C][C]0.0346061898081901[/C][C]0.0692123796163802[/C][C]0.96539381019181[/C][/ROW]
[ROW][C]27[/C][C]0.164656486418927[/C][C]0.329312972837854[/C][C]0.835343513581073[/C][/ROW]
[ROW][C]28[/C][C]0.183594429788114[/C][C]0.367188859576229[/C][C]0.816405570211886[/C][/ROW]
[ROW][C]29[/C][C]0.180048508947094[/C][C]0.360097017894188[/C][C]0.819951491052906[/C][/ROW]
[ROW][C]30[/C][C]0.318247792912090[/C][C]0.636495585824179[/C][C]0.68175220708791[/C][/ROW]
[ROW][C]31[/C][C]0.239547552620547[/C][C]0.479095105241094[/C][C]0.760452447379453[/C][/ROW]
[ROW][C]32[/C][C]0.169925244044864[/C][C]0.339850488089729[/C][C]0.830074755955136[/C][/ROW]
[ROW][C]33[/C][C]0.105051802789158[/C][C]0.210103605578316[/C][C]0.894948197210842[/C][/ROW]
[ROW][C]34[/C][C]0.0826147801972288[/C][C]0.165229560394458[/C][C]0.917385219802771[/C][/ROW]
[ROW][C]35[/C][C]0.0467209952560467[/C][C]0.0934419905120934[/C][C]0.953279004743953[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58083&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58083&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
210.2782215909876480.5564431819752960.721778409012352
220.171588558355350.34317711671070.82841144164465
230.08194419770416490.1638883954083300.918055802295835
240.05332851666550580.1066570333310120.946671483334494
250.05523212895289830.1104642579057970.944767871047102
260.03460618980819010.06921237961638020.96539381019181
270.1646564864189270.3293129728378540.835343513581073
280.1835944297881140.3671888595762290.816405570211886
290.1800485089470940.3600970178941880.819951491052906
300.3182477929120900.6364955858241790.68175220708791
310.2395475526205470.4790951052410940.760452447379453
320.1699252440448640.3398504880897290.830074755955136
330.1050518027891580.2101036055783160.894948197210842
340.08261478019722880.1652295603944580.917385219802771
350.04672099525604670.09344199051209340.953279004743953







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.133333333333333NOK

\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.133333333333333 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58083&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.133333333333333[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58083&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58083&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.133333333333333NOK



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