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 computationSat, 26 Dec 2009 08:32:18 -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/26/t1261841600x0ddgcui38guuap.htm/, Retrieved Sun, 28 Apr 2024 21:17:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70757, Retrieved Sun, 28 Apr 2024 21:17:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact242
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Multiple lin regr...] [2009-12-26 15:11:25] [005293453b571dbccb80b45226e44173]
-       [Multiple Regression] [multi lin regr me...] [2009-12-26 15:21:11] [005293453b571dbccb80b45226e44173]
-   P     [Multiple Regression] [multiple lin regr...] [2009-12-26 15:27:58] [005293453b571dbccb80b45226e44173]
-   P         [Multiple Regression] [multiple lin regr...] [2009-12-26 15:32:18] [b02b8a83db8a631da1ab9c106b4cdcf2] [Current]
-   P           [Multiple Regression] [Inschrijvingen en...] [2009-12-30 11:46:58] [005293453b571dbccb80b45226e44173]
Feedback Forum

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




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

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







Multiple Linear Regression - Estimated Regression Equation
wlh[t] = + 632253.383333333 -66268.7222222223dummies[t] -19868.7458333334M1[t] -35007.1638888889M2[t] -50391.9819444444M3[t] -47671.2M4[t] -32400.2736111111M5[t] -36625.8916666666M6[t] -45285.7097222222M7[t] -50181.9277777778M8[t] -61265.5458333334M9[t] -59152.7638888889M10[t] -7843.18194444445M11[t] -72.1819444444439t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
wlh[t] =  +  632253.383333333 -66268.7222222223dummies[t] -19868.7458333334M1[t] -35007.1638888889M2[t] -50391.9819444444M3[t] -47671.2M4[t] -32400.2736111111M5[t] -36625.8916666666M6[t] -45285.7097222222M7[t] -50181.9277777778M8[t] -61265.5458333334M9[t] -59152.7638888889M10[t] -7843.18194444445M11[t] -72.1819444444439t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70757&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]wlh[t] =  +  632253.383333333 -66268.7222222223dummies[t] -19868.7458333334M1[t] -35007.1638888889M2[t] -50391.9819444444M3[t] -47671.2M4[t] -32400.2736111111M5[t] -36625.8916666666M6[t] -45285.7097222222M7[t] -50181.9277777778M8[t] -61265.5458333334M9[t] -59152.7638888889M10[t] -7843.18194444445M11[t] -72.1819444444439t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70757&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70757&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] = + 632253.383333333 -66268.7222222223dummies[t] -19868.7458333334M1[t] -35007.1638888889M2[t] -50391.9819444444M3[t] -47671.2M4[t] -32400.2736111111M5[t] -36625.8916666666M6[t] -45285.7097222222M7[t] -50181.9277777778M8[t] -61265.5458333334M9[t] -59152.7638888889M10[t] -7843.18194444445M11[t] -72.1819444444439t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)632253.38333333310091.2360762.653700
dummies-66268.72222222239710.296436-6.824600
M1-19868.745833333411776.445325-1.68720.0983440.049172
M2-35007.163888888911746.38202-2.98030.004590.002295
M3-50391.981944444411722.946148-4.29868.8e-054.4e-05
M4-47671.211706.177514-4.07230.0001829.1e-05
M5-32400.273611111111816.410752-2.7420.0086710.004336
M6-36625.891666666611773.108748-3.1110.0031990.0016
M7-45285.709722222211736.343805-3.85860.0003540.000177
M8-50181.927777777811706.177514-4.28689.2e-054.6e-05
M9-61265.545833333411682.660991-5.24414e-062e-06
M10-59152.763888888911665.83445-5.07067e-063e-06
M11-7843.1819444444511655.726866-0.67290.5043750.252188
t-72.1819444444439280.312113-0.25750.7979370.398968

\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) & 632253.383333333 & 10091.23607 & 62.6537 & 0 & 0 \tabularnewline
dummies & -66268.7222222223 & 9710.296436 & -6.8246 & 0 & 0 \tabularnewline
M1 & -19868.7458333334 & 11776.445325 & -1.6872 & 0.098344 & 0.049172 \tabularnewline
M2 & -35007.1638888889 & 11746.38202 & -2.9803 & 0.00459 & 0.002295 \tabularnewline
M3 & -50391.9819444444 & 11722.946148 & -4.2986 & 8.8e-05 & 4.4e-05 \tabularnewline
M4 & -47671.2 & 11706.177514 & -4.0723 & 0.000182 & 9.1e-05 \tabularnewline
M5 & -32400.2736111111 & 11816.410752 & -2.742 & 0.008671 & 0.004336 \tabularnewline
M6 & -36625.8916666666 & 11773.108748 & -3.111 & 0.003199 & 0.0016 \tabularnewline
M7 & -45285.7097222222 & 11736.343805 & -3.8586 & 0.000354 & 0.000177 \tabularnewline
M8 & -50181.9277777778 & 11706.177514 & -4.2868 & 9.2e-05 & 4.6e-05 \tabularnewline
M9 & -61265.5458333334 & 11682.660991 & -5.2441 & 4e-06 & 2e-06 \tabularnewline
M10 & -59152.7638888889 & 11665.83445 & -5.0706 & 7e-06 & 3e-06 \tabularnewline
M11 & -7843.18194444445 & 11655.726866 & -0.6729 & 0.504375 & 0.252188 \tabularnewline
t & -72.1819444444439 & 280.312113 & -0.2575 & 0.797937 & 0.398968 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70757&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]632253.383333333[/C][C]10091.23607[/C][C]62.6537[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]dummies[/C][C]-66268.7222222223[/C][C]9710.296436[/C][C]-6.8246[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-19868.7458333334[/C][C]11776.445325[/C][C]-1.6872[/C][C]0.098344[/C][C]0.049172[/C][/ROW]
[ROW][C]M2[/C][C]-35007.1638888889[/C][C]11746.38202[/C][C]-2.9803[/C][C]0.00459[/C][C]0.002295[/C][/ROW]
[ROW][C]M3[/C][C]-50391.9819444444[/C][C]11722.946148[/C][C]-4.2986[/C][C]8.8e-05[/C][C]4.4e-05[/C][/ROW]
[ROW][C]M4[/C][C]-47671.2[/C][C]11706.177514[/C][C]-4.0723[/C][C]0.000182[/C][C]9.1e-05[/C][/ROW]
[ROW][C]M5[/C][C]-32400.2736111111[/C][C]11816.410752[/C][C]-2.742[/C][C]0.008671[/C][C]0.004336[/C][/ROW]
[ROW][C]M6[/C][C]-36625.8916666666[/C][C]11773.108748[/C][C]-3.111[/C][C]0.003199[/C][C]0.0016[/C][/ROW]
[ROW][C]M7[/C][C]-45285.7097222222[/C][C]11736.343805[/C][C]-3.8586[/C][C]0.000354[/C][C]0.000177[/C][/ROW]
[ROW][C]M8[/C][C]-50181.9277777778[/C][C]11706.177514[/C][C]-4.2868[/C][C]9.2e-05[/C][C]4.6e-05[/C][/ROW]
[ROW][C]M9[/C][C]-61265.5458333334[/C][C]11682.660991[/C][C]-5.2441[/C][C]4e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M10[/C][C]-59152.7638888889[/C][C]11665.83445[/C][C]-5.0706[/C][C]7e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M11[/C][C]-7843.18194444445[/C][C]11655.726866[/C][C]-0.6729[/C][C]0.504375[/C][C]0.252188[/C][/ROW]
[ROW][C]t[/C][C]-72.1819444444439[/C][C]280.312113[/C][C]-0.2575[/C][C]0.797937[/C][C]0.398968[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70757&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70757&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)632253.38333333310091.2360762.653700
dummies-66268.72222222239710.296436-6.824600
M1-19868.745833333411776.445325-1.68720.0983440.049172
M2-35007.163888888911746.38202-2.98030.004590.002295
M3-50391.981944444411722.946148-4.29868.8e-054.4e-05
M4-47671.211706.177514-4.07230.0001829.1e-05
M5-32400.273611111111816.410752-2.7420.0086710.004336
M6-36625.891666666611773.108748-3.1110.0031990.0016
M7-45285.709722222211736.343805-3.85860.0003540.000177
M8-50181.927777777811706.177514-4.28689.2e-054.6e-05
M9-61265.545833333411682.660991-5.24414e-062e-06
M10-59152.763888888911665.83445-5.07067e-063e-06
M11-7843.1819444444511655.726866-0.67290.5043750.252188
t-72.1819444444439280.312113-0.25750.7979370.398968







Multiple Linear Regression - Regression Statistics
Multiple R0.92315839266087
R-squared0.852221417940203
Adjusted R-squared0.810457905618956
F-TEST (value)20.4058847202523
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value7.54951656745106e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation18423.9920956829
Sum Squared Residuals15614400298.1222

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.92315839266087 \tabularnewline
R-squared & 0.852221417940203 \tabularnewline
Adjusted R-squared & 0.810457905618956 \tabularnewline
F-TEST (value) & 20.4058847202523 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 7.54951656745106e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 18423.9920956829 \tabularnewline
Sum Squared Residuals & 15614400298.1222 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70757&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.92315839266087[/C][/ROW]
[ROW][C]R-squared[/C][C]0.852221417940203[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.810457905618956[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]20.4058847202523[/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]7.54951656745106e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]18423.9920956829[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]15614400298.1222[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70757&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70757&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.92315839266087
R-squared0.852221417940203
Adjusted R-squared0.810457905618956
F-TEST (value)20.4058847202523
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value7.54951656745106e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation18423.9920956829
Sum Squared Residuals15614400298.1222







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1612613612312.455555556300.54444444418
2611324597101.85555555514222.1444444445
3594167581644.85555555612522.1444444445
4595454584293.45555555611160.5444444445
5590865599492.2-8627.19999999999
6589379595194.4-5815.39999999994
7584428586462.4-2034.39999999998
8573100581494-8394.00000000005
9567456570338.2-2882.20000000009
10569028572378.8-3350.8
11620735623616.2-2881.19999999996
12628884631387.2-2503.19999999997
13628232611446.27222222216785.7277777779
14612117596235.67222222215881.3277777777
15595404580778.67222222214625.3277777778
16597141583427.27222222213713.7277777778
17593408598626.016666667-5218.01666666666
18590072594328.216666667-4256.21666666667
19579799585596.216666667-5797.21666666668
20574205580627.816666667-6422.81666666666
21572775569472.0166666673302.98333333335
22572942571512.6166666671429.38333333333
23619567622750.016666667-3183.01666666667
24625809630521.016666667-4712.01666666667
25619916610580.0888888899335.91111111118
26587625595369.488888889-7744.48888888891
27565742579912.488888889-14170.4888888889
28557274582561.088888889-25287.0888888889
29560576531491.11111111129084.8888888889
30548854527193.31111111121660.6888888889
31531673518461.31111111113211.6888888889
32525919513492.91111111112426.0888888889
33511038502337.1111111118700.88888888892
34498662504377.711111111-5715.7111111111
35555362555615.111111111-253.111111111112
36564591563386.1111111111204.88888888888
37541657543445.183333333-1788.18333333327
38527070528234.583333333-1164.58333333335
39509846512777.583333333-2931.58333333334
40514258515426.183333333-1168.18333333335
41516922530624.927777778-13702.9277777778
42507561526327.127777778-18766.1277777778
43492622517595.127777778-24973.1277777778
44490243512626.727777778-22383.7277777778
45469357501470.927777778-32113.9277777778
46477580503511.527777778-25931.5277777778
47528379554748.927777778-26369.9277777778
48533590562519.927777778-28929.9277777778
49517945542579-24633.9999999999
50506174527368.4-21194.4
51501866511911.4-10045.4000000000
525161415145601580.99999999997
53528222529758.744444444-1536.74444444445
54532638525460.9444444447177.05555555553
55536322516728.94444444419593.0555555555
56536535511760.54444444424774.4555555556
57523597500604.74444444422992.2555555556
58536214502645.34444444433568.6555555556
59586570553882.74444444432687.2555555555
60596594561653.74444444434940.2555555555

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 612613 & 612312.455555556 & 300.54444444418 \tabularnewline
2 & 611324 & 597101.855555555 & 14222.1444444445 \tabularnewline
3 & 594167 & 581644.855555556 & 12522.1444444445 \tabularnewline
4 & 595454 & 584293.455555556 & 11160.5444444445 \tabularnewline
5 & 590865 & 599492.2 & -8627.19999999999 \tabularnewline
6 & 589379 & 595194.4 & -5815.39999999994 \tabularnewline
7 & 584428 & 586462.4 & -2034.39999999998 \tabularnewline
8 & 573100 & 581494 & -8394.00000000005 \tabularnewline
9 & 567456 & 570338.2 & -2882.20000000009 \tabularnewline
10 & 569028 & 572378.8 & -3350.8 \tabularnewline
11 & 620735 & 623616.2 & -2881.19999999996 \tabularnewline
12 & 628884 & 631387.2 & -2503.19999999997 \tabularnewline
13 & 628232 & 611446.272222222 & 16785.7277777779 \tabularnewline
14 & 612117 & 596235.672222222 & 15881.3277777777 \tabularnewline
15 & 595404 & 580778.672222222 & 14625.3277777778 \tabularnewline
16 & 597141 & 583427.272222222 & 13713.7277777778 \tabularnewline
17 & 593408 & 598626.016666667 & -5218.01666666666 \tabularnewline
18 & 590072 & 594328.216666667 & -4256.21666666667 \tabularnewline
19 & 579799 & 585596.216666667 & -5797.21666666668 \tabularnewline
20 & 574205 & 580627.816666667 & -6422.81666666666 \tabularnewline
21 & 572775 & 569472.016666667 & 3302.98333333335 \tabularnewline
22 & 572942 & 571512.616666667 & 1429.38333333333 \tabularnewline
23 & 619567 & 622750.016666667 & -3183.01666666667 \tabularnewline
24 & 625809 & 630521.016666667 & -4712.01666666667 \tabularnewline
25 & 619916 & 610580.088888889 & 9335.91111111118 \tabularnewline
26 & 587625 & 595369.488888889 & -7744.48888888891 \tabularnewline
27 & 565742 & 579912.488888889 & -14170.4888888889 \tabularnewline
28 & 557274 & 582561.088888889 & -25287.0888888889 \tabularnewline
29 & 560576 & 531491.111111111 & 29084.8888888889 \tabularnewline
30 & 548854 & 527193.311111111 & 21660.6888888889 \tabularnewline
31 & 531673 & 518461.311111111 & 13211.6888888889 \tabularnewline
32 & 525919 & 513492.911111111 & 12426.0888888889 \tabularnewline
33 & 511038 & 502337.111111111 & 8700.88888888892 \tabularnewline
34 & 498662 & 504377.711111111 & -5715.7111111111 \tabularnewline
35 & 555362 & 555615.111111111 & -253.111111111112 \tabularnewline
36 & 564591 & 563386.111111111 & 1204.88888888888 \tabularnewline
37 & 541657 & 543445.183333333 & -1788.18333333327 \tabularnewline
38 & 527070 & 528234.583333333 & -1164.58333333335 \tabularnewline
39 & 509846 & 512777.583333333 & -2931.58333333334 \tabularnewline
40 & 514258 & 515426.183333333 & -1168.18333333335 \tabularnewline
41 & 516922 & 530624.927777778 & -13702.9277777778 \tabularnewline
42 & 507561 & 526327.127777778 & -18766.1277777778 \tabularnewline
43 & 492622 & 517595.127777778 & -24973.1277777778 \tabularnewline
44 & 490243 & 512626.727777778 & -22383.7277777778 \tabularnewline
45 & 469357 & 501470.927777778 & -32113.9277777778 \tabularnewline
46 & 477580 & 503511.527777778 & -25931.5277777778 \tabularnewline
47 & 528379 & 554748.927777778 & -26369.9277777778 \tabularnewline
48 & 533590 & 562519.927777778 & -28929.9277777778 \tabularnewline
49 & 517945 & 542579 & -24633.9999999999 \tabularnewline
50 & 506174 & 527368.4 & -21194.4 \tabularnewline
51 & 501866 & 511911.4 & -10045.4000000000 \tabularnewline
52 & 516141 & 514560 & 1580.99999999997 \tabularnewline
53 & 528222 & 529758.744444444 & -1536.74444444445 \tabularnewline
54 & 532638 & 525460.944444444 & 7177.05555555553 \tabularnewline
55 & 536322 & 516728.944444444 & 19593.0555555555 \tabularnewline
56 & 536535 & 511760.544444444 & 24774.4555555556 \tabularnewline
57 & 523597 & 500604.744444444 & 22992.2555555556 \tabularnewline
58 & 536214 & 502645.344444444 & 33568.6555555556 \tabularnewline
59 & 586570 & 553882.744444444 & 32687.2555555555 \tabularnewline
60 & 596594 & 561653.744444444 & 34940.2555555555 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70757&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]612312.455555556[/C][C]300.54444444418[/C][/ROW]
[ROW][C]2[/C][C]611324[/C][C]597101.855555555[/C][C]14222.1444444445[/C][/ROW]
[ROW][C]3[/C][C]594167[/C][C]581644.855555556[/C][C]12522.1444444445[/C][/ROW]
[ROW][C]4[/C][C]595454[/C][C]584293.455555556[/C][C]11160.5444444445[/C][/ROW]
[ROW][C]5[/C][C]590865[/C][C]599492.2[/C][C]-8627.19999999999[/C][/ROW]
[ROW][C]6[/C][C]589379[/C][C]595194.4[/C][C]-5815.39999999994[/C][/ROW]
[ROW][C]7[/C][C]584428[/C][C]586462.4[/C][C]-2034.39999999998[/C][/ROW]
[ROW][C]8[/C][C]573100[/C][C]581494[/C][C]-8394.00000000005[/C][/ROW]
[ROW][C]9[/C][C]567456[/C][C]570338.2[/C][C]-2882.20000000009[/C][/ROW]
[ROW][C]10[/C][C]569028[/C][C]572378.8[/C][C]-3350.8[/C][/ROW]
[ROW][C]11[/C][C]620735[/C][C]623616.2[/C][C]-2881.19999999996[/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]611446.272222222[/C][C]16785.7277777779[/C][/ROW]
[ROW][C]14[/C][C]612117[/C][C]596235.672222222[/C][C]15881.3277777777[/C][/ROW]
[ROW][C]15[/C][C]595404[/C][C]580778.672222222[/C][C]14625.3277777778[/C][/ROW]
[ROW][C]16[/C][C]597141[/C][C]583427.272222222[/C][C]13713.7277777778[/C][/ROW]
[ROW][C]17[/C][C]593408[/C][C]598626.016666667[/C][C]-5218.01666666666[/C][/ROW]
[ROW][C]18[/C][C]590072[/C][C]594328.216666667[/C][C]-4256.21666666667[/C][/ROW]
[ROW][C]19[/C][C]579799[/C][C]585596.216666667[/C][C]-5797.21666666668[/C][/ROW]
[ROW][C]20[/C][C]574205[/C][C]580627.816666667[/C][C]-6422.81666666666[/C][/ROW]
[ROW][C]21[/C][C]572775[/C][C]569472.016666667[/C][C]3302.98333333335[/C][/ROW]
[ROW][C]22[/C][C]572942[/C][C]571512.616666667[/C][C]1429.38333333333[/C][/ROW]
[ROW][C]23[/C][C]619567[/C][C]622750.016666667[/C][C]-3183.01666666667[/C][/ROW]
[ROW][C]24[/C][C]625809[/C][C]630521.016666667[/C][C]-4712.01666666667[/C][/ROW]
[ROW][C]25[/C][C]619916[/C][C]610580.088888889[/C][C]9335.91111111118[/C][/ROW]
[ROW][C]26[/C][C]587625[/C][C]595369.488888889[/C][C]-7744.48888888891[/C][/ROW]
[ROW][C]27[/C][C]565742[/C][C]579912.488888889[/C][C]-14170.4888888889[/C][/ROW]
[ROW][C]28[/C][C]557274[/C][C]582561.088888889[/C][C]-25287.0888888889[/C][/ROW]
[ROW][C]29[/C][C]560576[/C][C]531491.111111111[/C][C]29084.8888888889[/C][/ROW]
[ROW][C]30[/C][C]548854[/C][C]527193.311111111[/C][C]21660.6888888889[/C][/ROW]
[ROW][C]31[/C][C]531673[/C][C]518461.311111111[/C][C]13211.6888888889[/C][/ROW]
[ROW][C]32[/C][C]525919[/C][C]513492.911111111[/C][C]12426.0888888889[/C][/ROW]
[ROW][C]33[/C][C]511038[/C][C]502337.111111111[/C][C]8700.88888888892[/C][/ROW]
[ROW][C]34[/C][C]498662[/C][C]504377.711111111[/C][C]-5715.7111111111[/C][/ROW]
[ROW][C]35[/C][C]555362[/C][C]555615.111111111[/C][C]-253.111111111112[/C][/ROW]
[ROW][C]36[/C][C]564591[/C][C]563386.111111111[/C][C]1204.88888888888[/C][/ROW]
[ROW][C]37[/C][C]541657[/C][C]543445.183333333[/C][C]-1788.18333333327[/C][/ROW]
[ROW][C]38[/C][C]527070[/C][C]528234.583333333[/C][C]-1164.58333333335[/C][/ROW]
[ROW][C]39[/C][C]509846[/C][C]512777.583333333[/C][C]-2931.58333333334[/C][/ROW]
[ROW][C]40[/C][C]514258[/C][C]515426.183333333[/C][C]-1168.18333333335[/C][/ROW]
[ROW][C]41[/C][C]516922[/C][C]530624.927777778[/C][C]-13702.9277777778[/C][/ROW]
[ROW][C]42[/C][C]507561[/C][C]526327.127777778[/C][C]-18766.1277777778[/C][/ROW]
[ROW][C]43[/C][C]492622[/C][C]517595.127777778[/C][C]-24973.1277777778[/C][/ROW]
[ROW][C]44[/C][C]490243[/C][C]512626.727777778[/C][C]-22383.7277777778[/C][/ROW]
[ROW][C]45[/C][C]469357[/C][C]501470.927777778[/C][C]-32113.9277777778[/C][/ROW]
[ROW][C]46[/C][C]477580[/C][C]503511.527777778[/C][C]-25931.5277777778[/C][/ROW]
[ROW][C]47[/C][C]528379[/C][C]554748.927777778[/C][C]-26369.9277777778[/C][/ROW]
[ROW][C]48[/C][C]533590[/C][C]562519.927777778[/C][C]-28929.9277777778[/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]527368.4[/C][C]-21194.4[/C][/ROW]
[ROW][C]51[/C][C]501866[/C][C]511911.4[/C][C]-10045.4000000000[/C][/ROW]
[ROW][C]52[/C][C]516141[/C][C]514560[/C][C]1580.99999999997[/C][/ROW]
[ROW][C]53[/C][C]528222[/C][C]529758.744444444[/C][C]-1536.74444444445[/C][/ROW]
[ROW][C]54[/C][C]532638[/C][C]525460.944444444[/C][C]7177.05555555553[/C][/ROW]
[ROW][C]55[/C][C]536322[/C][C]516728.944444444[/C][C]19593.0555555555[/C][/ROW]
[ROW][C]56[/C][C]536535[/C][C]511760.544444444[/C][C]24774.4555555556[/C][/ROW]
[ROW][C]57[/C][C]523597[/C][C]500604.744444444[/C][C]22992.2555555556[/C][/ROW]
[ROW][C]58[/C][C]536214[/C][C]502645.344444444[/C][C]33568.6555555556[/C][/ROW]
[ROW][C]59[/C][C]586570[/C][C]553882.744444444[/C][C]32687.2555555555[/C][/ROW]
[ROW][C]60[/C][C]596594[/C][C]561653.744444444[/C][C]34940.2555555555[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70757&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70757&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
1612613612312.455555556300.54444444418
2611324597101.85555555514222.1444444445
3594167581644.85555555612522.1444444445
4595454584293.45555555611160.5444444445
5590865599492.2-8627.19999999999
6589379595194.4-5815.39999999994
7584428586462.4-2034.39999999998
8573100581494-8394.00000000005
9567456570338.2-2882.20000000009
10569028572378.8-3350.8
11620735623616.2-2881.19999999996
12628884631387.2-2503.19999999997
13628232611446.27222222216785.7277777779
14612117596235.67222222215881.3277777777
15595404580778.67222222214625.3277777778
16597141583427.27222222213713.7277777778
17593408598626.016666667-5218.01666666666
18590072594328.216666667-4256.21666666667
19579799585596.216666667-5797.21666666668
20574205580627.816666667-6422.81666666666
21572775569472.0166666673302.98333333335
22572942571512.6166666671429.38333333333
23619567622750.016666667-3183.01666666667
24625809630521.016666667-4712.01666666667
25619916610580.0888888899335.91111111118
26587625595369.488888889-7744.48888888891
27565742579912.488888889-14170.4888888889
28557274582561.088888889-25287.0888888889
29560576531491.11111111129084.8888888889
30548854527193.31111111121660.6888888889
31531673518461.31111111113211.6888888889
32525919513492.91111111112426.0888888889
33511038502337.1111111118700.88888888892
34498662504377.711111111-5715.7111111111
35555362555615.111111111-253.111111111112
36564591563386.1111111111204.88888888888
37541657543445.183333333-1788.18333333327
38527070528234.583333333-1164.58333333335
39509846512777.583333333-2931.58333333334
40514258515426.183333333-1168.18333333335
41516922530624.927777778-13702.9277777778
42507561526327.127777778-18766.1277777778
43492622517595.127777778-24973.1277777778
44490243512626.727777778-22383.7277777778
45469357501470.927777778-32113.9277777778
46477580503511.527777778-25931.5277777778
47528379554748.927777778-26369.9277777778
48533590562519.927777778-28929.9277777778
49517945542579-24633.9999999999
50506174527368.4-21194.4
51501866511911.4-10045.4000000000
525161415145601580.99999999997
53528222529758.744444444-1536.74444444445
54532638525460.9444444447177.05555555553
55536322516728.94444444419593.0555555555
56536535511760.54444444424774.4555555556
57523597500604.74444444422992.2555555556
58536214502645.34444444433568.6555555556
59586570553882.74444444432687.2555555555
60596594561653.74444444434940.2555555555







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.02026433564448070.04052867128896150.97973566435552
180.004514374497889360.009028748995778720.99548562550211
190.001685494391024860.003370988782049720.998314505608975
200.0003292890987957880.0006585781975915760.999670710901204
216.43539299267122e-050.0001287078598534240.999935646070073
221.07515733547039e-052.15031467094077e-050.999989248426645
232.09658915752406e-064.19317831504812e-060.999997903410842
245.04350453537493e-071.00870090707499e-060.999999495649546
251.15107723931483e-072.30215447862966e-070.999999884892276
262.45395537718283e-054.90791075436566e-050.999975460446228
270.000168250521859540.000336501043719080.99983174947814
280.0009594988057845510.001918997611569100.999040501194215
290.0007157744968740840.001431548993748170.999284225503126
300.0005557522034889870.001111504406977970.999444247796511
310.0004551130215161090.0009102260430322180.999544886978484
320.0002928716894050260.0005857433788100520.999707128310595
330.0003891037909911790.0007782075819823580.99961089620901
340.0006189901273005480.001237980254601100.9993810098727
350.0005433960583342120.001086792116668420.999456603941666
360.000594273671060250.00118854734212050.99940572632894
370.002731679451095660.005463358902191320.997268320548904
380.01495748806572800.02991497613145610.985042511934272
390.05700238806193580.1140047761238720.942997611938064
400.1794036643732400.3588073287464790.82059633562676
410.5392474509060180.9215050981879640.460752549093982
420.885677339091510.2286453218169800.114322660908490
430.8966678634611630.2066642730776740.103332136538837

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0202643356444807 & 0.0405286712889615 & 0.97973566435552 \tabularnewline
18 & 0.00451437449788936 & 0.00902874899577872 & 0.99548562550211 \tabularnewline
19 & 0.00168549439102486 & 0.00337098878204972 & 0.998314505608975 \tabularnewline
20 & 0.000329289098795788 & 0.000658578197591576 & 0.999670710901204 \tabularnewline
21 & 6.43539299267122e-05 & 0.000128707859853424 & 0.999935646070073 \tabularnewline
22 & 1.07515733547039e-05 & 2.15031467094077e-05 & 0.999989248426645 \tabularnewline
23 & 2.09658915752406e-06 & 4.19317831504812e-06 & 0.999997903410842 \tabularnewline
24 & 5.04350453537493e-07 & 1.00870090707499e-06 & 0.999999495649546 \tabularnewline
25 & 1.15107723931483e-07 & 2.30215447862966e-07 & 0.999999884892276 \tabularnewline
26 & 2.45395537718283e-05 & 4.90791075436566e-05 & 0.999975460446228 \tabularnewline
27 & 0.00016825052185954 & 0.00033650104371908 & 0.99983174947814 \tabularnewline
28 & 0.000959498805784551 & 0.00191899761156910 & 0.999040501194215 \tabularnewline
29 & 0.000715774496874084 & 0.00143154899374817 & 0.999284225503126 \tabularnewline
30 & 0.000555752203488987 & 0.00111150440697797 & 0.999444247796511 \tabularnewline
31 & 0.000455113021516109 & 0.000910226043032218 & 0.999544886978484 \tabularnewline
32 & 0.000292871689405026 & 0.000585743378810052 & 0.999707128310595 \tabularnewline
33 & 0.000389103790991179 & 0.000778207581982358 & 0.99961089620901 \tabularnewline
34 & 0.000618990127300548 & 0.00123798025460110 & 0.9993810098727 \tabularnewline
35 & 0.000543396058334212 & 0.00108679211666842 & 0.999456603941666 \tabularnewline
36 & 0.00059427367106025 & 0.0011885473421205 & 0.99940572632894 \tabularnewline
37 & 0.00273167945109566 & 0.00546335890219132 & 0.997268320548904 \tabularnewline
38 & 0.0149574880657280 & 0.0299149761314561 & 0.985042511934272 \tabularnewline
39 & 0.0570023880619358 & 0.114004776123872 & 0.942997611938064 \tabularnewline
40 & 0.179403664373240 & 0.358807328746479 & 0.82059633562676 \tabularnewline
41 & 0.539247450906018 & 0.921505098187964 & 0.460752549093982 \tabularnewline
42 & 0.88567733909151 & 0.228645321816980 & 0.114322660908490 \tabularnewline
43 & 0.896667863461163 & 0.206664273077674 & 0.103332136538837 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70757&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.0202643356444807[/C][C]0.0405286712889615[/C][C]0.97973566435552[/C][/ROW]
[ROW][C]18[/C][C]0.00451437449788936[/C][C]0.00902874899577872[/C][C]0.99548562550211[/C][/ROW]
[ROW][C]19[/C][C]0.00168549439102486[/C][C]0.00337098878204972[/C][C]0.998314505608975[/C][/ROW]
[ROW][C]20[/C][C]0.000329289098795788[/C][C]0.000658578197591576[/C][C]0.999670710901204[/C][/ROW]
[ROW][C]21[/C][C]6.43539299267122e-05[/C][C]0.000128707859853424[/C][C]0.999935646070073[/C][/ROW]
[ROW][C]22[/C][C]1.07515733547039e-05[/C][C]2.15031467094077e-05[/C][C]0.999989248426645[/C][/ROW]
[ROW][C]23[/C][C]2.09658915752406e-06[/C][C]4.19317831504812e-06[/C][C]0.999997903410842[/C][/ROW]
[ROW][C]24[/C][C]5.04350453537493e-07[/C][C]1.00870090707499e-06[/C][C]0.999999495649546[/C][/ROW]
[ROW][C]25[/C][C]1.15107723931483e-07[/C][C]2.30215447862966e-07[/C][C]0.999999884892276[/C][/ROW]
[ROW][C]26[/C][C]2.45395537718283e-05[/C][C]4.90791075436566e-05[/C][C]0.999975460446228[/C][/ROW]
[ROW][C]27[/C][C]0.00016825052185954[/C][C]0.00033650104371908[/C][C]0.99983174947814[/C][/ROW]
[ROW][C]28[/C][C]0.000959498805784551[/C][C]0.00191899761156910[/C][C]0.999040501194215[/C][/ROW]
[ROW][C]29[/C][C]0.000715774496874084[/C][C]0.00143154899374817[/C][C]0.999284225503126[/C][/ROW]
[ROW][C]30[/C][C]0.000555752203488987[/C][C]0.00111150440697797[/C][C]0.999444247796511[/C][/ROW]
[ROW][C]31[/C][C]0.000455113021516109[/C][C]0.000910226043032218[/C][C]0.999544886978484[/C][/ROW]
[ROW][C]32[/C][C]0.000292871689405026[/C][C]0.000585743378810052[/C][C]0.999707128310595[/C][/ROW]
[ROW][C]33[/C][C]0.000389103790991179[/C][C]0.000778207581982358[/C][C]0.99961089620901[/C][/ROW]
[ROW][C]34[/C][C]0.000618990127300548[/C][C]0.00123798025460110[/C][C]0.9993810098727[/C][/ROW]
[ROW][C]35[/C][C]0.000543396058334212[/C][C]0.00108679211666842[/C][C]0.999456603941666[/C][/ROW]
[ROW][C]36[/C][C]0.00059427367106025[/C][C]0.0011885473421205[/C][C]0.99940572632894[/C][/ROW]
[ROW][C]37[/C][C]0.00273167945109566[/C][C]0.00546335890219132[/C][C]0.997268320548904[/C][/ROW]
[ROW][C]38[/C][C]0.0149574880657280[/C][C]0.0299149761314561[/C][C]0.985042511934272[/C][/ROW]
[ROW][C]39[/C][C]0.0570023880619358[/C][C]0.114004776123872[/C][C]0.942997611938064[/C][/ROW]
[ROW][C]40[/C][C]0.179403664373240[/C][C]0.358807328746479[/C][C]0.82059633562676[/C][/ROW]
[ROW][C]41[/C][C]0.539247450906018[/C][C]0.921505098187964[/C][C]0.460752549093982[/C][/ROW]
[ROW][C]42[/C][C]0.88567733909151[/C][C]0.228645321816980[/C][C]0.114322660908490[/C][/ROW]
[ROW][C]43[/C][C]0.896667863461163[/C][C]0.206664273077674[/C][C]0.103332136538837[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70757&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70757&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.02026433564448070.04052867128896150.97973566435552
180.004514374497889360.009028748995778720.99548562550211
190.001685494391024860.003370988782049720.998314505608975
200.0003292890987957880.0006585781975915760.999670710901204
216.43539299267122e-050.0001287078598534240.999935646070073
221.07515733547039e-052.15031467094077e-050.999989248426645
232.09658915752406e-064.19317831504812e-060.999997903410842
245.04350453537493e-071.00870090707499e-060.999999495649546
251.15107723931483e-072.30215447862966e-070.999999884892276
262.45395537718283e-054.90791075436566e-050.999975460446228
270.000168250521859540.000336501043719080.99983174947814
280.0009594988057845510.001918997611569100.999040501194215
290.0007157744968740840.001431548993748170.999284225503126
300.0005557522034889870.001111504406977970.999444247796511
310.0004551130215161090.0009102260430322180.999544886978484
320.0002928716894050260.0005857433788100520.999707128310595
330.0003891037909911790.0007782075819823580.99961089620901
340.0006189901273005480.001237980254601100.9993810098727
350.0005433960583342120.001086792116668420.999456603941666
360.000594273671060250.00118854734212050.99940572632894
370.002731679451095660.005463358902191320.997268320548904
380.01495748806572800.02991497613145610.985042511934272
390.05700238806193580.1140047761238720.942997611938064
400.1794036643732400.3588073287464790.82059633562676
410.5392474509060180.9215050981879640.460752549093982
420.885677339091510.2286453218169800.114322660908490
430.8966678634611630.2066642730776740.103332136538837







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level200.740740740740741NOK
5% type I error level220.814814814814815NOK
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 & 22 & 0.814814814814815 & NOK \tabularnewline
10% type I error level & 22 & 0.814814814814815 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70757&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]22[/C][C]0.814814814814815[/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=70757&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70757&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 level220.814814814814815NOK
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')
}