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 computationWed, 18 Nov 2009 07:44:06 -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/18/t1258555649xselnkojxyuuzbp.htm/, Retrieved Sat, 04 May 2024 16:37:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57460, Retrieved Sat, 04 May 2024 16:37:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact194
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-18 14:44:06] [4f23cd6f600e6b4b5336072a0ca6bd10] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,2	25,5
8,3	25,5
8,1	25,5
7,4	20,9
7,3	20,9
7,7	20,9
8	22,3
8	22,3
7,7	22,3
6,9	19,9
6,6	19,9
6,9	19,9
7,5	24,1
7,9	24,1
7,7	24,1
6,5	13,8
6,1	13,8
6,4	13,8
6,8	16,2
7,1	16,2
7,3	16,2
7,2	18,6
7	18,6
7	18,6
7	22,4
7,3	22,4
7,5	22,4
7,2	22,6
7,7	22,6
8	22,6
7,9	20
8	20
8	20
7,9	21,8
7,9	21,8
8	21,8
8,1	28,7
8,1	28,7
8,2	28,7
8	19,5
8,3	19,5
8,5	19,5
8,6	19,4
8,7	19,4
8,7	19,4
8,5	21,7
8,4	21,7
8,5	21,7
8,7	26,2
8,7	26,2
8,6	26,2
7,9	19,1
8,1	19,1
8,2	19,1
8,5	21,3
8,6	21,3
8,5	21,3
8,3	24,1
8,2	24,1
8,7	24,1




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 3.89013097776424 + 0.18519646664636X[t] -0.690417301248855M1[t] -0.530417301248857M2[t] -0.570417301248857M3[t] -0.0421992080414256M4[t] + 0.0578007919585741M5[t] + 0.317800791958574M6[t] + 0.395571123971977M7[t] + 0.515571123971976M8[t] + 0.475571123971977M9[t] -0.0599999999999998M10[t] -0.200000000000000M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  3.89013097776424 +  0.18519646664636X[t] -0.690417301248855M1[t] -0.530417301248857M2[t] -0.570417301248857M3[t] -0.0421992080414256M4[t] +  0.0578007919585741M5[t] +  0.317800791958574M6[t] +  0.395571123971977M7[t] +  0.515571123971976M8[t] +  0.475571123971977M9[t] -0.0599999999999998M10[t] -0.200000000000000M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57460&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  3.89013097776424 +  0.18519646664636X[t] -0.690417301248855M1[t] -0.530417301248857M2[t] -0.570417301248857M3[t] -0.0421992080414256M4[t] +  0.0578007919585741M5[t] +  0.317800791958574M6[t] +  0.395571123971977M7[t] +  0.515571123971976M8[t] +  0.475571123971977M9[t] -0.0599999999999998M10[t] -0.200000000000000M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57460&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57460&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] = + 3.89013097776424 + 0.18519646664636X[t] -0.690417301248855M1[t] -0.530417301248857M2[t] -0.570417301248857M3[t] -0.0421992080414256M4[t] + 0.0578007919585741M5[t] + 0.317800791958574M6[t] + 0.395571123971977M7[t] + 0.515571123971976M8[t] + 0.475571123971977M9[t] -0.0599999999999998M10[t] -0.200000000000000M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3.890130977764240.6466.021900
X0.185196466646360.0285136.495200
M1-0.6904173012488550.341406-2.02230.048860.02443
M2-0.5304173012488570.341406-1.55360.1269820.063491
M3-0.5704173012488570.341406-1.67080.101410.050705
M4-0.04219920804142560.32538-0.12970.8973640.448682
M50.05780079195857410.325380.17760.8597680.429884
M60.3178007919585740.325380.97670.3337150.166858
M70.3955711239719770.3225481.22640.2261590.11308
M80.5155711239719760.3225481.59840.1166490.058324
M90.4755711239719770.3225481.47440.1470360.073518
M10-0.05999999999999980.320139-0.18740.8521390.42607
M11-0.2000000000000000.320139-0.62470.535170.267585

\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) & 3.89013097776424 & 0.646 & 6.0219 & 0 & 0 \tabularnewline
X & 0.18519646664636 & 0.028513 & 6.4952 & 0 & 0 \tabularnewline
M1 & -0.690417301248855 & 0.341406 & -2.0223 & 0.04886 & 0.02443 \tabularnewline
M2 & -0.530417301248857 & 0.341406 & -1.5536 & 0.126982 & 0.063491 \tabularnewline
M3 & -0.570417301248857 & 0.341406 & -1.6708 & 0.10141 & 0.050705 \tabularnewline
M4 & -0.0421992080414256 & 0.32538 & -0.1297 & 0.897364 & 0.448682 \tabularnewline
M5 & 0.0578007919585741 & 0.32538 & 0.1776 & 0.859768 & 0.429884 \tabularnewline
M6 & 0.317800791958574 & 0.32538 & 0.9767 & 0.333715 & 0.166858 \tabularnewline
M7 & 0.395571123971977 & 0.322548 & 1.2264 & 0.226159 & 0.11308 \tabularnewline
M8 & 0.515571123971976 & 0.322548 & 1.5984 & 0.116649 & 0.058324 \tabularnewline
M9 & 0.475571123971977 & 0.322548 & 1.4744 & 0.147036 & 0.073518 \tabularnewline
M10 & -0.0599999999999998 & 0.320139 & -0.1874 & 0.852139 & 0.42607 \tabularnewline
M11 & -0.200000000000000 & 0.320139 & -0.6247 & 0.53517 & 0.267585 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57460&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]3.89013097776424[/C][C]0.646[/C][C]6.0219[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.18519646664636[/C][C]0.028513[/C][C]6.4952[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.690417301248855[/C][C]0.341406[/C][C]-2.0223[/C][C]0.04886[/C][C]0.02443[/C][/ROW]
[ROW][C]M2[/C][C]-0.530417301248857[/C][C]0.341406[/C][C]-1.5536[/C][C]0.126982[/C][C]0.063491[/C][/ROW]
[ROW][C]M3[/C][C]-0.570417301248857[/C][C]0.341406[/C][C]-1.6708[/C][C]0.10141[/C][C]0.050705[/C][/ROW]
[ROW][C]M4[/C][C]-0.0421992080414256[/C][C]0.32538[/C][C]-0.1297[/C][C]0.897364[/C][C]0.448682[/C][/ROW]
[ROW][C]M5[/C][C]0.0578007919585741[/C][C]0.32538[/C][C]0.1776[/C][C]0.859768[/C][C]0.429884[/C][/ROW]
[ROW][C]M6[/C][C]0.317800791958574[/C][C]0.32538[/C][C]0.9767[/C][C]0.333715[/C][C]0.166858[/C][/ROW]
[ROW][C]M7[/C][C]0.395571123971977[/C][C]0.322548[/C][C]1.2264[/C][C]0.226159[/C][C]0.11308[/C][/ROW]
[ROW][C]M8[/C][C]0.515571123971976[/C][C]0.322548[/C][C]1.5984[/C][C]0.116649[/C][C]0.058324[/C][/ROW]
[ROW][C]M9[/C][C]0.475571123971977[/C][C]0.322548[/C][C]1.4744[/C][C]0.147036[/C][C]0.073518[/C][/ROW]
[ROW][C]M10[/C][C]-0.0599999999999998[/C][C]0.320139[/C][C]-0.1874[/C][C]0.852139[/C][C]0.42607[/C][/ROW]
[ROW][C]M11[/C][C]-0.200000000000000[/C][C]0.320139[/C][C]-0.6247[/C][C]0.53517[/C][C]0.267585[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57460&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57460&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)3.890130977764240.6466.021900
X0.185196466646360.0285136.495200
M1-0.6904173012488550.341406-2.02230.048860.02443
M2-0.5304173012488570.341406-1.55360.1269820.063491
M3-0.5704173012488570.341406-1.67080.101410.050705
M4-0.04219920804142560.32538-0.12970.8973640.448682
M50.05780079195857410.325380.17760.8597680.429884
M60.3178007919585740.325380.97670.3337150.166858
M70.3955711239719770.3225481.22640.2261590.11308
M80.5155711239719760.3225481.59840.1166490.058324
M90.4755711239719770.3225481.47440.1470360.073518
M10-0.05999999999999980.320139-0.18740.8521390.42607
M11-0.2000000000000000.320139-0.62470.535170.267585







Multiple Linear Regression - Regression Statistics
Multiple R0.728703258736597
R-squared0.531008439293335
Adjusted R-squared0.411265913155463
F-TEST (value)4.43458524235517
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.000103242332424536
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.506184152739685
Sum Squared Residuals12.0424526347853

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.728703258736597 \tabularnewline
R-squared & 0.531008439293335 \tabularnewline
Adjusted R-squared & 0.411265913155463 \tabularnewline
F-TEST (value) & 4.43458524235517 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.000103242332424536 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.506184152739685 \tabularnewline
Sum Squared Residuals & 12.0424526347853 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57460&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.728703258736597[/C][/ROW]
[ROW][C]R-squared[/C][C]0.531008439293335[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.411265913155463[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.43458524235517[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.000103242332424536[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.506184152739685[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]12.0424526347853[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57460&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57460&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.728703258736597
R-squared0.531008439293335
Adjusted R-squared0.411265913155463
F-TEST (value)4.43458524235517
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.000103242332424536
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.506184152739685
Sum Squared Residuals12.0424526347853







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.27.922223575997550.277776424002445
28.38.082223575997560.217776424002437
38.18.042223575997560.0577764240024357
47.47.71853792263174-0.318537922631738
57.37.81853792263174-0.518537922631739
67.78.07853792263174-0.378537922631739
788.41558330795005-0.415583307950046
888.53558330795004-0.535583307950045
97.78.49558330795005-0.795583307950046
106.97.5155406640268-0.615540664026804
116.67.3755406640268-0.775540664026805
126.97.5755406640268-0.675540664026804
137.57.66294852269266-0.162948522692661
147.97.822948522692660.0770514773073407
157.77.78294852269266-0.0829485226926589
166.56.403643009442580.0963569905574161
176.16.50364300944258-0.403643009442584
186.46.76364300944258-0.363643009442583
196.87.28588486140725-0.48588486140725
207.17.40588486140725-0.30588486140725
217.37.36588486140725-0.0658848614072498
227.27.27478525738654-0.0747852573865374
2377.13478525738654-0.134785257386537
2477.33478525738654-0.334785257386537
2577.34811452939385-0.348114529393849
267.37.50811452939385-0.208114529393847
277.57.468114529393850.0318854706061531
287.28.03337191593055-0.833371915930551
297.78.13337191593055-0.433371915930551
3088.39337191593055-0.393371915930551
317.97.98963143466342-0.089631434663417
3288.10963143466342-0.109631434663417
3388.06963143466342-0.0696314346634173
347.97.867413950654890.0325860493451112
357.97.727413950654890.172586049345112
3687.927413950654890.0725860493451112
378.18.51485226926592-0.414852269265917
388.18.67485226926591-0.574852269265915
398.28.63485226926591-0.434852269265915
4087.459262869326840.540737130673165
418.37.559262869326830.740737130673166
428.57.819262869326830.680737130673166
438.67.87851355467560.721486445324399
448.77.99851355467560.701486445324398
458.77.95851355467560.741486445324398
468.57.848894303990250.651105696009747
478.47.708894303990250.691105696009748
488.57.908894303990250.591105696009747
498.78.051861102650020.648138897349982
508.78.211861102650020.488138897349984
518.68.171861102650010.428138897349985
527.97.385184282668290.514815717331709
538.17.485184282668290.614815717331708
548.27.74518428266830.454815717331708
558.58.230386841303690.269613158696315
568.68.350386841303680.249613158696314
578.58.310386841303690.189613158696315
588.38.293365823941520.0066341760584837
598.28.153365823941520.0466341760584828
608.78.353365823941520.346634176058482

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.2 & 7.92222357599755 & 0.277776424002445 \tabularnewline
2 & 8.3 & 8.08222357599756 & 0.217776424002437 \tabularnewline
3 & 8.1 & 8.04222357599756 & 0.0577764240024357 \tabularnewline
4 & 7.4 & 7.71853792263174 & -0.318537922631738 \tabularnewline
5 & 7.3 & 7.81853792263174 & -0.518537922631739 \tabularnewline
6 & 7.7 & 8.07853792263174 & -0.378537922631739 \tabularnewline
7 & 8 & 8.41558330795005 & -0.415583307950046 \tabularnewline
8 & 8 & 8.53558330795004 & -0.535583307950045 \tabularnewline
9 & 7.7 & 8.49558330795005 & -0.795583307950046 \tabularnewline
10 & 6.9 & 7.5155406640268 & -0.615540664026804 \tabularnewline
11 & 6.6 & 7.3755406640268 & -0.775540664026805 \tabularnewline
12 & 6.9 & 7.5755406640268 & -0.675540664026804 \tabularnewline
13 & 7.5 & 7.66294852269266 & -0.162948522692661 \tabularnewline
14 & 7.9 & 7.82294852269266 & 0.0770514773073407 \tabularnewline
15 & 7.7 & 7.78294852269266 & -0.0829485226926589 \tabularnewline
16 & 6.5 & 6.40364300944258 & 0.0963569905574161 \tabularnewline
17 & 6.1 & 6.50364300944258 & -0.403643009442584 \tabularnewline
18 & 6.4 & 6.76364300944258 & -0.363643009442583 \tabularnewline
19 & 6.8 & 7.28588486140725 & -0.48588486140725 \tabularnewline
20 & 7.1 & 7.40588486140725 & -0.30588486140725 \tabularnewline
21 & 7.3 & 7.36588486140725 & -0.0658848614072498 \tabularnewline
22 & 7.2 & 7.27478525738654 & -0.0747852573865374 \tabularnewline
23 & 7 & 7.13478525738654 & -0.134785257386537 \tabularnewline
24 & 7 & 7.33478525738654 & -0.334785257386537 \tabularnewline
25 & 7 & 7.34811452939385 & -0.348114529393849 \tabularnewline
26 & 7.3 & 7.50811452939385 & -0.208114529393847 \tabularnewline
27 & 7.5 & 7.46811452939385 & 0.0318854706061531 \tabularnewline
28 & 7.2 & 8.03337191593055 & -0.833371915930551 \tabularnewline
29 & 7.7 & 8.13337191593055 & -0.433371915930551 \tabularnewline
30 & 8 & 8.39337191593055 & -0.393371915930551 \tabularnewline
31 & 7.9 & 7.98963143466342 & -0.089631434663417 \tabularnewline
32 & 8 & 8.10963143466342 & -0.109631434663417 \tabularnewline
33 & 8 & 8.06963143466342 & -0.0696314346634173 \tabularnewline
34 & 7.9 & 7.86741395065489 & 0.0325860493451112 \tabularnewline
35 & 7.9 & 7.72741395065489 & 0.172586049345112 \tabularnewline
36 & 8 & 7.92741395065489 & 0.0725860493451112 \tabularnewline
37 & 8.1 & 8.51485226926592 & -0.414852269265917 \tabularnewline
38 & 8.1 & 8.67485226926591 & -0.574852269265915 \tabularnewline
39 & 8.2 & 8.63485226926591 & -0.434852269265915 \tabularnewline
40 & 8 & 7.45926286932684 & 0.540737130673165 \tabularnewline
41 & 8.3 & 7.55926286932683 & 0.740737130673166 \tabularnewline
42 & 8.5 & 7.81926286932683 & 0.680737130673166 \tabularnewline
43 & 8.6 & 7.8785135546756 & 0.721486445324399 \tabularnewline
44 & 8.7 & 7.9985135546756 & 0.701486445324398 \tabularnewline
45 & 8.7 & 7.9585135546756 & 0.741486445324398 \tabularnewline
46 & 8.5 & 7.84889430399025 & 0.651105696009747 \tabularnewline
47 & 8.4 & 7.70889430399025 & 0.691105696009748 \tabularnewline
48 & 8.5 & 7.90889430399025 & 0.591105696009747 \tabularnewline
49 & 8.7 & 8.05186110265002 & 0.648138897349982 \tabularnewline
50 & 8.7 & 8.21186110265002 & 0.488138897349984 \tabularnewline
51 & 8.6 & 8.17186110265001 & 0.428138897349985 \tabularnewline
52 & 7.9 & 7.38518428266829 & 0.514815717331709 \tabularnewline
53 & 8.1 & 7.48518428266829 & 0.614815717331708 \tabularnewline
54 & 8.2 & 7.7451842826683 & 0.454815717331708 \tabularnewline
55 & 8.5 & 8.23038684130369 & 0.269613158696315 \tabularnewline
56 & 8.6 & 8.35038684130368 & 0.249613158696314 \tabularnewline
57 & 8.5 & 8.31038684130369 & 0.189613158696315 \tabularnewline
58 & 8.3 & 8.29336582394152 & 0.0066341760584837 \tabularnewline
59 & 8.2 & 8.15336582394152 & 0.0466341760584828 \tabularnewline
60 & 8.7 & 8.35336582394152 & 0.346634176058482 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57460&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.2[/C][C]7.92222357599755[/C][C]0.277776424002445[/C][/ROW]
[ROW][C]2[/C][C]8.3[/C][C]8.08222357599756[/C][C]0.217776424002437[/C][/ROW]
[ROW][C]3[/C][C]8.1[/C][C]8.04222357599756[/C][C]0.0577764240024357[/C][/ROW]
[ROW][C]4[/C][C]7.4[/C][C]7.71853792263174[/C][C]-0.318537922631738[/C][/ROW]
[ROW][C]5[/C][C]7.3[/C][C]7.81853792263174[/C][C]-0.518537922631739[/C][/ROW]
[ROW][C]6[/C][C]7.7[/C][C]8.07853792263174[/C][C]-0.378537922631739[/C][/ROW]
[ROW][C]7[/C][C]8[/C][C]8.41558330795005[/C][C]-0.415583307950046[/C][/ROW]
[ROW][C]8[/C][C]8[/C][C]8.53558330795004[/C][C]-0.535583307950045[/C][/ROW]
[ROW][C]9[/C][C]7.7[/C][C]8.49558330795005[/C][C]-0.795583307950046[/C][/ROW]
[ROW][C]10[/C][C]6.9[/C][C]7.5155406640268[/C][C]-0.615540664026804[/C][/ROW]
[ROW][C]11[/C][C]6.6[/C][C]7.3755406640268[/C][C]-0.775540664026805[/C][/ROW]
[ROW][C]12[/C][C]6.9[/C][C]7.5755406640268[/C][C]-0.675540664026804[/C][/ROW]
[ROW][C]13[/C][C]7.5[/C][C]7.66294852269266[/C][C]-0.162948522692661[/C][/ROW]
[ROW][C]14[/C][C]7.9[/C][C]7.82294852269266[/C][C]0.0770514773073407[/C][/ROW]
[ROW][C]15[/C][C]7.7[/C][C]7.78294852269266[/C][C]-0.0829485226926589[/C][/ROW]
[ROW][C]16[/C][C]6.5[/C][C]6.40364300944258[/C][C]0.0963569905574161[/C][/ROW]
[ROW][C]17[/C][C]6.1[/C][C]6.50364300944258[/C][C]-0.403643009442584[/C][/ROW]
[ROW][C]18[/C][C]6.4[/C][C]6.76364300944258[/C][C]-0.363643009442583[/C][/ROW]
[ROW][C]19[/C][C]6.8[/C][C]7.28588486140725[/C][C]-0.48588486140725[/C][/ROW]
[ROW][C]20[/C][C]7.1[/C][C]7.40588486140725[/C][C]-0.30588486140725[/C][/ROW]
[ROW][C]21[/C][C]7.3[/C][C]7.36588486140725[/C][C]-0.0658848614072498[/C][/ROW]
[ROW][C]22[/C][C]7.2[/C][C]7.27478525738654[/C][C]-0.0747852573865374[/C][/ROW]
[ROW][C]23[/C][C]7[/C][C]7.13478525738654[/C][C]-0.134785257386537[/C][/ROW]
[ROW][C]24[/C][C]7[/C][C]7.33478525738654[/C][C]-0.334785257386537[/C][/ROW]
[ROW][C]25[/C][C]7[/C][C]7.34811452939385[/C][C]-0.348114529393849[/C][/ROW]
[ROW][C]26[/C][C]7.3[/C][C]7.50811452939385[/C][C]-0.208114529393847[/C][/ROW]
[ROW][C]27[/C][C]7.5[/C][C]7.46811452939385[/C][C]0.0318854706061531[/C][/ROW]
[ROW][C]28[/C][C]7.2[/C][C]8.03337191593055[/C][C]-0.833371915930551[/C][/ROW]
[ROW][C]29[/C][C]7.7[/C][C]8.13337191593055[/C][C]-0.433371915930551[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]8.39337191593055[/C][C]-0.393371915930551[/C][/ROW]
[ROW][C]31[/C][C]7.9[/C][C]7.98963143466342[/C][C]-0.089631434663417[/C][/ROW]
[ROW][C]32[/C][C]8[/C][C]8.10963143466342[/C][C]-0.109631434663417[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]8.06963143466342[/C][C]-0.0696314346634173[/C][/ROW]
[ROW][C]34[/C][C]7.9[/C][C]7.86741395065489[/C][C]0.0325860493451112[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.72741395065489[/C][C]0.172586049345112[/C][/ROW]
[ROW][C]36[/C][C]8[/C][C]7.92741395065489[/C][C]0.0725860493451112[/C][/ROW]
[ROW][C]37[/C][C]8.1[/C][C]8.51485226926592[/C][C]-0.414852269265917[/C][/ROW]
[ROW][C]38[/C][C]8.1[/C][C]8.67485226926591[/C][C]-0.574852269265915[/C][/ROW]
[ROW][C]39[/C][C]8.2[/C][C]8.63485226926591[/C][C]-0.434852269265915[/C][/ROW]
[ROW][C]40[/C][C]8[/C][C]7.45926286932684[/C][C]0.540737130673165[/C][/ROW]
[ROW][C]41[/C][C]8.3[/C][C]7.55926286932683[/C][C]0.740737130673166[/C][/ROW]
[ROW][C]42[/C][C]8.5[/C][C]7.81926286932683[/C][C]0.680737130673166[/C][/ROW]
[ROW][C]43[/C][C]8.6[/C][C]7.8785135546756[/C][C]0.721486445324399[/C][/ROW]
[ROW][C]44[/C][C]8.7[/C][C]7.9985135546756[/C][C]0.701486445324398[/C][/ROW]
[ROW][C]45[/C][C]8.7[/C][C]7.9585135546756[/C][C]0.741486445324398[/C][/ROW]
[ROW][C]46[/C][C]8.5[/C][C]7.84889430399025[/C][C]0.651105696009747[/C][/ROW]
[ROW][C]47[/C][C]8.4[/C][C]7.70889430399025[/C][C]0.691105696009748[/C][/ROW]
[ROW][C]48[/C][C]8.5[/C][C]7.90889430399025[/C][C]0.591105696009747[/C][/ROW]
[ROW][C]49[/C][C]8.7[/C][C]8.05186110265002[/C][C]0.648138897349982[/C][/ROW]
[ROW][C]50[/C][C]8.7[/C][C]8.21186110265002[/C][C]0.488138897349984[/C][/ROW]
[ROW][C]51[/C][C]8.6[/C][C]8.17186110265001[/C][C]0.428138897349985[/C][/ROW]
[ROW][C]52[/C][C]7.9[/C][C]7.38518428266829[/C][C]0.514815717331709[/C][/ROW]
[ROW][C]53[/C][C]8.1[/C][C]7.48518428266829[/C][C]0.614815717331708[/C][/ROW]
[ROW][C]54[/C][C]8.2[/C][C]7.7451842826683[/C][C]0.454815717331708[/C][/ROW]
[ROW][C]55[/C][C]8.5[/C][C]8.23038684130369[/C][C]0.269613158696315[/C][/ROW]
[ROW][C]56[/C][C]8.6[/C][C]8.35038684130368[/C][C]0.249613158696314[/C][/ROW]
[ROW][C]57[/C][C]8.5[/C][C]8.31038684130369[/C][C]0.189613158696315[/C][/ROW]
[ROW][C]58[/C][C]8.3[/C][C]8.29336582394152[/C][C]0.0066341760584837[/C][/ROW]
[ROW][C]59[/C][C]8.2[/C][C]8.15336582394152[/C][C]0.0466341760584828[/C][/ROW]
[ROW][C]60[/C][C]8.7[/C][C]8.35336582394152[/C][C]0.346634176058482[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57460&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57460&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.27.922223575997550.277776424002445
28.38.082223575997560.217776424002437
38.18.042223575997560.0577764240024357
47.47.71853792263174-0.318537922631738
57.37.81853792263174-0.518537922631739
67.78.07853792263174-0.378537922631739
788.41558330795005-0.415583307950046
888.53558330795004-0.535583307950045
97.78.49558330795005-0.795583307950046
106.97.5155406640268-0.615540664026804
116.67.3755406640268-0.775540664026805
126.97.5755406640268-0.675540664026804
137.57.66294852269266-0.162948522692661
147.97.822948522692660.0770514773073407
157.77.78294852269266-0.0829485226926589
166.56.403643009442580.0963569905574161
176.16.50364300944258-0.403643009442584
186.46.76364300944258-0.363643009442583
196.87.28588486140725-0.48588486140725
207.17.40588486140725-0.30588486140725
217.37.36588486140725-0.0658848614072498
227.27.27478525738654-0.0747852573865374
2377.13478525738654-0.134785257386537
2477.33478525738654-0.334785257386537
2577.34811452939385-0.348114529393849
267.37.50811452939385-0.208114529393847
277.57.468114529393850.0318854706061531
287.28.03337191593055-0.833371915930551
297.78.13337191593055-0.433371915930551
3088.39337191593055-0.393371915930551
317.97.98963143466342-0.089631434663417
3288.10963143466342-0.109631434663417
3388.06963143466342-0.0696314346634173
347.97.867413950654890.0325860493451112
357.97.727413950654890.172586049345112
3687.927413950654890.0725860493451112
378.18.51485226926592-0.414852269265917
388.18.67485226926591-0.574852269265915
398.28.63485226926591-0.434852269265915
4087.459262869326840.540737130673165
418.37.559262869326830.740737130673166
428.57.819262869326830.680737130673166
438.67.87851355467560.721486445324399
448.77.99851355467560.701486445324398
458.77.95851355467560.741486445324398
468.57.848894303990250.651105696009747
478.47.708894303990250.691105696009748
488.57.908894303990250.591105696009747
498.78.051861102650020.648138897349982
508.78.211861102650020.488138897349984
518.68.171861102650010.428138897349985
527.97.385184282668290.514815717331709
538.17.485184282668290.614815717331708
548.27.74518428266830.454815717331708
558.58.230386841303690.269613158696315
568.68.350386841303680.249613158696314
578.58.310386841303690.189613158696315
588.38.293365823941520.0066341760584837
598.28.153365823941520.0466341760584828
608.78.353365823941520.346634176058482







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1186769670489080.2373539340978160.881323032951092
170.04830983690677140.09661967381354290.951690163093229
180.01999360945124030.03998721890248060.98000639054876
190.009517611946391750.01903522389278350.990482388053608
200.004212472713791890.008424945427583780.995787527286208
210.01143309922990780.02286619845981550.988566900770092
220.01409077965155570.02818155930311140.985909220348444
230.02399952029878330.04799904059756670.976000479701217
240.02710969416475630.05421938832951270.972890305835244
250.06234512065527410.1246902413105480.937654879344726
260.1209631826154490.2419263652308980.87903681738455
270.2276486676361990.4552973352723970.772351332363801
280.3104502122263110.6209004244526220.689549787773689
290.2640590107620040.5281180215240080.735940989237996
300.2042640055060720.4085280110121450.795735994493928
310.2813149179568910.5626298359137830.718685082043109
320.3815608641073040.7631217282146090.618439135892696
330.5090177279569510.9819645440860990.490982272043049
340.651362336713440.697275326573120.34863766328656
350.8025632264634980.3948735470730030.197436773536502
360.9746102248640310.0507795502719380.025389775135969
370.9782546762636830.04349064747263490.0217453237363174
380.9909923656236770.01801526875264540.0090076343763227
390.9912406317268670.01751873654626630.00875936827313316
400.989835725916660.02032854816668110.0101642740833405
410.9923927919335060.01521441613298730.00760720806649367
420.9960491230997670.007901753800466420.00395087690023321
430.988104348147190.02379130370562260.0118956518528113
440.9615473152565380.0769053694869240.038452684743462

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.118676967048908 & 0.237353934097816 & 0.881323032951092 \tabularnewline
17 & 0.0483098369067714 & 0.0966196738135429 & 0.951690163093229 \tabularnewline
18 & 0.0199936094512403 & 0.0399872189024806 & 0.98000639054876 \tabularnewline
19 & 0.00951761194639175 & 0.0190352238927835 & 0.990482388053608 \tabularnewline
20 & 0.00421247271379189 & 0.00842494542758378 & 0.995787527286208 \tabularnewline
21 & 0.0114330992299078 & 0.0228661984598155 & 0.988566900770092 \tabularnewline
22 & 0.0140907796515557 & 0.0281815593031114 & 0.985909220348444 \tabularnewline
23 & 0.0239995202987833 & 0.0479990405975667 & 0.976000479701217 \tabularnewline
24 & 0.0271096941647563 & 0.0542193883295127 & 0.972890305835244 \tabularnewline
25 & 0.0623451206552741 & 0.124690241310548 & 0.937654879344726 \tabularnewline
26 & 0.120963182615449 & 0.241926365230898 & 0.87903681738455 \tabularnewline
27 & 0.227648667636199 & 0.455297335272397 & 0.772351332363801 \tabularnewline
28 & 0.310450212226311 & 0.620900424452622 & 0.689549787773689 \tabularnewline
29 & 0.264059010762004 & 0.528118021524008 & 0.735940989237996 \tabularnewline
30 & 0.204264005506072 & 0.408528011012145 & 0.795735994493928 \tabularnewline
31 & 0.281314917956891 & 0.562629835913783 & 0.718685082043109 \tabularnewline
32 & 0.381560864107304 & 0.763121728214609 & 0.618439135892696 \tabularnewline
33 & 0.509017727956951 & 0.981964544086099 & 0.490982272043049 \tabularnewline
34 & 0.65136233671344 & 0.69727532657312 & 0.34863766328656 \tabularnewline
35 & 0.802563226463498 & 0.394873547073003 & 0.197436773536502 \tabularnewline
36 & 0.974610224864031 & 0.050779550271938 & 0.025389775135969 \tabularnewline
37 & 0.978254676263683 & 0.0434906474726349 & 0.0217453237363174 \tabularnewline
38 & 0.990992365623677 & 0.0180152687526454 & 0.0090076343763227 \tabularnewline
39 & 0.991240631726867 & 0.0175187365462663 & 0.00875936827313316 \tabularnewline
40 & 0.98983572591666 & 0.0203285481666811 & 0.0101642740833405 \tabularnewline
41 & 0.992392791933506 & 0.0152144161329873 & 0.00760720806649367 \tabularnewline
42 & 0.996049123099767 & 0.00790175380046642 & 0.00395087690023321 \tabularnewline
43 & 0.98810434814719 & 0.0237913037056226 & 0.0118956518528113 \tabularnewline
44 & 0.961547315256538 & 0.076905369486924 & 0.038452684743462 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57460&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.118676967048908[/C][C]0.237353934097816[/C][C]0.881323032951092[/C][/ROW]
[ROW][C]17[/C][C]0.0483098369067714[/C][C]0.0966196738135429[/C][C]0.951690163093229[/C][/ROW]
[ROW][C]18[/C][C]0.0199936094512403[/C][C]0.0399872189024806[/C][C]0.98000639054876[/C][/ROW]
[ROW][C]19[/C][C]0.00951761194639175[/C][C]0.0190352238927835[/C][C]0.990482388053608[/C][/ROW]
[ROW][C]20[/C][C]0.00421247271379189[/C][C]0.00842494542758378[/C][C]0.995787527286208[/C][/ROW]
[ROW][C]21[/C][C]0.0114330992299078[/C][C]0.0228661984598155[/C][C]0.988566900770092[/C][/ROW]
[ROW][C]22[/C][C]0.0140907796515557[/C][C]0.0281815593031114[/C][C]0.985909220348444[/C][/ROW]
[ROW][C]23[/C][C]0.0239995202987833[/C][C]0.0479990405975667[/C][C]0.976000479701217[/C][/ROW]
[ROW][C]24[/C][C]0.0271096941647563[/C][C]0.0542193883295127[/C][C]0.972890305835244[/C][/ROW]
[ROW][C]25[/C][C]0.0623451206552741[/C][C]0.124690241310548[/C][C]0.937654879344726[/C][/ROW]
[ROW][C]26[/C][C]0.120963182615449[/C][C]0.241926365230898[/C][C]0.87903681738455[/C][/ROW]
[ROW][C]27[/C][C]0.227648667636199[/C][C]0.455297335272397[/C][C]0.772351332363801[/C][/ROW]
[ROW][C]28[/C][C]0.310450212226311[/C][C]0.620900424452622[/C][C]0.689549787773689[/C][/ROW]
[ROW][C]29[/C][C]0.264059010762004[/C][C]0.528118021524008[/C][C]0.735940989237996[/C][/ROW]
[ROW][C]30[/C][C]0.204264005506072[/C][C]0.408528011012145[/C][C]0.795735994493928[/C][/ROW]
[ROW][C]31[/C][C]0.281314917956891[/C][C]0.562629835913783[/C][C]0.718685082043109[/C][/ROW]
[ROW][C]32[/C][C]0.381560864107304[/C][C]0.763121728214609[/C][C]0.618439135892696[/C][/ROW]
[ROW][C]33[/C][C]0.509017727956951[/C][C]0.981964544086099[/C][C]0.490982272043049[/C][/ROW]
[ROW][C]34[/C][C]0.65136233671344[/C][C]0.69727532657312[/C][C]0.34863766328656[/C][/ROW]
[ROW][C]35[/C][C]0.802563226463498[/C][C]0.394873547073003[/C][C]0.197436773536502[/C][/ROW]
[ROW][C]36[/C][C]0.974610224864031[/C][C]0.050779550271938[/C][C]0.025389775135969[/C][/ROW]
[ROW][C]37[/C][C]0.978254676263683[/C][C]0.0434906474726349[/C][C]0.0217453237363174[/C][/ROW]
[ROW][C]38[/C][C]0.990992365623677[/C][C]0.0180152687526454[/C][C]0.0090076343763227[/C][/ROW]
[ROW][C]39[/C][C]0.991240631726867[/C][C]0.0175187365462663[/C][C]0.00875936827313316[/C][/ROW]
[ROW][C]40[/C][C]0.98983572591666[/C][C]0.0203285481666811[/C][C]0.0101642740833405[/C][/ROW]
[ROW][C]41[/C][C]0.992392791933506[/C][C]0.0152144161329873[/C][C]0.00760720806649367[/C][/ROW]
[ROW][C]42[/C][C]0.996049123099767[/C][C]0.00790175380046642[/C][C]0.00395087690023321[/C][/ROW]
[ROW][C]43[/C][C]0.98810434814719[/C][C]0.0237913037056226[/C][C]0.0118956518528113[/C][/ROW]
[ROW][C]44[/C][C]0.961547315256538[/C][C]0.076905369486924[/C][C]0.038452684743462[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57460&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1186769670489080.2373539340978160.881323032951092
170.04830983690677140.09661967381354290.951690163093229
180.01999360945124030.03998721890248060.98000639054876
190.009517611946391750.01903522389278350.990482388053608
200.004212472713791890.008424945427583780.995787527286208
210.01143309922990780.02286619845981550.988566900770092
220.01409077965155570.02818155930311140.985909220348444
230.02399952029878330.04799904059756670.976000479701217
240.02710969416475630.05421938832951270.972890305835244
250.06234512065527410.1246902413105480.937654879344726
260.1209631826154490.2419263652308980.87903681738455
270.2276486676361990.4552973352723970.772351332363801
280.3104502122263110.6209004244526220.689549787773689
290.2640590107620040.5281180215240080.735940989237996
300.2042640055060720.4085280110121450.795735994493928
310.2813149179568910.5626298359137830.718685082043109
320.3815608641073040.7631217282146090.618439135892696
330.5090177279569510.9819645440860990.490982272043049
340.651362336713440.697275326573120.34863766328656
350.8025632264634980.3948735470730030.197436773536502
360.9746102248640310.0507795502719380.025389775135969
370.9782546762636830.04349064747263490.0217453237363174
380.9909923656236770.01801526875264540.0090076343763227
390.9912406317268670.01751873654626630.00875936827313316
400.989835725916660.02032854816668110.0101642740833405
410.9923927919335060.01521441613298730.00760720806649367
420.9960491230997670.007901753800466420.00395087690023321
430.988104348147190.02379130370562260.0118956518528113
440.9615473152565380.0769053694869240.038452684743462







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0689655172413793NOK
5% type I error level130.448275862068966NOK
10% type I error level170.586206896551724NOK

\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 & 2 & 0.0689655172413793 & NOK \tabularnewline
5% type I error level & 13 & 0.448275862068966 & NOK \tabularnewline
10% type I error level & 17 & 0.586206896551724 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57460&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]2[/C][C]0.0689655172413793[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]13[/C][C]0.448275862068966[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]17[/C][C]0.586206896551724[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57460&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57460&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 level20.0689655172413793NOK
5% type I error level130.448275862068966NOK
10% type I error level170.586206896551724NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}