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 computationTue, 15 Dec 2009 08:12:35 -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/15/t1260890046nk7b1b9ixmswhab.htm/, Retrieved Sat, 04 May 2024 23:15:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67965, Retrieved Sat, 04 May 2024 23:15:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact205
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:14:11] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [] [2009-11-19 15:42:20] [6ba840d2473f9a55d7b3e13093db69b8]
-    D        [Multiple Regression] [] [2009-12-15 15:12:35] [830aa0f7fb5acd5849dbc0c6ad889830] [Current]
- RMPD          [Univariate Data Series] [] [2009-12-21 10:19:17] [6ba840d2473f9a55d7b3e13093db69b8]
- RMPD          [Univariate Data Series] [] [2009-12-21 10:23:30] [6ba840d2473f9a55d7b3e13093db69b8]
- RMPD          [Univariate Data Series] [] [2009-12-21 10:40:57] [6ba840d2473f9a55d7b3e13093db69b8]
-    D          [Multiple Regression] [] [2009-12-21 09:45:41] [6ba840d2473f9a55d7b3e13093db69b8]
Feedback Forum

Post a new message
Dataseries X:
8.3	0	8.2	8.7
8.5	0	8.3	8.2
8.6	0	8.5	8.3
8.5	0	8.6	8.5
8.2	0	8.5	8.6
8.1	0	8.2	8.5
7.9	0	8.1	8.2
8.6	0	7.9	8.1
8.7	0	8.6	7.9
8.7	0	8.7	8.6
8.5	0	8.7	8.7
8.4	0	8.5	8.7
8.5	0	8.4	8.5
8.7	0	8.5	8.4
8.7	0	8.7	8.5
8.6	0	8.7	8.7
8.5	0	8.6	8.7
8.3	0	8.5	8.6
8	0	8.3	8.5
8.2	0	8	8.3
8.1	0	8.2	8
8.1	0	8.1	8.2
8	0	8.1	8.1
7.9	0	8	8.1
7.9	0	7.9	8
8	0	7.9	7.9
8	0	8	7.9
7.9	0	8	8
8	0	7.9	8
7.7	0	8	7.9
7.2	0	7.7	8
7.5	0	7.2	7.7
7.3	0	7.5	7.2
7	0	7.3	7.5
7	0	7	7.3
7	0	7	7
7.2	0	7	7
7.3	0	7.2	7
7.1	0	7.3	7.2
6.8	0	7.1	7.3
6.4	0	6.8	7.1
6.1	0	6.4	6.8
6.5	0	6.1	6.4
7.7	0	6.5	6.1
7.9	0	7.7	6.5
7.5	0	7.9	7.7
6.9	1	7.5	7.9
6.6	1	6.9	7.5
6.9	1	6.6	6.9
7.7	1	6.9	6.6
8	1	7.7	6.9
8	1	8	7.7
7.7	1	8	8
7.3	1	7.7	8
7.4	1	7.3	7.7
8.1	1	7.4	7.3
8.3	1	8.1	7.4
8.2	1	8.3	8.1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67965&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67965&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2.4321893216906 + 0.305335987791798X[t] + 1.39865251096371Y1[t] -0.676438938461147Y2[t] + 0.207220269727292M1[t] + 0.168459387450287M2[t] -0.0761236072848482M3[t] -0.050328548004132M4[t] -0.0430944321998975M5[t] -0.0921983456723488M6[t] + 0.0485017764361306M7[t] + 0.644831160482746M8[t] -0.237639033210727M9[t] -0.0218547348532218M10[t] -0.0836582576862774M11[t] -0.0123382569501433t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  2.4321893216906 +  0.305335987791798X[t] +  1.39865251096371Y1[t] -0.676438938461147Y2[t] +  0.207220269727292M1[t] +  0.168459387450287M2[t] -0.0761236072848482M3[t] -0.050328548004132M4[t] -0.0430944321998975M5[t] -0.0921983456723488M6[t] +  0.0485017764361306M7[t] +  0.644831160482746M8[t] -0.237639033210727M9[t] -0.0218547348532218M10[t] -0.0836582576862774M11[t] -0.0123382569501433t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67965&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  2.4321893216906 +  0.305335987791798X[t] +  1.39865251096371Y1[t] -0.676438938461147Y2[t] +  0.207220269727292M1[t] +  0.168459387450287M2[t] -0.0761236072848482M3[t] -0.050328548004132M4[t] -0.0430944321998975M5[t] -0.0921983456723488M6[t] +  0.0485017764361306M7[t] +  0.644831160482746M8[t] -0.237639033210727M9[t] -0.0218547348532218M10[t] -0.0836582576862774M11[t] -0.0123382569501433t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67965&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67965&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] = + 2.4321893216906 + 0.305335987791798X[t] + 1.39865251096371Y1[t] -0.676438938461147Y2[t] + 0.207220269727292M1[t] + 0.168459387450287M2[t] -0.0761236072848482M3[t] -0.050328548004132M4[t] -0.0430944321998975M5[t] -0.0921983456723488M6[t] + 0.0485017764361306M7[t] + 0.644831160482746M8[t] -0.237639033210727M9[t] -0.0218547348532218M10[t] -0.0836582576862774M11[t] -0.0123382569501433t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.43218932169060.6222793.90850.0003320.000166
X0.3053359877917980.1006153.03470.0041210.00206
Y11.398652510963710.11390112.279500
Y2-0.6764389384611470.121961-5.54642e-061e-06
M10.2072202697272920.1190151.74110.0889840.044492
M20.1684593874502870.1263921.33280.1897730.094887
M3-0.07612360728484820.131337-0.57960.5652770.282639
M4-0.0503285480041320.123219-0.40840.685020.34251
M5-0.04309443219989750.120444-0.35780.7222870.361144
M6-0.09219834567234880.118936-0.77520.442570.221285
M70.04850177643613060.1183460.40980.6840130.342007
M80.6448311604827460.1196485.38943e-061e-06
M9-0.2376390332107270.151134-1.57240.1233680.061684
M10-0.02185473485322180.126701-0.17250.863880.43194
M11-0.08365825768627740.1251-0.66870.5073280.253664
t-0.01233825695014330.003569-3.45750.0012620.000631

\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) & 2.4321893216906 & 0.622279 & 3.9085 & 0.000332 & 0.000166 \tabularnewline
X & 0.305335987791798 & 0.100615 & 3.0347 & 0.004121 & 0.00206 \tabularnewline
Y1 & 1.39865251096371 & 0.113901 & 12.2795 & 0 & 0 \tabularnewline
Y2 & -0.676438938461147 & 0.121961 & -5.5464 & 2e-06 & 1e-06 \tabularnewline
M1 & 0.207220269727292 & 0.119015 & 1.7411 & 0.088984 & 0.044492 \tabularnewline
M2 & 0.168459387450287 & 0.126392 & 1.3328 & 0.189773 & 0.094887 \tabularnewline
M3 & -0.0761236072848482 & 0.131337 & -0.5796 & 0.565277 & 0.282639 \tabularnewline
M4 & -0.050328548004132 & 0.123219 & -0.4084 & 0.68502 & 0.34251 \tabularnewline
M5 & -0.0430944321998975 & 0.120444 & -0.3578 & 0.722287 & 0.361144 \tabularnewline
M6 & -0.0921983456723488 & 0.118936 & -0.7752 & 0.44257 & 0.221285 \tabularnewline
M7 & 0.0485017764361306 & 0.118346 & 0.4098 & 0.684013 & 0.342007 \tabularnewline
M8 & 0.644831160482746 & 0.119648 & 5.3894 & 3e-06 & 1e-06 \tabularnewline
M9 & -0.237639033210727 & 0.151134 & -1.5724 & 0.123368 & 0.061684 \tabularnewline
M10 & -0.0218547348532218 & 0.126701 & -0.1725 & 0.86388 & 0.43194 \tabularnewline
M11 & -0.0836582576862774 & 0.1251 & -0.6687 & 0.507328 & 0.253664 \tabularnewline
t & -0.0123382569501433 & 0.003569 & -3.4575 & 0.001262 & 0.000631 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67965&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]2.4321893216906[/C][C]0.622279[/C][C]3.9085[/C][C]0.000332[/C][C]0.000166[/C][/ROW]
[ROW][C]X[/C][C]0.305335987791798[/C][C]0.100615[/C][C]3.0347[/C][C]0.004121[/C][C]0.00206[/C][/ROW]
[ROW][C]Y1[/C][C]1.39865251096371[/C][C]0.113901[/C][C]12.2795[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.676438938461147[/C][C]0.121961[/C][C]-5.5464[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M1[/C][C]0.207220269727292[/C][C]0.119015[/C][C]1.7411[/C][C]0.088984[/C][C]0.044492[/C][/ROW]
[ROW][C]M2[/C][C]0.168459387450287[/C][C]0.126392[/C][C]1.3328[/C][C]0.189773[/C][C]0.094887[/C][/ROW]
[ROW][C]M3[/C][C]-0.0761236072848482[/C][C]0.131337[/C][C]-0.5796[/C][C]0.565277[/C][C]0.282639[/C][/ROW]
[ROW][C]M4[/C][C]-0.050328548004132[/C][C]0.123219[/C][C]-0.4084[/C][C]0.68502[/C][C]0.34251[/C][/ROW]
[ROW][C]M5[/C][C]-0.0430944321998975[/C][C]0.120444[/C][C]-0.3578[/C][C]0.722287[/C][C]0.361144[/C][/ROW]
[ROW][C]M6[/C][C]-0.0921983456723488[/C][C]0.118936[/C][C]-0.7752[/C][C]0.44257[/C][C]0.221285[/C][/ROW]
[ROW][C]M7[/C][C]0.0485017764361306[/C][C]0.118346[/C][C]0.4098[/C][C]0.684013[/C][C]0.342007[/C][/ROW]
[ROW][C]M8[/C][C]0.644831160482746[/C][C]0.119648[/C][C]5.3894[/C][C]3e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M9[/C][C]-0.237639033210727[/C][C]0.151134[/C][C]-1.5724[/C][C]0.123368[/C][C]0.061684[/C][/ROW]
[ROW][C]M10[/C][C]-0.0218547348532218[/C][C]0.126701[/C][C]-0.1725[/C][C]0.86388[/C][C]0.43194[/C][/ROW]
[ROW][C]M11[/C][C]-0.0836582576862774[/C][C]0.1251[/C][C]-0.6687[/C][C]0.507328[/C][C]0.253664[/C][/ROW]
[ROW][C]t[/C][C]-0.0123382569501433[/C][C]0.003569[/C][C]-3.4575[/C][C]0.001262[/C][C]0.000631[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67965&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67965&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)2.43218932169060.6222793.90850.0003320.000166
X0.3053359877917980.1006153.03470.0041210.00206
Y11.398652510963710.11390112.279500
Y2-0.6764389384611470.121961-5.54642e-061e-06
M10.2072202697272920.1190151.74110.0889840.044492
M20.1684593874502870.1263921.33280.1897730.094887
M3-0.07612360728484820.131337-0.57960.5652770.282639
M4-0.0503285480041320.123219-0.40840.685020.34251
M5-0.04309443219989750.120444-0.35780.7222870.361144
M6-0.09219834567234880.118936-0.77520.442570.221285
M70.04850177643613060.1183460.40980.6840130.342007
M80.6448311604827460.1196485.38943e-061e-06
M9-0.2376390332107270.151134-1.57240.1233680.061684
M10-0.02185473485322180.126701-0.17250.863880.43194
M11-0.08365825768627740.1251-0.66870.5073280.253664
t-0.01233825695014330.003569-3.45750.0012620.000631







Multiple Linear Regression - Regression Statistics
Multiple R0.973328878979688
R-squared0.947369106655857
Adjusted R-squared0.928572359032948
F-TEST (value)50.4006930167676
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.176104199514564
Sum Squared Residuals1.30253294163994

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.973328878979688 \tabularnewline
R-squared & 0.947369106655857 \tabularnewline
Adjusted R-squared & 0.928572359032948 \tabularnewline
F-TEST (value) & 50.4006930167676 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.176104199514564 \tabularnewline
Sum Squared Residuals & 1.30253294163994 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67965&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.973328878979688[/C][/ROW]
[ROW][C]R-squared[/C][C]0.947369106655857[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.928572359032948[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]50.4006930167676[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.176104199514564[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.30253294163994[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67965&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67965&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.973328878979688
R-squared0.947369106655857
Adjusted R-squared0.928572359032948
F-TEST (value)50.4006930167676
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.176104199514564
Sum Squared Residuals1.30253294163994







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.38.211003159758230.0889968402417674
28.58.63798874085802-0.137988740858020
38.68.593154097519370.00684590248063174
48.58.61118836325408-0.111188363254083
58.28.39857507716569-0.198575077165688
68.17.98518104730010.114818952699907
77.98.1766093429004-0.276609342900402
88.68.548513861650250.0514861383497519
98.78.76804995637346-0.0680499563734595
108.78.637853991954390.0621460080456102
118.58.496068318325080.00393168167492438
128.48.287657816868470.112342183131532
138.58.477962366241470.0220376337585254
148.78.634372371956810.0656276280431873
158.78.589537728618160.110462271381838
168.68.46770674325650.132293256743495
178.58.322737351014230.177262648985775
188.38.189073823341370.110926176658627
1988.10534908015308-0.105349080153083
208.28.40503224165267-0.20503224165267
218.17.992885974740140.107114025259860
228.17.92117897735890.178821022641098
2387.914681091421820.0853189085781831
247.97.846135841061580.0538641589384202
257.97.96879649658847-0.0687964965884718
2687.985341251207440.0146587487925612
2787.868285250618530.131714749381469
287.97.814098159102990.085901840897011
2987.669128766860710.33087123313929
307.77.8151957413806-0.115195741380600
317.27.4563179594037-0.256317959403708
327.57.54391451255667-0.0439145125566678
337.37.40692128443274-0.106921284432739
3477.12770514210901-0.127705142109014
3576.769255396728930.230744603271069
3677.0435070790034-0.0435070790034087
377.27.23838909178056-0.0383890917805569
387.37.46702045474615-0.167020454746152
397.17.21467666646501-0.114676666465015
406.86.88075907275673-0.0807590727567306
416.46.59134696601394-0.191346966013937
426.16.1733754727442-0.073375472744202
436.56.152717159997880.347282840002119
447.77.499100973018180.200899026981816
457.98.01209996014657-0.112099960146566
467.57.6835497775933-0.183549777593294
476.97.21999519352418-0.319995193524177
486.66.72269926306654-0.122699263066543
496.96.90384888563126-0.00384888563126394
507.77.475277181231580.224722818768424
5188.13434625677892-0.134346256778924
5288.0262476616297-0.0262476616296928
537.77.81821183894544-0.11821183894544
547.37.33717391523373-0.0371739152337316
557.47.109006457544930.290993542455075
568.18.10343841112223-0.00343841112222986
578.38.12004282430710.179957175692904
588.28.12971211098440.070287889015599

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.3 & 8.21100315975823 & 0.0889968402417674 \tabularnewline
2 & 8.5 & 8.63798874085802 & -0.137988740858020 \tabularnewline
3 & 8.6 & 8.59315409751937 & 0.00684590248063174 \tabularnewline
4 & 8.5 & 8.61118836325408 & -0.111188363254083 \tabularnewline
5 & 8.2 & 8.39857507716569 & -0.198575077165688 \tabularnewline
6 & 8.1 & 7.9851810473001 & 0.114818952699907 \tabularnewline
7 & 7.9 & 8.1766093429004 & -0.276609342900402 \tabularnewline
8 & 8.6 & 8.54851386165025 & 0.0514861383497519 \tabularnewline
9 & 8.7 & 8.76804995637346 & -0.0680499563734595 \tabularnewline
10 & 8.7 & 8.63785399195439 & 0.0621460080456102 \tabularnewline
11 & 8.5 & 8.49606831832508 & 0.00393168167492438 \tabularnewline
12 & 8.4 & 8.28765781686847 & 0.112342183131532 \tabularnewline
13 & 8.5 & 8.47796236624147 & 0.0220376337585254 \tabularnewline
14 & 8.7 & 8.63437237195681 & 0.0656276280431873 \tabularnewline
15 & 8.7 & 8.58953772861816 & 0.110462271381838 \tabularnewline
16 & 8.6 & 8.4677067432565 & 0.132293256743495 \tabularnewline
17 & 8.5 & 8.32273735101423 & 0.177262648985775 \tabularnewline
18 & 8.3 & 8.18907382334137 & 0.110926176658627 \tabularnewline
19 & 8 & 8.10534908015308 & -0.105349080153083 \tabularnewline
20 & 8.2 & 8.40503224165267 & -0.20503224165267 \tabularnewline
21 & 8.1 & 7.99288597474014 & 0.107114025259860 \tabularnewline
22 & 8.1 & 7.9211789773589 & 0.178821022641098 \tabularnewline
23 & 8 & 7.91468109142182 & 0.0853189085781831 \tabularnewline
24 & 7.9 & 7.84613584106158 & 0.0538641589384202 \tabularnewline
25 & 7.9 & 7.96879649658847 & -0.0687964965884718 \tabularnewline
26 & 8 & 7.98534125120744 & 0.0146587487925612 \tabularnewline
27 & 8 & 7.86828525061853 & 0.131714749381469 \tabularnewline
28 & 7.9 & 7.81409815910299 & 0.085901840897011 \tabularnewline
29 & 8 & 7.66912876686071 & 0.33087123313929 \tabularnewline
30 & 7.7 & 7.8151957413806 & -0.115195741380600 \tabularnewline
31 & 7.2 & 7.4563179594037 & -0.256317959403708 \tabularnewline
32 & 7.5 & 7.54391451255667 & -0.0439145125566678 \tabularnewline
33 & 7.3 & 7.40692128443274 & -0.106921284432739 \tabularnewline
34 & 7 & 7.12770514210901 & -0.127705142109014 \tabularnewline
35 & 7 & 6.76925539672893 & 0.230744603271069 \tabularnewline
36 & 7 & 7.0435070790034 & -0.0435070790034087 \tabularnewline
37 & 7.2 & 7.23838909178056 & -0.0383890917805569 \tabularnewline
38 & 7.3 & 7.46702045474615 & -0.167020454746152 \tabularnewline
39 & 7.1 & 7.21467666646501 & -0.114676666465015 \tabularnewline
40 & 6.8 & 6.88075907275673 & -0.0807590727567306 \tabularnewline
41 & 6.4 & 6.59134696601394 & -0.191346966013937 \tabularnewline
42 & 6.1 & 6.1733754727442 & -0.073375472744202 \tabularnewline
43 & 6.5 & 6.15271715999788 & 0.347282840002119 \tabularnewline
44 & 7.7 & 7.49910097301818 & 0.200899026981816 \tabularnewline
45 & 7.9 & 8.01209996014657 & -0.112099960146566 \tabularnewline
46 & 7.5 & 7.6835497775933 & -0.183549777593294 \tabularnewline
47 & 6.9 & 7.21999519352418 & -0.319995193524177 \tabularnewline
48 & 6.6 & 6.72269926306654 & -0.122699263066543 \tabularnewline
49 & 6.9 & 6.90384888563126 & -0.00384888563126394 \tabularnewline
50 & 7.7 & 7.47527718123158 & 0.224722818768424 \tabularnewline
51 & 8 & 8.13434625677892 & -0.134346256778924 \tabularnewline
52 & 8 & 8.0262476616297 & -0.0262476616296928 \tabularnewline
53 & 7.7 & 7.81821183894544 & -0.11821183894544 \tabularnewline
54 & 7.3 & 7.33717391523373 & -0.0371739152337316 \tabularnewline
55 & 7.4 & 7.10900645754493 & 0.290993542455075 \tabularnewline
56 & 8.1 & 8.10343841112223 & -0.00343841112222986 \tabularnewline
57 & 8.3 & 8.1200428243071 & 0.179957175692904 \tabularnewline
58 & 8.2 & 8.1297121109844 & 0.070287889015599 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67965&T=4

[TABLE]
[ROW][C]Multiple Linear Regression - Actuals, Interpolation, and Residuals[/C][/ROW]
[ROW][C]Time or Index[/C][C]Actuals[/C][C]InterpolationForecast[/C][C]ResidualsPrediction Error[/C][/ROW]
[ROW][C]1[/C][C]8.3[/C][C]8.21100315975823[/C][C]0.0889968402417674[/C][/ROW]
[ROW][C]2[/C][C]8.5[/C][C]8.63798874085802[/C][C]-0.137988740858020[/C][/ROW]
[ROW][C]3[/C][C]8.6[/C][C]8.59315409751937[/C][C]0.00684590248063174[/C][/ROW]
[ROW][C]4[/C][C]8.5[/C][C]8.61118836325408[/C][C]-0.111188363254083[/C][/ROW]
[ROW][C]5[/C][C]8.2[/C][C]8.39857507716569[/C][C]-0.198575077165688[/C][/ROW]
[ROW][C]6[/C][C]8.1[/C][C]7.9851810473001[/C][C]0.114818952699907[/C][/ROW]
[ROW][C]7[/C][C]7.9[/C][C]8.1766093429004[/C][C]-0.276609342900402[/C][/ROW]
[ROW][C]8[/C][C]8.6[/C][C]8.54851386165025[/C][C]0.0514861383497519[/C][/ROW]
[ROW][C]9[/C][C]8.7[/C][C]8.76804995637346[/C][C]-0.0680499563734595[/C][/ROW]
[ROW][C]10[/C][C]8.7[/C][C]8.63785399195439[/C][C]0.0621460080456102[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.49606831832508[/C][C]0.00393168167492438[/C][/ROW]
[ROW][C]12[/C][C]8.4[/C][C]8.28765781686847[/C][C]0.112342183131532[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]8.47796236624147[/C][C]0.0220376337585254[/C][/ROW]
[ROW][C]14[/C][C]8.7[/C][C]8.63437237195681[/C][C]0.0656276280431873[/C][/ROW]
[ROW][C]15[/C][C]8.7[/C][C]8.58953772861816[/C][C]0.110462271381838[/C][/ROW]
[ROW][C]16[/C][C]8.6[/C][C]8.4677067432565[/C][C]0.132293256743495[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]8.32273735101423[/C][C]0.177262648985775[/C][/ROW]
[ROW][C]18[/C][C]8.3[/C][C]8.18907382334137[/C][C]0.110926176658627[/C][/ROW]
[ROW][C]19[/C][C]8[/C][C]8.10534908015308[/C][C]-0.105349080153083[/C][/ROW]
[ROW][C]20[/C][C]8.2[/C][C]8.40503224165267[/C][C]-0.20503224165267[/C][/ROW]
[ROW][C]21[/C][C]8.1[/C][C]7.99288597474014[/C][C]0.107114025259860[/C][/ROW]
[ROW][C]22[/C][C]8.1[/C][C]7.9211789773589[/C][C]0.178821022641098[/C][/ROW]
[ROW][C]23[/C][C]8[/C][C]7.91468109142182[/C][C]0.0853189085781831[/C][/ROW]
[ROW][C]24[/C][C]7.9[/C][C]7.84613584106158[/C][C]0.0538641589384202[/C][/ROW]
[ROW][C]25[/C][C]7.9[/C][C]7.96879649658847[/C][C]-0.0687964965884718[/C][/ROW]
[ROW][C]26[/C][C]8[/C][C]7.98534125120744[/C][C]0.0146587487925612[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]7.86828525061853[/C][C]0.131714749381469[/C][/ROW]
[ROW][C]28[/C][C]7.9[/C][C]7.81409815910299[/C][C]0.085901840897011[/C][/ROW]
[ROW][C]29[/C][C]8[/C][C]7.66912876686071[/C][C]0.33087123313929[/C][/ROW]
[ROW][C]30[/C][C]7.7[/C][C]7.8151957413806[/C][C]-0.115195741380600[/C][/ROW]
[ROW][C]31[/C][C]7.2[/C][C]7.4563179594037[/C][C]-0.256317959403708[/C][/ROW]
[ROW][C]32[/C][C]7.5[/C][C]7.54391451255667[/C][C]-0.0439145125566678[/C][/ROW]
[ROW][C]33[/C][C]7.3[/C][C]7.40692128443274[/C][C]-0.106921284432739[/C][/ROW]
[ROW][C]34[/C][C]7[/C][C]7.12770514210901[/C][C]-0.127705142109014[/C][/ROW]
[ROW][C]35[/C][C]7[/C][C]6.76925539672893[/C][C]0.230744603271069[/C][/ROW]
[ROW][C]36[/C][C]7[/C][C]7.0435070790034[/C][C]-0.0435070790034087[/C][/ROW]
[ROW][C]37[/C][C]7.2[/C][C]7.23838909178056[/C][C]-0.0383890917805569[/C][/ROW]
[ROW][C]38[/C][C]7.3[/C][C]7.46702045474615[/C][C]-0.167020454746152[/C][/ROW]
[ROW][C]39[/C][C]7.1[/C][C]7.21467666646501[/C][C]-0.114676666465015[/C][/ROW]
[ROW][C]40[/C][C]6.8[/C][C]6.88075907275673[/C][C]-0.0807590727567306[/C][/ROW]
[ROW][C]41[/C][C]6.4[/C][C]6.59134696601394[/C][C]-0.191346966013937[/C][/ROW]
[ROW][C]42[/C][C]6.1[/C][C]6.1733754727442[/C][C]-0.073375472744202[/C][/ROW]
[ROW][C]43[/C][C]6.5[/C][C]6.15271715999788[/C][C]0.347282840002119[/C][/ROW]
[ROW][C]44[/C][C]7.7[/C][C]7.49910097301818[/C][C]0.200899026981816[/C][/ROW]
[ROW][C]45[/C][C]7.9[/C][C]8.01209996014657[/C][C]-0.112099960146566[/C][/ROW]
[ROW][C]46[/C][C]7.5[/C][C]7.6835497775933[/C][C]-0.183549777593294[/C][/ROW]
[ROW][C]47[/C][C]6.9[/C][C]7.21999519352418[/C][C]-0.319995193524177[/C][/ROW]
[ROW][C]48[/C][C]6.6[/C][C]6.72269926306654[/C][C]-0.122699263066543[/C][/ROW]
[ROW][C]49[/C][C]6.9[/C][C]6.90384888563126[/C][C]-0.00384888563126394[/C][/ROW]
[ROW][C]50[/C][C]7.7[/C][C]7.47527718123158[/C][C]0.224722818768424[/C][/ROW]
[ROW][C]51[/C][C]8[/C][C]8.13434625677892[/C][C]-0.134346256778924[/C][/ROW]
[ROW][C]52[/C][C]8[/C][C]8.0262476616297[/C][C]-0.0262476616296928[/C][/ROW]
[ROW][C]53[/C][C]7.7[/C][C]7.81821183894544[/C][C]-0.11821183894544[/C][/ROW]
[ROW][C]54[/C][C]7.3[/C][C]7.33717391523373[/C][C]-0.0371739152337316[/C][/ROW]
[ROW][C]55[/C][C]7.4[/C][C]7.10900645754493[/C][C]0.290993542455075[/C][/ROW]
[ROW][C]56[/C][C]8.1[/C][C]8.10343841112223[/C][C]-0.00343841112222986[/C][/ROW]
[ROW][C]57[/C][C]8.3[/C][C]8.1200428243071[/C][C]0.179957175692904[/C][/ROW]
[ROW][C]58[/C][C]8.2[/C][C]8.1297121109844[/C][C]0.070287889015599[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67965&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67965&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
18.38.211003159758230.0889968402417674
28.58.63798874085802-0.137988740858020
38.68.593154097519370.00684590248063174
48.58.61118836325408-0.111188363254083
58.28.39857507716569-0.198575077165688
68.17.98518104730010.114818952699907
77.98.1766093429004-0.276609342900402
88.68.548513861650250.0514861383497519
98.78.76804995637346-0.0680499563734595
108.78.637853991954390.0621460080456102
118.58.496068318325080.00393168167492438
128.48.287657816868470.112342183131532
138.58.477962366241470.0220376337585254
148.78.634372371956810.0656276280431873
158.78.589537728618160.110462271381838
168.68.46770674325650.132293256743495
178.58.322737351014230.177262648985775
188.38.189073823341370.110926176658627
1988.10534908015308-0.105349080153083
208.28.40503224165267-0.20503224165267
218.17.992885974740140.107114025259860
228.17.92117897735890.178821022641098
2387.914681091421820.0853189085781831
247.97.846135841061580.0538641589384202
257.97.96879649658847-0.0687964965884718
2687.985341251207440.0146587487925612
2787.868285250618530.131714749381469
287.97.814098159102990.085901840897011
2987.669128766860710.33087123313929
307.77.8151957413806-0.115195741380600
317.27.4563179594037-0.256317959403708
327.57.54391451255667-0.0439145125566678
337.37.40692128443274-0.106921284432739
3477.12770514210901-0.127705142109014
3576.769255396728930.230744603271069
3677.0435070790034-0.0435070790034087
377.27.23838909178056-0.0383890917805569
387.37.46702045474615-0.167020454746152
397.17.21467666646501-0.114676666465015
406.86.88075907275673-0.0807590727567306
416.46.59134696601394-0.191346966013937
426.16.1733754727442-0.073375472744202
436.56.152717159997880.347282840002119
447.77.499100973018180.200899026981816
457.98.01209996014657-0.112099960146566
467.57.6835497775933-0.183549777593294
476.97.21999519352418-0.319995193524177
486.66.72269926306654-0.122699263066543
496.96.90384888563126-0.00384888563126394
507.77.475277181231580.224722818768424
5188.13434625677892-0.134346256778924
5288.0262476616297-0.0262476616296928
537.77.81821183894544-0.11821183894544
547.37.33717391523373-0.0371739152337316
557.47.109006457544930.290993542455075
568.18.10343841112223-0.00343841112222986
578.38.12004282430710.179957175692904
588.28.12971211098440.070287889015599







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.05066588655410220.1013317731082040.949334113445898
200.5112753550801370.9774492898397260.488724644919863
210.3577423860367340.7154847720734670.642257613963267
220.2359434150479630.4718868300959250.764056584952037
230.1431412973062380.2862825946124760.856858702693762
240.08918953409921820.1783790681984360.910810465900782
250.05740493354903490.1148098670980700.942595066450965
260.02950050322407580.05900100644815170.970499496775924
270.0209279906031780.0418559812063560.979072009396822
280.01181582959510300.02363165919020610.988184170404897
290.1201066596407250.2402133192814490.879893340359275
300.1361314839676610.2722629679353230.863868516032339
310.1703498759777370.3406997519554730.829650124022263
320.1173701907404010.2347403814808020.8826298092596
330.08634929269955390.1726985853991080.913650707300446
340.07279745089272550.1455949017854510.927202549107274
350.4359270225121430.8718540450242870.564072977487857
360.4271937423323410.8543874846646820.572806257667659
370.5278239761810170.9443520476379660.472176023818983
380.3983779393693570.7967558787387130.601622060630643
390.4498571672678980.8997143345357970.550142832732102

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.0506658865541022 & 0.101331773108204 & 0.949334113445898 \tabularnewline
20 & 0.511275355080137 & 0.977449289839726 & 0.488724644919863 \tabularnewline
21 & 0.357742386036734 & 0.715484772073467 & 0.642257613963267 \tabularnewline
22 & 0.235943415047963 & 0.471886830095925 & 0.764056584952037 \tabularnewline
23 & 0.143141297306238 & 0.286282594612476 & 0.856858702693762 \tabularnewline
24 & 0.0891895340992182 & 0.178379068198436 & 0.910810465900782 \tabularnewline
25 & 0.0574049335490349 & 0.114809867098070 & 0.942595066450965 \tabularnewline
26 & 0.0295005032240758 & 0.0590010064481517 & 0.970499496775924 \tabularnewline
27 & 0.020927990603178 & 0.041855981206356 & 0.979072009396822 \tabularnewline
28 & 0.0118158295951030 & 0.0236316591902061 & 0.988184170404897 \tabularnewline
29 & 0.120106659640725 & 0.240213319281449 & 0.879893340359275 \tabularnewline
30 & 0.136131483967661 & 0.272262967935323 & 0.863868516032339 \tabularnewline
31 & 0.170349875977737 & 0.340699751955473 & 0.829650124022263 \tabularnewline
32 & 0.117370190740401 & 0.234740381480802 & 0.8826298092596 \tabularnewline
33 & 0.0863492926995539 & 0.172698585399108 & 0.913650707300446 \tabularnewline
34 & 0.0727974508927255 & 0.145594901785451 & 0.927202549107274 \tabularnewline
35 & 0.435927022512143 & 0.871854045024287 & 0.564072977487857 \tabularnewline
36 & 0.427193742332341 & 0.854387484664682 & 0.572806257667659 \tabularnewline
37 & 0.527823976181017 & 0.944352047637966 & 0.472176023818983 \tabularnewline
38 & 0.398377939369357 & 0.796755878738713 & 0.601622060630643 \tabularnewline
39 & 0.449857167267898 & 0.899714334535797 & 0.550142832732102 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67965&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]19[/C][C]0.0506658865541022[/C][C]0.101331773108204[/C][C]0.949334113445898[/C][/ROW]
[ROW][C]20[/C][C]0.511275355080137[/C][C]0.977449289839726[/C][C]0.488724644919863[/C][/ROW]
[ROW][C]21[/C][C]0.357742386036734[/C][C]0.715484772073467[/C][C]0.642257613963267[/C][/ROW]
[ROW][C]22[/C][C]0.235943415047963[/C][C]0.471886830095925[/C][C]0.764056584952037[/C][/ROW]
[ROW][C]23[/C][C]0.143141297306238[/C][C]0.286282594612476[/C][C]0.856858702693762[/C][/ROW]
[ROW][C]24[/C][C]0.0891895340992182[/C][C]0.178379068198436[/C][C]0.910810465900782[/C][/ROW]
[ROW][C]25[/C][C]0.0574049335490349[/C][C]0.114809867098070[/C][C]0.942595066450965[/C][/ROW]
[ROW][C]26[/C][C]0.0295005032240758[/C][C]0.0590010064481517[/C][C]0.970499496775924[/C][/ROW]
[ROW][C]27[/C][C]0.020927990603178[/C][C]0.041855981206356[/C][C]0.979072009396822[/C][/ROW]
[ROW][C]28[/C][C]0.0118158295951030[/C][C]0.0236316591902061[/C][C]0.988184170404897[/C][/ROW]
[ROW][C]29[/C][C]0.120106659640725[/C][C]0.240213319281449[/C][C]0.879893340359275[/C][/ROW]
[ROW][C]30[/C][C]0.136131483967661[/C][C]0.272262967935323[/C][C]0.863868516032339[/C][/ROW]
[ROW][C]31[/C][C]0.170349875977737[/C][C]0.340699751955473[/C][C]0.829650124022263[/C][/ROW]
[ROW][C]32[/C][C]0.117370190740401[/C][C]0.234740381480802[/C][C]0.8826298092596[/C][/ROW]
[ROW][C]33[/C][C]0.0863492926995539[/C][C]0.172698585399108[/C][C]0.913650707300446[/C][/ROW]
[ROW][C]34[/C][C]0.0727974508927255[/C][C]0.145594901785451[/C][C]0.927202549107274[/C][/ROW]
[ROW][C]35[/C][C]0.435927022512143[/C][C]0.871854045024287[/C][C]0.564072977487857[/C][/ROW]
[ROW][C]36[/C][C]0.427193742332341[/C][C]0.854387484664682[/C][C]0.572806257667659[/C][/ROW]
[ROW][C]37[/C][C]0.527823976181017[/C][C]0.944352047637966[/C][C]0.472176023818983[/C][/ROW]
[ROW][C]38[/C][C]0.398377939369357[/C][C]0.796755878738713[/C][C]0.601622060630643[/C][/ROW]
[ROW][C]39[/C][C]0.449857167267898[/C][C]0.899714334535797[/C][C]0.550142832732102[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67965&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.05066588655410220.1013317731082040.949334113445898
200.5112753550801370.9774492898397260.488724644919863
210.3577423860367340.7154847720734670.642257613963267
220.2359434150479630.4718868300959250.764056584952037
230.1431412973062380.2862825946124760.856858702693762
240.08918953409921820.1783790681984360.910810465900782
250.05740493354903490.1148098670980700.942595066450965
260.02950050322407580.05900100644815170.970499496775924
270.0209279906031780.0418559812063560.979072009396822
280.01181582959510300.02363165919020610.988184170404897
290.1201066596407250.2402133192814490.879893340359275
300.1361314839676610.2722629679353230.863868516032339
310.1703498759777370.3406997519554730.829650124022263
320.1173701907404010.2347403814808020.8826298092596
330.08634929269955390.1726985853991080.913650707300446
340.07279745089272550.1455949017854510.927202549107274
350.4359270225121430.8718540450242870.564072977487857
360.4271937423323410.8543874846646820.572806257667659
370.5278239761810170.9443520476379660.472176023818983
380.3983779393693570.7967558787387130.601622060630643
390.4498571672678980.8997143345357970.550142832732102







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 2 & 0.0952380952380952 & NOK \tabularnewline
10% type I error level & 3 & 0.142857142857143 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67965&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]2[/C][C]0.0952380952380952[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]3[/C][C]0.142857142857143[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67965&T=6

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

As an alternative you can also use a QR Code:  

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

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



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