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 computationMon, 06 Dec 2010 14:59:55 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/06/t1291647515k7ztmu28z48jmug.htm/, Retrieved Sun, 28 Apr 2024 19:38:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=105634, Retrieved Sun, 28 Apr 2024 19:38:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact105
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2010-12-06 14:59:55] [c474a97a96075919a678ad3d2290b00b] [Current]
Feedback Forum

Post a new message
Dataseries X:
1635.25	8169.75	7977.64	10171	-14.9	-18	1.8	2.05
1833.42	7905.84	8334.59	9721	-16.2	-11	1.5	2.05
1910.43	8145.82	8623.36	9897	-14.4	-9	1	1.81
1959.67	8895.71	9098.03	9828	-17.3	-10	1.6	1.58
1969.6	9676.31	9154.34	9924	-15.7	-13	1.5	1.57
2061.41	9884.59	9284.73	10371	-12.6	-11	1.8	1.76
2093.48	10637.44	9492.49	10846	-9.4	-5	1.8	1.76
2120.88	10717.13	9682.35	10413	-8.1	-15	1.6	1.89
2174.56	10205.29	9762.12	10709	-5.4	-6	1.9	1.9
2196.72	10295.98	10124.63	10662	-4.6	-6	1.7	1.9
2350.44	10892.76	10540.05	10570	-4.9	-3	1.6	1.92
2440.25	10631.92	10601.61	10297	-4	-1	1.3	1.76
2408.64	11441.08	10323.73	10635	-3.1	-3	1.1	1.64
2472.81	11950.95	10418.4	10872	-1.3	-4	1.9	1.57
2407.6	11037.54	10092.96	10296	0	-6	2.6	1.69
2454.62	11527.72	10364.91	10383	-0.4	0	2.3	1.76
2448.05	11383.89	10152.09	10431	3	-4	2.4	1.89
2497.84	10989.34	10032.8	10574	0.4	-2	2.2	1.78
2645.64	11079.42	10204.59	10653	1.2	-2	2	1.88
2756.76	11028.93	10001.6	10805	0.6	-6	2.9	1.86
2849.27	10973	10411.75	10872	-1.3	-7	2.6	1.88
2921.44	11068.05	10673.38	10625	-3.2	-6	2.3	1.87
2981.85	11394.84	10539.51	10407	-1.8	-6	2.3	1.86
3080.58	11545.71	10723.78	10463	-3.6	-3	2.6	1.89
3106.22	11809.38	10682.06	10556	-4.2	-2	3.1	1.9
3119.31	11395.64	10283.19	10646	-6.9	-5	2.8	1.89
3061.26	11082.38	10377.18	10702	-8	-11	2.5	1.85
3097.31	11402.75	10486.64	11353	-7.5	-11	2.9	1.78
3161.69	11716.87	10545.38	11346	-8.2	-11	3.1	1.71
3257.16	12204.98	10554.27	11451	-7.6	-10	3.1	1.69
3277.01	12986.62	10532.54	11964	-3.7	-14	3.2	1.72
3295.32	13392.79	10324.31	12574	-1.7	-8	2.5	1.77
3363.99	14368.05	10695.25	13031	-0.7	-9	2.6	1.98
3494.17	15650.83	10827.81	13812	0.2	-5	2.9	2.2
3667.03	16102.64	10872.48	14544	0.6	-1	2.6	2.25
3813.06	16187.64	10971.19	14931	2.2	-2	2.4	2.24
3917.96	16311.54	11145.65	14886	3.3	-5	1.7	2.51
3895.51	17232.97	11234.68	16005	5.3	-4	2	2.79
3801.06	16397.83	11333.88	17064	5.5	-6	2.2	3.07
3570.12	14990.31	10997.97	15168	6.3	-2	1.9	3.08
3701.61	15147.55	11036.89	16050	7.7	-2	1.6	3.05
3862.27	15786.78	11257.35	15839	6.5	-2	1.6	3.08
3970.1	15934.09	11533.59	15137	5.5	-2	1.2	3.15
4138.52	16519.44	11963.12	14954	6.9	2	1.2	3.16
4199.75	16101.07	12185.15	15648	5.7	1	1.5	3.16
4290.89	16775.08	12377.62	15305	6.9	-8	1.6	3.19
4443.91	17286.32	12512.89	15579	6.1	-1	1.7	3.44
4502.64	17741.23	12631.48	16348	4.8	1	1.8	3.55
4356.98	17128.37	12268.53	15928	3.7	-1	1.8	3.6
4591.27	17460.53	12754.8	16171	5.8	2	1.8	3.62
4696.96	17611.14	13407.75	15937	6.8	2	1.3	3.69




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 6 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=105634&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=105634&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=105634&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 time6 seconds
R Server'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
BEL_20[t] = + 392.801288384327 + 0.0390117340790035Nikkei[t] + 0.103211876652727DJ_Indust[t] -0.00376644874838964Goudprijs[t] -14.5419039745120Conjunct_Seizoenzuiver[t] + 2.61444593841881Cons_vertrouw[t] -9.80081512339516Alg_consumptie_index_BE[t] + 17.3973640331083Gem_rente_kasbon_1j[t] -57.0314960208367M1[t] -24.2910866948577M2[t] -68.8468361794204M3[t] -177.959481264132M4[t] -157.806908916677M5[t] -123.370114378759M6[t] -104.388896451179M7[t] -67.7757332668275M8[t] -73.258344759955M9[t] -80.9274531305978M10[t] -30.5574705031455M11[t] + 46.2909033428714t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
BEL_20[t] =  +  392.801288384327 +  0.0390117340790035Nikkei[t] +  0.103211876652727DJ_Indust[t] -0.00376644874838964Goudprijs[t] -14.5419039745120Conjunct_Seizoenzuiver[t] +  2.61444593841881Cons_vertrouw[t] -9.80081512339516Alg_consumptie_index_BE[t] +  17.3973640331083Gem_rente_kasbon_1j[t] -57.0314960208367M1[t] -24.2910866948577M2[t] -68.8468361794204M3[t] -177.959481264132M4[t] -157.806908916677M5[t] -123.370114378759M6[t] -104.388896451179M7[t] -67.7757332668275M8[t] -73.258344759955M9[t] -80.9274531305978M10[t] -30.5574705031455M11[t] +  46.2909033428714t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=105634&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]BEL_20[t] =  +  392.801288384327 +  0.0390117340790035Nikkei[t] +  0.103211876652727DJ_Indust[t] -0.00376644874838964Goudprijs[t] -14.5419039745120Conjunct_Seizoenzuiver[t] +  2.61444593841881Cons_vertrouw[t] -9.80081512339516Alg_consumptie_index_BE[t] +  17.3973640331083Gem_rente_kasbon_1j[t] -57.0314960208367M1[t] -24.2910866948577M2[t] -68.8468361794204M3[t] -177.959481264132M4[t] -157.806908916677M5[t] -123.370114378759M6[t] -104.388896451179M7[t] -67.7757332668275M8[t] -73.258344759955M9[t] -80.9274531305978M10[t] -30.5574705031455M11[t] +  46.2909033428714t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=105634&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=105634&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
BEL_20[t] = + 392.801288384327 + 0.0390117340790035Nikkei[t] + 0.103211876652727DJ_Indust[t] -0.00376644874838964Goudprijs[t] -14.5419039745120Conjunct_Seizoenzuiver[t] + 2.61444593841881Cons_vertrouw[t] -9.80081512339516Alg_consumptie_index_BE[t] + 17.3973640331083Gem_rente_kasbon_1j[t] -57.0314960208367M1[t] -24.2910866948577M2[t] -68.8468361794204M3[t] -177.959481264132M4[t] -157.806908916677M5[t] -123.370114378759M6[t] -104.388896451179M7[t] -67.7757332668275M8[t] -73.258344759955M9[t] -80.9274531305978M10[t] -30.5574705031455M11[t] + 46.2909033428714t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)392.801288384327451.468160.87010.3909590.195479
Nikkei0.03901173407900350.0256831.5190.1389070.069454
DJ_Indust0.1032118766527270.0403472.55810.0156310.007816
Goudprijs-0.003766448748389640.029935-0.12580.9006860.450343
Conjunct_Seizoenzuiver-14.54190397451203.735235-3.89320.0004910.000246
Cons_vertrouw2.614445938418814.1600180.62850.53430.26715
Alg_consumptie_index_BE-9.8008151233951630.457203-0.32180.7497720.374886
Gem_rente_kasbon_1j17.397364033108356.0965610.31010.7585360.379268
M1-57.031496020836751.127239-1.11550.2732170.136608
M2-24.291086694857749.266601-0.49310.6254490.312725
M3-68.846836179420450.988367-1.35020.1867130.093357
M4-177.95948126413252.400296-3.39620.001890.000945
M5-157.80690891667754.558946-2.89240.0069330.003466
M6-123.37011437875953.068577-2.32470.0268080.013404
M7-104.38889645117953.577203-1.94840.0604710.030236
M8-67.775733266827556.453558-1.20060.2390170.119508
M9-73.25834475995553.008284-1.3820.1768450.088422
M10-80.927453130597853.817464-1.50370.1427690.071384
M11-30.557470503145550.772152-0.60190.5516470.275824
t46.29090334287143.41350413.561100

\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) & 392.801288384327 & 451.46816 & 0.8701 & 0.390959 & 0.195479 \tabularnewline
Nikkei & 0.0390117340790035 & 0.025683 & 1.519 & 0.138907 & 0.069454 \tabularnewline
DJ_Indust & 0.103211876652727 & 0.040347 & 2.5581 & 0.015631 & 0.007816 \tabularnewline
Goudprijs & -0.00376644874838964 & 0.029935 & -0.1258 & 0.900686 & 0.450343 \tabularnewline
Conjunct_Seizoenzuiver & -14.5419039745120 & 3.735235 & -3.8932 & 0.000491 & 0.000246 \tabularnewline
Cons_vertrouw & 2.61444593841881 & 4.160018 & 0.6285 & 0.5343 & 0.26715 \tabularnewline
Alg_consumptie_index_BE & -9.80081512339516 & 30.457203 & -0.3218 & 0.749772 & 0.374886 \tabularnewline
Gem_rente_kasbon_1j & 17.3973640331083 & 56.096561 & 0.3101 & 0.758536 & 0.379268 \tabularnewline
M1 & -57.0314960208367 & 51.127239 & -1.1155 & 0.273217 & 0.136608 \tabularnewline
M2 & -24.2910866948577 & 49.266601 & -0.4931 & 0.625449 & 0.312725 \tabularnewline
M3 & -68.8468361794204 & 50.988367 & -1.3502 & 0.186713 & 0.093357 \tabularnewline
M4 & -177.959481264132 & 52.400296 & -3.3962 & 0.00189 & 0.000945 \tabularnewline
M5 & -157.806908916677 & 54.558946 & -2.8924 & 0.006933 & 0.003466 \tabularnewline
M6 & -123.370114378759 & 53.068577 & -2.3247 & 0.026808 & 0.013404 \tabularnewline
M7 & -104.388896451179 & 53.577203 & -1.9484 & 0.060471 & 0.030236 \tabularnewline
M8 & -67.7757332668275 & 56.453558 & -1.2006 & 0.239017 & 0.119508 \tabularnewline
M9 & -73.258344759955 & 53.008284 & -1.382 & 0.176845 & 0.088422 \tabularnewline
M10 & -80.9274531305978 & 53.817464 & -1.5037 & 0.142769 & 0.071384 \tabularnewline
M11 & -30.5574705031455 & 50.772152 & -0.6019 & 0.551647 & 0.275824 \tabularnewline
t & 46.2909033428714 & 3.413504 & 13.5611 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=105634&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]392.801288384327[/C][C]451.46816[/C][C]0.8701[/C][C]0.390959[/C][C]0.195479[/C][/ROW]
[ROW][C]Nikkei[/C][C]0.0390117340790035[/C][C]0.025683[/C][C]1.519[/C][C]0.138907[/C][C]0.069454[/C][/ROW]
[ROW][C]DJ_Indust[/C][C]0.103211876652727[/C][C]0.040347[/C][C]2.5581[/C][C]0.015631[/C][C]0.007816[/C][/ROW]
[ROW][C]Goudprijs[/C][C]-0.00376644874838964[/C][C]0.029935[/C][C]-0.1258[/C][C]0.900686[/C][C]0.450343[/C][/ROW]
[ROW][C]Conjunct_Seizoenzuiver[/C][C]-14.5419039745120[/C][C]3.735235[/C][C]-3.8932[/C][C]0.000491[/C][C]0.000246[/C][/ROW]
[ROW][C]Cons_vertrouw[/C][C]2.61444593841881[/C][C]4.160018[/C][C]0.6285[/C][C]0.5343[/C][C]0.26715[/C][/ROW]
[ROW][C]Alg_consumptie_index_BE[/C][C]-9.80081512339516[/C][C]30.457203[/C][C]-0.3218[/C][C]0.749772[/C][C]0.374886[/C][/ROW]
[ROW][C]Gem_rente_kasbon_1j[/C][C]17.3973640331083[/C][C]56.096561[/C][C]0.3101[/C][C]0.758536[/C][C]0.379268[/C][/ROW]
[ROW][C]M1[/C][C]-57.0314960208367[/C][C]51.127239[/C][C]-1.1155[/C][C]0.273217[/C][C]0.136608[/C][/ROW]
[ROW][C]M2[/C][C]-24.2910866948577[/C][C]49.266601[/C][C]-0.4931[/C][C]0.625449[/C][C]0.312725[/C][/ROW]
[ROW][C]M3[/C][C]-68.8468361794204[/C][C]50.988367[/C][C]-1.3502[/C][C]0.186713[/C][C]0.093357[/C][/ROW]
[ROW][C]M4[/C][C]-177.959481264132[/C][C]52.400296[/C][C]-3.3962[/C][C]0.00189[/C][C]0.000945[/C][/ROW]
[ROW][C]M5[/C][C]-157.806908916677[/C][C]54.558946[/C][C]-2.8924[/C][C]0.006933[/C][C]0.003466[/C][/ROW]
[ROW][C]M6[/C][C]-123.370114378759[/C][C]53.068577[/C][C]-2.3247[/C][C]0.026808[/C][C]0.013404[/C][/ROW]
[ROW][C]M7[/C][C]-104.388896451179[/C][C]53.577203[/C][C]-1.9484[/C][C]0.060471[/C][C]0.030236[/C][/ROW]
[ROW][C]M8[/C][C]-67.7757332668275[/C][C]56.453558[/C][C]-1.2006[/C][C]0.239017[/C][C]0.119508[/C][/ROW]
[ROW][C]M9[/C][C]-73.258344759955[/C][C]53.008284[/C][C]-1.382[/C][C]0.176845[/C][C]0.088422[/C][/ROW]
[ROW][C]M10[/C][C]-80.9274531305978[/C][C]53.817464[/C][C]-1.5037[/C][C]0.142769[/C][C]0.071384[/C][/ROW]
[ROW][C]M11[/C][C]-30.5574705031455[/C][C]50.772152[/C][C]-0.6019[/C][C]0.551647[/C][C]0.275824[/C][/ROW]
[ROW][C]t[/C][C]46.2909033428714[/C][C]3.413504[/C][C]13.5611[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=105634&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=105634&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)392.801288384327451.468160.87010.3909590.195479
Nikkei0.03901173407900350.0256831.5190.1389070.069454
DJ_Indust0.1032118766527270.0403472.55810.0156310.007816
Goudprijs-0.003766448748389640.029935-0.12580.9006860.450343
Conjunct_Seizoenzuiver-14.54190397451203.735235-3.89320.0004910.000246
Cons_vertrouw2.614445938418814.1600180.62850.53430.26715
Alg_consumptie_index_BE-9.8008151233951630.457203-0.32180.7497720.374886
Gem_rente_kasbon_1j17.397364033108356.0965610.31010.7585360.379268
M1-57.031496020836751.127239-1.11550.2732170.136608
M2-24.291086694857749.266601-0.49310.6254490.312725
M3-68.846836179420450.988367-1.35020.1867130.093357
M4-177.95948126413252.400296-3.39620.001890.000945
M5-157.80690891667754.558946-2.89240.0069330.003466
M6-123.37011437875953.068577-2.32470.0268080.013404
M7-104.38889645117953.577203-1.94840.0604710.030236
M8-67.775733266827556.453558-1.20060.2390170.119508
M9-73.25834475995553.008284-1.3820.1768450.088422
M10-80.927453130597853.817464-1.50370.1427690.071384
M11-30.557470503145550.772152-0.60190.5516470.275824
t46.29090334287143.41350413.561100







Multiple Linear Regression - Regression Statistics
Multiple R0.99781758983681
R-squared0.99563994258774
Adjusted R-squared0.992967649335064
F-TEST (value)372.57884836959
F-TEST (DF numerator)19
F-TEST (DF denominator)31
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation70.3151203550974
Sum Squared Residuals153270.700667107

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.99781758983681 \tabularnewline
R-squared & 0.99563994258774 \tabularnewline
Adjusted R-squared & 0.992967649335064 \tabularnewline
F-TEST (value) & 372.57884836959 \tabularnewline
F-TEST (DF numerator) & 19 \tabularnewline
F-TEST (DF denominator) & 31 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 70.3151203550974 \tabularnewline
Sum Squared Residuals & 153270.700667107 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=105634&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.99781758983681[/C][/ROW]
[ROW][C]R-squared[/C][C]0.99563994258774[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.992967649335064[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]372.57884836959[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]19[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]31[/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]70.3151203550974[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]153270.700667107[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=105634&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=105634&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.99781758983681
R-squared0.99563994258774
Adjusted R-squared0.992967649335064
F-TEST (value)372.57884836959
F-TEST (DF numerator)19
F-TEST (DF denominator)31
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation70.3151203550974
Sum Squared Residuals153270.700667107







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11635.251673.49292701275-38.2429270127463
21833.421820.9108755215812.5091244784202
31910.431840.9281688819369.5018311180717
41959.671886.2875956489973.3824043510058
51969.61958.3296363533911.2703636466069
62061.412019.471136399541.9388636005008
72093.482102.92006092129-9.44006092128817
82120.882169.33253754454-48.4525375445359
92174.562178.79200781225-4.23200781224703
102196.722248.87077728972-52.1507772897242
112350.442425.56981480826-75.129814808255
122440.252491.92217616365-51.6721761636549
132408.642464.35061615865-55.7106161586485
142472.812534.30292101813-61.4929210181315
152407.62440.07831424644-32.47831424644
162454.622449.78163036974.83836963030146
172448.052429.8490257632318.2009742367661
182497.842525.41819221783-27.5781922178349
192645.642603.7040855815541.9359144184471
202756.762652.21364834295104.546351657051
212849.272761.2233764794688.0466235205374
222921.442864.4972072920856.9427927079155
232981.852940.3782105370941.4717894629134
243080.583073.520657437847.05934256215633
253106.223075.0231638587031.1968361413031
263119.313130.59273385449-11.2827338544854
273061.263132.15080376903-70.8908037690295
283097.313078.2637716383519.0462283616461
293161.693170.05199828856-8.36199828855813
303257.163263.88514642856-6.72514642856179
313277.013287.84604739132-10.8360473913194
323295.323357.13947360702-61.8194736070175
333363.993458.07551070388-94.0855107038814
343494.173555.73819354145-61.5681935414468
353667.033680.32954003481-13.2995400348056
363813.063745.1290370430167.930962956988
373917.963745.11625910004172.843740899956
383895.513840.530106511954.9798934880987
393801.063810.70877594373-9.64877594372815
403570.123667.38700234295-97.2670023429533
413701.613722.71933959481-21.1093395948148
423862.273869.90552495410-7.63552495410401
433970.13991.75980610584-21.6598061058396
444138.524132.79434050555.72565949450227
454199.754189.4791050044110.2708949955911
464290.894234.1138218767456.7761781232554
474443.914396.9524346198546.9575653801472
484502.644525.95812935549-23.3181293554894
494356.984467.06703386986-110.087033869865
504591.274585.98336309395.28663690609805
514696.964653.4439371588743.516062841126

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 1635.25 & 1673.49292701275 & -38.2429270127463 \tabularnewline
2 & 1833.42 & 1820.91087552158 & 12.5091244784202 \tabularnewline
3 & 1910.43 & 1840.92816888193 & 69.5018311180717 \tabularnewline
4 & 1959.67 & 1886.28759564899 & 73.3824043510058 \tabularnewline
5 & 1969.6 & 1958.32963635339 & 11.2703636466069 \tabularnewline
6 & 2061.41 & 2019.4711363995 & 41.9388636005008 \tabularnewline
7 & 2093.48 & 2102.92006092129 & -9.44006092128817 \tabularnewline
8 & 2120.88 & 2169.33253754454 & -48.4525375445359 \tabularnewline
9 & 2174.56 & 2178.79200781225 & -4.23200781224703 \tabularnewline
10 & 2196.72 & 2248.87077728972 & -52.1507772897242 \tabularnewline
11 & 2350.44 & 2425.56981480826 & -75.129814808255 \tabularnewline
12 & 2440.25 & 2491.92217616365 & -51.6721761636549 \tabularnewline
13 & 2408.64 & 2464.35061615865 & -55.7106161586485 \tabularnewline
14 & 2472.81 & 2534.30292101813 & -61.4929210181315 \tabularnewline
15 & 2407.6 & 2440.07831424644 & -32.47831424644 \tabularnewline
16 & 2454.62 & 2449.7816303697 & 4.83836963030146 \tabularnewline
17 & 2448.05 & 2429.84902576323 & 18.2009742367661 \tabularnewline
18 & 2497.84 & 2525.41819221783 & -27.5781922178349 \tabularnewline
19 & 2645.64 & 2603.70408558155 & 41.9359144184471 \tabularnewline
20 & 2756.76 & 2652.21364834295 & 104.546351657051 \tabularnewline
21 & 2849.27 & 2761.22337647946 & 88.0466235205374 \tabularnewline
22 & 2921.44 & 2864.49720729208 & 56.9427927079155 \tabularnewline
23 & 2981.85 & 2940.37821053709 & 41.4717894629134 \tabularnewline
24 & 3080.58 & 3073.52065743784 & 7.05934256215633 \tabularnewline
25 & 3106.22 & 3075.02316385870 & 31.1968361413031 \tabularnewline
26 & 3119.31 & 3130.59273385449 & -11.2827338544854 \tabularnewline
27 & 3061.26 & 3132.15080376903 & -70.8908037690295 \tabularnewline
28 & 3097.31 & 3078.26377163835 & 19.0462283616461 \tabularnewline
29 & 3161.69 & 3170.05199828856 & -8.36199828855813 \tabularnewline
30 & 3257.16 & 3263.88514642856 & -6.72514642856179 \tabularnewline
31 & 3277.01 & 3287.84604739132 & -10.8360473913194 \tabularnewline
32 & 3295.32 & 3357.13947360702 & -61.8194736070175 \tabularnewline
33 & 3363.99 & 3458.07551070388 & -94.0855107038814 \tabularnewline
34 & 3494.17 & 3555.73819354145 & -61.5681935414468 \tabularnewline
35 & 3667.03 & 3680.32954003481 & -13.2995400348056 \tabularnewline
36 & 3813.06 & 3745.12903704301 & 67.930962956988 \tabularnewline
37 & 3917.96 & 3745.11625910004 & 172.843740899956 \tabularnewline
38 & 3895.51 & 3840.5301065119 & 54.9798934880987 \tabularnewline
39 & 3801.06 & 3810.70877594373 & -9.64877594372815 \tabularnewline
40 & 3570.12 & 3667.38700234295 & -97.2670023429533 \tabularnewline
41 & 3701.61 & 3722.71933959481 & -21.1093395948148 \tabularnewline
42 & 3862.27 & 3869.90552495410 & -7.63552495410401 \tabularnewline
43 & 3970.1 & 3991.75980610584 & -21.6598061058396 \tabularnewline
44 & 4138.52 & 4132.7943405055 & 5.72565949450227 \tabularnewline
45 & 4199.75 & 4189.47910500441 & 10.2708949955911 \tabularnewline
46 & 4290.89 & 4234.11382187674 & 56.7761781232554 \tabularnewline
47 & 4443.91 & 4396.95243461985 & 46.9575653801472 \tabularnewline
48 & 4502.64 & 4525.95812935549 & -23.3181293554894 \tabularnewline
49 & 4356.98 & 4467.06703386986 & -110.087033869865 \tabularnewline
50 & 4591.27 & 4585.9833630939 & 5.28663690609805 \tabularnewline
51 & 4696.96 & 4653.44393715887 & 43.516062841126 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=105634&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]1635.25[/C][C]1673.49292701275[/C][C]-38.2429270127463[/C][/ROW]
[ROW][C]2[/C][C]1833.42[/C][C]1820.91087552158[/C][C]12.5091244784202[/C][/ROW]
[ROW][C]3[/C][C]1910.43[/C][C]1840.92816888193[/C][C]69.5018311180717[/C][/ROW]
[ROW][C]4[/C][C]1959.67[/C][C]1886.28759564899[/C][C]73.3824043510058[/C][/ROW]
[ROW][C]5[/C][C]1969.6[/C][C]1958.32963635339[/C][C]11.2703636466069[/C][/ROW]
[ROW][C]6[/C][C]2061.41[/C][C]2019.4711363995[/C][C]41.9388636005008[/C][/ROW]
[ROW][C]7[/C][C]2093.48[/C][C]2102.92006092129[/C][C]-9.44006092128817[/C][/ROW]
[ROW][C]8[/C][C]2120.88[/C][C]2169.33253754454[/C][C]-48.4525375445359[/C][/ROW]
[ROW][C]9[/C][C]2174.56[/C][C]2178.79200781225[/C][C]-4.23200781224703[/C][/ROW]
[ROW][C]10[/C][C]2196.72[/C][C]2248.87077728972[/C][C]-52.1507772897242[/C][/ROW]
[ROW][C]11[/C][C]2350.44[/C][C]2425.56981480826[/C][C]-75.129814808255[/C][/ROW]
[ROW][C]12[/C][C]2440.25[/C][C]2491.92217616365[/C][C]-51.6721761636549[/C][/ROW]
[ROW][C]13[/C][C]2408.64[/C][C]2464.35061615865[/C][C]-55.7106161586485[/C][/ROW]
[ROW][C]14[/C][C]2472.81[/C][C]2534.30292101813[/C][C]-61.4929210181315[/C][/ROW]
[ROW][C]15[/C][C]2407.6[/C][C]2440.07831424644[/C][C]-32.47831424644[/C][/ROW]
[ROW][C]16[/C][C]2454.62[/C][C]2449.7816303697[/C][C]4.83836963030146[/C][/ROW]
[ROW][C]17[/C][C]2448.05[/C][C]2429.84902576323[/C][C]18.2009742367661[/C][/ROW]
[ROW][C]18[/C][C]2497.84[/C][C]2525.41819221783[/C][C]-27.5781922178349[/C][/ROW]
[ROW][C]19[/C][C]2645.64[/C][C]2603.70408558155[/C][C]41.9359144184471[/C][/ROW]
[ROW][C]20[/C][C]2756.76[/C][C]2652.21364834295[/C][C]104.546351657051[/C][/ROW]
[ROW][C]21[/C][C]2849.27[/C][C]2761.22337647946[/C][C]88.0466235205374[/C][/ROW]
[ROW][C]22[/C][C]2921.44[/C][C]2864.49720729208[/C][C]56.9427927079155[/C][/ROW]
[ROW][C]23[/C][C]2981.85[/C][C]2940.37821053709[/C][C]41.4717894629134[/C][/ROW]
[ROW][C]24[/C][C]3080.58[/C][C]3073.52065743784[/C][C]7.05934256215633[/C][/ROW]
[ROW][C]25[/C][C]3106.22[/C][C]3075.02316385870[/C][C]31.1968361413031[/C][/ROW]
[ROW][C]26[/C][C]3119.31[/C][C]3130.59273385449[/C][C]-11.2827338544854[/C][/ROW]
[ROW][C]27[/C][C]3061.26[/C][C]3132.15080376903[/C][C]-70.8908037690295[/C][/ROW]
[ROW][C]28[/C][C]3097.31[/C][C]3078.26377163835[/C][C]19.0462283616461[/C][/ROW]
[ROW][C]29[/C][C]3161.69[/C][C]3170.05199828856[/C][C]-8.36199828855813[/C][/ROW]
[ROW][C]30[/C][C]3257.16[/C][C]3263.88514642856[/C][C]-6.72514642856179[/C][/ROW]
[ROW][C]31[/C][C]3277.01[/C][C]3287.84604739132[/C][C]-10.8360473913194[/C][/ROW]
[ROW][C]32[/C][C]3295.32[/C][C]3357.13947360702[/C][C]-61.8194736070175[/C][/ROW]
[ROW][C]33[/C][C]3363.99[/C][C]3458.07551070388[/C][C]-94.0855107038814[/C][/ROW]
[ROW][C]34[/C][C]3494.17[/C][C]3555.73819354145[/C][C]-61.5681935414468[/C][/ROW]
[ROW][C]35[/C][C]3667.03[/C][C]3680.32954003481[/C][C]-13.2995400348056[/C][/ROW]
[ROW][C]36[/C][C]3813.06[/C][C]3745.12903704301[/C][C]67.930962956988[/C][/ROW]
[ROW][C]37[/C][C]3917.96[/C][C]3745.11625910004[/C][C]172.843740899956[/C][/ROW]
[ROW][C]38[/C][C]3895.51[/C][C]3840.5301065119[/C][C]54.9798934880987[/C][/ROW]
[ROW][C]39[/C][C]3801.06[/C][C]3810.70877594373[/C][C]-9.64877594372815[/C][/ROW]
[ROW][C]40[/C][C]3570.12[/C][C]3667.38700234295[/C][C]-97.2670023429533[/C][/ROW]
[ROW][C]41[/C][C]3701.61[/C][C]3722.71933959481[/C][C]-21.1093395948148[/C][/ROW]
[ROW][C]42[/C][C]3862.27[/C][C]3869.90552495410[/C][C]-7.63552495410401[/C][/ROW]
[ROW][C]43[/C][C]3970.1[/C][C]3991.75980610584[/C][C]-21.6598061058396[/C][/ROW]
[ROW][C]44[/C][C]4138.52[/C][C]4132.7943405055[/C][C]5.72565949450227[/C][/ROW]
[ROW][C]45[/C][C]4199.75[/C][C]4189.47910500441[/C][C]10.2708949955911[/C][/ROW]
[ROW][C]46[/C][C]4290.89[/C][C]4234.11382187674[/C][C]56.7761781232554[/C][/ROW]
[ROW][C]47[/C][C]4443.91[/C][C]4396.95243461985[/C][C]46.9575653801472[/C][/ROW]
[ROW][C]48[/C][C]4502.64[/C][C]4525.95812935549[/C][C]-23.3181293554894[/C][/ROW]
[ROW][C]49[/C][C]4356.98[/C][C]4467.06703386986[/C][C]-110.087033869865[/C][/ROW]
[ROW][C]50[/C][C]4591.27[/C][C]4585.9833630939[/C][C]5.28663690609805[/C][/ROW]
[ROW][C]51[/C][C]4696.96[/C][C]4653.44393715887[/C][C]43.516062841126[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=105634&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=105634&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
11635.251673.49292701275-38.2429270127463
21833.421820.9108755215812.5091244784202
31910.431840.9281688819369.5018311180717
41959.671886.2875956489973.3824043510058
51969.61958.3296363533911.2703636466069
62061.412019.471136399541.9388636005008
72093.482102.92006092129-9.44006092128817
82120.882169.33253754454-48.4525375445359
92174.562178.79200781225-4.23200781224703
102196.722248.87077728972-52.1507772897242
112350.442425.56981480826-75.129814808255
122440.252491.92217616365-51.6721761636549
132408.642464.35061615865-55.7106161586485
142472.812534.30292101813-61.4929210181315
152407.62440.07831424644-32.47831424644
162454.622449.78163036974.83836963030146
172448.052429.8490257632318.2009742367661
182497.842525.41819221783-27.5781922178349
192645.642603.7040855815541.9359144184471
202756.762652.21364834295104.546351657051
212849.272761.2233764794688.0466235205374
222921.442864.4972072920856.9427927079155
232981.852940.3782105370941.4717894629134
243080.583073.520657437847.05934256215633
253106.223075.0231638587031.1968361413031
263119.313130.59273385449-11.2827338544854
273061.263132.15080376903-70.8908037690295
283097.313078.2637716383519.0462283616461
293161.693170.05199828856-8.36199828855813
303257.163263.88514642856-6.72514642856179
313277.013287.84604739132-10.8360473913194
323295.323357.13947360702-61.8194736070175
333363.993458.07551070388-94.0855107038814
343494.173555.73819354145-61.5681935414468
353667.033680.32954003481-13.2995400348056
363813.063745.1290370430167.930962956988
373917.963745.11625910004172.843740899956
383895.513840.530106511954.9798934880987
393801.063810.70877594373-9.64877594372815
403570.123667.38700234295-97.2670023429533
413701.613722.71933959481-21.1093395948148
423862.273869.90552495410-7.63552495410401
433970.13991.75980610584-21.6598061058396
444138.524132.79434050555.72565949450227
454199.754189.4791050044110.2708949955911
464290.894234.1138218767456.7761781232554
474443.914396.9524346198546.9575653801472
484502.644525.95812935549-23.3181293554894
494356.984467.06703386986-110.087033869865
504591.274585.98336309395.28663690609805
514696.964653.4439371588743.516062841126







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
230.7812077844465030.4375844311069940.218792215553497
240.846075823123920.3078483537521610.153924176876080
250.9214507827070520.1570984345858950.0785492172929477
260.9699133920562170.06017321588756620.0300866079437831
270.9855667226982230.02886655460355420.0144332773017771
280.956386808099090.087226383801820.04361319190091

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
23 & 0.781207784446503 & 0.437584431106994 & 0.218792215553497 \tabularnewline
24 & 0.84607582312392 & 0.307848353752161 & 0.153924176876080 \tabularnewline
25 & 0.921450782707052 & 0.157098434585895 & 0.0785492172929477 \tabularnewline
26 & 0.969913392056217 & 0.0601732158875662 & 0.0300866079437831 \tabularnewline
27 & 0.985566722698223 & 0.0288665546035542 & 0.0144332773017771 \tabularnewline
28 & 0.95638680809909 & 0.08722638380182 & 0.04361319190091 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=105634&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]23[/C][C]0.781207784446503[/C][C]0.437584431106994[/C][C]0.218792215553497[/C][/ROW]
[ROW][C]24[/C][C]0.84607582312392[/C][C]0.307848353752161[/C][C]0.153924176876080[/C][/ROW]
[ROW][C]25[/C][C]0.921450782707052[/C][C]0.157098434585895[/C][C]0.0785492172929477[/C][/ROW]
[ROW][C]26[/C][C]0.969913392056217[/C][C]0.0601732158875662[/C][C]0.0300866079437831[/C][/ROW]
[ROW][C]27[/C][C]0.985566722698223[/C][C]0.0288665546035542[/C][C]0.0144332773017771[/C][/ROW]
[ROW][C]28[/C][C]0.95638680809909[/C][C]0.08722638380182[/C][C]0.04361319190091[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=105634&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=105634&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
230.7812077844465030.4375844311069940.218792215553497
240.846075823123920.3078483537521610.153924176876080
250.9214507827070520.1570984345858950.0785492172929477
260.9699133920562170.06017321588756620.0300866079437831
270.9855667226982230.02886655460355420.0144332773017771
280.956386808099090.087226383801820.04361319190091







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

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

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



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