Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 19 Nov 2009 13:36:21 -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/19/t1258663037p36l2i1gubvv661.htm/, Retrieved Tue, 30 Apr 2024 00:17:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57940, Retrieved Tue, 30 Apr 2024 00:17:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact159
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:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [Multiple Regressi...] [2009-11-19 20:36:21] [f97f6131ca109ba89501d75ae11b45c9] [Current]
Feedback Forum

Post a new message
Dataseries X:
10	24.1
9.2	24.1
9.2	24.1
9.5	21.3
9.6	21.3
9.5	21.3
9.1	19.1
8.9	19.1
9	19.1
10.1	26.2
10.3	26.2
10.2	26.2
9.6	21.7
9.2	21.7
9.3	21.7
9.4	19.4
9.4	19.4
9.2	19.4
9	19.5
9	19.5
9	19.5
9.8	28.7
10	28.7
9.8	28.7
9.3	21.8
9	21.8
9	21.8
9.1	20
9.1	20
9.1	20
9.2	22.6
8.8	22.6
8.3	22.6
8.4	22.4
8.1	22.4
7.7	22.4
7.9	18.6
7.9	18.6
8	18.6
7.9	16.2
7.6	16.2
7.1	16.2
6.8	13.8
6.5	13.8
6.9	13.8
8.2	24.1
8.7	24.1
8.3	24.1
7.9	19.9
7.5	19.9
7.8	19.9
8.3	22.3
8.4	22.3
8.2	22.3
7.7	20.9
7.2	20.9
7.3	20.9
8.1	25.5
8.5	25.5
8.4	25.5




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57940&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
TWV[t] = + 5.8018408319185 + 0.169475099037918`WV-25`[t] + 0.391285653650254M1[t] + 0.0452611771363897M2[t] + 0.179236700622525M3[t] + 0.627087860780986M4[t] + 0.641063384267121M5[t] + 0.475038907753255M6[t] + 0.360867996604415M7[t] + 0.114843520090550M8[t] + 0.168819043576685M9[t] -0.027951046972269M10[t] + 0.206024476513865M11[t] -0.0339755234861347t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
TWV[t] =  +  5.8018408319185 +  0.169475099037918`WV-25`[t] +  0.391285653650254M1[t] +  0.0452611771363897M2[t] +  0.179236700622525M3[t] +  0.627087860780986M4[t] +  0.641063384267121M5[t] +  0.475038907753255M6[t] +  0.360867996604415M7[t] +  0.114843520090550M8[t] +  0.168819043576685M9[t] -0.027951046972269M10[t] +  0.206024476513865M11[t] -0.0339755234861347t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57940&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]TWV[t] =  +  5.8018408319185 +  0.169475099037918`WV-25`[t] +  0.391285653650254M1[t] +  0.0452611771363897M2[t] +  0.179236700622525M3[t] +  0.627087860780986M4[t] +  0.641063384267121M5[t] +  0.475038907753255M6[t] +  0.360867996604415M7[t] +  0.114843520090550M8[t] +  0.168819043576685M9[t] -0.027951046972269M10[t] +  0.206024476513865M11[t] -0.0339755234861347t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57940&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57940&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
TWV[t] = + 5.8018408319185 + 0.169475099037918`WV-25`[t] + 0.391285653650254M1[t] + 0.0452611771363897M2[t] + 0.179236700622525M3[t] + 0.627087860780986M4[t] + 0.641063384267121M5[t] + 0.475038907753255M6[t] + 0.360867996604415M7[t] + 0.114843520090550M8[t] + 0.168819043576685M9[t] -0.027951046972269M10[t] + 0.206024476513865M11[t] -0.0339755234861347t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)5.80184083191850.54603210.625500
`WV-25`0.1694750990379180.0192638.79800
M10.3912856536502540.225111.73820.0888660.044433
M20.04526117713638970.2244960.20160.8411090.420554
M30.1792367006225250.2239110.80050.4275470.213773
M40.6270878607809860.2349672.66880.0104790.00524
M50.6410633842671210.2343712.73530.0088240.004412
M60.4750389077532550.2338022.03180.0479730.023987
M70.3608679966044150.2395671.50630.1388180.069409
M80.1148435200905500.2390230.48050.633170.316585
M90.1688190435766850.2385060.70780.4826290.241314
M10-0.0279510469722690.204914-0.13640.8920970.446049
M110.2060244765138650.2048641.00570.3198380.159919
t-0.03397552348613470.002601-13.0600

\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) & 5.8018408319185 & 0.546032 & 10.6255 & 0 & 0 \tabularnewline
`WV-25` & 0.169475099037918 & 0.019263 & 8.798 & 0 & 0 \tabularnewline
M1 & 0.391285653650254 & 0.22511 & 1.7382 & 0.088866 & 0.044433 \tabularnewline
M2 & 0.0452611771363897 & 0.224496 & 0.2016 & 0.841109 & 0.420554 \tabularnewline
M3 & 0.179236700622525 & 0.223911 & 0.8005 & 0.427547 & 0.213773 \tabularnewline
M4 & 0.627087860780986 & 0.234967 & 2.6688 & 0.010479 & 0.00524 \tabularnewline
M5 & 0.641063384267121 & 0.234371 & 2.7353 & 0.008824 & 0.004412 \tabularnewline
M6 & 0.475038907753255 & 0.233802 & 2.0318 & 0.047973 & 0.023987 \tabularnewline
M7 & 0.360867996604415 & 0.239567 & 1.5063 & 0.138818 & 0.069409 \tabularnewline
M8 & 0.114843520090550 & 0.239023 & 0.4805 & 0.63317 & 0.316585 \tabularnewline
M9 & 0.168819043576685 & 0.238506 & 0.7078 & 0.482629 & 0.241314 \tabularnewline
M10 & -0.027951046972269 & 0.204914 & -0.1364 & 0.892097 & 0.446049 \tabularnewline
M11 & 0.206024476513865 & 0.204864 & 1.0057 & 0.319838 & 0.159919 \tabularnewline
t & -0.0339755234861347 & 0.002601 & -13.06 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57940&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]5.8018408319185[/C][C]0.546032[/C][C]10.6255[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]`WV-25`[/C][C]0.169475099037918[/C][C]0.019263[/C][C]8.798[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.391285653650254[/C][C]0.22511[/C][C]1.7382[/C][C]0.088866[/C][C]0.044433[/C][/ROW]
[ROW][C]M2[/C][C]0.0452611771363897[/C][C]0.224496[/C][C]0.2016[/C][C]0.841109[/C][C]0.420554[/C][/ROW]
[ROW][C]M3[/C][C]0.179236700622525[/C][C]0.223911[/C][C]0.8005[/C][C]0.427547[/C][C]0.213773[/C][/ROW]
[ROW][C]M4[/C][C]0.627087860780986[/C][C]0.234967[/C][C]2.6688[/C][C]0.010479[/C][C]0.00524[/C][/ROW]
[ROW][C]M5[/C][C]0.641063384267121[/C][C]0.234371[/C][C]2.7353[/C][C]0.008824[/C][C]0.004412[/C][/ROW]
[ROW][C]M6[/C][C]0.475038907753255[/C][C]0.233802[/C][C]2.0318[/C][C]0.047973[/C][C]0.023987[/C][/ROW]
[ROW][C]M7[/C][C]0.360867996604415[/C][C]0.239567[/C][C]1.5063[/C][C]0.138818[/C][C]0.069409[/C][/ROW]
[ROW][C]M8[/C][C]0.114843520090550[/C][C]0.239023[/C][C]0.4805[/C][C]0.63317[/C][C]0.316585[/C][/ROW]
[ROW][C]M9[/C][C]0.168819043576685[/C][C]0.238506[/C][C]0.7078[/C][C]0.482629[/C][C]0.241314[/C][/ROW]
[ROW][C]M10[/C][C]-0.027951046972269[/C][C]0.204914[/C][C]-0.1364[/C][C]0.892097[/C][C]0.446049[/C][/ROW]
[ROW][C]M11[/C][C]0.206024476513865[/C][C]0.204864[/C][C]1.0057[/C][C]0.319838[/C][C]0.159919[/C][/ROW]
[ROW][C]t[/C][C]-0.0339755234861347[/C][C]0.002601[/C][C]-13.06[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57940&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57940&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)5.80184083191850.54603210.625500
`WV-25`0.1694750990379180.0192638.79800
M10.3912856536502540.225111.73820.0888660.044433
M20.04526117713638970.2244960.20160.8411090.420554
M30.1792367006225250.2239110.80050.4275470.213773
M40.6270878607809860.2349672.66880.0104790.00524
M50.6410633842671210.2343712.73530.0088240.004412
M60.4750389077532550.2338022.03180.0479730.023987
M70.3608679966044150.2395671.50630.1388180.069409
M80.1148435200905500.2390230.48050.633170.316585
M90.1688190435766850.2385060.70780.4826290.241314
M10-0.0279510469722690.204914-0.13640.8920970.446049
M110.2060244765138650.2048641.00570.3198380.159919
t-0.03397552348613470.002601-13.0600







Multiple Linear Regression - Regression Statistics
Multiple R0.94897538063781
R-squared0.900554273056676
Adjusted R-squared0.872450045877041
F-TEST (value)32.0433743756968
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.323892318772898
Sum Squared Residuals4.8256867713639

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.94897538063781 \tabularnewline
R-squared & 0.900554273056676 \tabularnewline
Adjusted R-squared & 0.872450045877041 \tabularnewline
F-TEST (value) & 32.0433743756968 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.323892318772898 \tabularnewline
Sum Squared Residuals & 4.8256867713639 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57940&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.94897538063781[/C][/ROW]
[ROW][C]R-squared[/C][C]0.900554273056676[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.872450045877041[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]32.0433743756968[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/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.323892318772898[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]4.8256867713639[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57940&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57940&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.94897538063781
R-squared0.900554273056676
Adjusted R-squared0.872450045877041
F-TEST (value)32.0433743756968
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.323892318772898
Sum Squared Residuals4.8256867713639







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11010.2435008488964-0.243500848896442
29.29.86350084889643-0.663500848896434
39.29.96350084889643-0.763500848896435
49.59.9028462082626-0.402846208262591
59.69.8828462082626-0.282846208262592
69.59.6828462082626-0.182846208262592
79.19.1618545557442-0.0618545557441999
88.98.88185455574420.0181454442558009
998.90185455574420.0981454442558003
1010.19.874382144878320.225617855121676
1110.310.07438214487830.225617855121676
1210.29.834382144878320.365617855121675
139.69.429054329371820.170945670628185
149.29.049054329371820.150945670628183
159.39.149054329371820.150945670628184
169.49.173137238256930.226862761743068
179.49.153137238256930.246862761743068
189.28.953137238256930.246862761743068
1998.821938313525750.178061686474251
2098.541938313525750.45806168647425
2198.561938313525750.438061686474250
229.89.8903636106395-0.0903636106395012
231010.0903636106395-0.0903636106395018
249.89.8503636106395-0.0503636106395007
259.39.0382955574420.261704442558010
2698.6582955574420.341704442558008
2798.7582955574420.241704442558008
289.18.867116015846070.232883984153932
299.18.847116015846070.252883984153933
309.18.647116015846070.452883984153933
319.28.939604838709680.260395161290322
328.88.659604838709680.140395161290323
338.38.67960483870968-0.379604838709677
348.48.414964204867-0.0149642048670055
358.18.614964204867-0.514964204867006
367.78.374964204867-0.674964204867005
377.98.08826895868704-0.188268958687038
387.97.708268958687040.19173104131296
3987.808268958687040.191731041312959
407.97.815404357668370.0845956423316355
417.67.79540435766836-0.195404357668365
427.17.59540435766836-0.495404357668364
436.87.04051768534239-0.240517685342388
446.56.76051768534239-0.260517685342388
456.96.780517685342390.119482314657612
468.28.29536559139785-0.0953655913978506
478.78.495365591397850.204634408602149
488.38.255365591397850.0446344086021515
497.97.90088030560271-0.00088030560271447
507.57.52088030560272-0.0208803056027165
517.87.620880305602720.179119694397283
528.38.44149617996604-0.141496179966045
538.48.42149617996605-0.0214961799660445
548.28.22149617996604-0.0214961799660452
557.77.83608460667799-0.136084606677985
567.27.55608460667799-0.356084606677986
577.37.57608460667799-0.276084606677986
588.18.12492444821732-0.0249244482173187
598.58.324924448217320.175075551782682
608.48.084924448217320.315075551782682

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 10 & 10.2435008488964 & -0.243500848896442 \tabularnewline
2 & 9.2 & 9.86350084889643 & -0.663500848896434 \tabularnewline
3 & 9.2 & 9.96350084889643 & -0.763500848896435 \tabularnewline
4 & 9.5 & 9.9028462082626 & -0.402846208262591 \tabularnewline
5 & 9.6 & 9.8828462082626 & -0.282846208262592 \tabularnewline
6 & 9.5 & 9.6828462082626 & -0.182846208262592 \tabularnewline
7 & 9.1 & 9.1618545557442 & -0.0618545557441999 \tabularnewline
8 & 8.9 & 8.8818545557442 & 0.0181454442558009 \tabularnewline
9 & 9 & 8.9018545557442 & 0.0981454442558003 \tabularnewline
10 & 10.1 & 9.87438214487832 & 0.225617855121676 \tabularnewline
11 & 10.3 & 10.0743821448783 & 0.225617855121676 \tabularnewline
12 & 10.2 & 9.83438214487832 & 0.365617855121675 \tabularnewline
13 & 9.6 & 9.42905432937182 & 0.170945670628185 \tabularnewline
14 & 9.2 & 9.04905432937182 & 0.150945670628183 \tabularnewline
15 & 9.3 & 9.14905432937182 & 0.150945670628184 \tabularnewline
16 & 9.4 & 9.17313723825693 & 0.226862761743068 \tabularnewline
17 & 9.4 & 9.15313723825693 & 0.246862761743068 \tabularnewline
18 & 9.2 & 8.95313723825693 & 0.246862761743068 \tabularnewline
19 & 9 & 8.82193831352575 & 0.178061686474251 \tabularnewline
20 & 9 & 8.54193831352575 & 0.45806168647425 \tabularnewline
21 & 9 & 8.56193831352575 & 0.438061686474250 \tabularnewline
22 & 9.8 & 9.8903636106395 & -0.0903636106395012 \tabularnewline
23 & 10 & 10.0903636106395 & -0.0903636106395018 \tabularnewline
24 & 9.8 & 9.8503636106395 & -0.0503636106395007 \tabularnewline
25 & 9.3 & 9.038295557442 & 0.261704442558010 \tabularnewline
26 & 9 & 8.658295557442 & 0.341704442558008 \tabularnewline
27 & 9 & 8.758295557442 & 0.241704442558008 \tabularnewline
28 & 9.1 & 8.86711601584607 & 0.232883984153932 \tabularnewline
29 & 9.1 & 8.84711601584607 & 0.252883984153933 \tabularnewline
30 & 9.1 & 8.64711601584607 & 0.452883984153933 \tabularnewline
31 & 9.2 & 8.93960483870968 & 0.260395161290322 \tabularnewline
32 & 8.8 & 8.65960483870968 & 0.140395161290323 \tabularnewline
33 & 8.3 & 8.67960483870968 & -0.379604838709677 \tabularnewline
34 & 8.4 & 8.414964204867 & -0.0149642048670055 \tabularnewline
35 & 8.1 & 8.614964204867 & -0.514964204867006 \tabularnewline
36 & 7.7 & 8.374964204867 & -0.674964204867005 \tabularnewline
37 & 7.9 & 8.08826895868704 & -0.188268958687038 \tabularnewline
38 & 7.9 & 7.70826895868704 & 0.19173104131296 \tabularnewline
39 & 8 & 7.80826895868704 & 0.191731041312959 \tabularnewline
40 & 7.9 & 7.81540435766837 & 0.0845956423316355 \tabularnewline
41 & 7.6 & 7.79540435766836 & -0.195404357668365 \tabularnewline
42 & 7.1 & 7.59540435766836 & -0.495404357668364 \tabularnewline
43 & 6.8 & 7.04051768534239 & -0.240517685342388 \tabularnewline
44 & 6.5 & 6.76051768534239 & -0.260517685342388 \tabularnewline
45 & 6.9 & 6.78051768534239 & 0.119482314657612 \tabularnewline
46 & 8.2 & 8.29536559139785 & -0.0953655913978506 \tabularnewline
47 & 8.7 & 8.49536559139785 & 0.204634408602149 \tabularnewline
48 & 8.3 & 8.25536559139785 & 0.0446344086021515 \tabularnewline
49 & 7.9 & 7.90088030560271 & -0.00088030560271447 \tabularnewline
50 & 7.5 & 7.52088030560272 & -0.0208803056027165 \tabularnewline
51 & 7.8 & 7.62088030560272 & 0.179119694397283 \tabularnewline
52 & 8.3 & 8.44149617996604 & -0.141496179966045 \tabularnewline
53 & 8.4 & 8.42149617996605 & -0.0214961799660445 \tabularnewline
54 & 8.2 & 8.22149617996604 & -0.0214961799660452 \tabularnewline
55 & 7.7 & 7.83608460667799 & -0.136084606677985 \tabularnewline
56 & 7.2 & 7.55608460667799 & -0.356084606677986 \tabularnewline
57 & 7.3 & 7.57608460667799 & -0.276084606677986 \tabularnewline
58 & 8.1 & 8.12492444821732 & -0.0249244482173187 \tabularnewline
59 & 8.5 & 8.32492444821732 & 0.175075551782682 \tabularnewline
60 & 8.4 & 8.08492444821732 & 0.315075551782682 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57940&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]10[/C][C]10.2435008488964[/C][C]-0.243500848896442[/C][/ROW]
[ROW][C]2[/C][C]9.2[/C][C]9.86350084889643[/C][C]-0.663500848896434[/C][/ROW]
[ROW][C]3[/C][C]9.2[/C][C]9.96350084889643[/C][C]-0.763500848896435[/C][/ROW]
[ROW][C]4[/C][C]9.5[/C][C]9.9028462082626[/C][C]-0.402846208262591[/C][/ROW]
[ROW][C]5[/C][C]9.6[/C][C]9.8828462082626[/C][C]-0.282846208262592[/C][/ROW]
[ROW][C]6[/C][C]9.5[/C][C]9.6828462082626[/C][C]-0.182846208262592[/C][/ROW]
[ROW][C]7[/C][C]9.1[/C][C]9.1618545557442[/C][C]-0.0618545557441999[/C][/ROW]
[ROW][C]8[/C][C]8.9[/C][C]8.8818545557442[/C][C]0.0181454442558009[/C][/ROW]
[ROW][C]9[/C][C]9[/C][C]8.9018545557442[/C][C]0.0981454442558003[/C][/ROW]
[ROW][C]10[/C][C]10.1[/C][C]9.87438214487832[/C][C]0.225617855121676[/C][/ROW]
[ROW][C]11[/C][C]10.3[/C][C]10.0743821448783[/C][C]0.225617855121676[/C][/ROW]
[ROW][C]12[/C][C]10.2[/C][C]9.83438214487832[/C][C]0.365617855121675[/C][/ROW]
[ROW][C]13[/C][C]9.6[/C][C]9.42905432937182[/C][C]0.170945670628185[/C][/ROW]
[ROW][C]14[/C][C]9.2[/C][C]9.04905432937182[/C][C]0.150945670628183[/C][/ROW]
[ROW][C]15[/C][C]9.3[/C][C]9.14905432937182[/C][C]0.150945670628184[/C][/ROW]
[ROW][C]16[/C][C]9.4[/C][C]9.17313723825693[/C][C]0.226862761743068[/C][/ROW]
[ROW][C]17[/C][C]9.4[/C][C]9.15313723825693[/C][C]0.246862761743068[/C][/ROW]
[ROW][C]18[/C][C]9.2[/C][C]8.95313723825693[/C][C]0.246862761743068[/C][/ROW]
[ROW][C]19[/C][C]9[/C][C]8.82193831352575[/C][C]0.178061686474251[/C][/ROW]
[ROW][C]20[/C][C]9[/C][C]8.54193831352575[/C][C]0.45806168647425[/C][/ROW]
[ROW][C]21[/C][C]9[/C][C]8.56193831352575[/C][C]0.438061686474250[/C][/ROW]
[ROW][C]22[/C][C]9.8[/C][C]9.8903636106395[/C][C]-0.0903636106395012[/C][/ROW]
[ROW][C]23[/C][C]10[/C][C]10.0903636106395[/C][C]-0.0903636106395018[/C][/ROW]
[ROW][C]24[/C][C]9.8[/C][C]9.8503636106395[/C][C]-0.0503636106395007[/C][/ROW]
[ROW][C]25[/C][C]9.3[/C][C]9.038295557442[/C][C]0.261704442558010[/C][/ROW]
[ROW][C]26[/C][C]9[/C][C]8.658295557442[/C][C]0.341704442558008[/C][/ROW]
[ROW][C]27[/C][C]9[/C][C]8.758295557442[/C][C]0.241704442558008[/C][/ROW]
[ROW][C]28[/C][C]9.1[/C][C]8.86711601584607[/C][C]0.232883984153932[/C][/ROW]
[ROW][C]29[/C][C]9.1[/C][C]8.84711601584607[/C][C]0.252883984153933[/C][/ROW]
[ROW][C]30[/C][C]9.1[/C][C]8.64711601584607[/C][C]0.452883984153933[/C][/ROW]
[ROW][C]31[/C][C]9.2[/C][C]8.93960483870968[/C][C]0.260395161290322[/C][/ROW]
[ROW][C]32[/C][C]8.8[/C][C]8.65960483870968[/C][C]0.140395161290323[/C][/ROW]
[ROW][C]33[/C][C]8.3[/C][C]8.67960483870968[/C][C]-0.379604838709677[/C][/ROW]
[ROW][C]34[/C][C]8.4[/C][C]8.414964204867[/C][C]-0.0149642048670055[/C][/ROW]
[ROW][C]35[/C][C]8.1[/C][C]8.614964204867[/C][C]-0.514964204867006[/C][/ROW]
[ROW][C]36[/C][C]7.7[/C][C]8.374964204867[/C][C]-0.674964204867005[/C][/ROW]
[ROW][C]37[/C][C]7.9[/C][C]8.08826895868704[/C][C]-0.188268958687038[/C][/ROW]
[ROW][C]38[/C][C]7.9[/C][C]7.70826895868704[/C][C]0.19173104131296[/C][/ROW]
[ROW][C]39[/C][C]8[/C][C]7.80826895868704[/C][C]0.191731041312959[/C][/ROW]
[ROW][C]40[/C][C]7.9[/C][C]7.81540435766837[/C][C]0.0845956423316355[/C][/ROW]
[ROW][C]41[/C][C]7.6[/C][C]7.79540435766836[/C][C]-0.195404357668365[/C][/ROW]
[ROW][C]42[/C][C]7.1[/C][C]7.59540435766836[/C][C]-0.495404357668364[/C][/ROW]
[ROW][C]43[/C][C]6.8[/C][C]7.04051768534239[/C][C]-0.240517685342388[/C][/ROW]
[ROW][C]44[/C][C]6.5[/C][C]6.76051768534239[/C][C]-0.260517685342388[/C][/ROW]
[ROW][C]45[/C][C]6.9[/C][C]6.78051768534239[/C][C]0.119482314657612[/C][/ROW]
[ROW][C]46[/C][C]8.2[/C][C]8.29536559139785[/C][C]-0.0953655913978506[/C][/ROW]
[ROW][C]47[/C][C]8.7[/C][C]8.49536559139785[/C][C]0.204634408602149[/C][/ROW]
[ROW][C]48[/C][C]8.3[/C][C]8.25536559139785[/C][C]0.0446344086021515[/C][/ROW]
[ROW][C]49[/C][C]7.9[/C][C]7.90088030560271[/C][C]-0.00088030560271447[/C][/ROW]
[ROW][C]50[/C][C]7.5[/C][C]7.52088030560272[/C][C]-0.0208803056027165[/C][/ROW]
[ROW][C]51[/C][C]7.8[/C][C]7.62088030560272[/C][C]0.179119694397283[/C][/ROW]
[ROW][C]52[/C][C]8.3[/C][C]8.44149617996604[/C][C]-0.141496179966045[/C][/ROW]
[ROW][C]53[/C][C]8.4[/C][C]8.42149617996605[/C][C]-0.0214961799660445[/C][/ROW]
[ROW][C]54[/C][C]8.2[/C][C]8.22149617996604[/C][C]-0.0214961799660452[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.83608460667799[/C][C]-0.136084606677985[/C][/ROW]
[ROW][C]56[/C][C]7.2[/C][C]7.55608460667799[/C][C]-0.356084606677986[/C][/ROW]
[ROW][C]57[/C][C]7.3[/C][C]7.57608460667799[/C][C]-0.276084606677986[/C][/ROW]
[ROW][C]58[/C][C]8.1[/C][C]8.12492444821732[/C][C]-0.0249244482173187[/C][/ROW]
[ROW][C]59[/C][C]8.5[/C][C]8.32492444821732[/C][C]0.175075551782682[/C][/ROW]
[ROW][C]60[/C][C]8.4[/C][C]8.08492444821732[/C][C]0.315075551782682[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57940&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57940&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
11010.2435008488964-0.243500848896442
29.29.86350084889643-0.663500848896434
39.29.96350084889643-0.763500848896435
49.59.9028462082626-0.402846208262591
59.69.8828462082626-0.282846208262592
69.59.6828462082626-0.182846208262592
79.19.1618545557442-0.0618545557441999
88.98.88185455574420.0181454442558009
998.90185455574420.0981454442558003
1010.19.874382144878320.225617855121676
1110.310.07438214487830.225617855121676
1210.29.834382144878320.365617855121675
139.69.429054329371820.170945670628185
149.29.049054329371820.150945670628183
159.39.149054329371820.150945670628184
169.49.173137238256930.226862761743068
179.49.153137238256930.246862761743068
189.28.953137238256930.246862761743068
1998.821938313525750.178061686474251
2098.541938313525750.45806168647425
2198.561938313525750.438061686474250
229.89.8903636106395-0.0903636106395012
231010.0903636106395-0.0903636106395018
249.89.8503636106395-0.0503636106395007
259.39.0382955574420.261704442558010
2698.6582955574420.341704442558008
2798.7582955574420.241704442558008
289.18.867116015846070.232883984153932
299.18.847116015846070.252883984153933
309.18.647116015846070.452883984153933
319.28.939604838709680.260395161290322
328.88.659604838709680.140395161290323
338.38.67960483870968-0.379604838709677
348.48.414964204867-0.0149642048670055
358.18.614964204867-0.514964204867006
367.78.374964204867-0.674964204867005
377.98.08826895868704-0.188268958687038
387.97.708268958687040.19173104131296
3987.808268958687040.191731041312959
407.97.815404357668370.0845956423316355
417.67.79540435766836-0.195404357668365
427.17.59540435766836-0.495404357668364
436.87.04051768534239-0.240517685342388
446.56.76051768534239-0.260517685342388
456.96.780517685342390.119482314657612
468.28.29536559139785-0.0953655913978506
478.78.495365591397850.204634408602149
488.38.255365591397850.0446344086021515
497.97.90088030560271-0.00088030560271447
507.57.52088030560272-0.0208803056027165
517.87.620880305602720.179119694397283
528.38.44149617996604-0.141496179966045
538.48.42149617996605-0.0214961799660445
548.28.22149617996604-0.0214961799660452
557.77.83608460667799-0.136084606677985
567.27.55608460667799-0.356084606677986
577.37.57608460667799-0.276084606677986
588.18.12492444821732-0.0249244482173187
598.58.324924448217320.175075551782682
608.48.084924448217320.315075551782682







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1727796268222820.3455592536445640.827220373177718
180.08599772061664290.1719954412332860.914002279383357
190.0421073979168070.0842147958336140.957892602083193
200.02823389081940610.05646778163881220.971766109180594
210.01513565313288320.03027130626576640.984864346867117
220.01592865228692590.03185730457385190.984071347713074
230.009098408783252150.01819681756650430.990901591216748
240.005860300987226280.01172060197445260.994139699012774
250.006409557844154280.01281911568830860.993590442155846
260.002957720330013040.005915440660026090.997042279669987
270.001177297823217470.002354595646434930.998822702176783
280.0005096428468941120.001019285693788220.999490357153106
290.0002796264060538760.0005592528121077530.999720373593946
300.0004453766831163280.0008907533662326570.999554623316884
310.005366279527357940.01073255905471590.994633720472642
320.01655921719545060.03311843439090130.98344078280455
330.04781431502482970.09562863004965940.95218568497517
340.585334870178730.829330259642540.41466512982127
350.8813578981788460.2372842036423070.118642101821154
360.991726310688920.01654737862215950.00827368931107973
370.9856086190530270.02878276189394530.0143913809469726
380.9787970839667870.04240583206642520.0212029160332126
390.9573770144072760.08524597118544740.0426229855927237
400.9347178611460.1305642777080.065282138854
410.8868363788940110.2263272422119770.113163621105989
420.9585416650356120.08291666992877560.0414583349643878
430.9529155232540950.09416895349181090.0470844767459054

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.172779626822282 & 0.345559253644564 & 0.827220373177718 \tabularnewline
18 & 0.0859977206166429 & 0.171995441233286 & 0.914002279383357 \tabularnewline
19 & 0.042107397916807 & 0.084214795833614 & 0.957892602083193 \tabularnewline
20 & 0.0282338908194061 & 0.0564677816388122 & 0.971766109180594 \tabularnewline
21 & 0.0151356531328832 & 0.0302713062657664 & 0.984864346867117 \tabularnewline
22 & 0.0159286522869259 & 0.0318573045738519 & 0.984071347713074 \tabularnewline
23 & 0.00909840878325215 & 0.0181968175665043 & 0.990901591216748 \tabularnewline
24 & 0.00586030098722628 & 0.0117206019744526 & 0.994139699012774 \tabularnewline
25 & 0.00640955784415428 & 0.0128191156883086 & 0.993590442155846 \tabularnewline
26 & 0.00295772033001304 & 0.00591544066002609 & 0.997042279669987 \tabularnewline
27 & 0.00117729782321747 & 0.00235459564643493 & 0.998822702176783 \tabularnewline
28 & 0.000509642846894112 & 0.00101928569378822 & 0.999490357153106 \tabularnewline
29 & 0.000279626406053876 & 0.000559252812107753 & 0.999720373593946 \tabularnewline
30 & 0.000445376683116328 & 0.000890753366232657 & 0.999554623316884 \tabularnewline
31 & 0.00536627952735794 & 0.0107325590547159 & 0.994633720472642 \tabularnewline
32 & 0.0165592171954506 & 0.0331184343909013 & 0.98344078280455 \tabularnewline
33 & 0.0478143150248297 & 0.0956286300496594 & 0.95218568497517 \tabularnewline
34 & 0.58533487017873 & 0.82933025964254 & 0.41466512982127 \tabularnewline
35 & 0.881357898178846 & 0.237284203642307 & 0.118642101821154 \tabularnewline
36 & 0.99172631068892 & 0.0165473786221595 & 0.00827368931107973 \tabularnewline
37 & 0.985608619053027 & 0.0287827618939453 & 0.0143913809469726 \tabularnewline
38 & 0.978797083966787 & 0.0424058320664252 & 0.0212029160332126 \tabularnewline
39 & 0.957377014407276 & 0.0852459711854474 & 0.0426229855927237 \tabularnewline
40 & 0.934717861146 & 0.130564277708 & 0.065282138854 \tabularnewline
41 & 0.886836378894011 & 0.226327242211977 & 0.113163621105989 \tabularnewline
42 & 0.958541665035612 & 0.0829166699287756 & 0.0414583349643878 \tabularnewline
43 & 0.952915523254095 & 0.0941689534918109 & 0.0470844767459054 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57940&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]17[/C][C]0.172779626822282[/C][C]0.345559253644564[/C][C]0.827220373177718[/C][/ROW]
[ROW][C]18[/C][C]0.0859977206166429[/C][C]0.171995441233286[/C][C]0.914002279383357[/C][/ROW]
[ROW][C]19[/C][C]0.042107397916807[/C][C]0.084214795833614[/C][C]0.957892602083193[/C][/ROW]
[ROW][C]20[/C][C]0.0282338908194061[/C][C]0.0564677816388122[/C][C]0.971766109180594[/C][/ROW]
[ROW][C]21[/C][C]0.0151356531328832[/C][C]0.0302713062657664[/C][C]0.984864346867117[/C][/ROW]
[ROW][C]22[/C][C]0.0159286522869259[/C][C]0.0318573045738519[/C][C]0.984071347713074[/C][/ROW]
[ROW][C]23[/C][C]0.00909840878325215[/C][C]0.0181968175665043[/C][C]0.990901591216748[/C][/ROW]
[ROW][C]24[/C][C]0.00586030098722628[/C][C]0.0117206019744526[/C][C]0.994139699012774[/C][/ROW]
[ROW][C]25[/C][C]0.00640955784415428[/C][C]0.0128191156883086[/C][C]0.993590442155846[/C][/ROW]
[ROW][C]26[/C][C]0.00295772033001304[/C][C]0.00591544066002609[/C][C]0.997042279669987[/C][/ROW]
[ROW][C]27[/C][C]0.00117729782321747[/C][C]0.00235459564643493[/C][C]0.998822702176783[/C][/ROW]
[ROW][C]28[/C][C]0.000509642846894112[/C][C]0.00101928569378822[/C][C]0.999490357153106[/C][/ROW]
[ROW][C]29[/C][C]0.000279626406053876[/C][C]0.000559252812107753[/C][C]0.999720373593946[/C][/ROW]
[ROW][C]30[/C][C]0.000445376683116328[/C][C]0.000890753366232657[/C][C]0.999554623316884[/C][/ROW]
[ROW][C]31[/C][C]0.00536627952735794[/C][C]0.0107325590547159[/C][C]0.994633720472642[/C][/ROW]
[ROW][C]32[/C][C]0.0165592171954506[/C][C]0.0331184343909013[/C][C]0.98344078280455[/C][/ROW]
[ROW][C]33[/C][C]0.0478143150248297[/C][C]0.0956286300496594[/C][C]0.95218568497517[/C][/ROW]
[ROW][C]34[/C][C]0.58533487017873[/C][C]0.82933025964254[/C][C]0.41466512982127[/C][/ROW]
[ROW][C]35[/C][C]0.881357898178846[/C][C]0.237284203642307[/C][C]0.118642101821154[/C][/ROW]
[ROW][C]36[/C][C]0.99172631068892[/C][C]0.0165473786221595[/C][C]0.00827368931107973[/C][/ROW]
[ROW][C]37[/C][C]0.985608619053027[/C][C]0.0287827618939453[/C][C]0.0143913809469726[/C][/ROW]
[ROW][C]38[/C][C]0.978797083966787[/C][C]0.0424058320664252[/C][C]0.0212029160332126[/C][/ROW]
[ROW][C]39[/C][C]0.957377014407276[/C][C]0.0852459711854474[/C][C]0.0426229855927237[/C][/ROW]
[ROW][C]40[/C][C]0.934717861146[/C][C]0.130564277708[/C][C]0.065282138854[/C][/ROW]
[ROW][C]41[/C][C]0.886836378894011[/C][C]0.226327242211977[/C][C]0.113163621105989[/C][/ROW]
[ROW][C]42[/C][C]0.958541665035612[/C][C]0.0829166699287756[/C][C]0.0414583349643878[/C][/ROW]
[ROW][C]43[/C][C]0.952915523254095[/C][C]0.0941689534918109[/C][C]0.0470844767459054[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57940&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57940&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
170.1727796268222820.3455592536445640.827220373177718
180.08599772061664290.1719954412332860.914002279383357
190.0421073979168070.0842147958336140.957892602083193
200.02823389081940610.05646778163881220.971766109180594
210.01513565313288320.03027130626576640.984864346867117
220.01592865228692590.03185730457385190.984071347713074
230.009098408783252150.01819681756650430.990901591216748
240.005860300987226280.01172060197445260.994139699012774
250.006409557844154280.01281911568830860.993590442155846
260.002957720330013040.005915440660026090.997042279669987
270.001177297823217470.002354595646434930.998822702176783
280.0005096428468941120.001019285693788220.999490357153106
290.0002796264060538760.0005592528121077530.999720373593946
300.0004453766831163280.0008907533662326570.999554623316884
310.005366279527357940.01073255905471590.994633720472642
320.01655921719545060.03311843439090130.98344078280455
330.04781431502482970.09562863004965940.95218568497517
340.585334870178730.829330259642540.41466512982127
350.8813578981788460.2372842036423070.118642101821154
360.991726310688920.01654737862215950.00827368931107973
370.9856086190530270.02878276189394530.0143913809469726
380.9787970839667870.04240583206642520.0212029160332126
390.9573770144072760.08524597118544740.0426229855927237
400.9347178611460.1305642777080.065282138854
410.8868363788940110.2263272422119770.113163621105989
420.9585416650356120.08291666992877560.0414583349643878
430.9529155232540950.09416895349181090.0470844767459054







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.185185185185185NOK
5% type I error level150.555555555555556NOK
10% type I error level210.777777777777778NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57940&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 level50.185185185185185NOK
5% type I error level150.555555555555556NOK
10% type I error level210.777777777777778NOK



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