Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationTue, 16 Dec 2008 14:32:40 -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/2008/Dec/16/t12294632372nj4fu2m2m36lke.htm/, Retrieved Wed, 15 May 2024 22:34:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34219, Retrieved Wed, 15 May 2024 22:34:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact170
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Paper H4 Vrouwen ...] [2008-12-16 21:32:40] [5e9e099b83e50415d7642e10d74756e4] [Current]
Feedback Forum

Post a new message
Dataseries X:
308347	0
298427	0
289231	0
291975	0
294912	0
293488	0
290555	0
284736	0
281818	0
287854	0
316263	0
325412	0
326011	0
328282	0
317480	0
317539	0
313737	0
312276	0
309391	0
302950	0
300316	0
304035	0
333476	0
337698	0
335932	0
323931	0
313927	0
314485	1
313218	1
309664	1
302963	1
298989	1
298423	1
301631	1
329765	1
335083	1
327616	1
309119	1
295916	1
291413	1
291542	1
284678	1
276475	1
272566	1
264981	1
263290	1
296806	1
303598	1
286994	1
276427	1
266424	1
267153	1
268381	1
262522	1
255542	1
253158	1
243803	1
250741	1
280445	1
285257	1
270976	1
261076	1
255603	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34219&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]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34219&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34219&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'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
Vrouwen[t] = + 349150.813333333 + 9773.3444444444Dummy[t] -12342.5461111112M1[t] -21066.9566666667M2[t] -29802.5338888889M3[t] -29253.3155555555M4[t] -28363.7261111111M5[t] -31151.5366666666M6[t] -35647.3472222222M7[t] -39108.1577777778M8[t] -42675.1683333333M9[t] -37988.5788888889M10[t] -7103.18944444443M11[t] -1044.58944444444t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Vrouwen[t] =  +  349150.813333333 +  9773.3444444444Dummy[t] -12342.5461111112M1[t] -21066.9566666667M2[t] -29802.5338888889M3[t] -29253.3155555555M4[t] -28363.7261111111M5[t] -31151.5366666666M6[t] -35647.3472222222M7[t] -39108.1577777778M8[t] -42675.1683333333M9[t] -37988.5788888889M10[t] -7103.18944444443M11[t] -1044.58944444444t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34219&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Vrouwen[t] =  +  349150.813333333 +  9773.3444444444Dummy[t] -12342.5461111112M1[t] -21066.9566666667M2[t] -29802.5338888889M3[t] -29253.3155555555M4[t] -28363.7261111111M5[t] -31151.5366666666M6[t] -35647.3472222222M7[t] -39108.1577777778M8[t] -42675.1683333333M9[t] -37988.5788888889M10[t] -7103.18944444443M11[t] -1044.58944444444t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34219&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34219&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
Vrouwen[t] = + 349150.813333333 + 9773.3444444444Dummy[t] -12342.5461111112M1[t] -21066.9566666667M2[t] -29802.5338888889M3[t] -29253.3155555555M4[t] -28363.7261111111M5[t] -31151.5366666666M6[t] -35647.3472222222M7[t] -39108.1577777778M8[t] -42675.1683333333M9[t] -37988.5788888889M10[t] -7103.18944444443M11[t] -1044.58944444444t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)349150.8133333338539.66559540.885800
Dummy9773.34444444448290.3411271.17890.2441380.122069
M1-12342.54611111129789.730415-1.26080.2133640.106682
M2-21066.95666666679782.799741-2.15350.0362290.018115
M3-29802.53388888899781.104829-3.04690.0037180.001859
M4-29253.315555555510366.271094-2.8220.0068760.003438
M5-28363.726111111110329.12815-2.7460.0084130.004207
M6-31151.536666666610296.829222-3.02540.0039480.001974
M7-35647.347222222210269.420015-3.47120.0010910.000546
M8-39108.157777777810246.939768-3.81660.000380.00019
M9-42675.168333333310229.420977-4.17180.0001236.2e-05
M10-37988.578888888910216.889163-3.71820.0005160.000258
M11-7103.1894444444310209.362691-0.69580.4898710.244935
t-1044.58944444444226.375508-4.61442.9e-051.4e-05

\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) & 349150.813333333 & 8539.665595 & 40.8858 & 0 & 0 \tabularnewline
Dummy & 9773.3444444444 & 8290.341127 & 1.1789 & 0.244138 & 0.122069 \tabularnewline
M1 & -12342.5461111112 & 9789.730415 & -1.2608 & 0.213364 & 0.106682 \tabularnewline
M2 & -21066.9566666667 & 9782.799741 & -2.1535 & 0.036229 & 0.018115 \tabularnewline
M3 & -29802.5338888889 & 9781.104829 & -3.0469 & 0.003718 & 0.001859 \tabularnewline
M4 & -29253.3155555555 & 10366.271094 & -2.822 & 0.006876 & 0.003438 \tabularnewline
M5 & -28363.7261111111 & 10329.12815 & -2.746 & 0.008413 & 0.004207 \tabularnewline
M6 & -31151.5366666666 & 10296.829222 & -3.0254 & 0.003948 & 0.001974 \tabularnewline
M7 & -35647.3472222222 & 10269.420015 & -3.4712 & 0.001091 & 0.000546 \tabularnewline
M8 & -39108.1577777778 & 10246.939768 & -3.8166 & 0.00038 & 0.00019 \tabularnewline
M9 & -42675.1683333333 & 10229.420977 & -4.1718 & 0.000123 & 6.2e-05 \tabularnewline
M10 & -37988.5788888889 & 10216.889163 & -3.7182 & 0.000516 & 0.000258 \tabularnewline
M11 & -7103.18944444443 & 10209.362691 & -0.6958 & 0.489871 & 0.244935 \tabularnewline
t & -1044.58944444444 & 226.375508 & -4.6144 & 2.9e-05 & 1.4e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34219&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]349150.813333333[/C][C]8539.665595[/C][C]40.8858[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Dummy[/C][C]9773.3444444444[/C][C]8290.341127[/C][C]1.1789[/C][C]0.244138[/C][C]0.122069[/C][/ROW]
[ROW][C]M1[/C][C]-12342.5461111112[/C][C]9789.730415[/C][C]-1.2608[/C][C]0.213364[/C][C]0.106682[/C][/ROW]
[ROW][C]M2[/C][C]-21066.9566666667[/C][C]9782.799741[/C][C]-2.1535[/C][C]0.036229[/C][C]0.018115[/C][/ROW]
[ROW][C]M3[/C][C]-29802.5338888889[/C][C]9781.104829[/C][C]-3.0469[/C][C]0.003718[/C][C]0.001859[/C][/ROW]
[ROW][C]M4[/C][C]-29253.3155555555[/C][C]10366.271094[/C][C]-2.822[/C][C]0.006876[/C][C]0.003438[/C][/ROW]
[ROW][C]M5[/C][C]-28363.7261111111[/C][C]10329.12815[/C][C]-2.746[/C][C]0.008413[/C][C]0.004207[/C][/ROW]
[ROW][C]M6[/C][C]-31151.5366666666[/C][C]10296.829222[/C][C]-3.0254[/C][C]0.003948[/C][C]0.001974[/C][/ROW]
[ROW][C]M7[/C][C]-35647.3472222222[/C][C]10269.420015[/C][C]-3.4712[/C][C]0.001091[/C][C]0.000546[/C][/ROW]
[ROW][C]M8[/C][C]-39108.1577777778[/C][C]10246.939768[/C][C]-3.8166[/C][C]0.00038[/C][C]0.00019[/C][/ROW]
[ROW][C]M9[/C][C]-42675.1683333333[/C][C]10229.420977[/C][C]-4.1718[/C][C]0.000123[/C][C]6.2e-05[/C][/ROW]
[ROW][C]M10[/C][C]-37988.5788888889[/C][C]10216.889163[/C][C]-3.7182[/C][C]0.000516[/C][C]0.000258[/C][/ROW]
[ROW][C]M11[/C][C]-7103.18944444443[/C][C]10209.362691[/C][C]-0.6958[/C][C]0.489871[/C][C]0.244935[/C][/ROW]
[ROW][C]t[/C][C]-1044.58944444444[/C][C]226.375508[/C][C]-4.6144[/C][C]2.9e-05[/C][C]1.4e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34219&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34219&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)349150.8133333338539.66559540.885800
Dummy9773.34444444448290.3411271.17890.2441380.122069
M1-12342.54611111129789.730415-1.26080.2133640.106682
M2-21066.95666666679782.799741-2.15350.0362290.018115
M3-29802.53388888899781.104829-3.04690.0037180.001859
M4-29253.315555555510366.271094-2.8220.0068760.003438
M5-28363.726111111110329.12815-2.7460.0084130.004207
M6-31151.536666666610296.829222-3.02540.0039480.001974
M7-35647.347222222210269.420015-3.47120.0010910.000546
M8-39108.157777777810246.939768-3.81660.000380.00019
M9-42675.168333333310229.420977-4.17180.0001236.2e-05
M10-37988.578888888910216.889163-3.71820.0005160.000258
M11-7103.1894444444310209.362691-0.69580.4898710.244935
t-1044.58944444444226.375508-4.61442.9e-051.4e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.800835531194454
R-squared0.641337548023504
Adjusted R-squared0.546182203621576
F-TEST (value)6.73990044442015
F-TEST (DF numerator)13
F-TEST (DF denominator)49
p-value3.61344651977902e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16138.4510315766
Sum Squared Residuals12762030483.2311

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.800835531194454 \tabularnewline
R-squared & 0.641337548023504 \tabularnewline
Adjusted R-squared & 0.546182203621576 \tabularnewline
F-TEST (value) & 6.73990044442015 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 49 \tabularnewline
p-value & 3.61344651977902e-07 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 16138.4510315766 \tabularnewline
Sum Squared Residuals & 12762030483.2311 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34219&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.800835531194454[/C][/ROW]
[ROW][C]R-squared[/C][C]0.641337548023504[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.546182203621576[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]6.73990044442015[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]49[/C][/ROW]
[ROW][C]p-value[/C][C]3.61344651977902e-07[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]16138.4510315766[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]12762030483.2311[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34219&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34219&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.800835531194454
R-squared0.641337548023504
Adjusted R-squared0.546182203621576
F-TEST (value)6.73990044442015
F-TEST (DF numerator)13
F-TEST (DF denominator)49
p-value3.61344651977902e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16138.4510315766
Sum Squared Residuals12762030483.2311







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1308347335763.677777778-27416.6777777783
2298427325994.677777778-27567.6777777777
3289231316214.511111111-26983.5111111111
4291975315719.14-23744.14
5294912315564.14-20652.1400000000
6293488311731.74-18243.7400000000
7290555306191.34-15636.34
8284736301685.94-16949.94
9281818297074.34-15256.3400000000
10287854300716.34-12862.3400000000
11316263330557.14-14294.1400000000
12325412336615.74-11203.7400000000
13326011323228.6044444442782.39555555569
14328282313459.60444444414822.3955555556
15317480303679.43777777813800.5622222222
16317539303184.06666666714354.9333333333
17313737303029.06666666710707.9333333333
18312276299196.66666666713079.3333333333
19309391293656.26666666715734.7333333333
20302950289150.86666666713799.1333333333
21300316284539.26666666715776.7333333333
22304035288181.26666666715853.7333333333
23333476318022.06666666715453.9333333333
24337698324080.66666666713617.3333333333
25335932310693.53111111125238.468888889
26323931300924.53111111123006.4688888889
27313927291144.36444444422782.6355555555
28314485300422.33777777814062.6622222222
29313218300267.33777777812950.6622222222
30309664296434.93777777813229.0622222222
31302963290894.53777777812068.4622222222
32298989286389.13777777812599.8622222222
33298423281777.53777777816645.4622222222
34301631285419.53777777816211.4622222222
35329765315260.33777777814504.6622222222
36335083321318.93777777813764.0622222223
37327616307931.80222222219684.1977777779
38309119298162.80222222210956.1977777778
39295916288382.6355555567533.36444444446
40291413287887.2644444443525.73555555555
41291542287732.2644444443809.73555555555
42284678283899.864444444778.135555555549
43276475278359.464444444-1884.46444444445
44272566273854.064444444-1288.06444444445
45264981269242.464444444-4261.46444444446
46263290272884.464444444-9594.46444444446
47296806302725.264444444-5919.26444444445
48303598308783.864444444-5185.86444444445
49286994295396.728888889-8402.7288888888
50276427285627.728888889-9200.7288888889
51266424275847.562222222-9423.56222222223
52267153275352.191111111-8199.19111111114
53268381275197.191111111-6816.19111111114
54262522271364.791111111-8842.79111111115
55255542265824.391111111-10282.3911111111
56253158261318.991111111-8160.99111111115
57243803256707.391111111-12904.3911111111
58250741260349.391111111-9608.39111111115
59280445290190.191111111-9745.19111111115
60285257296248.791111111-10991.7911111111
61270976282861.655555555-11885.6555555555
62261076273092.655555556-12016.6555555556
63255603263312.488888889-7709.48888888892

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 308347 & 335763.677777778 & -27416.6777777783 \tabularnewline
2 & 298427 & 325994.677777778 & -27567.6777777777 \tabularnewline
3 & 289231 & 316214.511111111 & -26983.5111111111 \tabularnewline
4 & 291975 & 315719.14 & -23744.14 \tabularnewline
5 & 294912 & 315564.14 & -20652.1400000000 \tabularnewline
6 & 293488 & 311731.74 & -18243.7400000000 \tabularnewline
7 & 290555 & 306191.34 & -15636.34 \tabularnewline
8 & 284736 & 301685.94 & -16949.94 \tabularnewline
9 & 281818 & 297074.34 & -15256.3400000000 \tabularnewline
10 & 287854 & 300716.34 & -12862.3400000000 \tabularnewline
11 & 316263 & 330557.14 & -14294.1400000000 \tabularnewline
12 & 325412 & 336615.74 & -11203.7400000000 \tabularnewline
13 & 326011 & 323228.604444444 & 2782.39555555569 \tabularnewline
14 & 328282 & 313459.604444444 & 14822.3955555556 \tabularnewline
15 & 317480 & 303679.437777778 & 13800.5622222222 \tabularnewline
16 & 317539 & 303184.066666667 & 14354.9333333333 \tabularnewline
17 & 313737 & 303029.066666667 & 10707.9333333333 \tabularnewline
18 & 312276 & 299196.666666667 & 13079.3333333333 \tabularnewline
19 & 309391 & 293656.266666667 & 15734.7333333333 \tabularnewline
20 & 302950 & 289150.866666667 & 13799.1333333333 \tabularnewline
21 & 300316 & 284539.266666667 & 15776.7333333333 \tabularnewline
22 & 304035 & 288181.266666667 & 15853.7333333333 \tabularnewline
23 & 333476 & 318022.066666667 & 15453.9333333333 \tabularnewline
24 & 337698 & 324080.666666667 & 13617.3333333333 \tabularnewline
25 & 335932 & 310693.531111111 & 25238.468888889 \tabularnewline
26 & 323931 & 300924.531111111 & 23006.4688888889 \tabularnewline
27 & 313927 & 291144.364444444 & 22782.6355555555 \tabularnewline
28 & 314485 & 300422.337777778 & 14062.6622222222 \tabularnewline
29 & 313218 & 300267.337777778 & 12950.6622222222 \tabularnewline
30 & 309664 & 296434.937777778 & 13229.0622222222 \tabularnewline
31 & 302963 & 290894.537777778 & 12068.4622222222 \tabularnewline
32 & 298989 & 286389.137777778 & 12599.8622222222 \tabularnewline
33 & 298423 & 281777.537777778 & 16645.4622222222 \tabularnewline
34 & 301631 & 285419.537777778 & 16211.4622222222 \tabularnewline
35 & 329765 & 315260.337777778 & 14504.6622222222 \tabularnewline
36 & 335083 & 321318.937777778 & 13764.0622222223 \tabularnewline
37 & 327616 & 307931.802222222 & 19684.1977777779 \tabularnewline
38 & 309119 & 298162.802222222 & 10956.1977777778 \tabularnewline
39 & 295916 & 288382.635555556 & 7533.36444444446 \tabularnewline
40 & 291413 & 287887.264444444 & 3525.73555555555 \tabularnewline
41 & 291542 & 287732.264444444 & 3809.73555555555 \tabularnewline
42 & 284678 & 283899.864444444 & 778.135555555549 \tabularnewline
43 & 276475 & 278359.464444444 & -1884.46444444445 \tabularnewline
44 & 272566 & 273854.064444444 & -1288.06444444445 \tabularnewline
45 & 264981 & 269242.464444444 & -4261.46444444446 \tabularnewline
46 & 263290 & 272884.464444444 & -9594.46444444446 \tabularnewline
47 & 296806 & 302725.264444444 & -5919.26444444445 \tabularnewline
48 & 303598 & 308783.864444444 & -5185.86444444445 \tabularnewline
49 & 286994 & 295396.728888889 & -8402.7288888888 \tabularnewline
50 & 276427 & 285627.728888889 & -9200.7288888889 \tabularnewline
51 & 266424 & 275847.562222222 & -9423.56222222223 \tabularnewline
52 & 267153 & 275352.191111111 & -8199.19111111114 \tabularnewline
53 & 268381 & 275197.191111111 & -6816.19111111114 \tabularnewline
54 & 262522 & 271364.791111111 & -8842.79111111115 \tabularnewline
55 & 255542 & 265824.391111111 & -10282.3911111111 \tabularnewline
56 & 253158 & 261318.991111111 & -8160.99111111115 \tabularnewline
57 & 243803 & 256707.391111111 & -12904.3911111111 \tabularnewline
58 & 250741 & 260349.391111111 & -9608.39111111115 \tabularnewline
59 & 280445 & 290190.191111111 & -9745.19111111115 \tabularnewline
60 & 285257 & 296248.791111111 & -10991.7911111111 \tabularnewline
61 & 270976 & 282861.655555555 & -11885.6555555555 \tabularnewline
62 & 261076 & 273092.655555556 & -12016.6555555556 \tabularnewline
63 & 255603 & 263312.488888889 & -7709.48888888892 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34219&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]308347[/C][C]335763.677777778[/C][C]-27416.6777777783[/C][/ROW]
[ROW][C]2[/C][C]298427[/C][C]325994.677777778[/C][C]-27567.6777777777[/C][/ROW]
[ROW][C]3[/C][C]289231[/C][C]316214.511111111[/C][C]-26983.5111111111[/C][/ROW]
[ROW][C]4[/C][C]291975[/C][C]315719.14[/C][C]-23744.14[/C][/ROW]
[ROW][C]5[/C][C]294912[/C][C]315564.14[/C][C]-20652.1400000000[/C][/ROW]
[ROW][C]6[/C][C]293488[/C][C]311731.74[/C][C]-18243.7400000000[/C][/ROW]
[ROW][C]7[/C][C]290555[/C][C]306191.34[/C][C]-15636.34[/C][/ROW]
[ROW][C]8[/C][C]284736[/C][C]301685.94[/C][C]-16949.94[/C][/ROW]
[ROW][C]9[/C][C]281818[/C][C]297074.34[/C][C]-15256.3400000000[/C][/ROW]
[ROW][C]10[/C][C]287854[/C][C]300716.34[/C][C]-12862.3400000000[/C][/ROW]
[ROW][C]11[/C][C]316263[/C][C]330557.14[/C][C]-14294.1400000000[/C][/ROW]
[ROW][C]12[/C][C]325412[/C][C]336615.74[/C][C]-11203.7400000000[/C][/ROW]
[ROW][C]13[/C][C]326011[/C][C]323228.604444444[/C][C]2782.39555555569[/C][/ROW]
[ROW][C]14[/C][C]328282[/C][C]313459.604444444[/C][C]14822.3955555556[/C][/ROW]
[ROW][C]15[/C][C]317480[/C][C]303679.437777778[/C][C]13800.5622222222[/C][/ROW]
[ROW][C]16[/C][C]317539[/C][C]303184.066666667[/C][C]14354.9333333333[/C][/ROW]
[ROW][C]17[/C][C]313737[/C][C]303029.066666667[/C][C]10707.9333333333[/C][/ROW]
[ROW][C]18[/C][C]312276[/C][C]299196.666666667[/C][C]13079.3333333333[/C][/ROW]
[ROW][C]19[/C][C]309391[/C][C]293656.266666667[/C][C]15734.7333333333[/C][/ROW]
[ROW][C]20[/C][C]302950[/C][C]289150.866666667[/C][C]13799.1333333333[/C][/ROW]
[ROW][C]21[/C][C]300316[/C][C]284539.266666667[/C][C]15776.7333333333[/C][/ROW]
[ROW][C]22[/C][C]304035[/C][C]288181.266666667[/C][C]15853.7333333333[/C][/ROW]
[ROW][C]23[/C][C]333476[/C][C]318022.066666667[/C][C]15453.9333333333[/C][/ROW]
[ROW][C]24[/C][C]337698[/C][C]324080.666666667[/C][C]13617.3333333333[/C][/ROW]
[ROW][C]25[/C][C]335932[/C][C]310693.531111111[/C][C]25238.468888889[/C][/ROW]
[ROW][C]26[/C][C]323931[/C][C]300924.531111111[/C][C]23006.4688888889[/C][/ROW]
[ROW][C]27[/C][C]313927[/C][C]291144.364444444[/C][C]22782.6355555555[/C][/ROW]
[ROW][C]28[/C][C]314485[/C][C]300422.337777778[/C][C]14062.6622222222[/C][/ROW]
[ROW][C]29[/C][C]313218[/C][C]300267.337777778[/C][C]12950.6622222222[/C][/ROW]
[ROW][C]30[/C][C]309664[/C][C]296434.937777778[/C][C]13229.0622222222[/C][/ROW]
[ROW][C]31[/C][C]302963[/C][C]290894.537777778[/C][C]12068.4622222222[/C][/ROW]
[ROW][C]32[/C][C]298989[/C][C]286389.137777778[/C][C]12599.8622222222[/C][/ROW]
[ROW][C]33[/C][C]298423[/C][C]281777.537777778[/C][C]16645.4622222222[/C][/ROW]
[ROW][C]34[/C][C]301631[/C][C]285419.537777778[/C][C]16211.4622222222[/C][/ROW]
[ROW][C]35[/C][C]329765[/C][C]315260.337777778[/C][C]14504.6622222222[/C][/ROW]
[ROW][C]36[/C][C]335083[/C][C]321318.937777778[/C][C]13764.0622222223[/C][/ROW]
[ROW][C]37[/C][C]327616[/C][C]307931.802222222[/C][C]19684.1977777779[/C][/ROW]
[ROW][C]38[/C][C]309119[/C][C]298162.802222222[/C][C]10956.1977777778[/C][/ROW]
[ROW][C]39[/C][C]295916[/C][C]288382.635555556[/C][C]7533.36444444446[/C][/ROW]
[ROW][C]40[/C][C]291413[/C][C]287887.264444444[/C][C]3525.73555555555[/C][/ROW]
[ROW][C]41[/C][C]291542[/C][C]287732.264444444[/C][C]3809.73555555555[/C][/ROW]
[ROW][C]42[/C][C]284678[/C][C]283899.864444444[/C][C]778.135555555549[/C][/ROW]
[ROW][C]43[/C][C]276475[/C][C]278359.464444444[/C][C]-1884.46444444445[/C][/ROW]
[ROW][C]44[/C][C]272566[/C][C]273854.064444444[/C][C]-1288.06444444445[/C][/ROW]
[ROW][C]45[/C][C]264981[/C][C]269242.464444444[/C][C]-4261.46444444446[/C][/ROW]
[ROW][C]46[/C][C]263290[/C][C]272884.464444444[/C][C]-9594.46444444446[/C][/ROW]
[ROW][C]47[/C][C]296806[/C][C]302725.264444444[/C][C]-5919.26444444445[/C][/ROW]
[ROW][C]48[/C][C]303598[/C][C]308783.864444444[/C][C]-5185.86444444445[/C][/ROW]
[ROW][C]49[/C][C]286994[/C][C]295396.728888889[/C][C]-8402.7288888888[/C][/ROW]
[ROW][C]50[/C][C]276427[/C][C]285627.728888889[/C][C]-9200.7288888889[/C][/ROW]
[ROW][C]51[/C][C]266424[/C][C]275847.562222222[/C][C]-9423.56222222223[/C][/ROW]
[ROW][C]52[/C][C]267153[/C][C]275352.191111111[/C][C]-8199.19111111114[/C][/ROW]
[ROW][C]53[/C][C]268381[/C][C]275197.191111111[/C][C]-6816.19111111114[/C][/ROW]
[ROW][C]54[/C][C]262522[/C][C]271364.791111111[/C][C]-8842.79111111115[/C][/ROW]
[ROW][C]55[/C][C]255542[/C][C]265824.391111111[/C][C]-10282.3911111111[/C][/ROW]
[ROW][C]56[/C][C]253158[/C][C]261318.991111111[/C][C]-8160.99111111115[/C][/ROW]
[ROW][C]57[/C][C]243803[/C][C]256707.391111111[/C][C]-12904.3911111111[/C][/ROW]
[ROW][C]58[/C][C]250741[/C][C]260349.391111111[/C][C]-9608.39111111115[/C][/ROW]
[ROW][C]59[/C][C]280445[/C][C]290190.191111111[/C][C]-9745.19111111115[/C][/ROW]
[ROW][C]60[/C][C]285257[/C][C]296248.791111111[/C][C]-10991.7911111111[/C][/ROW]
[ROW][C]61[/C][C]270976[/C][C]282861.655555555[/C][C]-11885.6555555555[/C][/ROW]
[ROW][C]62[/C][C]261076[/C][C]273092.655555556[/C][C]-12016.6555555556[/C][/ROW]
[ROW][C]63[/C][C]255603[/C][C]263312.488888889[/C][C]-7709.48888888892[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34219&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34219&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
1308347335763.677777778-27416.6777777783
2298427325994.677777778-27567.6777777777
3289231316214.511111111-26983.5111111111
4291975315719.14-23744.14
5294912315564.14-20652.1400000000
6293488311731.74-18243.7400000000
7290555306191.34-15636.34
8284736301685.94-16949.94
9281818297074.34-15256.3400000000
10287854300716.34-12862.3400000000
11316263330557.14-14294.1400000000
12325412336615.74-11203.7400000000
13326011323228.6044444442782.39555555569
14328282313459.60444444414822.3955555556
15317480303679.43777777813800.5622222222
16317539303184.06666666714354.9333333333
17313737303029.06666666710707.9333333333
18312276299196.66666666713079.3333333333
19309391293656.26666666715734.7333333333
20302950289150.86666666713799.1333333333
21300316284539.26666666715776.7333333333
22304035288181.26666666715853.7333333333
23333476318022.06666666715453.9333333333
24337698324080.66666666713617.3333333333
25335932310693.53111111125238.468888889
26323931300924.53111111123006.4688888889
27313927291144.36444444422782.6355555555
28314485300422.33777777814062.6622222222
29313218300267.33777777812950.6622222222
30309664296434.93777777813229.0622222222
31302963290894.53777777812068.4622222222
32298989286389.13777777812599.8622222222
33298423281777.53777777816645.4622222222
34301631285419.53777777816211.4622222222
35329765315260.33777777814504.6622222222
36335083321318.93777777813764.0622222223
37327616307931.80222222219684.1977777779
38309119298162.80222222210956.1977777778
39295916288382.6355555567533.36444444446
40291413287887.2644444443525.73555555555
41291542287732.2644444443809.73555555555
42284678283899.864444444778.135555555549
43276475278359.464444444-1884.46444444445
44272566273854.064444444-1288.06444444445
45264981269242.464444444-4261.46444444446
46263290272884.464444444-9594.46444444446
47296806302725.264444444-5919.26444444445
48303598308783.864444444-5185.86444444445
49286994295396.728888889-8402.7288888888
50276427285627.728888889-9200.7288888889
51266424275847.562222222-9423.56222222223
52267153275352.191111111-8199.19111111114
53268381275197.191111111-6816.19111111114
54262522271364.791111111-8842.79111111115
55255542265824.391111111-10282.3911111111
56253158261318.991111111-8160.99111111115
57243803256707.391111111-12904.3911111111
58250741260349.391111111-9608.39111111115
59280445290190.191111111-9745.19111111115
60285257296248.791111111-10991.7911111111
61270976282861.655555555-11885.6555555555
62261076273092.655555556-12016.6555555556
63255603263312.488888889-7709.48888888892







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.5284326739604220.9431346520791560.471567326039578
180.4544154314898830.9088308629797660.545584568510117
190.3578707758766470.7157415517532950.642129224123353
200.2992279116072420.5984558232144840.700772088392758
210.2271782239623440.4543564479246880.772821776037656
220.2010759869026170.4021519738052340.798924013097383
230.1665041413281050.3330082826562100.833495858671895
240.2688951855689650.5377903711379310.731104814431035
250.4211699549454750.8423399098909490.578830045054525
260.7420167806202590.5159664387594830.257983219379741
270.827710272943840.3445794541123190.172289727056159
280.7580417355024150.4839165289951690.241958264497585
290.6851715355436210.6296569289127580.314828464456379
300.5983850703530030.8032298592939940.401614929646997
310.5259958559548250.948008288090350.474004144045175
320.4323149928744520.8646299857489040.567685007125548
330.3979988627147290.7959977254294580.602001137285271
340.3972937632475070.7945875264950130.602706236752493
350.3561689560550090.7123379121100190.643831043944991
360.3288413253308280.6576826506616570.671158674669172
370.77689643148180.44620713703640.2231035685182
380.9725026070561260.05499478588774710.0274973929438735
390.9929440285838250.01411194283235010.00705597141617505
400.9986050431948670.002789913610265640.00139495680513282
410.9992142694606970.001571461078605600.000785730539302801
420.9993851653283120.001229669343375150.000614834671687576
430.9992515146143240.001496970771351880.00074848538567594
440.9982830348842050.003433930231590280.00171696511579514
450.998245202825490.003509594349018870.00175479717450944
460.9935293007232180.01294139855356330.00647069927678166

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.528432673960422 & 0.943134652079156 & 0.471567326039578 \tabularnewline
18 & 0.454415431489883 & 0.908830862979766 & 0.545584568510117 \tabularnewline
19 & 0.357870775876647 & 0.715741551753295 & 0.642129224123353 \tabularnewline
20 & 0.299227911607242 & 0.598455823214484 & 0.700772088392758 \tabularnewline
21 & 0.227178223962344 & 0.454356447924688 & 0.772821776037656 \tabularnewline
22 & 0.201075986902617 & 0.402151973805234 & 0.798924013097383 \tabularnewline
23 & 0.166504141328105 & 0.333008282656210 & 0.833495858671895 \tabularnewline
24 & 0.268895185568965 & 0.537790371137931 & 0.731104814431035 \tabularnewline
25 & 0.421169954945475 & 0.842339909890949 & 0.578830045054525 \tabularnewline
26 & 0.742016780620259 & 0.515966438759483 & 0.257983219379741 \tabularnewline
27 & 0.82771027294384 & 0.344579454112319 & 0.172289727056159 \tabularnewline
28 & 0.758041735502415 & 0.483916528995169 & 0.241958264497585 \tabularnewline
29 & 0.685171535543621 & 0.629656928912758 & 0.314828464456379 \tabularnewline
30 & 0.598385070353003 & 0.803229859293994 & 0.401614929646997 \tabularnewline
31 & 0.525995855954825 & 0.94800828809035 & 0.474004144045175 \tabularnewline
32 & 0.432314992874452 & 0.864629985748904 & 0.567685007125548 \tabularnewline
33 & 0.397998862714729 & 0.795997725429458 & 0.602001137285271 \tabularnewline
34 & 0.397293763247507 & 0.794587526495013 & 0.602706236752493 \tabularnewline
35 & 0.356168956055009 & 0.712337912110019 & 0.643831043944991 \tabularnewline
36 & 0.328841325330828 & 0.657682650661657 & 0.671158674669172 \tabularnewline
37 & 0.7768964314818 & 0.4462071370364 & 0.2231035685182 \tabularnewline
38 & 0.972502607056126 & 0.0549947858877471 & 0.0274973929438735 \tabularnewline
39 & 0.992944028583825 & 0.0141119428323501 & 0.00705597141617505 \tabularnewline
40 & 0.998605043194867 & 0.00278991361026564 & 0.00139495680513282 \tabularnewline
41 & 0.999214269460697 & 0.00157146107860560 & 0.000785730539302801 \tabularnewline
42 & 0.999385165328312 & 0.00122966934337515 & 0.000614834671687576 \tabularnewline
43 & 0.999251514614324 & 0.00149697077135188 & 0.00074848538567594 \tabularnewline
44 & 0.998283034884205 & 0.00343393023159028 & 0.00171696511579514 \tabularnewline
45 & 0.99824520282549 & 0.00350959434901887 & 0.00175479717450944 \tabularnewline
46 & 0.993529300723218 & 0.0129413985535633 & 0.00647069927678166 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34219&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.528432673960422[/C][C]0.943134652079156[/C][C]0.471567326039578[/C][/ROW]
[ROW][C]18[/C][C]0.454415431489883[/C][C]0.908830862979766[/C][C]0.545584568510117[/C][/ROW]
[ROW][C]19[/C][C]0.357870775876647[/C][C]0.715741551753295[/C][C]0.642129224123353[/C][/ROW]
[ROW][C]20[/C][C]0.299227911607242[/C][C]0.598455823214484[/C][C]0.700772088392758[/C][/ROW]
[ROW][C]21[/C][C]0.227178223962344[/C][C]0.454356447924688[/C][C]0.772821776037656[/C][/ROW]
[ROW][C]22[/C][C]0.201075986902617[/C][C]0.402151973805234[/C][C]0.798924013097383[/C][/ROW]
[ROW][C]23[/C][C]0.166504141328105[/C][C]0.333008282656210[/C][C]0.833495858671895[/C][/ROW]
[ROW][C]24[/C][C]0.268895185568965[/C][C]0.537790371137931[/C][C]0.731104814431035[/C][/ROW]
[ROW][C]25[/C][C]0.421169954945475[/C][C]0.842339909890949[/C][C]0.578830045054525[/C][/ROW]
[ROW][C]26[/C][C]0.742016780620259[/C][C]0.515966438759483[/C][C]0.257983219379741[/C][/ROW]
[ROW][C]27[/C][C]0.82771027294384[/C][C]0.344579454112319[/C][C]0.172289727056159[/C][/ROW]
[ROW][C]28[/C][C]0.758041735502415[/C][C]0.483916528995169[/C][C]0.241958264497585[/C][/ROW]
[ROW][C]29[/C][C]0.685171535543621[/C][C]0.629656928912758[/C][C]0.314828464456379[/C][/ROW]
[ROW][C]30[/C][C]0.598385070353003[/C][C]0.803229859293994[/C][C]0.401614929646997[/C][/ROW]
[ROW][C]31[/C][C]0.525995855954825[/C][C]0.94800828809035[/C][C]0.474004144045175[/C][/ROW]
[ROW][C]32[/C][C]0.432314992874452[/C][C]0.864629985748904[/C][C]0.567685007125548[/C][/ROW]
[ROW][C]33[/C][C]0.397998862714729[/C][C]0.795997725429458[/C][C]0.602001137285271[/C][/ROW]
[ROW][C]34[/C][C]0.397293763247507[/C][C]0.794587526495013[/C][C]0.602706236752493[/C][/ROW]
[ROW][C]35[/C][C]0.356168956055009[/C][C]0.712337912110019[/C][C]0.643831043944991[/C][/ROW]
[ROW][C]36[/C][C]0.328841325330828[/C][C]0.657682650661657[/C][C]0.671158674669172[/C][/ROW]
[ROW][C]37[/C][C]0.7768964314818[/C][C]0.4462071370364[/C][C]0.2231035685182[/C][/ROW]
[ROW][C]38[/C][C]0.972502607056126[/C][C]0.0549947858877471[/C][C]0.0274973929438735[/C][/ROW]
[ROW][C]39[/C][C]0.992944028583825[/C][C]0.0141119428323501[/C][C]0.00705597141617505[/C][/ROW]
[ROW][C]40[/C][C]0.998605043194867[/C][C]0.00278991361026564[/C][C]0.00139495680513282[/C][/ROW]
[ROW][C]41[/C][C]0.999214269460697[/C][C]0.00157146107860560[/C][C]0.000785730539302801[/C][/ROW]
[ROW][C]42[/C][C]0.999385165328312[/C][C]0.00122966934337515[/C][C]0.000614834671687576[/C][/ROW]
[ROW][C]43[/C][C]0.999251514614324[/C][C]0.00149697077135188[/C][C]0.00074848538567594[/C][/ROW]
[ROW][C]44[/C][C]0.998283034884205[/C][C]0.00343393023159028[/C][C]0.00171696511579514[/C][/ROW]
[ROW][C]45[/C][C]0.99824520282549[/C][C]0.00350959434901887[/C][C]0.00175479717450944[/C][/ROW]
[ROW][C]46[/C][C]0.993529300723218[/C][C]0.0129413985535633[/C][C]0.00647069927678166[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34219&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.5284326739604220.9431346520791560.471567326039578
180.4544154314898830.9088308629797660.545584568510117
190.3578707758766470.7157415517532950.642129224123353
200.2992279116072420.5984558232144840.700772088392758
210.2271782239623440.4543564479246880.772821776037656
220.2010759869026170.4021519738052340.798924013097383
230.1665041413281050.3330082826562100.833495858671895
240.2688951855689650.5377903711379310.731104814431035
250.4211699549454750.8423399098909490.578830045054525
260.7420167806202590.5159664387594830.257983219379741
270.827710272943840.3445794541123190.172289727056159
280.7580417355024150.4839165289951690.241958264497585
290.6851715355436210.6296569289127580.314828464456379
300.5983850703530030.8032298592939940.401614929646997
310.5259958559548250.948008288090350.474004144045175
320.4323149928744520.8646299857489040.567685007125548
330.3979988627147290.7959977254294580.602001137285271
340.3972937632475070.7945875264950130.602706236752493
350.3561689560550090.7123379121100190.643831043944991
360.3288413253308280.6576826506616570.671158674669172
370.77689643148180.44620713703640.2231035685182
380.9725026070561260.05499478588774710.0274973929438735
390.9929440285838250.01411194283235010.00705597141617505
400.9986050431948670.002789913610265640.00139495680513282
410.9992142694606970.001571461078605600.000785730539302801
420.9993851653283120.001229669343375150.000614834671687576
430.9992515146143240.001496970771351880.00074848538567594
440.9982830348842050.003433930231590280.00171696511579514
450.998245202825490.003509594349018870.00175479717450944
460.9935293007232180.01294139855356330.00647069927678166







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level60.2NOK
5% type I error level80.266666666666667NOK
10% type I error level90.3NOK

\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 & 6 & 0.2 & NOK \tabularnewline
5% type I error level & 8 & 0.266666666666667 & NOK \tabularnewline
10% type I error level & 9 & 0.3 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34219&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]6[/C][C]0.2[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]8[/C][C]0.266666666666667[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]9[/C][C]0.3[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34219&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34219&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 level60.2NOK
5% type I error level80.266666666666667NOK
10% type I error level90.3NOK



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