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, 25 Dec 2009 12:40:19 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/25/t12617700838dwhaaldgnavcm1.htm/, Retrieved Sat, 04 May 2024 10:10:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70731, Retrieved Sat, 04 May 2024 10:10:57 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact158
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]
-   PD      [Multiple Regression] [Workshop 7: Multi...] [2009-12-25 19:40:19] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
22	7.5	23.7	25.6
21.3	7.6	22	23.7
20.7	7.8	21.3	22
20.4	7.8	20.7	21.3
20.3	7.8	20.4	20.7
20.4	7.5	20.3	20.4
19.8	7.5	20.4	20.3
19.5	7.1	19.8	20.4
23.1	7.5	19.5	19.8
23.5	7.5	23.1	19.5
23.5	7.6	23.5	23.1
22.9	7.7	23.5	23.5
21.9	7.7	22.9	23.5
21.5	7.9	21.9	22.9
20.5	8.1	21.5	21.9
20.2	8.2	20.5	21.5
19.4	8.2	20.2	20.5
19.2	8.2	19.4	20.2
18.8	7.9	19.2	19.4
18.8	7.3	18.8	19.2
22.6	6.9	18.8	18.8
23.3	6.6	22.6	18.8
23	6.7	23.3	22.6
21.4	6.9	23	23.3
19.9	7	21.4	23
18.8	7.1	19.9	21.4
18.6	7.2	18.8	19.9
18.4	7.1	18.6	18.8
18.6	6.9	18.4	18.6
19.9	7	18.6	18.4
19.2	6.8	19.9	18.6
18.4	6.4	19.2	19.9
21.1	6.7	18.4	19.2
20.5	6.6	21.1	18.4
19.1	6.4	20.5	21.1
18.1	6.3	19.1	20.5
17	6.2	18.1	19.1
17.1	6.5	17	18.1
17.4	6.8	17.1	17
16.8	6.8	17.4	17.1
15.3	6.4	16.8	17.4
14.3	6.1	15.3	16.8
13.4	5.8	14.3	15.3
15.3	6.1	13.4	14.3
22.1	7.2	15.3	13.4
23.7	7.3	22.1	15.3
22.2	6.9	23.7	22.1
19.5	6.1	22.2	23.7
16.6	5.8	19.5	22.2
17.3	6.2	16.6	19.5
19.8	7.1	17.3	16.6
21.2	7.7	19.8	17.3
21.5	7.9	21.2	19.8
20.6	7.7	21.5	21.2
19.1	7.4	20.6	21.5
19.6	7.5	19.1	20.6
23.5	8	19.6	19.1
24	8.1	23.5	19.6




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 1.65596789050869 + 0.913038167653139X[t] + 1.13860134993134Y1[t] -0.542253852886171Y2[t] -0.170092084347798M1[t] + 0.37042972215349M2[t] -0.310491195601124M3[t] -0.799607124513897M4[t] -0.99811330052441M5[t] -0.577619444079062M6[t] -1.24340332230172M7[t] + 0.0569418787685395M8[t] + 3.12930286471154M9[t] -0.909771222546327M10[t] + 0.142479922141714M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  1.65596789050869 +  0.913038167653139X[t] +  1.13860134993134Y1[t] -0.542253852886171Y2[t] -0.170092084347798M1[t] +  0.37042972215349M2[t] -0.310491195601124M3[t] -0.799607124513897M4[t] -0.99811330052441M5[t] -0.577619444079062M6[t] -1.24340332230172M7[t] +  0.0569418787685395M8[t] +  3.12930286471154M9[t] -0.909771222546327M10[t] +  0.142479922141714M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70731&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  1.65596789050869 +  0.913038167653139X[t] +  1.13860134993134Y1[t] -0.542253852886171Y2[t] -0.170092084347798M1[t] +  0.37042972215349M2[t] -0.310491195601124M3[t] -0.799607124513897M4[t] -0.99811330052441M5[t] -0.577619444079062M6[t] -1.24340332230172M7[t] +  0.0569418787685395M8[t] +  3.12930286471154M9[t] -0.909771222546327M10[t] +  0.142479922141714M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70731&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70731&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] = + 1.65596789050869 + 0.913038167653139X[t] + 1.13860134993134Y1[t] -0.542253852886171Y2[t] -0.170092084347798M1[t] + 0.37042972215349M2[t] -0.310491195601124M3[t] -0.799607124513897M4[t] -0.99811330052441M5[t] -0.577619444079062M6[t] -1.24340332230172M7[t] + 0.0569418787685395M8[t] + 3.12930286471154M9[t] -0.909771222546327M10[t] + 0.142479922141714M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1.655967890508691.0922551.51610.1368120.068406
X0.9130381676531390.2287583.99130.0002520.000126
Y11.138601349931340.1270138.964500
Y2-0.5422538528861710.100297-5.40653e-061e-06
M1-0.1700920843477980.433788-0.39210.6969140.348457
M20.370429722153490.4941380.74960.4575480.228774
M3-0.3104911956011240.532876-0.58270.5631580.281579
M4-0.7996071245138970.542691-1.47340.1479240.073962
M5-0.998113300524410.530749-1.88060.0668140.033407
M6-0.5776194440790620.527891-1.09420.2799580.139979
M7-1.243403322301720.509301-2.44140.0188210.00941
M80.05694187876853950.5204710.10940.9133910.456695
M93.129302864711540.558935.59871e-061e-06
M10-0.9097712225463270.640367-1.42070.1626150.081307
M110.1424799221417140.4612250.30890.7588770.379439

\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) & 1.65596789050869 & 1.092255 & 1.5161 & 0.136812 & 0.068406 \tabularnewline
X & 0.913038167653139 & 0.228758 & 3.9913 & 0.000252 & 0.000126 \tabularnewline
Y1 & 1.13860134993134 & 0.127013 & 8.9645 & 0 & 0 \tabularnewline
Y2 & -0.542253852886171 & 0.100297 & -5.4065 & 3e-06 & 1e-06 \tabularnewline
M1 & -0.170092084347798 & 0.433788 & -0.3921 & 0.696914 & 0.348457 \tabularnewline
M2 & 0.37042972215349 & 0.494138 & 0.7496 & 0.457548 & 0.228774 \tabularnewline
M3 & -0.310491195601124 & 0.532876 & -0.5827 & 0.563158 & 0.281579 \tabularnewline
M4 & -0.799607124513897 & 0.542691 & -1.4734 & 0.147924 & 0.073962 \tabularnewline
M5 & -0.99811330052441 & 0.530749 & -1.8806 & 0.066814 & 0.033407 \tabularnewline
M6 & -0.577619444079062 & 0.527891 & -1.0942 & 0.279958 & 0.139979 \tabularnewline
M7 & -1.24340332230172 & 0.509301 & -2.4414 & 0.018821 & 0.00941 \tabularnewline
M8 & 0.0569418787685395 & 0.520471 & 0.1094 & 0.913391 & 0.456695 \tabularnewline
M9 & 3.12930286471154 & 0.55893 & 5.5987 & 1e-06 & 1e-06 \tabularnewline
M10 & -0.909771222546327 & 0.640367 & -1.4207 & 0.162615 & 0.081307 \tabularnewline
M11 & 0.142479922141714 & 0.461225 & 0.3089 & 0.758877 & 0.379439 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70731&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]1.65596789050869[/C][C]1.092255[/C][C]1.5161[/C][C]0.136812[/C][C]0.068406[/C][/ROW]
[ROW][C]X[/C][C]0.913038167653139[/C][C]0.228758[/C][C]3.9913[/C][C]0.000252[/C][C]0.000126[/C][/ROW]
[ROW][C]Y1[/C][C]1.13860134993134[/C][C]0.127013[/C][C]8.9645[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.542253852886171[/C][C]0.100297[/C][C]-5.4065[/C][C]3e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M1[/C][C]-0.170092084347798[/C][C]0.433788[/C][C]-0.3921[/C][C]0.696914[/C][C]0.348457[/C][/ROW]
[ROW][C]M2[/C][C]0.37042972215349[/C][C]0.494138[/C][C]0.7496[/C][C]0.457548[/C][C]0.228774[/C][/ROW]
[ROW][C]M3[/C][C]-0.310491195601124[/C][C]0.532876[/C][C]-0.5827[/C][C]0.563158[/C][C]0.281579[/C][/ROW]
[ROW][C]M4[/C][C]-0.799607124513897[/C][C]0.542691[/C][C]-1.4734[/C][C]0.147924[/C][C]0.073962[/C][/ROW]
[ROW][C]M5[/C][C]-0.99811330052441[/C][C]0.530749[/C][C]-1.8806[/C][C]0.066814[/C][C]0.033407[/C][/ROW]
[ROW][C]M6[/C][C]-0.577619444079062[/C][C]0.527891[/C][C]-1.0942[/C][C]0.279958[/C][C]0.139979[/C][/ROW]
[ROW][C]M7[/C][C]-1.24340332230172[/C][C]0.509301[/C][C]-2.4414[/C][C]0.018821[/C][C]0.00941[/C][/ROW]
[ROW][C]M8[/C][C]0.0569418787685395[/C][C]0.520471[/C][C]0.1094[/C][C]0.913391[/C][C]0.456695[/C][/ROW]
[ROW][C]M9[/C][C]3.12930286471154[/C][C]0.55893[/C][C]5.5987[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M10[/C][C]-0.909771222546327[/C][C]0.640367[/C][C]-1.4207[/C][C]0.162615[/C][C]0.081307[/C][/ROW]
[ROW][C]M11[/C][C]0.142479922141714[/C][C]0.461225[/C][C]0.3089[/C][C]0.758877[/C][C]0.379439[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70731&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70731&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)1.655967890508691.0922551.51610.1368120.068406
X0.9130381676531390.2287583.99130.0002520.000126
Y11.138601349931340.1270138.964500
Y2-0.5422538528861710.100297-5.40653e-061e-06
M1-0.1700920843477980.433788-0.39210.6969140.348457
M20.370429722153490.4941380.74960.4575480.228774
M3-0.3104911956011240.532876-0.58270.5631580.281579
M4-0.7996071245138970.542691-1.47340.1479240.073962
M5-0.998113300524410.530749-1.88060.0668140.033407
M6-0.5776194440790620.527891-1.09420.2799580.139979
M7-1.243403322301720.509301-2.44140.0188210.00941
M80.05694187876853950.5204710.10940.9133910.456695
M93.129302864711540.558935.59871e-061e-06
M10-0.9097712225463270.640367-1.42070.1626150.081307
M110.1424799221417140.4612250.30890.7588770.379439







Multiple Linear Regression - Regression Statistics
Multiple R0.974673811936578
R-squared0.94998903967498
Adjusted R-squared0.933706401429624
F-TEST (value)58.3436802660627
F-TEST (DF numerator)14
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.623972228455184
Sum Squared Residuals16.7416777009831

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.974673811936578 \tabularnewline
R-squared & 0.94998903967498 \tabularnewline
Adjusted R-squared & 0.933706401429624 \tabularnewline
F-TEST (value) & 58.3436802660627 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.623972228455184 \tabularnewline
Sum Squared Residuals & 16.7416777009831 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70731&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.974673811936578[/C][/ROW]
[ROW][C]R-squared[/C][C]0.94998903967498[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.933706401429624[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]58.3436802660627[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]43[/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.623972228455184[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]16.7416777009831[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70731&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70731&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.974673811936578
R-squared0.94998903967498
Adjusted R-squared0.933706401429624
F-TEST (value)58.3436802660627
F-TEST (DF numerator)14
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.623972228455184
Sum Squared Residuals16.7416777009831







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12221.43681542304630.56318457695368
221.321.16330107191340.136698928086635
320.720.7897983926439-0.0897983926439313
420.419.99709935079270.402900649207332
520.319.78236508153450.517634918465548
620.419.97776350855660.422236491443420
719.819.48006515061570.319934849384338
819.519.6778088893772-0.17780888937725
923.123.09915704913380.000842950866200051
1023.523.32172397749460.178276022505369
1123.522.96860560853030.531394391469691
1222.922.70052796199940.199472038000559
1321.921.84727506769280.0527249323071645
1421.521.7571554695251-0.257155469525107
1520.521.3456554982148-0.845655498214755
1620.220.02614357729040.173856422709579
1719.420.0283108491867-0.628310849186675
1819.219.7005997815528-0.500599781552799
1918.818.9669872653569-0.166987265356861
2018.819.3725197964399-0.572519796439939
2122.622.29656705647610.303432943523851
2223.322.31026664866150.989733351338549
232322.19027791409930.809722085900703
2421.421.5092475234885-0.109247523488489
2519.919.77137325188170.128626748118296
2618.819.5629030148692-0.762903014869161
2718.618.53420520828460.0657947917153587
2818.418.32254443079510.077455569204924
2918.617.82216112184490.777838878155106
3019.918.67012983561911.22987016438093
3119.219.19346930819930.00653069180071754
3218.418.6266482885043-0.226648288504332
3321.121.4416173418185-0.341617341818513
3420.520.8192661649189-0.319266164918905
3519.119.5416634633248-0.441663463324846
3618.118.03919014624560.0608098537543599
371717.3983482892418-0.398348289241824
3817.117.5025739140007-0.402573914000742
3917.417.80590381971-0.405903819709998
4016.817.604142910488-0.804142910488006
4115.316.1945845015916-0.894584501591583
4214.314.9586171945757-0.658617194575673
4313.413.6937012954550-0.29370129545498
4415.314.78547058476910.514529415230851
4522.121.51354458759770.58645541240229
4623.724.2779811761546-0.577981176154579
4722.223.0994530140455-0.899453014045548
4819.519.6510343682664-0.151034368266431
4916.616.9461879681373-0.346187968137317
5017.316.01406652969161.28593347030837
5119.818.52443708114671.27556291885333
5221.221.05006973063380.149930269366171
5321.521.27257844584240.227421554157604
5420.621.0928896796959-0.49288967969588
5519.118.96577698037320.134223019626786
5619.619.13755244090930.462447559090670
5723.524.0491139649738-0.549113964973829
582424.2707620327704-0.270762032770434

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 22 & 21.4368154230463 & 0.56318457695368 \tabularnewline
2 & 21.3 & 21.1633010719134 & 0.136698928086635 \tabularnewline
3 & 20.7 & 20.7897983926439 & -0.0897983926439313 \tabularnewline
4 & 20.4 & 19.9970993507927 & 0.402900649207332 \tabularnewline
5 & 20.3 & 19.7823650815345 & 0.517634918465548 \tabularnewline
6 & 20.4 & 19.9777635085566 & 0.422236491443420 \tabularnewline
7 & 19.8 & 19.4800651506157 & 0.319934849384338 \tabularnewline
8 & 19.5 & 19.6778088893772 & -0.17780888937725 \tabularnewline
9 & 23.1 & 23.0991570491338 & 0.000842950866200051 \tabularnewline
10 & 23.5 & 23.3217239774946 & 0.178276022505369 \tabularnewline
11 & 23.5 & 22.9686056085303 & 0.531394391469691 \tabularnewline
12 & 22.9 & 22.7005279619994 & 0.199472038000559 \tabularnewline
13 & 21.9 & 21.8472750676928 & 0.0527249323071645 \tabularnewline
14 & 21.5 & 21.7571554695251 & -0.257155469525107 \tabularnewline
15 & 20.5 & 21.3456554982148 & -0.845655498214755 \tabularnewline
16 & 20.2 & 20.0261435772904 & 0.173856422709579 \tabularnewline
17 & 19.4 & 20.0283108491867 & -0.628310849186675 \tabularnewline
18 & 19.2 & 19.7005997815528 & -0.500599781552799 \tabularnewline
19 & 18.8 & 18.9669872653569 & -0.166987265356861 \tabularnewline
20 & 18.8 & 19.3725197964399 & -0.572519796439939 \tabularnewline
21 & 22.6 & 22.2965670564761 & 0.303432943523851 \tabularnewline
22 & 23.3 & 22.3102666486615 & 0.989733351338549 \tabularnewline
23 & 23 & 22.1902779140993 & 0.809722085900703 \tabularnewline
24 & 21.4 & 21.5092475234885 & -0.109247523488489 \tabularnewline
25 & 19.9 & 19.7713732518817 & 0.128626748118296 \tabularnewline
26 & 18.8 & 19.5629030148692 & -0.762903014869161 \tabularnewline
27 & 18.6 & 18.5342052082846 & 0.0657947917153587 \tabularnewline
28 & 18.4 & 18.3225444307951 & 0.077455569204924 \tabularnewline
29 & 18.6 & 17.8221611218449 & 0.777838878155106 \tabularnewline
30 & 19.9 & 18.6701298356191 & 1.22987016438093 \tabularnewline
31 & 19.2 & 19.1934693081993 & 0.00653069180071754 \tabularnewline
32 & 18.4 & 18.6266482885043 & -0.226648288504332 \tabularnewline
33 & 21.1 & 21.4416173418185 & -0.341617341818513 \tabularnewline
34 & 20.5 & 20.8192661649189 & -0.319266164918905 \tabularnewline
35 & 19.1 & 19.5416634633248 & -0.441663463324846 \tabularnewline
36 & 18.1 & 18.0391901462456 & 0.0608098537543599 \tabularnewline
37 & 17 & 17.3983482892418 & -0.398348289241824 \tabularnewline
38 & 17.1 & 17.5025739140007 & -0.402573914000742 \tabularnewline
39 & 17.4 & 17.80590381971 & -0.405903819709998 \tabularnewline
40 & 16.8 & 17.604142910488 & -0.804142910488006 \tabularnewline
41 & 15.3 & 16.1945845015916 & -0.894584501591583 \tabularnewline
42 & 14.3 & 14.9586171945757 & -0.658617194575673 \tabularnewline
43 & 13.4 & 13.6937012954550 & -0.29370129545498 \tabularnewline
44 & 15.3 & 14.7854705847691 & 0.514529415230851 \tabularnewline
45 & 22.1 & 21.5135445875977 & 0.58645541240229 \tabularnewline
46 & 23.7 & 24.2779811761546 & -0.577981176154579 \tabularnewline
47 & 22.2 & 23.0994530140455 & -0.899453014045548 \tabularnewline
48 & 19.5 & 19.6510343682664 & -0.151034368266431 \tabularnewline
49 & 16.6 & 16.9461879681373 & -0.346187968137317 \tabularnewline
50 & 17.3 & 16.0140665296916 & 1.28593347030837 \tabularnewline
51 & 19.8 & 18.5244370811467 & 1.27556291885333 \tabularnewline
52 & 21.2 & 21.0500697306338 & 0.149930269366171 \tabularnewline
53 & 21.5 & 21.2725784458424 & 0.227421554157604 \tabularnewline
54 & 20.6 & 21.0928896796959 & -0.49288967969588 \tabularnewline
55 & 19.1 & 18.9657769803732 & 0.134223019626786 \tabularnewline
56 & 19.6 & 19.1375524409093 & 0.462447559090670 \tabularnewline
57 & 23.5 & 24.0491139649738 & -0.549113964973829 \tabularnewline
58 & 24 & 24.2707620327704 & -0.270762032770434 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70731&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]22[/C][C]21.4368154230463[/C][C]0.56318457695368[/C][/ROW]
[ROW][C]2[/C][C]21.3[/C][C]21.1633010719134[/C][C]0.136698928086635[/C][/ROW]
[ROW][C]3[/C][C]20.7[/C][C]20.7897983926439[/C][C]-0.0897983926439313[/C][/ROW]
[ROW][C]4[/C][C]20.4[/C][C]19.9970993507927[/C][C]0.402900649207332[/C][/ROW]
[ROW][C]5[/C][C]20.3[/C][C]19.7823650815345[/C][C]0.517634918465548[/C][/ROW]
[ROW][C]6[/C][C]20.4[/C][C]19.9777635085566[/C][C]0.422236491443420[/C][/ROW]
[ROW][C]7[/C][C]19.8[/C][C]19.4800651506157[/C][C]0.319934849384338[/C][/ROW]
[ROW][C]8[/C][C]19.5[/C][C]19.6778088893772[/C][C]-0.17780888937725[/C][/ROW]
[ROW][C]9[/C][C]23.1[/C][C]23.0991570491338[/C][C]0.000842950866200051[/C][/ROW]
[ROW][C]10[/C][C]23.5[/C][C]23.3217239774946[/C][C]0.178276022505369[/C][/ROW]
[ROW][C]11[/C][C]23.5[/C][C]22.9686056085303[/C][C]0.531394391469691[/C][/ROW]
[ROW][C]12[/C][C]22.9[/C][C]22.7005279619994[/C][C]0.199472038000559[/C][/ROW]
[ROW][C]13[/C][C]21.9[/C][C]21.8472750676928[/C][C]0.0527249323071645[/C][/ROW]
[ROW][C]14[/C][C]21.5[/C][C]21.7571554695251[/C][C]-0.257155469525107[/C][/ROW]
[ROW][C]15[/C][C]20.5[/C][C]21.3456554982148[/C][C]-0.845655498214755[/C][/ROW]
[ROW][C]16[/C][C]20.2[/C][C]20.0261435772904[/C][C]0.173856422709579[/C][/ROW]
[ROW][C]17[/C][C]19.4[/C][C]20.0283108491867[/C][C]-0.628310849186675[/C][/ROW]
[ROW][C]18[/C][C]19.2[/C][C]19.7005997815528[/C][C]-0.500599781552799[/C][/ROW]
[ROW][C]19[/C][C]18.8[/C][C]18.9669872653569[/C][C]-0.166987265356861[/C][/ROW]
[ROW][C]20[/C][C]18.8[/C][C]19.3725197964399[/C][C]-0.572519796439939[/C][/ROW]
[ROW][C]21[/C][C]22.6[/C][C]22.2965670564761[/C][C]0.303432943523851[/C][/ROW]
[ROW][C]22[/C][C]23.3[/C][C]22.3102666486615[/C][C]0.989733351338549[/C][/ROW]
[ROW][C]23[/C][C]23[/C][C]22.1902779140993[/C][C]0.809722085900703[/C][/ROW]
[ROW][C]24[/C][C]21.4[/C][C]21.5092475234885[/C][C]-0.109247523488489[/C][/ROW]
[ROW][C]25[/C][C]19.9[/C][C]19.7713732518817[/C][C]0.128626748118296[/C][/ROW]
[ROW][C]26[/C][C]18.8[/C][C]19.5629030148692[/C][C]-0.762903014869161[/C][/ROW]
[ROW][C]27[/C][C]18.6[/C][C]18.5342052082846[/C][C]0.0657947917153587[/C][/ROW]
[ROW][C]28[/C][C]18.4[/C][C]18.3225444307951[/C][C]0.077455569204924[/C][/ROW]
[ROW][C]29[/C][C]18.6[/C][C]17.8221611218449[/C][C]0.777838878155106[/C][/ROW]
[ROW][C]30[/C][C]19.9[/C][C]18.6701298356191[/C][C]1.22987016438093[/C][/ROW]
[ROW][C]31[/C][C]19.2[/C][C]19.1934693081993[/C][C]0.00653069180071754[/C][/ROW]
[ROW][C]32[/C][C]18.4[/C][C]18.6266482885043[/C][C]-0.226648288504332[/C][/ROW]
[ROW][C]33[/C][C]21.1[/C][C]21.4416173418185[/C][C]-0.341617341818513[/C][/ROW]
[ROW][C]34[/C][C]20.5[/C][C]20.8192661649189[/C][C]-0.319266164918905[/C][/ROW]
[ROW][C]35[/C][C]19.1[/C][C]19.5416634633248[/C][C]-0.441663463324846[/C][/ROW]
[ROW][C]36[/C][C]18.1[/C][C]18.0391901462456[/C][C]0.0608098537543599[/C][/ROW]
[ROW][C]37[/C][C]17[/C][C]17.3983482892418[/C][C]-0.398348289241824[/C][/ROW]
[ROW][C]38[/C][C]17.1[/C][C]17.5025739140007[/C][C]-0.402573914000742[/C][/ROW]
[ROW][C]39[/C][C]17.4[/C][C]17.80590381971[/C][C]-0.405903819709998[/C][/ROW]
[ROW][C]40[/C][C]16.8[/C][C]17.604142910488[/C][C]-0.804142910488006[/C][/ROW]
[ROW][C]41[/C][C]15.3[/C][C]16.1945845015916[/C][C]-0.894584501591583[/C][/ROW]
[ROW][C]42[/C][C]14.3[/C][C]14.9586171945757[/C][C]-0.658617194575673[/C][/ROW]
[ROW][C]43[/C][C]13.4[/C][C]13.6937012954550[/C][C]-0.29370129545498[/C][/ROW]
[ROW][C]44[/C][C]15.3[/C][C]14.7854705847691[/C][C]0.514529415230851[/C][/ROW]
[ROW][C]45[/C][C]22.1[/C][C]21.5135445875977[/C][C]0.58645541240229[/C][/ROW]
[ROW][C]46[/C][C]23.7[/C][C]24.2779811761546[/C][C]-0.577981176154579[/C][/ROW]
[ROW][C]47[/C][C]22.2[/C][C]23.0994530140455[/C][C]-0.899453014045548[/C][/ROW]
[ROW][C]48[/C][C]19.5[/C][C]19.6510343682664[/C][C]-0.151034368266431[/C][/ROW]
[ROW][C]49[/C][C]16.6[/C][C]16.9461879681373[/C][C]-0.346187968137317[/C][/ROW]
[ROW][C]50[/C][C]17.3[/C][C]16.0140665296916[/C][C]1.28593347030837[/C][/ROW]
[ROW][C]51[/C][C]19.8[/C][C]18.5244370811467[/C][C]1.27556291885333[/C][/ROW]
[ROW][C]52[/C][C]21.2[/C][C]21.0500697306338[/C][C]0.149930269366171[/C][/ROW]
[ROW][C]53[/C][C]21.5[/C][C]21.2725784458424[/C][C]0.227421554157604[/C][/ROW]
[ROW][C]54[/C][C]20.6[/C][C]21.0928896796959[/C][C]-0.49288967969588[/C][/ROW]
[ROW][C]55[/C][C]19.1[/C][C]18.9657769803732[/C][C]0.134223019626786[/C][/ROW]
[ROW][C]56[/C][C]19.6[/C][C]19.1375524409093[/C][C]0.462447559090670[/C][/ROW]
[ROW][C]57[/C][C]23.5[/C][C]24.0491139649738[/C][C]-0.549113964973829[/C][/ROW]
[ROW][C]58[/C][C]24[/C][C]24.2707620327704[/C][C]-0.270762032770434[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70731&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70731&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
12221.43681542304630.56318457695368
221.321.16330107191340.136698928086635
320.720.7897983926439-0.0897983926439313
420.419.99709935079270.402900649207332
520.319.78236508153450.517634918465548
620.419.97776350855660.422236491443420
719.819.48006515061570.319934849384338
819.519.6778088893772-0.17780888937725
923.123.09915704913380.000842950866200051
1023.523.32172397749460.178276022505369
1123.522.96860560853030.531394391469691
1222.922.70052796199940.199472038000559
1321.921.84727506769280.0527249323071645
1421.521.7571554695251-0.257155469525107
1520.521.3456554982148-0.845655498214755
1620.220.02614357729040.173856422709579
1719.420.0283108491867-0.628310849186675
1819.219.7005997815528-0.500599781552799
1918.818.9669872653569-0.166987265356861
2018.819.3725197964399-0.572519796439939
2122.622.29656705647610.303432943523851
2223.322.31026664866150.989733351338549
232322.19027791409930.809722085900703
2421.421.5092475234885-0.109247523488489
2519.919.77137325188170.128626748118296
2618.819.5629030148692-0.762903014869161
2718.618.53420520828460.0657947917153587
2818.418.32254443079510.077455569204924
2918.617.82216112184490.777838878155106
3019.918.67012983561911.22987016438093
3119.219.19346930819930.00653069180071754
3218.418.6266482885043-0.226648288504332
3321.121.4416173418185-0.341617341818513
3420.520.8192661649189-0.319266164918905
3519.119.5416634633248-0.441663463324846
3618.118.03919014624560.0608098537543599
371717.3983482892418-0.398348289241824
3817.117.5025739140007-0.402573914000742
3917.417.80590381971-0.405903819709998
4016.817.604142910488-0.804142910488006
4115.316.1945845015916-0.894584501591583
4214.314.9586171945757-0.658617194575673
4313.413.6937012954550-0.29370129545498
4415.314.78547058476910.514529415230851
4522.121.51354458759770.58645541240229
4623.724.2779811761546-0.577981176154579
4722.223.0994530140455-0.899453014045548
4819.519.6510343682664-0.151034368266431
4916.616.9461879681373-0.346187968137317
5017.316.01406652969161.28593347030837
5119.818.52443708114671.27556291885333
5221.221.05006973063380.149930269366171
5321.521.27257844584240.227421554157604
5420.621.0928896796959-0.49288967969588
5519.118.96577698037320.134223019626786
5619.619.13755244090930.462447559090670
5723.524.0491139649738-0.549113964973829
582424.2707620327704-0.270762032770434







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.06461493458243560.1292298691648710.935385065417564
190.01904704521252690.03809409042505370.980952954787473
200.005943199786518630.01188639957303730.994056800213481
210.004508701228980650.00901740245796130.99549129877102
220.002354459305026810.004708918610053620.997645540694973
230.004669284679285490.009338569358570980.995330715320714
240.01192801309756840.02385602619513680.988071986902432
250.005005437017135920.01001087403427180.994994562982864
260.004919975457226410.009839950914452820.995080024542774
270.0104981565624560.0209963131249120.989501843437544
280.005373538784920250.01074707756984050.99462646121508
290.007958983578815450.01591796715763090.992041016421185
300.06616946076365180.1323389215273040.933830539236348
310.06428935254351060.1285787050870210.93571064745649
320.04541337918418520.09082675836837040.954586620815815
330.04131203790671990.08262407581343970.95868796209328
340.04448824550170790.08897649100341580.955511754498292
350.03623374276123010.07246748552246030.96376625723877
360.02680689214653620.05361378429307250.973193107853464
370.02766607430155670.05533214860311350.972333925698443
380.6201074686919110.7597850626161780.379892531308089
390.9197961351959810.1604077296080380.0802038648040189
400.8485036378927780.3029927242144440.151496362107222

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.0646149345824356 & 0.129229869164871 & 0.935385065417564 \tabularnewline
19 & 0.0190470452125269 & 0.0380940904250537 & 0.980952954787473 \tabularnewline
20 & 0.00594319978651863 & 0.0118863995730373 & 0.994056800213481 \tabularnewline
21 & 0.00450870122898065 & 0.0090174024579613 & 0.99549129877102 \tabularnewline
22 & 0.00235445930502681 & 0.00470891861005362 & 0.997645540694973 \tabularnewline
23 & 0.00466928467928549 & 0.00933856935857098 & 0.995330715320714 \tabularnewline
24 & 0.0119280130975684 & 0.0238560261951368 & 0.988071986902432 \tabularnewline
25 & 0.00500543701713592 & 0.0100108740342718 & 0.994994562982864 \tabularnewline
26 & 0.00491997545722641 & 0.00983995091445282 & 0.995080024542774 \tabularnewline
27 & 0.010498156562456 & 0.020996313124912 & 0.989501843437544 \tabularnewline
28 & 0.00537353878492025 & 0.0107470775698405 & 0.99462646121508 \tabularnewline
29 & 0.00795898357881545 & 0.0159179671576309 & 0.992041016421185 \tabularnewline
30 & 0.0661694607636518 & 0.132338921527304 & 0.933830539236348 \tabularnewline
31 & 0.0642893525435106 & 0.128578705087021 & 0.93571064745649 \tabularnewline
32 & 0.0454133791841852 & 0.0908267583683704 & 0.954586620815815 \tabularnewline
33 & 0.0413120379067199 & 0.0826240758134397 & 0.95868796209328 \tabularnewline
34 & 0.0444882455017079 & 0.0889764910034158 & 0.955511754498292 \tabularnewline
35 & 0.0362337427612301 & 0.0724674855224603 & 0.96376625723877 \tabularnewline
36 & 0.0268068921465362 & 0.0536137842930725 & 0.973193107853464 \tabularnewline
37 & 0.0276660743015567 & 0.0553321486031135 & 0.972333925698443 \tabularnewline
38 & 0.620107468691911 & 0.759785062616178 & 0.379892531308089 \tabularnewline
39 & 0.919796135195981 & 0.160407729608038 & 0.0802038648040189 \tabularnewline
40 & 0.848503637892778 & 0.302992724214444 & 0.151496362107222 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70731&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]18[/C][C]0.0646149345824356[/C][C]0.129229869164871[/C][C]0.935385065417564[/C][/ROW]
[ROW][C]19[/C][C]0.0190470452125269[/C][C]0.0380940904250537[/C][C]0.980952954787473[/C][/ROW]
[ROW][C]20[/C][C]0.00594319978651863[/C][C]0.0118863995730373[/C][C]0.994056800213481[/C][/ROW]
[ROW][C]21[/C][C]0.00450870122898065[/C][C]0.0090174024579613[/C][C]0.99549129877102[/C][/ROW]
[ROW][C]22[/C][C]0.00235445930502681[/C][C]0.00470891861005362[/C][C]0.997645540694973[/C][/ROW]
[ROW][C]23[/C][C]0.00466928467928549[/C][C]0.00933856935857098[/C][C]0.995330715320714[/C][/ROW]
[ROW][C]24[/C][C]0.0119280130975684[/C][C]0.0238560261951368[/C][C]0.988071986902432[/C][/ROW]
[ROW][C]25[/C][C]0.00500543701713592[/C][C]0.0100108740342718[/C][C]0.994994562982864[/C][/ROW]
[ROW][C]26[/C][C]0.00491997545722641[/C][C]0.00983995091445282[/C][C]0.995080024542774[/C][/ROW]
[ROW][C]27[/C][C]0.010498156562456[/C][C]0.020996313124912[/C][C]0.989501843437544[/C][/ROW]
[ROW][C]28[/C][C]0.00537353878492025[/C][C]0.0107470775698405[/C][C]0.99462646121508[/C][/ROW]
[ROW][C]29[/C][C]0.00795898357881545[/C][C]0.0159179671576309[/C][C]0.992041016421185[/C][/ROW]
[ROW][C]30[/C][C]0.0661694607636518[/C][C]0.132338921527304[/C][C]0.933830539236348[/C][/ROW]
[ROW][C]31[/C][C]0.0642893525435106[/C][C]0.128578705087021[/C][C]0.93571064745649[/C][/ROW]
[ROW][C]32[/C][C]0.0454133791841852[/C][C]0.0908267583683704[/C][C]0.954586620815815[/C][/ROW]
[ROW][C]33[/C][C]0.0413120379067199[/C][C]0.0826240758134397[/C][C]0.95868796209328[/C][/ROW]
[ROW][C]34[/C][C]0.0444882455017079[/C][C]0.0889764910034158[/C][C]0.955511754498292[/C][/ROW]
[ROW][C]35[/C][C]0.0362337427612301[/C][C]0.0724674855224603[/C][C]0.96376625723877[/C][/ROW]
[ROW][C]36[/C][C]0.0268068921465362[/C][C]0.0536137842930725[/C][C]0.973193107853464[/C][/ROW]
[ROW][C]37[/C][C]0.0276660743015567[/C][C]0.0553321486031135[/C][C]0.972333925698443[/C][/ROW]
[ROW][C]38[/C][C]0.620107468691911[/C][C]0.759785062616178[/C][C]0.379892531308089[/C][/ROW]
[ROW][C]39[/C][C]0.919796135195981[/C][C]0.160407729608038[/C][C]0.0802038648040189[/C][/ROW]
[ROW][C]40[/C][C]0.848503637892778[/C][C]0.302992724214444[/C][C]0.151496362107222[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70731&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70731&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
180.06461493458243560.1292298691648710.935385065417564
190.01904704521252690.03809409042505370.980952954787473
200.005943199786518630.01188639957303730.994056800213481
210.004508701228980650.00901740245796130.99549129877102
220.002354459305026810.004708918610053620.997645540694973
230.004669284679285490.009338569358570980.995330715320714
240.01192801309756840.02385602619513680.988071986902432
250.005005437017135920.01001087403427180.994994562982864
260.004919975457226410.009839950914452820.995080024542774
270.0104981565624560.0209963131249120.989501843437544
280.005373538784920250.01074707756984050.99462646121508
290.007958983578815450.01591796715763090.992041016421185
300.06616946076365180.1323389215273040.933830539236348
310.06428935254351060.1285787050870210.93571064745649
320.04541337918418520.09082675836837040.954586620815815
330.04131203790671990.08262407581343970.95868796209328
340.04448824550170790.08897649100341580.955511754498292
350.03623374276123010.07246748552246030.96376625723877
360.02680689214653620.05361378429307250.973193107853464
370.02766607430155670.05533214860311350.972333925698443
380.6201074686919110.7597850626161780.379892531308089
390.9197961351959810.1604077296080380.0802038648040189
400.8485036378927780.3029927242144440.151496362107222







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.173913043478261NOK
5% type I error level110.478260869565217NOK
10% type I error level170.739130434782609NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 4 & 0.173913043478261 & NOK \tabularnewline
5% type I error level & 11 & 0.478260869565217 & NOK \tabularnewline
10% type I error level & 17 & 0.739130434782609 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70731&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]4[/C][C]0.173913043478261[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]11[/C][C]0.478260869565217[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]17[/C][C]0.739130434782609[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70731&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70731&T=6

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.173913043478261NOK
5% type I error level110.478260869565217NOK
10% type I error level170.739130434782609NOK



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