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 computationFri, 25 Dec 2009 12:25:37 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/25/t1261769202zh8k7znsmh6t1en.htm/, Retrieved Sat, 04 May 2024 16:24:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70728, Retrieved Sat, 04 May 2024 16:24:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact174
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [WS 6 Q3 G6 eigen ...] [2007-11-15 11:12:24] [22f18fc6a98517db16300404be421f9a]
- R  D  [Multiple Regression] [Multiple Regressi...] [2008-12-11 14:26:18] [7506b5e9e41ec66c6657f4234f97306e]
-         [Multiple Regression] [Multiple Regressi...] [2008-12-11 15:14:12] [7506b5e9e41ec66c6657f4234f97306e]
-           [Multiple Regression] [Multiple Regressi...] [2008-12-11 17:23:50] [7506b5e9e41ec66c6657f4234f97306e]
-  M D        [Multiple Regression] [box cox wlh] [2009-12-25 19:20:04] [bd8e774728cf1f2f4e6868fd314defe3]
-   P           [Multiple Regression] [lineair regressio...] [2009-12-25 19:23:01] [bd8e774728cf1f2f4e6868fd314defe3]
-   P               [Multiple Regression] [lin regr wlh dumm...] [2009-12-25 19:25:37] [a315839f8c359622c3a1e6ed387dd5cd] [Current]
Feedback Forum

Post a new message
Dataseries X:
612613	1
611324	1
594167	1
595454	1
590865	1
589379	1
584428	1
573100	1
567456	1
569028	1
620735	1
628884	1
628232	1
612117	1
595404	1
597141	1
593408	1
590072	1
579799	1
574205	1
572775	1
572942	1
619567	1
625809	1
619916	1
587625	0
565742	0
557274	0
560576	0
548854	0
531673	0
525919	0
511038	0
498662	0
555362	0
564591	0
541657	0
527070	0
509846	0
514258	0
516922	0
507561	0
492622	0
490243	0
469357	0
477580	0
528379	0
533590	0
517945	0
506174	0
501866	0
516141	0
528222	0
532638	0
536322	0
536535	0
523597	0
536214	0
586570	0
596594	0




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
wlh[t] = + 577655.916666666 + 57290.8333333334dummies[t] -20542.0875000001M1[t] -23997.8916666666M2[t] -39158.2625M3[t] -36213.0333333333M4[t] -33971.4041666667M5[t] -37972.5749999999M6[t] -46407.9458333334M7[t] -51079.7166666667M8[t] -61938.8875M9[t] -59601.6583333333M10[t] -8067.62916666667M11[t] -296.629166666666t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
wlh[t] =  +  577655.916666666 +  57290.8333333334dummies[t] -20542.0875000001M1[t] -23997.8916666666M2[t] -39158.2625M3[t] -36213.0333333333M4[t] -33971.4041666667M5[t] -37972.5749999999M6[t] -46407.9458333334M7[t] -51079.7166666667M8[t] -61938.8875M9[t] -59601.6583333333M10[t] -8067.62916666667M11[t] -296.629166666666t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70728&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]wlh[t] =  +  577655.916666666 +  57290.8333333334dummies[t] -20542.0875000001M1[t] -23997.8916666666M2[t] -39158.2625M3[t] -36213.0333333333M4[t] -33971.4041666667M5[t] -37972.5749999999M6[t] -46407.9458333334M7[t] -51079.7166666667M8[t] -61938.8875M9[t] -59601.6583333333M10[t] -8067.62916666667M11[t] -296.629166666666t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70728&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70728&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
wlh[t] = + 577655.916666666 + 57290.8333333334dummies[t] -20542.0875000001M1[t] -23997.8916666666M2[t] -39158.2625M3[t] -36213.0333333333M4[t] -33971.4041666667M5[t] -37972.5749999999M6[t] -46407.9458333334M7[t] -51079.7166666667M8[t] -61938.8875M9[t] -59601.6583333333M10[t] -8067.62916666667M11[t] -296.629166666666t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)577655.91666666617813.64167732.427700
dummies57290.833333333410881.4135285.2654e-062e-06
M1-20542.087500000113196.751749-1.55660.1264190.06321
M2-23997.891666666613430.209516-1.78690.0805510.040275
M3-39158.262513360.231258-2.9310.0052470.002624
M4-36213.033333333313297.306976-2.72330.0091020.004551
M5-33971.404166666713241.537234-2.56550.0136270.006813
M6-37972.574999999913193.012762-2.87820.0060480.003024
M7-46407.945833333413151.813757-3.52860.000960.00048
M8-51079.716666666713118.009239-3.89390.0003170.000159
M9-61938.887513091.656489-4.73122.2e-051.1e-05
M10-59601.658333333313072.800572-4.55923.8e-051.9e-05
M11-8067.6291666666713061.473956-0.61770.5398410.269921
t-296.629166666666314.119351-0.94430.349940.17497

\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) & 577655.916666666 & 17813.641677 & 32.4277 & 0 & 0 \tabularnewline
dummies & 57290.8333333334 & 10881.413528 & 5.265 & 4e-06 & 2e-06 \tabularnewline
M1 & -20542.0875000001 & 13196.751749 & -1.5566 & 0.126419 & 0.06321 \tabularnewline
M2 & -23997.8916666666 & 13430.209516 & -1.7869 & 0.080551 & 0.040275 \tabularnewline
M3 & -39158.2625 & 13360.231258 & -2.931 & 0.005247 & 0.002624 \tabularnewline
M4 & -36213.0333333333 & 13297.306976 & -2.7233 & 0.009102 & 0.004551 \tabularnewline
M5 & -33971.4041666667 & 13241.537234 & -2.5655 & 0.013627 & 0.006813 \tabularnewline
M6 & -37972.5749999999 & 13193.012762 & -2.8782 & 0.006048 & 0.003024 \tabularnewline
M7 & -46407.9458333334 & 13151.813757 & -3.5286 & 0.00096 & 0.00048 \tabularnewline
M8 & -51079.7166666667 & 13118.009239 & -3.8939 & 0.000317 & 0.000159 \tabularnewline
M9 & -61938.8875 & 13091.656489 & -4.7312 & 2.2e-05 & 1.1e-05 \tabularnewline
M10 & -59601.6583333333 & 13072.800572 & -4.5592 & 3.8e-05 & 1.9e-05 \tabularnewline
M11 & -8067.62916666667 & 13061.473956 & -0.6177 & 0.539841 & 0.269921 \tabularnewline
t & -296.629166666666 & 314.119351 & -0.9443 & 0.34994 & 0.17497 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70728&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]577655.916666666[/C][C]17813.641677[/C][C]32.4277[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]dummies[/C][C]57290.8333333334[/C][C]10881.413528[/C][C]5.265[/C][C]4e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M1[/C][C]-20542.0875000001[/C][C]13196.751749[/C][C]-1.5566[/C][C]0.126419[/C][C]0.06321[/C][/ROW]
[ROW][C]M2[/C][C]-23997.8916666666[/C][C]13430.209516[/C][C]-1.7869[/C][C]0.080551[/C][C]0.040275[/C][/ROW]
[ROW][C]M3[/C][C]-39158.2625[/C][C]13360.231258[/C][C]-2.931[/C][C]0.005247[/C][C]0.002624[/C][/ROW]
[ROW][C]M4[/C][C]-36213.0333333333[/C][C]13297.306976[/C][C]-2.7233[/C][C]0.009102[/C][C]0.004551[/C][/ROW]
[ROW][C]M5[/C][C]-33971.4041666667[/C][C]13241.537234[/C][C]-2.5655[/C][C]0.013627[/C][C]0.006813[/C][/ROW]
[ROW][C]M6[/C][C]-37972.5749999999[/C][C]13193.012762[/C][C]-2.8782[/C][C]0.006048[/C][C]0.003024[/C][/ROW]
[ROW][C]M7[/C][C]-46407.9458333334[/C][C]13151.813757[/C][C]-3.5286[/C][C]0.00096[/C][C]0.00048[/C][/ROW]
[ROW][C]M8[/C][C]-51079.7166666667[/C][C]13118.009239[/C][C]-3.8939[/C][C]0.000317[/C][C]0.000159[/C][/ROW]
[ROW][C]M9[/C][C]-61938.8875[/C][C]13091.656489[/C][C]-4.7312[/C][C]2.2e-05[/C][C]1.1e-05[/C][/ROW]
[ROW][C]M10[/C][C]-59601.6583333333[/C][C]13072.800572[/C][C]-4.5592[/C][C]3.8e-05[/C][C]1.9e-05[/C][/ROW]
[ROW][C]M11[/C][C]-8067.62916666667[/C][C]13061.473956[/C][C]-0.6177[/C][C]0.539841[/C][C]0.269921[/C][/ROW]
[ROW][C]t[/C][C]-296.629166666666[/C][C]314.119351[/C][C]-0.9443[/C][C]0.34994[/C][C]0.17497[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70728&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70728&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)577655.91666666617813.64167732.427700
dummies57290.833333333410881.4135285.2654e-062e-06
M1-20542.087500000113196.751749-1.55660.1264190.06321
M2-23997.891666666613430.209516-1.78690.0805510.040275
M3-39158.262513360.231258-2.9310.0052470.002624
M4-36213.033333333313297.306976-2.72330.0091020.004551
M5-33971.404166666713241.537234-2.56550.0136270.006813
M6-37972.574999999913193.012762-2.87820.0060480.003024
M7-46407.945833333413151.813757-3.52860.000960.00048
M8-51079.716666666713118.009239-3.89390.0003170.000159
M9-61938.887513091.656489-4.73122.2e-051.1e-05
M10-59601.658333333313072.800572-4.55923.8e-051.9e-05
M11-8067.6291666666713061.473956-0.61770.5398410.269921
t-296.629166666666314.119351-0.94430.349940.17497







Multiple Linear Regression - Regression Statistics
Multiple R0.902455534317694
R-squared0.814425991420635
Adjusted R-squared0.761981162909076
F-TEST (value)15.5291954332757
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.12287956710588e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation20646.0305467409
Sum Squared Residuals19607894557.5

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.902455534317694 \tabularnewline
R-squared & 0.814425991420635 \tabularnewline
Adjusted R-squared & 0.761981162909076 \tabularnewline
F-TEST (value) & 15.5291954332757 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.12287956710588e-12 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 20646.0305467409 \tabularnewline
Sum Squared Residuals & 19607894557.5 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70728&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.902455534317694[/C][/ROW]
[ROW][C]R-squared[/C][C]0.814425991420635[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.761981162909076[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]15.5291954332757[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]1.12287956710588e-12[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]20646.0305467409[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]19607894557.5[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70728&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70728&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.902455534317694
R-squared0.814425991420635
Adjusted R-squared0.761981162909076
F-TEST (value)15.5291954332757
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.12287956710588e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation20646.0305467409
Sum Squared Residuals19607894557.5







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1612613614108.033333334-1495.03333333374
2611324610355.6968.40000000007
3594167594898.6-731.59999999998
4595454597547.2-2093.19999999998
5590865599492.2-8627.19999999995
6589379595194.4-5815.39999999997
7584428586462.4-2034.39999999995
8573100581494-8394.00000000013
9567456570338.2-2882.19999999991
10569028572378.8-3350.79999999999
11620735623616.2-2881.19999999998
12628884631387.2-2503.19999999997
13628232610548.48333333317683.5166666668
14612117606796.055320.94999999996
15595404591339.054064.94999999999
16597141593987.653153.35000000001
17593408595932.65-2524.65000000001
18590072591634.85-1562.85000000000
19579799582902.85-3103.85
20574205577934.45-3729.44999999997
21572775566778.655996.34999999998
22572942568819.254122.74999999999
23619567620056.65-489.65
24625809627827.65-2018.65000000001
25619916606988.93333333312927.0666666668
26587625545945.66666666741679.3333333333
27565742530488.66666666735253.3333333333
28557274533137.26666666724136.7333333333
29560576535082.26666666725493.7333333333
30548854530784.46666666718069.5333333333
31531673522052.4666666679620.53333333333
32525919517084.0666666678834.93333333337
33511038505928.2666666675109.73333333333
34498662507968.866666667-9306.86666666665
35555362559206.266666667-3844.26666666665
36564591566977.266666667-2386.26666666667
37541657546138.55-4481.54999999989
38527070542386.116666667-15316.1166666667
39509846526929.116666667-17083.1166666667
40514258529577.716666667-15319.7166666667
41516922531522.716666667-14600.7166666667
42507561527224.916666667-19663.9166666667
43492622518492.916666667-25870.9166666667
44490243513524.516666667-23281.5166666666
45469357502368.716666667-33011.7166666667
46477580504409.316666667-26829.3166666667
47528379555646.716666667-27267.7166666667
48533590563417.716666667-29827.7166666667
49517945542579-24633.9999999999
50506174538826.566666667-32652.5666666667
51501866523369.566666667-21503.5666666667
52516141526018.166666667-9877.1666666667
53528222527963.166666667258.833333333305
54532638523665.3666666678972.6333333333
55536322514933.36666666721388.6333333333
56536535509964.96666666726570.0333333334
57523597498809.16666666724787.8333333333
58536214500849.76666666735364.2333333333
59586570552087.16666666734482.8333333333
60596594559858.16666666736735.8333333333

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 612613 & 614108.033333334 & -1495.03333333374 \tabularnewline
2 & 611324 & 610355.6 & 968.40000000007 \tabularnewline
3 & 594167 & 594898.6 & -731.59999999998 \tabularnewline
4 & 595454 & 597547.2 & -2093.19999999998 \tabularnewline
5 & 590865 & 599492.2 & -8627.19999999995 \tabularnewline
6 & 589379 & 595194.4 & -5815.39999999997 \tabularnewline
7 & 584428 & 586462.4 & -2034.39999999995 \tabularnewline
8 & 573100 & 581494 & -8394.00000000013 \tabularnewline
9 & 567456 & 570338.2 & -2882.19999999991 \tabularnewline
10 & 569028 & 572378.8 & -3350.79999999999 \tabularnewline
11 & 620735 & 623616.2 & -2881.19999999998 \tabularnewline
12 & 628884 & 631387.2 & -2503.19999999997 \tabularnewline
13 & 628232 & 610548.483333333 & 17683.5166666668 \tabularnewline
14 & 612117 & 606796.05 & 5320.94999999996 \tabularnewline
15 & 595404 & 591339.05 & 4064.94999999999 \tabularnewline
16 & 597141 & 593987.65 & 3153.35000000001 \tabularnewline
17 & 593408 & 595932.65 & -2524.65000000001 \tabularnewline
18 & 590072 & 591634.85 & -1562.85000000000 \tabularnewline
19 & 579799 & 582902.85 & -3103.85 \tabularnewline
20 & 574205 & 577934.45 & -3729.44999999997 \tabularnewline
21 & 572775 & 566778.65 & 5996.34999999998 \tabularnewline
22 & 572942 & 568819.25 & 4122.74999999999 \tabularnewline
23 & 619567 & 620056.65 & -489.65 \tabularnewline
24 & 625809 & 627827.65 & -2018.65000000001 \tabularnewline
25 & 619916 & 606988.933333333 & 12927.0666666668 \tabularnewline
26 & 587625 & 545945.666666667 & 41679.3333333333 \tabularnewline
27 & 565742 & 530488.666666667 & 35253.3333333333 \tabularnewline
28 & 557274 & 533137.266666667 & 24136.7333333333 \tabularnewline
29 & 560576 & 535082.266666667 & 25493.7333333333 \tabularnewline
30 & 548854 & 530784.466666667 & 18069.5333333333 \tabularnewline
31 & 531673 & 522052.466666667 & 9620.53333333333 \tabularnewline
32 & 525919 & 517084.066666667 & 8834.93333333337 \tabularnewline
33 & 511038 & 505928.266666667 & 5109.73333333333 \tabularnewline
34 & 498662 & 507968.866666667 & -9306.86666666665 \tabularnewline
35 & 555362 & 559206.266666667 & -3844.26666666665 \tabularnewline
36 & 564591 & 566977.266666667 & -2386.26666666667 \tabularnewline
37 & 541657 & 546138.55 & -4481.54999999989 \tabularnewline
38 & 527070 & 542386.116666667 & -15316.1166666667 \tabularnewline
39 & 509846 & 526929.116666667 & -17083.1166666667 \tabularnewline
40 & 514258 & 529577.716666667 & -15319.7166666667 \tabularnewline
41 & 516922 & 531522.716666667 & -14600.7166666667 \tabularnewline
42 & 507561 & 527224.916666667 & -19663.9166666667 \tabularnewline
43 & 492622 & 518492.916666667 & -25870.9166666667 \tabularnewline
44 & 490243 & 513524.516666667 & -23281.5166666666 \tabularnewline
45 & 469357 & 502368.716666667 & -33011.7166666667 \tabularnewline
46 & 477580 & 504409.316666667 & -26829.3166666667 \tabularnewline
47 & 528379 & 555646.716666667 & -27267.7166666667 \tabularnewline
48 & 533590 & 563417.716666667 & -29827.7166666667 \tabularnewline
49 & 517945 & 542579 & -24633.9999999999 \tabularnewline
50 & 506174 & 538826.566666667 & -32652.5666666667 \tabularnewline
51 & 501866 & 523369.566666667 & -21503.5666666667 \tabularnewline
52 & 516141 & 526018.166666667 & -9877.1666666667 \tabularnewline
53 & 528222 & 527963.166666667 & 258.833333333305 \tabularnewline
54 & 532638 & 523665.366666667 & 8972.6333333333 \tabularnewline
55 & 536322 & 514933.366666667 & 21388.6333333333 \tabularnewline
56 & 536535 & 509964.966666667 & 26570.0333333334 \tabularnewline
57 & 523597 & 498809.166666667 & 24787.8333333333 \tabularnewline
58 & 536214 & 500849.766666667 & 35364.2333333333 \tabularnewline
59 & 586570 & 552087.166666667 & 34482.8333333333 \tabularnewline
60 & 596594 & 559858.166666667 & 36735.8333333333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70728&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]612613[/C][C]614108.033333334[/C][C]-1495.03333333374[/C][/ROW]
[ROW][C]2[/C][C]611324[/C][C]610355.6[/C][C]968.40000000007[/C][/ROW]
[ROW][C]3[/C][C]594167[/C][C]594898.6[/C][C]-731.59999999998[/C][/ROW]
[ROW][C]4[/C][C]595454[/C][C]597547.2[/C][C]-2093.19999999998[/C][/ROW]
[ROW][C]5[/C][C]590865[/C][C]599492.2[/C][C]-8627.19999999995[/C][/ROW]
[ROW][C]6[/C][C]589379[/C][C]595194.4[/C][C]-5815.39999999997[/C][/ROW]
[ROW][C]7[/C][C]584428[/C][C]586462.4[/C][C]-2034.39999999995[/C][/ROW]
[ROW][C]8[/C][C]573100[/C][C]581494[/C][C]-8394.00000000013[/C][/ROW]
[ROW][C]9[/C][C]567456[/C][C]570338.2[/C][C]-2882.19999999991[/C][/ROW]
[ROW][C]10[/C][C]569028[/C][C]572378.8[/C][C]-3350.79999999999[/C][/ROW]
[ROW][C]11[/C][C]620735[/C][C]623616.2[/C][C]-2881.19999999998[/C][/ROW]
[ROW][C]12[/C][C]628884[/C][C]631387.2[/C][C]-2503.19999999997[/C][/ROW]
[ROW][C]13[/C][C]628232[/C][C]610548.483333333[/C][C]17683.5166666668[/C][/ROW]
[ROW][C]14[/C][C]612117[/C][C]606796.05[/C][C]5320.94999999996[/C][/ROW]
[ROW][C]15[/C][C]595404[/C][C]591339.05[/C][C]4064.94999999999[/C][/ROW]
[ROW][C]16[/C][C]597141[/C][C]593987.65[/C][C]3153.35000000001[/C][/ROW]
[ROW][C]17[/C][C]593408[/C][C]595932.65[/C][C]-2524.65000000001[/C][/ROW]
[ROW][C]18[/C][C]590072[/C][C]591634.85[/C][C]-1562.85000000000[/C][/ROW]
[ROW][C]19[/C][C]579799[/C][C]582902.85[/C][C]-3103.85[/C][/ROW]
[ROW][C]20[/C][C]574205[/C][C]577934.45[/C][C]-3729.44999999997[/C][/ROW]
[ROW][C]21[/C][C]572775[/C][C]566778.65[/C][C]5996.34999999998[/C][/ROW]
[ROW][C]22[/C][C]572942[/C][C]568819.25[/C][C]4122.74999999999[/C][/ROW]
[ROW][C]23[/C][C]619567[/C][C]620056.65[/C][C]-489.65[/C][/ROW]
[ROW][C]24[/C][C]625809[/C][C]627827.65[/C][C]-2018.65000000001[/C][/ROW]
[ROW][C]25[/C][C]619916[/C][C]606988.933333333[/C][C]12927.0666666668[/C][/ROW]
[ROW][C]26[/C][C]587625[/C][C]545945.666666667[/C][C]41679.3333333333[/C][/ROW]
[ROW][C]27[/C][C]565742[/C][C]530488.666666667[/C][C]35253.3333333333[/C][/ROW]
[ROW][C]28[/C][C]557274[/C][C]533137.266666667[/C][C]24136.7333333333[/C][/ROW]
[ROW][C]29[/C][C]560576[/C][C]535082.266666667[/C][C]25493.7333333333[/C][/ROW]
[ROW][C]30[/C][C]548854[/C][C]530784.466666667[/C][C]18069.5333333333[/C][/ROW]
[ROW][C]31[/C][C]531673[/C][C]522052.466666667[/C][C]9620.53333333333[/C][/ROW]
[ROW][C]32[/C][C]525919[/C][C]517084.066666667[/C][C]8834.93333333337[/C][/ROW]
[ROW][C]33[/C][C]511038[/C][C]505928.266666667[/C][C]5109.73333333333[/C][/ROW]
[ROW][C]34[/C][C]498662[/C][C]507968.866666667[/C][C]-9306.86666666665[/C][/ROW]
[ROW][C]35[/C][C]555362[/C][C]559206.266666667[/C][C]-3844.26666666665[/C][/ROW]
[ROW][C]36[/C][C]564591[/C][C]566977.266666667[/C][C]-2386.26666666667[/C][/ROW]
[ROW][C]37[/C][C]541657[/C][C]546138.55[/C][C]-4481.54999999989[/C][/ROW]
[ROW][C]38[/C][C]527070[/C][C]542386.116666667[/C][C]-15316.1166666667[/C][/ROW]
[ROW][C]39[/C][C]509846[/C][C]526929.116666667[/C][C]-17083.1166666667[/C][/ROW]
[ROW][C]40[/C][C]514258[/C][C]529577.716666667[/C][C]-15319.7166666667[/C][/ROW]
[ROW][C]41[/C][C]516922[/C][C]531522.716666667[/C][C]-14600.7166666667[/C][/ROW]
[ROW][C]42[/C][C]507561[/C][C]527224.916666667[/C][C]-19663.9166666667[/C][/ROW]
[ROW][C]43[/C][C]492622[/C][C]518492.916666667[/C][C]-25870.9166666667[/C][/ROW]
[ROW][C]44[/C][C]490243[/C][C]513524.516666667[/C][C]-23281.5166666666[/C][/ROW]
[ROW][C]45[/C][C]469357[/C][C]502368.716666667[/C][C]-33011.7166666667[/C][/ROW]
[ROW][C]46[/C][C]477580[/C][C]504409.316666667[/C][C]-26829.3166666667[/C][/ROW]
[ROW][C]47[/C][C]528379[/C][C]555646.716666667[/C][C]-27267.7166666667[/C][/ROW]
[ROW][C]48[/C][C]533590[/C][C]563417.716666667[/C][C]-29827.7166666667[/C][/ROW]
[ROW][C]49[/C][C]517945[/C][C]542579[/C][C]-24633.9999999999[/C][/ROW]
[ROW][C]50[/C][C]506174[/C][C]538826.566666667[/C][C]-32652.5666666667[/C][/ROW]
[ROW][C]51[/C][C]501866[/C][C]523369.566666667[/C][C]-21503.5666666667[/C][/ROW]
[ROW][C]52[/C][C]516141[/C][C]526018.166666667[/C][C]-9877.1666666667[/C][/ROW]
[ROW][C]53[/C][C]528222[/C][C]527963.166666667[/C][C]258.833333333305[/C][/ROW]
[ROW][C]54[/C][C]532638[/C][C]523665.366666667[/C][C]8972.6333333333[/C][/ROW]
[ROW][C]55[/C][C]536322[/C][C]514933.366666667[/C][C]21388.6333333333[/C][/ROW]
[ROW][C]56[/C][C]536535[/C][C]509964.966666667[/C][C]26570.0333333334[/C][/ROW]
[ROW][C]57[/C][C]523597[/C][C]498809.166666667[/C][C]24787.8333333333[/C][/ROW]
[ROW][C]58[/C][C]536214[/C][C]500849.766666667[/C][C]35364.2333333333[/C][/ROW]
[ROW][C]59[/C][C]586570[/C][C]552087.166666667[/C][C]34482.8333333333[/C][/ROW]
[ROW][C]60[/C][C]596594[/C][C]559858.166666667[/C][C]36735.8333333333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70728&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70728&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
1612613614108.033333334-1495.03333333374
2611324610355.6968.40000000007
3594167594898.6-731.59999999998
4595454597547.2-2093.19999999998
5590865599492.2-8627.19999999995
6589379595194.4-5815.39999999997
7584428586462.4-2034.39999999995
8573100581494-8394.00000000013
9567456570338.2-2882.19999999991
10569028572378.8-3350.79999999999
11620735623616.2-2881.19999999998
12628884631387.2-2503.19999999997
13628232610548.48333333317683.5166666668
14612117606796.055320.94999999996
15595404591339.054064.94999999999
16597141593987.653153.35000000001
17593408595932.65-2524.65000000001
18590072591634.85-1562.85000000000
19579799582902.85-3103.85
20574205577934.45-3729.44999999997
21572775566778.655996.34999999998
22572942568819.254122.74999999999
23619567620056.65-489.65
24625809627827.65-2018.65000000001
25619916606988.93333333312927.0666666668
26587625545945.66666666741679.3333333333
27565742530488.66666666735253.3333333333
28557274533137.26666666724136.7333333333
29560576535082.26666666725493.7333333333
30548854530784.46666666718069.5333333333
31531673522052.4666666679620.53333333333
32525919517084.0666666678834.93333333337
33511038505928.2666666675109.73333333333
34498662507968.866666667-9306.86666666665
35555362559206.266666667-3844.26666666665
36564591566977.266666667-2386.26666666667
37541657546138.55-4481.54999999989
38527070542386.116666667-15316.1166666667
39509846526929.116666667-17083.1166666667
40514258529577.716666667-15319.7166666667
41516922531522.716666667-14600.7166666667
42507561527224.916666667-19663.9166666667
43492622518492.916666667-25870.9166666667
44490243513524.516666667-23281.5166666666
45469357502368.716666667-33011.7166666667
46477580504409.316666667-26829.3166666667
47528379555646.716666667-27267.7166666667
48533590563417.716666667-29827.7166666667
49517945542579-24633.9999999999
50506174538826.566666667-32652.5666666667
51501866523369.566666667-21503.5666666667
52516141526018.166666667-9877.1666666667
53528222527963.166666667258.833333333305
54532638523665.3666666678972.6333333333
55536322514933.36666666721388.6333333333
56536535509964.96666666726570.0333333334
57523597498809.16666666724787.8333333333
58536214500849.76666666735364.2333333333
59586570552087.16666666734482.8333333333
60596594559858.16666666736735.8333333333







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.01134834276699740.02269668553399470.988651657233003
180.002082093844443600.004164187688887190.997917906155556
190.0006460479199445380.001292095839889080.999353952080055
200.0001045824340191310.0002091648680382630.99989541756598
211.66721288989463e-053.33442577978926e-050.999983327871101
222.27546858547463e-064.55093717094926e-060.999997724531414
233.72080303162505e-077.4416060632501e-070.999999627919697
248.11208056561786e-081.62241611312357e-070.999999918879194
251.22236894187856e-082.44473788375712e-080.99999998777631
263.77228028922556e-097.54456057845113e-090.99999999622772
271.71578426194748e-093.43156852389495e-090.999999998284216
285.11297931069475e-091.02259586213895e-080.99999999488702
291.76335439391028e-093.52670878782055e-090.999999998236646
302.75310143868448e-095.50620287736895e-090.999999997246899
313.37360729336774e-086.74721458673548e-080.999999966263927
324.50100086504512e-089.00200173009024e-080.999999954989991
337.30134014386348e-071.46026802877270e-060.999999269865986
342.20040296194333e-054.40080592388665e-050.99997799597038
354.44560452339164e-058.89120904678329e-050.999955543954766
368.16763000083316e-050.0001633526000166630.999918323699992
370.001647317764663570.003294635529327150.998352682235336
380.04526173335626130.09052346671252260.954738266643739
390.2075813751848090.4151627503696180.792418624815191
400.4648823489422370.9297646978844730.535117651057763
410.7735672838411480.4528654323177050.226432716158852
420.9499568055871680.1000863888256640.050043194412832
430.945144136259890.1097117274802180.0548558637401089

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0113483427669974 & 0.0226966855339947 & 0.988651657233003 \tabularnewline
18 & 0.00208209384444360 & 0.00416418768888719 & 0.997917906155556 \tabularnewline
19 & 0.000646047919944538 & 0.00129209583988908 & 0.999353952080055 \tabularnewline
20 & 0.000104582434019131 & 0.000209164868038263 & 0.99989541756598 \tabularnewline
21 & 1.66721288989463e-05 & 3.33442577978926e-05 & 0.999983327871101 \tabularnewline
22 & 2.27546858547463e-06 & 4.55093717094926e-06 & 0.999997724531414 \tabularnewline
23 & 3.72080303162505e-07 & 7.4416060632501e-07 & 0.999999627919697 \tabularnewline
24 & 8.11208056561786e-08 & 1.62241611312357e-07 & 0.999999918879194 \tabularnewline
25 & 1.22236894187856e-08 & 2.44473788375712e-08 & 0.99999998777631 \tabularnewline
26 & 3.77228028922556e-09 & 7.54456057845113e-09 & 0.99999999622772 \tabularnewline
27 & 1.71578426194748e-09 & 3.43156852389495e-09 & 0.999999998284216 \tabularnewline
28 & 5.11297931069475e-09 & 1.02259586213895e-08 & 0.99999999488702 \tabularnewline
29 & 1.76335439391028e-09 & 3.52670878782055e-09 & 0.999999998236646 \tabularnewline
30 & 2.75310143868448e-09 & 5.50620287736895e-09 & 0.999999997246899 \tabularnewline
31 & 3.37360729336774e-08 & 6.74721458673548e-08 & 0.999999966263927 \tabularnewline
32 & 4.50100086504512e-08 & 9.00200173009024e-08 & 0.999999954989991 \tabularnewline
33 & 7.30134014386348e-07 & 1.46026802877270e-06 & 0.999999269865986 \tabularnewline
34 & 2.20040296194333e-05 & 4.40080592388665e-05 & 0.99997799597038 \tabularnewline
35 & 4.44560452339164e-05 & 8.89120904678329e-05 & 0.999955543954766 \tabularnewline
36 & 8.16763000083316e-05 & 0.000163352600016663 & 0.999918323699992 \tabularnewline
37 & 0.00164731776466357 & 0.00329463552932715 & 0.998352682235336 \tabularnewline
38 & 0.0452617333562613 & 0.0905234667125226 & 0.954738266643739 \tabularnewline
39 & 0.207581375184809 & 0.415162750369618 & 0.792418624815191 \tabularnewline
40 & 0.464882348942237 & 0.929764697884473 & 0.535117651057763 \tabularnewline
41 & 0.773567283841148 & 0.452865432317705 & 0.226432716158852 \tabularnewline
42 & 0.949956805587168 & 0.100086388825664 & 0.050043194412832 \tabularnewline
43 & 0.94514413625989 & 0.109711727480218 & 0.0548558637401089 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70728&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.0113483427669974[/C][C]0.0226966855339947[/C][C]0.988651657233003[/C][/ROW]
[ROW][C]18[/C][C]0.00208209384444360[/C][C]0.00416418768888719[/C][C]0.997917906155556[/C][/ROW]
[ROW][C]19[/C][C]0.000646047919944538[/C][C]0.00129209583988908[/C][C]0.999353952080055[/C][/ROW]
[ROW][C]20[/C][C]0.000104582434019131[/C][C]0.000209164868038263[/C][C]0.99989541756598[/C][/ROW]
[ROW][C]21[/C][C]1.66721288989463e-05[/C][C]3.33442577978926e-05[/C][C]0.999983327871101[/C][/ROW]
[ROW][C]22[/C][C]2.27546858547463e-06[/C][C]4.55093717094926e-06[/C][C]0.999997724531414[/C][/ROW]
[ROW][C]23[/C][C]3.72080303162505e-07[/C][C]7.4416060632501e-07[/C][C]0.999999627919697[/C][/ROW]
[ROW][C]24[/C][C]8.11208056561786e-08[/C][C]1.62241611312357e-07[/C][C]0.999999918879194[/C][/ROW]
[ROW][C]25[/C][C]1.22236894187856e-08[/C][C]2.44473788375712e-08[/C][C]0.99999998777631[/C][/ROW]
[ROW][C]26[/C][C]3.77228028922556e-09[/C][C]7.54456057845113e-09[/C][C]0.99999999622772[/C][/ROW]
[ROW][C]27[/C][C]1.71578426194748e-09[/C][C]3.43156852389495e-09[/C][C]0.999999998284216[/C][/ROW]
[ROW][C]28[/C][C]5.11297931069475e-09[/C][C]1.02259586213895e-08[/C][C]0.99999999488702[/C][/ROW]
[ROW][C]29[/C][C]1.76335439391028e-09[/C][C]3.52670878782055e-09[/C][C]0.999999998236646[/C][/ROW]
[ROW][C]30[/C][C]2.75310143868448e-09[/C][C]5.50620287736895e-09[/C][C]0.999999997246899[/C][/ROW]
[ROW][C]31[/C][C]3.37360729336774e-08[/C][C]6.74721458673548e-08[/C][C]0.999999966263927[/C][/ROW]
[ROW][C]32[/C][C]4.50100086504512e-08[/C][C]9.00200173009024e-08[/C][C]0.999999954989991[/C][/ROW]
[ROW][C]33[/C][C]7.30134014386348e-07[/C][C]1.46026802877270e-06[/C][C]0.999999269865986[/C][/ROW]
[ROW][C]34[/C][C]2.20040296194333e-05[/C][C]4.40080592388665e-05[/C][C]0.99997799597038[/C][/ROW]
[ROW][C]35[/C][C]4.44560452339164e-05[/C][C]8.89120904678329e-05[/C][C]0.999955543954766[/C][/ROW]
[ROW][C]36[/C][C]8.16763000083316e-05[/C][C]0.000163352600016663[/C][C]0.999918323699992[/C][/ROW]
[ROW][C]37[/C][C]0.00164731776466357[/C][C]0.00329463552932715[/C][C]0.998352682235336[/C][/ROW]
[ROW][C]38[/C][C]0.0452617333562613[/C][C]0.0905234667125226[/C][C]0.954738266643739[/C][/ROW]
[ROW][C]39[/C][C]0.207581375184809[/C][C]0.415162750369618[/C][C]0.792418624815191[/C][/ROW]
[ROW][C]40[/C][C]0.464882348942237[/C][C]0.929764697884473[/C][C]0.535117651057763[/C][/ROW]
[ROW][C]41[/C][C]0.773567283841148[/C][C]0.452865432317705[/C][C]0.226432716158852[/C][/ROW]
[ROW][C]42[/C][C]0.949956805587168[/C][C]0.100086388825664[/C][C]0.050043194412832[/C][/ROW]
[ROW][C]43[/C][C]0.94514413625989[/C][C]0.109711727480218[/C][C]0.0548558637401089[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70728&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70728&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.01134834276699740.02269668553399470.988651657233003
180.002082093844443600.004164187688887190.997917906155556
190.0006460479199445380.001292095839889080.999353952080055
200.0001045824340191310.0002091648680382630.99989541756598
211.66721288989463e-053.33442577978926e-050.999983327871101
222.27546858547463e-064.55093717094926e-060.999997724531414
233.72080303162505e-077.4416060632501e-070.999999627919697
248.11208056561786e-081.62241611312357e-070.999999918879194
251.22236894187856e-082.44473788375712e-080.99999998777631
263.77228028922556e-097.54456057845113e-090.99999999622772
271.71578426194748e-093.43156852389495e-090.999999998284216
285.11297931069475e-091.02259586213895e-080.99999999488702
291.76335439391028e-093.52670878782055e-090.999999998236646
302.75310143868448e-095.50620287736895e-090.999999997246899
313.37360729336774e-086.74721458673548e-080.999999966263927
324.50100086504512e-089.00200173009024e-080.999999954989991
337.30134014386348e-071.46026802877270e-060.999999269865986
342.20040296194333e-054.40080592388665e-050.99997799597038
354.44560452339164e-058.89120904678329e-050.999955543954766
368.16763000083316e-050.0001633526000166630.999918323699992
370.001647317764663570.003294635529327150.998352682235336
380.04526173335626130.09052346671252260.954738266643739
390.2075813751848090.4151627503696180.792418624815191
400.4648823489422370.9297646978844730.535117651057763
410.7735672838411480.4528654323177050.226432716158852
420.9499568055871680.1000863888256640.050043194412832
430.945144136259890.1097117274802180.0548558637401089







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level200.740740740740741NOK
5% type I error level210.777777777777778NOK
10% type I error level220.814814814814815NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70728&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 level200.740740740740741NOK
5% type I error level210.777777777777778NOK
10% type I error level220.814814814814815NOK



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