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 computationThu, 06 Dec 2012 15:03:52 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Dec/06/t1354824296or6xhl5fpc6hdto.htm/, Retrieved Thu, 18 Apr 2024 20:39:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=197242, Retrieved Thu, 18 Apr 2024 20:39:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact109
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Competence to learn] [2010-11-17 07:43:53] [b98453cac15ba1066b407e146608df68]
- R PD  [Multiple Regression] [workshop 7: regre...] [2012-11-02 15:42:59] [40b341cf5fb1ddfd74e4c5704837f48c]
-   PD    [Multiple Regression] [workshop 7: Y_t m...] [2012-11-02 16:52:03] [40b341cf5fb1ddfd74e4c5704837f48c]
-           [Multiple Regression] [workshop 7: deter...] [2012-11-02 17:20:14] [40b341cf5fb1ddfd74e4c5704837f48c]
-   PD        [Multiple Regression] [workshop 7: berek...] [2012-11-02 19:46:17] [40b341cf5fb1ddfd74e4c5704837f48c]
-    D            [Multiple Regression] [Paper 2012: invoe...] [2012-12-06 20:03:52] [7a9100b3135ff0dae36397155af309d9] [Current]
-    D              [Multiple Regression] [Paper 2012: invo...] [2012-12-06 20:11:38] [40b341cf5fb1ddfd74e4c5704837f48c]
Feedback Forum

Post a new message
Dataseries X:
31/12/1961	9190	0	5064	0	3103	0	1023	0
31/12/1962	9251	1	5109	5109	3112	3112	1030	1030
31/12/1963	9328	0	5161	0	3127	0	1041	0
31/12/1964	9428	1	5218	5218	3153	3153	1058	1058
31/12/1965	9499	0	5264	0	3169	0	1066	0
31/12/1966	9556	1	5308	5308	3174	3174	1074	1074
31/12/1967	9606	0	5347	0	3179	0	1079	0
31/12/1968	9632	1	5373	5373	3181	3181	1077	1077
31/12/1969	9660	0	5404	0	3183	0	1073	0
31/12/1970	9651	1	5416	5416	3160	3160	1075	1075
31/12/1971	9695	0	5452	0	3170	0	1074	0
31/12/1972	9727	1	5478	5478	3180	3180	1069	1069
31/12/1973	9757	0	5501	0	3192	0	1064	0
31/12/1974	9788	1	5527	5527	3206	3206	1055	1055
31/12/1975	9813	0	5548	0	3213	0	1051	0
31/12/1976	9823	1	5566	5566	3215	3215	1042	1042
31/12/1977	9837	0	5584	0	3224	0	1029	0
31/12/1978	9842	1	5601	5601	3225	3225	1016	1016
31/12/1979	9855	0	5619	0	3228	0	1009	0
31/12/1980	9863	1	5635	5635	3229	3229	1000	1000
31/12/1981	9855	0	5642	0	3218	0	994	0
31/12/1982	9858	1	5655	5655	3213	3213	990	990
31/12/1983	9853	0	5662	0	3208	0	983	0
31/12/1984	9858	1	5670	5670	3208	3208	979	979
31/12/1985	9859	0	5676	0	3206	0	976	0
31/12/1986	9865	1	5685	5685	3206	3206	973	973
31/12/1987	9876	0	5696	0	3210	0	970	0
31/12/1988	9928	1	5722	5722	3235	3235	970	970
31/12/1989	9948	0	5740	0	3244	0	964	0
31/12/1990	9987	1	5768	5768	3259	3259	961	961
31/12/1991	10022	0	5795	0	3276	0	951	0
31/12/1992	10068	1	5825	5825	3293	3293	950	950
31/12/1993	10101	0	5847	0	3305	0	949	0
31/12/1994	10131	1	5866	5866	3313	3313	952	952
31/12/1995	10143	0	5880	0	3315	0	948	0
31/12/1996	10170	1	5899	5899	3320	3320	951	951
31/12/1997	10192	0	5913	0	3326	0	953	0
31/12/1998	10214	1	5927	5927	3332	3332	955	955
31/12/1999	10239	0	5941	0	3340	0	959	0
31/12/2000	10263	1	5953	5953	3346	3346	964	964
31/12/2001	10310	0	5973	0	3358	0	979	0
31/12/2002	10355	1	5995	5995	3369	3369	992	992
31/12/2003	10396	0	6016	0	3380	0	1000	0
31/12/2004	10446	1	6043	6043	3396	3396	1007	1007
31/12/2005	10511	0	6078	0	3414	0	1019	0
31/12/2006	10585	1	6117	6117	3436	3436	1031	1031
31/12/2007	10667	0	6162	0	3456	0	1049	0
31/12/2008	10753	1	6209	6209	3476	3476	1069	1069
31/12/2009	10840	0	6252	0	3498	0	1090	0
31/12/2010	10951	1	6306	6306	3525	3525	1119	1119





Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 7 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
R Framework error message & 
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=197242&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]7 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=197242&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.







Multiple Linear Regression - Estimated Regression Equation
totaal[t] = + 4259.99549337886 -3221141.49097529jaar[t] + 1.06468303413298pop[t] + 0.997923725333532totaal_vlaams_gewest[t] + 0.00160827991792537pop_vlaams_gewest[t] + 0.996295350589865totaal_waals_gewest[t] -0.00393208881846759waals_gewest_pop[t] + 1.00701452876714totaal_brussel[t] + 0.00259976958969175totaal_brussel_pop[t] -2.03578271407261t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
totaal[t] =  +  4259.99549337886 -3221141.49097529jaar[t] +  1.06468303413298pop[t] +  0.997923725333532totaal_vlaams_gewest[t] +  0.00160827991792537pop_vlaams_gewest[t] +  0.996295350589865totaal_waals_gewest[t] -0.00393208881846759waals_gewest_pop[t] +  1.00701452876714totaal_brussel[t] +  0.00259976958969175totaal_brussel_pop[t] -2.03578271407261t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=197242&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]totaal[t] =  +  4259.99549337886 -3221141.49097529jaar[t] +  1.06468303413298pop[t] +  0.997923725333532totaal_vlaams_gewest[t] +  0.00160827991792537pop_vlaams_gewest[t] +  0.996295350589865totaal_waals_gewest[t] -0.00393208881846759waals_gewest_pop[t] +  1.00701452876714totaal_brussel[t] +  0.00259976958969175totaal_brussel_pop[t] -2.03578271407261t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=197242&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=197242&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
totaal[t] = + 4259.99549337886 -3221141.49097529jaar[t] + 1.06468303413298pop[t] + 0.997923725333532totaal_vlaams_gewest[t] + 0.00160827991792537pop_vlaams_gewest[t] + 0.996295350589865totaal_waals_gewest[t] -0.00393208881846759waals_gewest_pop[t] + 1.00701452876714totaal_brussel[t] + 0.00259976958969175totaal_brussel_pop[t] -2.03578271407261t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)4259.9954933788613868.5988890.30720.7603090.380154
jaar-3221141.4909752910515103.741065-0.30630.7609390.380469
pop1.064683034132989.5056260.1120.9113790.45569
totaal_vlaams_gewest0.9979237253335320.01065893.634100
pop_vlaams_gewest0.001608279917925370.0029870.53840.5932750.296637
totaal_waals_gewest0.9962953505898650.01285177.527200
waals_gewest_pop-0.003932088818467590.008387-0.46880.6417310.320865
totaal_brussel1.007014528767140.01035197.289600
totaal_brussel_pop0.002599769589691750.0055290.47020.6407570.320379
t-2.035782714072616.741868-0.3020.7642460.382123

\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) & 4259.99549337886 & 13868.598889 & 0.3072 & 0.760309 & 0.380154 \tabularnewline
jaar & -3221141.49097529 & 10515103.741065 & -0.3063 & 0.760939 & 0.380469 \tabularnewline
pop & 1.06468303413298 & 9.505626 & 0.112 & 0.911379 & 0.45569 \tabularnewline
totaal_vlaams_gewest & 0.997923725333532 & 0.010658 & 93.6341 & 0 & 0 \tabularnewline
pop_vlaams_gewest & 0.00160827991792537 & 0.002987 & 0.5384 & 0.593275 & 0.296637 \tabularnewline
totaal_waals_gewest & 0.996295350589865 & 0.012851 & 77.5272 & 0 & 0 \tabularnewline
waals_gewest_pop & -0.00393208881846759 & 0.008387 & -0.4688 & 0.641731 & 0.320865 \tabularnewline
totaal_brussel & 1.00701452876714 & 0.010351 & 97.2896 & 0 & 0 \tabularnewline
totaal_brussel_pop & 0.00259976958969175 & 0.005529 & 0.4702 & 0.640757 & 0.320379 \tabularnewline
t & -2.03578271407261 & 6.741868 & -0.302 & 0.764246 & 0.382123 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=197242&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]4259.99549337886[/C][C]13868.598889[/C][C]0.3072[/C][C]0.760309[/C][C]0.380154[/C][/ROW]
[ROW][C]jaar[/C][C]-3221141.49097529[/C][C]10515103.741065[/C][C]-0.3063[/C][C]0.760939[/C][C]0.380469[/C][/ROW]
[ROW][C]pop[/C][C]1.06468303413298[/C][C]9.505626[/C][C]0.112[/C][C]0.911379[/C][C]0.45569[/C][/ROW]
[ROW][C]totaal_vlaams_gewest[/C][C]0.997923725333532[/C][C]0.010658[/C][C]93.6341[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]pop_vlaams_gewest[/C][C]0.00160827991792537[/C][C]0.002987[/C][C]0.5384[/C][C]0.593275[/C][C]0.296637[/C][/ROW]
[ROW][C]totaal_waals_gewest[/C][C]0.996295350589865[/C][C]0.012851[/C][C]77.5272[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]waals_gewest_pop[/C][C]-0.00393208881846759[/C][C]0.008387[/C][C]-0.4688[/C][C]0.641731[/C][C]0.320865[/C][/ROW]
[ROW][C]totaal_brussel[/C][C]1.00701452876714[/C][C]0.010351[/C][C]97.2896[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]totaal_brussel_pop[/C][C]0.00259976958969175[/C][C]0.005529[/C][C]0.4702[/C][C]0.640757[/C][C]0.320379[/C][/ROW]
[ROW][C]t[/C][C]-2.03578271407261[/C][C]6.741868[/C][C]-0.302[/C][C]0.764246[/C][C]0.382123[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=197242&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=197242&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)4259.9954933788613868.5988890.30720.7603090.380154
jaar-3221141.4909752910515103.741065-0.30630.7609390.380469
pop1.064683034132989.5056260.1120.9113790.45569
totaal_vlaams_gewest0.9979237253335320.01065893.634100
pop_vlaams_gewest0.001608279917925370.0029870.53840.5932750.296637
totaal_waals_gewest0.9962953505898650.01285177.527200
waals_gewest_pop-0.003932088818467590.008387-0.46880.6417310.320865
totaal_brussel1.007014528767140.01035197.289600
totaal_brussel_pop0.002599769589691750.0055290.47020.6407570.320379
t-2.035782714072616.741868-0.3020.7642460.382123







Multiple Linear Regression - Regression Statistics
Multiple R0.999998861394583
R-squared0.999997722790462
Adjusted R-squared0.999997210418316
F-TEST (value)1951701.96220418
F-TEST (DF numerator)9
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.658700569201215
Sum Squared Residuals17.3554575946402

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.999998861394583 \tabularnewline
R-squared & 0.999997722790462 \tabularnewline
Adjusted R-squared & 0.999997210418316 \tabularnewline
F-TEST (value) & 1951701.96220418 \tabularnewline
F-TEST (DF numerator) & 9 \tabularnewline
F-TEST (DF denominator) & 40 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.658700569201215 \tabularnewline
Sum Squared Residuals & 17.3554575946402 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=197242&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.999998861394583[/C][/ROW]
[ROW][C]R-squared[/C][C]0.999997722790462[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.999997210418316[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1951701.96220418[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]9[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]40[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.658700569201215[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]17.3554575946402[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=197242&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=197242&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.999998861394583
R-squared0.999997722790462
Adjusted R-squared0.999997210418316
F-TEST (value)1951701.96220418
F-TEST (DF numerator)9
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.658700569201215
Sum Squared Residuals17.3554575946402







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
191909189.738649788580.261350211418619
292519250.510468494990.48953150500778
393289328.82640512686-0.826405126859349
494289428.66295146443-0.662951464427828
594999498.8753200770.124679922994852
695569555.852902202530.147097797470653
796069604.991361049481.00863895051531
896329631.027720740660.972279259342775
996609660.04158984239-0.0415898423949719
1096519651.36985849842-0.369858498422573
1196959696.21386530547-1.21386530547438
1297279727.34283362528-0.342833625279606
1397579757.16854792457-0.168547924568667
1497889788.19047706362-0.190477063620376
1598139812.10137654480.898623455197849
1698239823.17358485239-0.173584852386299
1798379837.02231861561-0.0223186156065668
1898429842.01731381008-0.0173138100838456
1998559855.97668345753-0.976683457533613
2098639863.99487212831-0.994872128314935
2198559854.034312317290.965687682708417
2298589858.18082692109-0.180826921090055
2398539853.11766509031-0.117665090313815
2498589857.266953197590.733046802408137
2598599858.203359288520.796640711481815
2698659864.369716511080.630283488921963
2798769876.25287110742-0.252871107418838
2899289927.245789437050.754210562950916
2999489948.13292716371-0.132927163713349
3099879988.08967542191-1.08967542191076
311002210021.939991680.0600083200406552
321006810067.82437011690.175629883083909
331010110100.83312413820.166875861801659
341013110130.79003099150.20996900852421
351014310142.83469940330.165300596657694
361017010169.82147389210.178526107853296
371019210191.86627317810.133726821901641
381021410213.85677314850.143226851459803
391023910239.8957700578-0.895770057766641
401026310262.91746010540.0825398946474249
411031010309.99201285890.00798714107484745
421035510356.0762788804-1.07627888040358
431039610396.0493037488-0.0493037488448024
441044610446.0684604789-0.0684604789478801
451051110511.0003766129-0.000376612915013426
461058510584.02745374050.972546259508263
471066710666.94503486390.0549651360589481
481075310754.1043764276-1.10437642760191
491084010839.94616075840.0538392415576985
501095110950.21737784870.78262215131052

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 9190 & 9189.73864978858 & 0.261350211418619 \tabularnewline
2 & 9251 & 9250.51046849499 & 0.48953150500778 \tabularnewline
3 & 9328 & 9328.82640512686 & -0.826405126859349 \tabularnewline
4 & 9428 & 9428.66295146443 & -0.662951464427828 \tabularnewline
5 & 9499 & 9498.875320077 & 0.124679922994852 \tabularnewline
6 & 9556 & 9555.85290220253 & 0.147097797470653 \tabularnewline
7 & 9606 & 9604.99136104948 & 1.00863895051531 \tabularnewline
8 & 9632 & 9631.02772074066 & 0.972279259342775 \tabularnewline
9 & 9660 & 9660.04158984239 & -0.0415898423949719 \tabularnewline
10 & 9651 & 9651.36985849842 & -0.369858498422573 \tabularnewline
11 & 9695 & 9696.21386530547 & -1.21386530547438 \tabularnewline
12 & 9727 & 9727.34283362528 & -0.342833625279606 \tabularnewline
13 & 9757 & 9757.16854792457 & -0.168547924568667 \tabularnewline
14 & 9788 & 9788.19047706362 & -0.190477063620376 \tabularnewline
15 & 9813 & 9812.1013765448 & 0.898623455197849 \tabularnewline
16 & 9823 & 9823.17358485239 & -0.173584852386299 \tabularnewline
17 & 9837 & 9837.02231861561 & -0.0223186156065668 \tabularnewline
18 & 9842 & 9842.01731381008 & -0.0173138100838456 \tabularnewline
19 & 9855 & 9855.97668345753 & -0.976683457533613 \tabularnewline
20 & 9863 & 9863.99487212831 & -0.994872128314935 \tabularnewline
21 & 9855 & 9854.03431231729 & 0.965687682708417 \tabularnewline
22 & 9858 & 9858.18082692109 & -0.180826921090055 \tabularnewline
23 & 9853 & 9853.11766509031 & -0.117665090313815 \tabularnewline
24 & 9858 & 9857.26695319759 & 0.733046802408137 \tabularnewline
25 & 9859 & 9858.20335928852 & 0.796640711481815 \tabularnewline
26 & 9865 & 9864.36971651108 & 0.630283488921963 \tabularnewline
27 & 9876 & 9876.25287110742 & -0.252871107418838 \tabularnewline
28 & 9928 & 9927.24578943705 & 0.754210562950916 \tabularnewline
29 & 9948 & 9948.13292716371 & -0.132927163713349 \tabularnewline
30 & 9987 & 9988.08967542191 & -1.08967542191076 \tabularnewline
31 & 10022 & 10021.93999168 & 0.0600083200406552 \tabularnewline
32 & 10068 & 10067.8243701169 & 0.175629883083909 \tabularnewline
33 & 10101 & 10100.8331241382 & 0.166875861801659 \tabularnewline
34 & 10131 & 10130.7900309915 & 0.20996900852421 \tabularnewline
35 & 10143 & 10142.8346994033 & 0.165300596657694 \tabularnewline
36 & 10170 & 10169.8214738921 & 0.178526107853296 \tabularnewline
37 & 10192 & 10191.8662731781 & 0.133726821901641 \tabularnewline
38 & 10214 & 10213.8567731485 & 0.143226851459803 \tabularnewline
39 & 10239 & 10239.8957700578 & -0.895770057766641 \tabularnewline
40 & 10263 & 10262.9174601054 & 0.0825398946474249 \tabularnewline
41 & 10310 & 10309.9920128589 & 0.00798714107484745 \tabularnewline
42 & 10355 & 10356.0762788804 & -1.07627888040358 \tabularnewline
43 & 10396 & 10396.0493037488 & -0.0493037488448024 \tabularnewline
44 & 10446 & 10446.0684604789 & -0.0684604789478801 \tabularnewline
45 & 10511 & 10511.0003766129 & -0.000376612915013426 \tabularnewline
46 & 10585 & 10584.0274537405 & 0.972546259508263 \tabularnewline
47 & 10667 & 10666.9450348639 & 0.0549651360589481 \tabularnewline
48 & 10753 & 10754.1043764276 & -1.10437642760191 \tabularnewline
49 & 10840 & 10839.9461607584 & 0.0538392415576985 \tabularnewline
50 & 10951 & 10950.2173778487 & 0.78262215131052 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=197242&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]9190[/C][C]9189.73864978858[/C][C]0.261350211418619[/C][/ROW]
[ROW][C]2[/C][C]9251[/C][C]9250.51046849499[/C][C]0.48953150500778[/C][/ROW]
[ROW][C]3[/C][C]9328[/C][C]9328.82640512686[/C][C]-0.826405126859349[/C][/ROW]
[ROW][C]4[/C][C]9428[/C][C]9428.66295146443[/C][C]-0.662951464427828[/C][/ROW]
[ROW][C]5[/C][C]9499[/C][C]9498.875320077[/C][C]0.124679922994852[/C][/ROW]
[ROW][C]6[/C][C]9556[/C][C]9555.85290220253[/C][C]0.147097797470653[/C][/ROW]
[ROW][C]7[/C][C]9606[/C][C]9604.99136104948[/C][C]1.00863895051531[/C][/ROW]
[ROW][C]8[/C][C]9632[/C][C]9631.02772074066[/C][C]0.972279259342775[/C][/ROW]
[ROW][C]9[/C][C]9660[/C][C]9660.04158984239[/C][C]-0.0415898423949719[/C][/ROW]
[ROW][C]10[/C][C]9651[/C][C]9651.36985849842[/C][C]-0.369858498422573[/C][/ROW]
[ROW][C]11[/C][C]9695[/C][C]9696.21386530547[/C][C]-1.21386530547438[/C][/ROW]
[ROW][C]12[/C][C]9727[/C][C]9727.34283362528[/C][C]-0.342833625279606[/C][/ROW]
[ROW][C]13[/C][C]9757[/C][C]9757.16854792457[/C][C]-0.168547924568667[/C][/ROW]
[ROW][C]14[/C][C]9788[/C][C]9788.19047706362[/C][C]-0.190477063620376[/C][/ROW]
[ROW][C]15[/C][C]9813[/C][C]9812.1013765448[/C][C]0.898623455197849[/C][/ROW]
[ROW][C]16[/C][C]9823[/C][C]9823.17358485239[/C][C]-0.173584852386299[/C][/ROW]
[ROW][C]17[/C][C]9837[/C][C]9837.02231861561[/C][C]-0.0223186156065668[/C][/ROW]
[ROW][C]18[/C][C]9842[/C][C]9842.01731381008[/C][C]-0.0173138100838456[/C][/ROW]
[ROW][C]19[/C][C]9855[/C][C]9855.97668345753[/C][C]-0.976683457533613[/C][/ROW]
[ROW][C]20[/C][C]9863[/C][C]9863.99487212831[/C][C]-0.994872128314935[/C][/ROW]
[ROW][C]21[/C][C]9855[/C][C]9854.03431231729[/C][C]0.965687682708417[/C][/ROW]
[ROW][C]22[/C][C]9858[/C][C]9858.18082692109[/C][C]-0.180826921090055[/C][/ROW]
[ROW][C]23[/C][C]9853[/C][C]9853.11766509031[/C][C]-0.117665090313815[/C][/ROW]
[ROW][C]24[/C][C]9858[/C][C]9857.26695319759[/C][C]0.733046802408137[/C][/ROW]
[ROW][C]25[/C][C]9859[/C][C]9858.20335928852[/C][C]0.796640711481815[/C][/ROW]
[ROW][C]26[/C][C]9865[/C][C]9864.36971651108[/C][C]0.630283488921963[/C][/ROW]
[ROW][C]27[/C][C]9876[/C][C]9876.25287110742[/C][C]-0.252871107418838[/C][/ROW]
[ROW][C]28[/C][C]9928[/C][C]9927.24578943705[/C][C]0.754210562950916[/C][/ROW]
[ROW][C]29[/C][C]9948[/C][C]9948.13292716371[/C][C]-0.132927163713349[/C][/ROW]
[ROW][C]30[/C][C]9987[/C][C]9988.08967542191[/C][C]-1.08967542191076[/C][/ROW]
[ROW][C]31[/C][C]10022[/C][C]10021.93999168[/C][C]0.0600083200406552[/C][/ROW]
[ROW][C]32[/C][C]10068[/C][C]10067.8243701169[/C][C]0.175629883083909[/C][/ROW]
[ROW][C]33[/C][C]10101[/C][C]10100.8331241382[/C][C]0.166875861801659[/C][/ROW]
[ROW][C]34[/C][C]10131[/C][C]10130.7900309915[/C][C]0.20996900852421[/C][/ROW]
[ROW][C]35[/C][C]10143[/C][C]10142.8346994033[/C][C]0.165300596657694[/C][/ROW]
[ROW][C]36[/C][C]10170[/C][C]10169.8214738921[/C][C]0.178526107853296[/C][/ROW]
[ROW][C]37[/C][C]10192[/C][C]10191.8662731781[/C][C]0.133726821901641[/C][/ROW]
[ROW][C]38[/C][C]10214[/C][C]10213.8567731485[/C][C]0.143226851459803[/C][/ROW]
[ROW][C]39[/C][C]10239[/C][C]10239.8957700578[/C][C]-0.895770057766641[/C][/ROW]
[ROW][C]40[/C][C]10263[/C][C]10262.9174601054[/C][C]0.0825398946474249[/C][/ROW]
[ROW][C]41[/C][C]10310[/C][C]10309.9920128589[/C][C]0.00798714107484745[/C][/ROW]
[ROW][C]42[/C][C]10355[/C][C]10356.0762788804[/C][C]-1.07627888040358[/C][/ROW]
[ROW][C]43[/C][C]10396[/C][C]10396.0493037488[/C][C]-0.0493037488448024[/C][/ROW]
[ROW][C]44[/C][C]10446[/C][C]10446.0684604789[/C][C]-0.0684604789478801[/C][/ROW]
[ROW][C]45[/C][C]10511[/C][C]10511.0003766129[/C][C]-0.000376612915013426[/C][/ROW]
[ROW][C]46[/C][C]10585[/C][C]10584.0274537405[/C][C]0.972546259508263[/C][/ROW]
[ROW][C]47[/C][C]10667[/C][C]10666.9450348639[/C][C]0.0549651360589481[/C][/ROW]
[ROW][C]48[/C][C]10753[/C][C]10754.1043764276[/C][C]-1.10437642760191[/C][/ROW]
[ROW][C]49[/C][C]10840[/C][C]10839.9461607584[/C][C]0.0538392415576985[/C][/ROW]
[ROW][C]50[/C][C]10951[/C][C]10950.2173778487[/C][C]0.78262215131052[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=197242&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=197242&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
191909189.738649788580.261350211418619
292519250.510468494990.48953150500778
393289328.82640512686-0.826405126859349
494289428.66295146443-0.662951464427828
594999498.8753200770.124679922994852
695569555.852902202530.147097797470653
796069604.991361049481.00863895051531
896329631.027720740660.972279259342775
996609660.04158984239-0.0415898423949719
1096519651.36985849842-0.369858498422573
1196959696.21386530547-1.21386530547438
1297279727.34283362528-0.342833625279606
1397579757.16854792457-0.168547924568667
1497889788.19047706362-0.190477063620376
1598139812.10137654480.898623455197849
1698239823.17358485239-0.173584852386299
1798379837.02231861561-0.0223186156065668
1898429842.01731381008-0.0173138100838456
1998559855.97668345753-0.976683457533613
2098639863.99487212831-0.994872128314935
2198559854.034312317290.965687682708417
2298589858.18082692109-0.180826921090055
2398539853.11766509031-0.117665090313815
2498589857.266953197590.733046802408137
2598599858.203359288520.796640711481815
2698659864.369716511080.630283488921963
2798769876.25287110742-0.252871107418838
2899289927.245789437050.754210562950916
2999489948.13292716371-0.132927163713349
3099879988.08967542191-1.08967542191076
311002210021.939991680.0600083200406552
321006810067.82437011690.175629883083909
331010110100.83312413820.166875861801659
341013110130.79003099150.20996900852421
351014310142.83469940330.165300596657694
361017010169.82147389210.178526107853296
371019210191.86627317810.133726821901641
381021410213.85677314850.143226851459803
391023910239.8957700578-0.895770057766641
401026310262.91746010540.0825398946474249
411031010309.99201285890.00798714107484745
421035510356.0762788804-1.07627888040358
431039610396.0493037488-0.0493037488448024
441044610446.0684604789-0.0684604789478801
451051110511.0003766129-0.000376612915013426
461058510584.02745374050.972546259508263
471066710666.94503486390.0549651360589481
481075310754.1043764276-1.10437642760191
491084010839.94616075840.0538392415576985
501095110950.21737784870.78262215131052







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
130.876347637578390.2473047248432210.12365236242161
140.7888686879973960.4222626240052080.211131312002604
150.7179121801815050.564175639636990.282087819818495
160.6028536799923120.7942926400153760.397146320007688
170.7058717780940410.5882564438119180.294128221905959
180.6347704455886570.7304591088226850.365229554411343
190.7245124907807620.5509750184384770.275487509219238
200.6476273823341860.7047452353316280.352372617665814
210.7602448568049940.4795102863900120.239755143195006
220.7410634789764350.517873042047130.258936521023565
230.7554090766334260.4891818467331480.244590923366574
240.6933080621631440.6133838756737130.306691937836856
250.6050949162794620.7898101674410750.394905083720538
260.5527513688003450.894497262399310.447248631199655
270.5776746725458480.8446506549083040.422325327454152
280.7724643029724360.4550713940551280.227535697027564
290.738090473739760.5238190525204810.26190952626024
300.6755132025257150.648973594948570.324486797474285
310.5802870343680180.8394259312639640.419712965631982
320.688451715179840.6230965696403210.31154828482016
330.578930540353630.842138919292740.42106945964637
340.4821981656212530.9643963312425060.517801834378747
350.5181564390423520.9636871219152950.481843560957648
360.5023947075120040.9952105849759920.497605292487996
370.5514008423460990.8971983153078020.448599157653901

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
13 & 0.87634763757839 & 0.247304724843221 & 0.12365236242161 \tabularnewline
14 & 0.788868687997396 & 0.422262624005208 & 0.211131312002604 \tabularnewline
15 & 0.717912180181505 & 0.56417563963699 & 0.282087819818495 \tabularnewline
16 & 0.602853679992312 & 0.794292640015376 & 0.397146320007688 \tabularnewline
17 & 0.705871778094041 & 0.588256443811918 & 0.294128221905959 \tabularnewline
18 & 0.634770445588657 & 0.730459108822685 & 0.365229554411343 \tabularnewline
19 & 0.724512490780762 & 0.550975018438477 & 0.275487509219238 \tabularnewline
20 & 0.647627382334186 & 0.704745235331628 & 0.352372617665814 \tabularnewline
21 & 0.760244856804994 & 0.479510286390012 & 0.239755143195006 \tabularnewline
22 & 0.741063478976435 & 0.51787304204713 & 0.258936521023565 \tabularnewline
23 & 0.755409076633426 & 0.489181846733148 & 0.244590923366574 \tabularnewline
24 & 0.693308062163144 & 0.613383875673713 & 0.306691937836856 \tabularnewline
25 & 0.605094916279462 & 0.789810167441075 & 0.394905083720538 \tabularnewline
26 & 0.552751368800345 & 0.89449726239931 & 0.447248631199655 \tabularnewline
27 & 0.577674672545848 & 0.844650654908304 & 0.422325327454152 \tabularnewline
28 & 0.772464302972436 & 0.455071394055128 & 0.227535697027564 \tabularnewline
29 & 0.73809047373976 & 0.523819052520481 & 0.26190952626024 \tabularnewline
30 & 0.675513202525715 & 0.64897359494857 & 0.324486797474285 \tabularnewline
31 & 0.580287034368018 & 0.839425931263964 & 0.419712965631982 \tabularnewline
32 & 0.68845171517984 & 0.623096569640321 & 0.31154828482016 \tabularnewline
33 & 0.57893054035363 & 0.84213891929274 & 0.42106945964637 \tabularnewline
34 & 0.482198165621253 & 0.964396331242506 & 0.517801834378747 \tabularnewline
35 & 0.518156439042352 & 0.963687121915295 & 0.481843560957648 \tabularnewline
36 & 0.502394707512004 & 0.995210584975992 & 0.497605292487996 \tabularnewline
37 & 0.551400842346099 & 0.897198315307802 & 0.448599157653901 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=197242&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]13[/C][C]0.87634763757839[/C][C]0.247304724843221[/C][C]0.12365236242161[/C][/ROW]
[ROW][C]14[/C][C]0.788868687997396[/C][C]0.422262624005208[/C][C]0.211131312002604[/C][/ROW]
[ROW][C]15[/C][C]0.717912180181505[/C][C]0.56417563963699[/C][C]0.282087819818495[/C][/ROW]
[ROW][C]16[/C][C]0.602853679992312[/C][C]0.794292640015376[/C][C]0.397146320007688[/C][/ROW]
[ROW][C]17[/C][C]0.705871778094041[/C][C]0.588256443811918[/C][C]0.294128221905959[/C][/ROW]
[ROW][C]18[/C][C]0.634770445588657[/C][C]0.730459108822685[/C][C]0.365229554411343[/C][/ROW]
[ROW][C]19[/C][C]0.724512490780762[/C][C]0.550975018438477[/C][C]0.275487509219238[/C][/ROW]
[ROW][C]20[/C][C]0.647627382334186[/C][C]0.704745235331628[/C][C]0.352372617665814[/C][/ROW]
[ROW][C]21[/C][C]0.760244856804994[/C][C]0.479510286390012[/C][C]0.239755143195006[/C][/ROW]
[ROW][C]22[/C][C]0.741063478976435[/C][C]0.51787304204713[/C][C]0.258936521023565[/C][/ROW]
[ROW][C]23[/C][C]0.755409076633426[/C][C]0.489181846733148[/C][C]0.244590923366574[/C][/ROW]
[ROW][C]24[/C][C]0.693308062163144[/C][C]0.613383875673713[/C][C]0.306691937836856[/C][/ROW]
[ROW][C]25[/C][C]0.605094916279462[/C][C]0.789810167441075[/C][C]0.394905083720538[/C][/ROW]
[ROW][C]26[/C][C]0.552751368800345[/C][C]0.89449726239931[/C][C]0.447248631199655[/C][/ROW]
[ROW][C]27[/C][C]0.577674672545848[/C][C]0.844650654908304[/C][C]0.422325327454152[/C][/ROW]
[ROW][C]28[/C][C]0.772464302972436[/C][C]0.455071394055128[/C][C]0.227535697027564[/C][/ROW]
[ROW][C]29[/C][C]0.73809047373976[/C][C]0.523819052520481[/C][C]0.26190952626024[/C][/ROW]
[ROW][C]30[/C][C]0.675513202525715[/C][C]0.64897359494857[/C][C]0.324486797474285[/C][/ROW]
[ROW][C]31[/C][C]0.580287034368018[/C][C]0.839425931263964[/C][C]0.419712965631982[/C][/ROW]
[ROW][C]32[/C][C]0.68845171517984[/C][C]0.623096569640321[/C][C]0.31154828482016[/C][/ROW]
[ROW][C]33[/C][C]0.57893054035363[/C][C]0.84213891929274[/C][C]0.42106945964637[/C][/ROW]
[ROW][C]34[/C][C]0.482198165621253[/C][C]0.964396331242506[/C][C]0.517801834378747[/C][/ROW]
[ROW][C]35[/C][C]0.518156439042352[/C][C]0.963687121915295[/C][C]0.481843560957648[/C][/ROW]
[ROW][C]36[/C][C]0.502394707512004[/C][C]0.995210584975992[/C][C]0.497605292487996[/C][/ROW]
[ROW][C]37[/C][C]0.551400842346099[/C][C]0.897198315307802[/C][C]0.448599157653901[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=197242&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=197242&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
130.876347637578390.2473047248432210.12365236242161
140.7888686879973960.4222626240052080.211131312002604
150.7179121801815050.564175639636990.282087819818495
160.6028536799923120.7942926400153760.397146320007688
170.7058717780940410.5882564438119180.294128221905959
180.6347704455886570.7304591088226850.365229554411343
190.7245124907807620.5509750184384770.275487509219238
200.6476273823341860.7047452353316280.352372617665814
210.7602448568049940.4795102863900120.239755143195006
220.7410634789764350.517873042047130.258936521023565
230.7554090766334260.4891818467331480.244590923366574
240.6933080621631440.6133838756737130.306691937836856
250.6050949162794620.7898101674410750.394905083720538
260.5527513688003450.894497262399310.447248631199655
270.5776746725458480.8446506549083040.422325327454152
280.7724643029724360.4550713940551280.227535697027564
290.738090473739760.5238190525204810.26190952626024
300.6755132025257150.648973594948570.324486797474285
310.5802870343680180.8394259312639640.419712965631982
320.688451715179840.6230965696403210.31154828482016
330.578930540353630.842138919292740.42106945964637
340.4821981656212530.9643963312425060.517801834378747
350.5181564390423520.9636871219152950.481843560957648
360.5023947075120040.9952105849759920.497605292487996
370.5514008423460990.8971983153078020.448599157653901







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=197242&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 level00OK
5% type I error level00OK
10% type I error level00OK



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