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 12:49:17 -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/t1258573827ejpjq95eobgh8v6.htm/, Retrieved Sun, 05 May 2024 13:46:20 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57608, Retrieved Sun, 05 May 2024 13:46:20 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact190
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]
-   PD      [Multiple Regression] [] [2009-11-18 19:49:17] [7dd0431c761b876151627bfbf92230c8] [Current]
Feedback Forum

Post a new message
Dataseries X:
90269	561000	90398
90390	555000	90269
88219	544000	90390
87032	537000	88219
87175	543000	87032
92603	594000	87175
93571	611000	92603
94118	613000	93571
92159	611000	94118
89528	594000	92159
89955	595000	89528
89587	591000	89955
89488	589000	89587
88521	584000	89488
86587	573000	88521
85159	567000	86587
84915	569000	85159
91378	621000	84915
92729	629000	91378
92194	628000	92729
89664	612000	92194
86285	595000	89664
86858	597000	86285
87184	593000	86858
86629	590000	87184
85220	580000	86629
84816	574000	85220
84831	573000	84816
84957	573000	84831
90951	620000	84957
92134	626000	90951
91790	620000	92134
86625	588000	91790
83324	566000	86625
82719	557000	83324
83614	561000	82719
81640	549000	83614
78665	532000	81640
77828	526000	78665
75728	511000	77828
72187	499000	75728
79357	555000	72187
81329	565000	79357
77304	542000	81329
75576	527000	77304
72932	510000	75576
74291	514000	72932
74988	517000	74291
73302	508000	74988
70483	493000	73302
69848	490000	70483
66466	469000	69848
67610	478000	66466
75091	528000	67610
76207	534000	75091
73454	518000	76207
72008	506000	73454
71362	502000	72008
74250	516000	71362




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57608&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] = + 20602.0406882828 + 0.105567859493241X[t] + 0.102513766807805Y1[t] -175.182325785885t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  20602.0406882828 +  0.105567859493241X[t] +  0.102513766807805Y1[t] -175.182325785885t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57608&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  20602.0406882828 +  0.105567859493241X[t] +  0.102513766807805Y1[t] -175.182325785885t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57608&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57608&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] = + 20602.0406882828 + 0.105567859493241X[t] + 0.102513766807805Y1[t] -175.182325785885t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)20602.04068828283776.4301485.45541e-061e-06
X0.1055678594932410.00714214.781500
Y10.1025137668078050.05891.74050.087370.043685
t-175.18232578588518.383412-9.529400

\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) & 20602.0406882828 & 3776.430148 & 5.4554 & 1e-06 & 1e-06 \tabularnewline
X & 0.105567859493241 & 0.007142 & 14.7815 & 0 & 0 \tabularnewline
Y1 & 0.102513766807805 & 0.0589 & 1.7405 & 0.08737 & 0.043685 \tabularnewline
t & -175.182325785885 & 18.383412 & -9.5294 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57608&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]20602.0406882828[/C][C]3776.430148[/C][C]5.4554[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]X[/C][C]0.105567859493241[/C][C]0.007142[/C][C]14.7815[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y1[/C][C]0.102513766807805[/C][C]0.0589[/C][C]1.7405[/C][C]0.08737[/C][C]0.043685[/C][/ROW]
[ROW][C]t[/C][C]-175.182325785885[/C][C]18.383412[/C][C]-9.5294[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57608&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57608&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)20602.04068828283776.4301485.45541e-061e-06
X0.1055678594932410.00714214.781500
Y10.1025137668078050.05891.74050.087370.043685
t-175.18232578588518.383412-9.529400







Multiple Linear Regression - Regression Statistics
Multiple R0.989650661324071
R-squared0.979408431459172
Adjusted R-squared0.978285254993309
F-TEST (value)871.998711891046
F-TEST (DF numerator)3
F-TEST (DF denominator)55
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1134.84075998331
Sum Squared Residuals70832495.2785724

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.989650661324071 \tabularnewline
R-squared & 0.979408431459172 \tabularnewline
Adjusted R-squared & 0.978285254993309 \tabularnewline
F-TEST (value) & 871.998711891046 \tabularnewline
F-TEST (DF numerator) & 3 \tabularnewline
F-TEST (DF denominator) & 55 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1134.84075998331 \tabularnewline
Sum Squared Residuals & 70832495.2785724 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57608&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.989650661324071[/C][/ROW]
[ROW][C]R-squared[/C][C]0.979408431459172[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.978285254993309[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]871.998711891046[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]3[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]55[/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]1134.84075998331[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]70832495.2785724[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57608&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57608&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.989650661324071
R-squared0.979408431459172
Adjusted R-squared0.978285254993309
F-TEST (value)871.998711891046
F-TEST (DF numerator)3
F-TEST (DF denominator)55
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1134.84075998331
Sum Squared Residuals70832495.2785724







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
19026988917.46703009721351.53296990283
29039088095.65327143362294.34672856639
38821986771.62865700581447.37134299418
48703285634.91392702751397.08607297249
58717585971.45491700021203.5450829998
69260391194.89289402311408.10710597687
79357193370.8089058551200.191094144897
89411893505.9956253257612.004374674345
99215993175.7526109972-1016.75261099716
108952891005.0922046497-1477.09220464968
118995590665.7640178857-710.764017885705
128958790112.0836325538-525.083632553786
138948889688.0405215962-200.040521596147
148852188974.87003543-453.870035430083
158658787539.3104427154-952.310442715398
168515986532.4593349638-1373.45933496377
178491586422.0230691628-1507.02306916282
189137891711.3560779244-333.356077924373
199272993043.2631029633-314.263102963257
209219492901.0090166415-707.009016641473
218966490981.8960737216-1317.89607372155
228628588752.7003065268-2467.70030652682
238685888442.2596816838-1584.25968168385
248718487903.5463063059-719.546306305871
258662987445.0798900196-816.079890019607
268522086157.323828723-937.323828722979
278481685204.2924485455-388.29244854545
288483184882.126701476-51.1267014759702
298495784708.4820821922248.517917807798
309095189507.90588720641443.09411279357
319213490580.5982366261553.40176337403
329179089893.28254001431896.71745998573
338662586304.6639746628320.336025337213
348332483277.505134463346.4948655367136
358271981813.8141290057905.185870994331
368361481998.8824122741615.11758772597
378164080648.6355938622991.364406137768
387866578476.4374810126188.562518987359
397782877362.8695420141465.130457985909
407572875518.3653010115209.634698988544
417218773861.0897510103-1674.08975101029
427935779234.7063085795122.293691420530
438132980850.226285738478.773714262047
447730478449.1403397525-1145.14033975251
457557676277.8222101666-701.822210166596
467293274130.8424839517-1198.84248395173
477429174106.885196699184.11480330103
487498874387.7226584846600.277341515387
497330273333.8816927246-31.8816927245972
507048371402.3432637021-919.343263702137
516984870621.4710508053-773.471050805328
526646668164.2674337384-1698.26743373842
536761068592.4942840477-982.494284047712
547509173812.9806821521278.01931784799
557620775038.11100281481168.88899718524
567345473288.2482888945165.751711105476
577200871564.0312491679443.968750832141
587136270818.3425786049543.657421395076
597425072054.88639236662195.11360763343

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 90269 & 88917.4670300972 & 1351.53296990283 \tabularnewline
2 & 90390 & 88095.6532714336 & 2294.34672856639 \tabularnewline
3 & 88219 & 86771.6286570058 & 1447.37134299418 \tabularnewline
4 & 87032 & 85634.9139270275 & 1397.08607297249 \tabularnewline
5 & 87175 & 85971.4549170002 & 1203.5450829998 \tabularnewline
6 & 92603 & 91194.8928940231 & 1408.10710597687 \tabularnewline
7 & 93571 & 93370.8089058551 & 200.191094144897 \tabularnewline
8 & 94118 & 93505.9956253257 & 612.004374674345 \tabularnewline
9 & 92159 & 93175.7526109972 & -1016.75261099716 \tabularnewline
10 & 89528 & 91005.0922046497 & -1477.09220464968 \tabularnewline
11 & 89955 & 90665.7640178857 & -710.764017885705 \tabularnewline
12 & 89587 & 90112.0836325538 & -525.083632553786 \tabularnewline
13 & 89488 & 89688.0405215962 & -200.040521596147 \tabularnewline
14 & 88521 & 88974.87003543 & -453.870035430083 \tabularnewline
15 & 86587 & 87539.3104427154 & -952.310442715398 \tabularnewline
16 & 85159 & 86532.4593349638 & -1373.45933496377 \tabularnewline
17 & 84915 & 86422.0230691628 & -1507.02306916282 \tabularnewline
18 & 91378 & 91711.3560779244 & -333.356077924373 \tabularnewline
19 & 92729 & 93043.2631029633 & -314.263102963257 \tabularnewline
20 & 92194 & 92901.0090166415 & -707.009016641473 \tabularnewline
21 & 89664 & 90981.8960737216 & -1317.89607372155 \tabularnewline
22 & 86285 & 88752.7003065268 & -2467.70030652682 \tabularnewline
23 & 86858 & 88442.2596816838 & -1584.25968168385 \tabularnewline
24 & 87184 & 87903.5463063059 & -719.546306305871 \tabularnewline
25 & 86629 & 87445.0798900196 & -816.079890019607 \tabularnewline
26 & 85220 & 86157.323828723 & -937.323828722979 \tabularnewline
27 & 84816 & 85204.2924485455 & -388.29244854545 \tabularnewline
28 & 84831 & 84882.126701476 & -51.1267014759702 \tabularnewline
29 & 84957 & 84708.4820821922 & 248.517917807798 \tabularnewline
30 & 90951 & 89507.9058872064 & 1443.09411279357 \tabularnewline
31 & 92134 & 90580.598236626 & 1553.40176337403 \tabularnewline
32 & 91790 & 89893.2825400143 & 1896.71745998573 \tabularnewline
33 & 86625 & 86304.6639746628 & 320.336025337213 \tabularnewline
34 & 83324 & 83277.5051344633 & 46.4948655367136 \tabularnewline
35 & 82719 & 81813.8141290057 & 905.185870994331 \tabularnewline
36 & 83614 & 81998.882412274 & 1615.11758772597 \tabularnewline
37 & 81640 & 80648.6355938622 & 991.364406137768 \tabularnewline
38 & 78665 & 78476.4374810126 & 188.562518987359 \tabularnewline
39 & 77828 & 77362.8695420141 & 465.130457985909 \tabularnewline
40 & 75728 & 75518.3653010115 & 209.634698988544 \tabularnewline
41 & 72187 & 73861.0897510103 & -1674.08975101029 \tabularnewline
42 & 79357 & 79234.7063085795 & 122.293691420530 \tabularnewline
43 & 81329 & 80850.226285738 & 478.773714262047 \tabularnewline
44 & 77304 & 78449.1403397525 & -1145.14033975251 \tabularnewline
45 & 75576 & 76277.8222101666 & -701.822210166596 \tabularnewline
46 & 72932 & 74130.8424839517 & -1198.84248395173 \tabularnewline
47 & 74291 & 74106.885196699 & 184.11480330103 \tabularnewline
48 & 74988 & 74387.7226584846 & 600.277341515387 \tabularnewline
49 & 73302 & 73333.8816927246 & -31.8816927245972 \tabularnewline
50 & 70483 & 71402.3432637021 & -919.343263702137 \tabularnewline
51 & 69848 & 70621.4710508053 & -773.471050805328 \tabularnewline
52 & 66466 & 68164.2674337384 & -1698.26743373842 \tabularnewline
53 & 67610 & 68592.4942840477 & -982.494284047712 \tabularnewline
54 & 75091 & 73812.980682152 & 1278.01931784799 \tabularnewline
55 & 76207 & 75038.1110028148 & 1168.88899718524 \tabularnewline
56 & 73454 & 73288.2482888945 & 165.751711105476 \tabularnewline
57 & 72008 & 71564.0312491679 & 443.968750832141 \tabularnewline
58 & 71362 & 70818.3425786049 & 543.657421395076 \tabularnewline
59 & 74250 & 72054.8863923666 & 2195.11360763343 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57608&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]90269[/C][C]88917.4670300972[/C][C]1351.53296990283[/C][/ROW]
[ROW][C]2[/C][C]90390[/C][C]88095.6532714336[/C][C]2294.34672856639[/C][/ROW]
[ROW][C]3[/C][C]88219[/C][C]86771.6286570058[/C][C]1447.37134299418[/C][/ROW]
[ROW][C]4[/C][C]87032[/C][C]85634.9139270275[/C][C]1397.08607297249[/C][/ROW]
[ROW][C]5[/C][C]87175[/C][C]85971.4549170002[/C][C]1203.5450829998[/C][/ROW]
[ROW][C]6[/C][C]92603[/C][C]91194.8928940231[/C][C]1408.10710597687[/C][/ROW]
[ROW][C]7[/C][C]93571[/C][C]93370.8089058551[/C][C]200.191094144897[/C][/ROW]
[ROW][C]8[/C][C]94118[/C][C]93505.9956253257[/C][C]612.004374674345[/C][/ROW]
[ROW][C]9[/C][C]92159[/C][C]93175.7526109972[/C][C]-1016.75261099716[/C][/ROW]
[ROW][C]10[/C][C]89528[/C][C]91005.0922046497[/C][C]-1477.09220464968[/C][/ROW]
[ROW][C]11[/C][C]89955[/C][C]90665.7640178857[/C][C]-710.764017885705[/C][/ROW]
[ROW][C]12[/C][C]89587[/C][C]90112.0836325538[/C][C]-525.083632553786[/C][/ROW]
[ROW][C]13[/C][C]89488[/C][C]89688.0405215962[/C][C]-200.040521596147[/C][/ROW]
[ROW][C]14[/C][C]88521[/C][C]88974.87003543[/C][C]-453.870035430083[/C][/ROW]
[ROW][C]15[/C][C]86587[/C][C]87539.3104427154[/C][C]-952.310442715398[/C][/ROW]
[ROW][C]16[/C][C]85159[/C][C]86532.4593349638[/C][C]-1373.45933496377[/C][/ROW]
[ROW][C]17[/C][C]84915[/C][C]86422.0230691628[/C][C]-1507.02306916282[/C][/ROW]
[ROW][C]18[/C][C]91378[/C][C]91711.3560779244[/C][C]-333.356077924373[/C][/ROW]
[ROW][C]19[/C][C]92729[/C][C]93043.2631029633[/C][C]-314.263102963257[/C][/ROW]
[ROW][C]20[/C][C]92194[/C][C]92901.0090166415[/C][C]-707.009016641473[/C][/ROW]
[ROW][C]21[/C][C]89664[/C][C]90981.8960737216[/C][C]-1317.89607372155[/C][/ROW]
[ROW][C]22[/C][C]86285[/C][C]88752.7003065268[/C][C]-2467.70030652682[/C][/ROW]
[ROW][C]23[/C][C]86858[/C][C]88442.2596816838[/C][C]-1584.25968168385[/C][/ROW]
[ROW][C]24[/C][C]87184[/C][C]87903.5463063059[/C][C]-719.546306305871[/C][/ROW]
[ROW][C]25[/C][C]86629[/C][C]87445.0798900196[/C][C]-816.079890019607[/C][/ROW]
[ROW][C]26[/C][C]85220[/C][C]86157.323828723[/C][C]-937.323828722979[/C][/ROW]
[ROW][C]27[/C][C]84816[/C][C]85204.2924485455[/C][C]-388.29244854545[/C][/ROW]
[ROW][C]28[/C][C]84831[/C][C]84882.126701476[/C][C]-51.1267014759702[/C][/ROW]
[ROW][C]29[/C][C]84957[/C][C]84708.4820821922[/C][C]248.517917807798[/C][/ROW]
[ROW][C]30[/C][C]90951[/C][C]89507.9058872064[/C][C]1443.09411279357[/C][/ROW]
[ROW][C]31[/C][C]92134[/C][C]90580.598236626[/C][C]1553.40176337403[/C][/ROW]
[ROW][C]32[/C][C]91790[/C][C]89893.2825400143[/C][C]1896.71745998573[/C][/ROW]
[ROW][C]33[/C][C]86625[/C][C]86304.6639746628[/C][C]320.336025337213[/C][/ROW]
[ROW][C]34[/C][C]83324[/C][C]83277.5051344633[/C][C]46.4948655367136[/C][/ROW]
[ROW][C]35[/C][C]82719[/C][C]81813.8141290057[/C][C]905.185870994331[/C][/ROW]
[ROW][C]36[/C][C]83614[/C][C]81998.882412274[/C][C]1615.11758772597[/C][/ROW]
[ROW][C]37[/C][C]81640[/C][C]80648.6355938622[/C][C]991.364406137768[/C][/ROW]
[ROW][C]38[/C][C]78665[/C][C]78476.4374810126[/C][C]188.562518987359[/C][/ROW]
[ROW][C]39[/C][C]77828[/C][C]77362.8695420141[/C][C]465.130457985909[/C][/ROW]
[ROW][C]40[/C][C]75728[/C][C]75518.3653010115[/C][C]209.634698988544[/C][/ROW]
[ROW][C]41[/C][C]72187[/C][C]73861.0897510103[/C][C]-1674.08975101029[/C][/ROW]
[ROW][C]42[/C][C]79357[/C][C]79234.7063085795[/C][C]122.293691420530[/C][/ROW]
[ROW][C]43[/C][C]81329[/C][C]80850.226285738[/C][C]478.773714262047[/C][/ROW]
[ROW][C]44[/C][C]77304[/C][C]78449.1403397525[/C][C]-1145.14033975251[/C][/ROW]
[ROW][C]45[/C][C]75576[/C][C]76277.8222101666[/C][C]-701.822210166596[/C][/ROW]
[ROW][C]46[/C][C]72932[/C][C]74130.8424839517[/C][C]-1198.84248395173[/C][/ROW]
[ROW][C]47[/C][C]74291[/C][C]74106.885196699[/C][C]184.11480330103[/C][/ROW]
[ROW][C]48[/C][C]74988[/C][C]74387.7226584846[/C][C]600.277341515387[/C][/ROW]
[ROW][C]49[/C][C]73302[/C][C]73333.8816927246[/C][C]-31.8816927245972[/C][/ROW]
[ROW][C]50[/C][C]70483[/C][C]71402.3432637021[/C][C]-919.343263702137[/C][/ROW]
[ROW][C]51[/C][C]69848[/C][C]70621.4710508053[/C][C]-773.471050805328[/C][/ROW]
[ROW][C]52[/C][C]66466[/C][C]68164.2674337384[/C][C]-1698.26743373842[/C][/ROW]
[ROW][C]53[/C][C]67610[/C][C]68592.4942840477[/C][C]-982.494284047712[/C][/ROW]
[ROW][C]54[/C][C]75091[/C][C]73812.980682152[/C][C]1278.01931784799[/C][/ROW]
[ROW][C]55[/C][C]76207[/C][C]75038.1110028148[/C][C]1168.88899718524[/C][/ROW]
[ROW][C]56[/C][C]73454[/C][C]73288.2482888945[/C][C]165.751711105476[/C][/ROW]
[ROW][C]57[/C][C]72008[/C][C]71564.0312491679[/C][C]443.968750832141[/C][/ROW]
[ROW][C]58[/C][C]71362[/C][C]70818.3425786049[/C][C]543.657421395076[/C][/ROW]
[ROW][C]59[/C][C]74250[/C][C]72054.8863923666[/C][C]2195.11360763343[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57608&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57608&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
19026988917.46703009721351.53296990283
29039088095.65327143362294.34672856639
38821986771.62865700581447.37134299418
48703285634.91392702751397.08607297249
58717585971.45491700021203.5450829998
69260391194.89289402311408.10710597687
79357193370.8089058551200.191094144897
89411893505.9956253257612.004374674345
99215993175.7526109972-1016.75261099716
108952891005.0922046497-1477.09220464968
118995590665.7640178857-710.764017885705
128958790112.0836325538-525.083632553786
138948889688.0405215962-200.040521596147
148852188974.87003543-453.870035430083
158658787539.3104427154-952.310442715398
168515986532.4593349638-1373.45933496377
178491586422.0230691628-1507.02306916282
189137891711.3560779244-333.356077924373
199272993043.2631029633-314.263102963257
209219492901.0090166415-707.009016641473
218966490981.8960737216-1317.89607372155
228628588752.7003065268-2467.70030652682
238685888442.2596816838-1584.25968168385
248718487903.5463063059-719.546306305871
258662987445.0798900196-816.079890019607
268522086157.323828723-937.323828722979
278481685204.2924485455-388.29244854545
288483184882.126701476-51.1267014759702
298495784708.4820821922248.517917807798
309095189507.90588720641443.09411279357
319213490580.5982366261553.40176337403
329179089893.28254001431896.71745998573
338662586304.6639746628320.336025337213
348332483277.505134463346.4948655367136
358271981813.8141290057905.185870994331
368361481998.8824122741615.11758772597
378164080648.6355938622991.364406137768
387866578476.4374810126188.562518987359
397782877362.8695420141465.130457985909
407572875518.3653010115209.634698988544
417218773861.0897510103-1674.08975101029
427935779234.7063085795122.293691420530
438132980850.226285738478.773714262047
447730478449.1403397525-1145.14033975251
457557676277.8222101666-701.822210166596
467293274130.8424839517-1198.84248395173
477429174106.885196699184.11480330103
487498874387.7226584846600.277341515387
497330273333.8816927246-31.8816927245972
507048371402.3432637021-919.343263702137
516984870621.4710508053-773.471050805328
526646668164.2674337384-1698.26743373842
536761068592.4942840477-982.494284047712
547509173812.9806821521278.01931784799
557620775038.11100281481168.88899718524
567345473288.2482888945165.751711105476
577200871564.0312491679443.968750832141
587136270818.3425786049543.657421395076
597425072054.88639236662195.11360763343







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.2272529883576260.4545059767152520.772747011642374
80.1680107054040710.3360214108081430.831989294595929
90.2182152113148090.4364304226296170.781784788685191
100.2213574399130980.4427148798261950.778642560086902
110.1378878661972770.2757757323945550.862112133802723
120.1191958964304110.2383917928608230.880804103569589
130.1545436419404110.3090872838808220.845456358059589
140.1420019115290210.2840038230580410.85799808847098
150.09963156327424450.1992631265484890.900368436725756
160.07907635977334330.1581527195466870.920923640226657
170.05965024931168030.1193004986233610.94034975068832
180.05137919471172260.1027583894234450.948620805288277
190.2113453138488670.4226906276977340.788654686151133
200.2937889128046920.5875778256093840.706211087195308
210.2909806903514180.5819613807028360.709019309648582
220.4117408656696360.8234817313392720.588259134330364
230.4510655193773760.9021310387547520.548934480622624
240.5450882325475180.9098235349049640.454911767452482
250.6235458831902620.7529082336194760.376454116809738
260.668501881981240.662996236037520.33149811801876
270.7043758691630730.5912482616738530.295624130836927
280.7392024488584290.5215951022831420.260797551141571
290.7749138100839930.4501723798320140.225086189916007
300.916960001516470.1660799969670610.0830399984835305
310.9782196658258250.04356066834835070.0217803341741754
320.9887223982923020.02255520341539670.0112776017076983
330.9853875917792080.02922481644158490.0146124082207925
340.9792790032629740.04144199347405160.0207209967370258
350.9722248195752150.05555036084956910.0277751804247846
360.979460226053030.04107954789394070.0205397739469704
370.98002969979480.03994060041039910.0199703002051996
380.977649215856460.04470156828708130.0223507841435407
390.9876875447279290.02462491054414250.0123124552720713
400.9992817076435540.001436584712891440.00071829235644572
410.9992500367222720.001499926555455390.000749963277727695
420.9987924971361820.002415005727635950.00120750286381797
430.9972766833913340.005446633217331260.00272331660866563
440.9981296531217680.003740693756463990.00187034687823200
450.9971306477386770.005738704522646360.00286935226132318
460.99681909645710.006361807085801290.00318090354290064
470.9923154491108530.01536910177829470.00768455088914737
480.991205500175620.01758899964876020.00879449982438008
490.9922666794722510.01546664105549820.00773332052774908
500.9884882444475970.02302351110480520.0115117555524026
510.9836785700121430.03264285997571450.0163214299878572
520.9727979689912570.05440406201748650.0272020310087432

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
7 & 0.227252988357626 & 0.454505976715252 & 0.772747011642374 \tabularnewline
8 & 0.168010705404071 & 0.336021410808143 & 0.831989294595929 \tabularnewline
9 & 0.218215211314809 & 0.436430422629617 & 0.781784788685191 \tabularnewline
10 & 0.221357439913098 & 0.442714879826195 & 0.778642560086902 \tabularnewline
11 & 0.137887866197277 & 0.275775732394555 & 0.862112133802723 \tabularnewline
12 & 0.119195896430411 & 0.238391792860823 & 0.880804103569589 \tabularnewline
13 & 0.154543641940411 & 0.309087283880822 & 0.845456358059589 \tabularnewline
14 & 0.142001911529021 & 0.284003823058041 & 0.85799808847098 \tabularnewline
15 & 0.0996315632742445 & 0.199263126548489 & 0.900368436725756 \tabularnewline
16 & 0.0790763597733433 & 0.158152719546687 & 0.920923640226657 \tabularnewline
17 & 0.0596502493116803 & 0.119300498623361 & 0.94034975068832 \tabularnewline
18 & 0.0513791947117226 & 0.102758389423445 & 0.948620805288277 \tabularnewline
19 & 0.211345313848867 & 0.422690627697734 & 0.788654686151133 \tabularnewline
20 & 0.293788912804692 & 0.587577825609384 & 0.706211087195308 \tabularnewline
21 & 0.290980690351418 & 0.581961380702836 & 0.709019309648582 \tabularnewline
22 & 0.411740865669636 & 0.823481731339272 & 0.588259134330364 \tabularnewline
23 & 0.451065519377376 & 0.902131038754752 & 0.548934480622624 \tabularnewline
24 & 0.545088232547518 & 0.909823534904964 & 0.454911767452482 \tabularnewline
25 & 0.623545883190262 & 0.752908233619476 & 0.376454116809738 \tabularnewline
26 & 0.66850188198124 & 0.66299623603752 & 0.33149811801876 \tabularnewline
27 & 0.704375869163073 & 0.591248261673853 & 0.295624130836927 \tabularnewline
28 & 0.739202448858429 & 0.521595102283142 & 0.260797551141571 \tabularnewline
29 & 0.774913810083993 & 0.450172379832014 & 0.225086189916007 \tabularnewline
30 & 0.91696000151647 & 0.166079996967061 & 0.0830399984835305 \tabularnewline
31 & 0.978219665825825 & 0.0435606683483507 & 0.0217803341741754 \tabularnewline
32 & 0.988722398292302 & 0.0225552034153967 & 0.0112776017076983 \tabularnewline
33 & 0.985387591779208 & 0.0292248164415849 & 0.0146124082207925 \tabularnewline
34 & 0.979279003262974 & 0.0414419934740516 & 0.0207209967370258 \tabularnewline
35 & 0.972224819575215 & 0.0555503608495691 & 0.0277751804247846 \tabularnewline
36 & 0.97946022605303 & 0.0410795478939407 & 0.0205397739469704 \tabularnewline
37 & 0.9800296997948 & 0.0399406004103991 & 0.0199703002051996 \tabularnewline
38 & 0.97764921585646 & 0.0447015682870813 & 0.0223507841435407 \tabularnewline
39 & 0.987687544727929 & 0.0246249105441425 & 0.0123124552720713 \tabularnewline
40 & 0.999281707643554 & 0.00143658471289144 & 0.00071829235644572 \tabularnewline
41 & 0.999250036722272 & 0.00149992655545539 & 0.000749963277727695 \tabularnewline
42 & 0.998792497136182 & 0.00241500572763595 & 0.00120750286381797 \tabularnewline
43 & 0.997276683391334 & 0.00544663321733126 & 0.00272331660866563 \tabularnewline
44 & 0.998129653121768 & 0.00374069375646399 & 0.00187034687823200 \tabularnewline
45 & 0.997130647738677 & 0.00573870452264636 & 0.00286935226132318 \tabularnewline
46 & 0.9968190964571 & 0.00636180708580129 & 0.00318090354290064 \tabularnewline
47 & 0.992315449110853 & 0.0153691017782947 & 0.00768455088914737 \tabularnewline
48 & 0.99120550017562 & 0.0175889996487602 & 0.00879449982438008 \tabularnewline
49 & 0.992266679472251 & 0.0154666410554982 & 0.00773332052774908 \tabularnewline
50 & 0.988488244447597 & 0.0230235111048052 & 0.0115117555524026 \tabularnewline
51 & 0.983678570012143 & 0.0326428599757145 & 0.0163214299878572 \tabularnewline
52 & 0.972797968991257 & 0.0544040620174865 & 0.0272020310087432 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57608&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]7[/C][C]0.227252988357626[/C][C]0.454505976715252[/C][C]0.772747011642374[/C][/ROW]
[ROW][C]8[/C][C]0.168010705404071[/C][C]0.336021410808143[/C][C]0.831989294595929[/C][/ROW]
[ROW][C]9[/C][C]0.218215211314809[/C][C]0.436430422629617[/C][C]0.781784788685191[/C][/ROW]
[ROW][C]10[/C][C]0.221357439913098[/C][C]0.442714879826195[/C][C]0.778642560086902[/C][/ROW]
[ROW][C]11[/C][C]0.137887866197277[/C][C]0.275775732394555[/C][C]0.862112133802723[/C][/ROW]
[ROW][C]12[/C][C]0.119195896430411[/C][C]0.238391792860823[/C][C]0.880804103569589[/C][/ROW]
[ROW][C]13[/C][C]0.154543641940411[/C][C]0.309087283880822[/C][C]0.845456358059589[/C][/ROW]
[ROW][C]14[/C][C]0.142001911529021[/C][C]0.284003823058041[/C][C]0.85799808847098[/C][/ROW]
[ROW][C]15[/C][C]0.0996315632742445[/C][C]0.199263126548489[/C][C]0.900368436725756[/C][/ROW]
[ROW][C]16[/C][C]0.0790763597733433[/C][C]0.158152719546687[/C][C]0.920923640226657[/C][/ROW]
[ROW][C]17[/C][C]0.0596502493116803[/C][C]0.119300498623361[/C][C]0.94034975068832[/C][/ROW]
[ROW][C]18[/C][C]0.0513791947117226[/C][C]0.102758389423445[/C][C]0.948620805288277[/C][/ROW]
[ROW][C]19[/C][C]0.211345313848867[/C][C]0.422690627697734[/C][C]0.788654686151133[/C][/ROW]
[ROW][C]20[/C][C]0.293788912804692[/C][C]0.587577825609384[/C][C]0.706211087195308[/C][/ROW]
[ROW][C]21[/C][C]0.290980690351418[/C][C]0.581961380702836[/C][C]0.709019309648582[/C][/ROW]
[ROW][C]22[/C][C]0.411740865669636[/C][C]0.823481731339272[/C][C]0.588259134330364[/C][/ROW]
[ROW][C]23[/C][C]0.451065519377376[/C][C]0.902131038754752[/C][C]0.548934480622624[/C][/ROW]
[ROW][C]24[/C][C]0.545088232547518[/C][C]0.909823534904964[/C][C]0.454911767452482[/C][/ROW]
[ROW][C]25[/C][C]0.623545883190262[/C][C]0.752908233619476[/C][C]0.376454116809738[/C][/ROW]
[ROW][C]26[/C][C]0.66850188198124[/C][C]0.66299623603752[/C][C]0.33149811801876[/C][/ROW]
[ROW][C]27[/C][C]0.704375869163073[/C][C]0.591248261673853[/C][C]0.295624130836927[/C][/ROW]
[ROW][C]28[/C][C]0.739202448858429[/C][C]0.521595102283142[/C][C]0.260797551141571[/C][/ROW]
[ROW][C]29[/C][C]0.774913810083993[/C][C]0.450172379832014[/C][C]0.225086189916007[/C][/ROW]
[ROW][C]30[/C][C]0.91696000151647[/C][C]0.166079996967061[/C][C]0.0830399984835305[/C][/ROW]
[ROW][C]31[/C][C]0.978219665825825[/C][C]0.0435606683483507[/C][C]0.0217803341741754[/C][/ROW]
[ROW][C]32[/C][C]0.988722398292302[/C][C]0.0225552034153967[/C][C]0.0112776017076983[/C][/ROW]
[ROW][C]33[/C][C]0.985387591779208[/C][C]0.0292248164415849[/C][C]0.0146124082207925[/C][/ROW]
[ROW][C]34[/C][C]0.979279003262974[/C][C]0.0414419934740516[/C][C]0.0207209967370258[/C][/ROW]
[ROW][C]35[/C][C]0.972224819575215[/C][C]0.0555503608495691[/C][C]0.0277751804247846[/C][/ROW]
[ROW][C]36[/C][C]0.97946022605303[/C][C]0.0410795478939407[/C][C]0.0205397739469704[/C][/ROW]
[ROW][C]37[/C][C]0.9800296997948[/C][C]0.0399406004103991[/C][C]0.0199703002051996[/C][/ROW]
[ROW][C]38[/C][C]0.97764921585646[/C][C]0.0447015682870813[/C][C]0.0223507841435407[/C][/ROW]
[ROW][C]39[/C][C]0.987687544727929[/C][C]0.0246249105441425[/C][C]0.0123124552720713[/C][/ROW]
[ROW][C]40[/C][C]0.999281707643554[/C][C]0.00143658471289144[/C][C]0.00071829235644572[/C][/ROW]
[ROW][C]41[/C][C]0.999250036722272[/C][C]0.00149992655545539[/C][C]0.000749963277727695[/C][/ROW]
[ROW][C]42[/C][C]0.998792497136182[/C][C]0.00241500572763595[/C][C]0.00120750286381797[/C][/ROW]
[ROW][C]43[/C][C]0.997276683391334[/C][C]0.00544663321733126[/C][C]0.00272331660866563[/C][/ROW]
[ROW][C]44[/C][C]0.998129653121768[/C][C]0.00374069375646399[/C][C]0.00187034687823200[/C][/ROW]
[ROW][C]45[/C][C]0.997130647738677[/C][C]0.00573870452264636[/C][C]0.00286935226132318[/C][/ROW]
[ROW][C]46[/C][C]0.9968190964571[/C][C]0.00636180708580129[/C][C]0.00318090354290064[/C][/ROW]
[ROW][C]47[/C][C]0.992315449110853[/C][C]0.0153691017782947[/C][C]0.00768455088914737[/C][/ROW]
[ROW][C]48[/C][C]0.99120550017562[/C][C]0.0175889996487602[/C][C]0.00879449982438008[/C][/ROW]
[ROW][C]49[/C][C]0.992266679472251[/C][C]0.0154666410554982[/C][C]0.00773332052774908[/C][/ROW]
[ROW][C]50[/C][C]0.988488244447597[/C][C]0.0230235111048052[/C][C]0.0115117555524026[/C][/ROW]
[ROW][C]51[/C][C]0.983678570012143[/C][C]0.0326428599757145[/C][C]0.0163214299878572[/C][/ROW]
[ROW][C]52[/C][C]0.972797968991257[/C][C]0.0544040620174865[/C][C]0.0272020310087432[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57608&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57608&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
70.2272529883576260.4545059767152520.772747011642374
80.1680107054040710.3360214108081430.831989294595929
90.2182152113148090.4364304226296170.781784788685191
100.2213574399130980.4427148798261950.778642560086902
110.1378878661972770.2757757323945550.862112133802723
120.1191958964304110.2383917928608230.880804103569589
130.1545436419404110.3090872838808220.845456358059589
140.1420019115290210.2840038230580410.85799808847098
150.09963156327424450.1992631265484890.900368436725756
160.07907635977334330.1581527195466870.920923640226657
170.05965024931168030.1193004986233610.94034975068832
180.05137919471172260.1027583894234450.948620805288277
190.2113453138488670.4226906276977340.788654686151133
200.2937889128046920.5875778256093840.706211087195308
210.2909806903514180.5819613807028360.709019309648582
220.4117408656696360.8234817313392720.588259134330364
230.4510655193773760.9021310387547520.548934480622624
240.5450882325475180.9098235349049640.454911767452482
250.6235458831902620.7529082336194760.376454116809738
260.668501881981240.662996236037520.33149811801876
270.7043758691630730.5912482616738530.295624130836927
280.7392024488584290.5215951022831420.260797551141571
290.7749138100839930.4501723798320140.225086189916007
300.916960001516470.1660799969670610.0830399984835305
310.9782196658258250.04356066834835070.0217803341741754
320.9887223982923020.02255520341539670.0112776017076983
330.9853875917792080.02922481644158490.0146124082207925
340.9792790032629740.04144199347405160.0207209967370258
350.9722248195752150.05555036084956910.0277751804247846
360.979460226053030.04107954789394070.0205397739469704
370.98002969979480.03994060041039910.0199703002051996
380.977649215856460.04470156828708130.0223507841435407
390.9876875447279290.02462491054414250.0123124552720713
400.9992817076435540.001436584712891440.00071829235644572
410.9992500367222720.001499926555455390.000749963277727695
420.9987924971361820.002415005727635950.00120750286381797
430.9972766833913340.005446633217331260.00272331660866563
440.9981296531217680.003740693756463990.00187034687823200
450.9971306477386770.005738704522646360.00286935226132318
460.99681909645710.006361807085801290.00318090354290064
470.9923154491108530.01536910177829470.00768455088914737
480.991205500175620.01758899964876020.00879449982438008
490.9922666794722510.01546664105549820.00773332052774908
500.9884882444475970.02302351110480520.0115117555524026
510.9836785700121430.03264285997571450.0163214299878572
520.9727979689912570.05440406201748650.0272020310087432







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level70.152173913043478NOK
5% type I error level200.434782608695652NOK
10% type I error level220.478260869565217NOK

\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 & 7 & 0.152173913043478 & NOK \tabularnewline
5% type I error level & 20 & 0.434782608695652 & NOK \tabularnewline
10% type I error level & 22 & 0.478260869565217 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57608&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]7[/C][C]0.152173913043478[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]20[/C][C]0.434782608695652[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]22[/C][C]0.478260869565217[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57608&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57608&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 level70.152173913043478NOK
5% type I error level200.434782608695652NOK
10% type I error level220.478260869565217NOK



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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')
}