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 computationSun, 20 Dec 2009 03:33:23 -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/20/t1261307293t9o8fehvesuf764.htm/, Retrieved Sat, 27 Apr 2024 07:04:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69835, Retrieved Sat, 27 Apr 2024 07:04:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact111
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-12-20 10:33:23] [aa8eb70c35ea8a87edcd21d6427e653e] [Current]
Feedback Forum

Post a new message
Dataseries X:
2849,27	10872
2921,44	10625
2981,85	10407
3080,58	10463
3106,22	10556
3119,31	10646
3061,26	10702
3097,31	11353
3161,69	11346
3257,16	11451
3277,01	11964
3295,32	12574
3363,99	13031
3494,17	13812
3667,03	14544
3813,06	14931
3917,96	14886
3895,51	16005
3801,06	17064
3570,12	15168
3701,61	16050
3862,27	15839
3970,1	15137
4138,52	14954
4199,75	15648
4290,89	15305
4443,91	15579
4502,64	16348
4356,98	15928
4591,27	16171
4696,96	15937
4621,4	15713
4562,84	15594
4202,52	15683
4296,49	16438
4435,23	17032
4105,18	17696
4116,68	17745
3844,49	19394
3720,98	20148
3674,4	20108
3857,62	18584
3801,06	18441
3504,37	18391
3032,6	19178
3047,03	18079
2962,34	18483
2197,82	19644
2014,45	19195
1862,83	19650
1905,41	20830
1810,99	23595
1670,07	22937
1864,44	21814
2052,02	21928
2029,6	21777
2070,83	21383
2293,41	21467
2443,27	22052
2513,17	22680




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 4956.68494757646 -0.0944174386294636X[t] -206.665378833773M1[t] -162.867354864276M2[t] -63.2297797597224M3[t] + 43.2200006714761M4[t] -17.5093311952292M5[t] + 80.4289009723294M6[t] + 113.359632514790M7[t] -36.0877919874512M8[t] -73.0366645904004M9[t] -65.9604239235216M10[t] + 20.7673994902416M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  4956.68494757646 -0.0944174386294636X[t] -206.665378833773M1[t] -162.867354864276M2[t] -63.2297797597224M3[t] +  43.2200006714761M4[t] -17.5093311952292M5[t] +  80.4289009723294M6[t] +  113.359632514790M7[t] -36.0877919874512M8[t] -73.0366645904004M9[t] -65.9604239235216M10[t] +  20.7673994902416M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69835&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  4956.68494757646 -0.0944174386294636X[t] -206.665378833773M1[t] -162.867354864276M2[t] -63.2297797597224M3[t] +  43.2200006714761M4[t] -17.5093311952292M5[t] +  80.4289009723294M6[t] +  113.359632514790M7[t] -36.0877919874512M8[t] -73.0366645904004M9[t] -65.9604239235216M10[t] +  20.7673994902416M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69835&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69835&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
Y[t] = + 4956.68494757646 -0.0944174386294636X[t] -206.665378833773M1[t] -162.867354864276M2[t] -63.2297797597224M3[t] + 43.2200006714761M4[t] -17.5093311952292M5[t] + 80.4289009723294M6[t] + 113.359632514790M7[t] -36.0877919874512M8[t] -73.0366645904004M9[t] -65.9604239235216M10[t] + 20.7673994902416M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)4956.68494757646668.0291217.419900
X-0.09441743862946360.031208-3.02550.0040170.002009
M1-206.665378833773555.538543-0.3720.7115580.355779
M2-162.867354864276555.04636-0.29340.7704850.385243
M3-63.2297797597224553.027403-0.11430.909460.45473
M443.2200006714761551.7714140.07830.9378980.468949
M5-17.5093311952292551.917498-0.03170.9748260.487413
M680.4289009723294552.1760890.14570.8848140.442407
M7113.359632514790551.9814210.20540.8381710.419086
M8-36.0877919874512552.411094-0.06530.948190.474095
M9-73.0366645904004552.094385-0.13230.895320.44766
M10-65.9604239235216552.374595-0.11940.9054580.452729
M1120.7673994902416551.9810250.03760.9701470.485074

\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) & 4956.68494757646 & 668.029121 & 7.4199 & 0 & 0 \tabularnewline
X & -0.0944174386294636 & 0.031208 & -3.0255 & 0.004017 & 0.002009 \tabularnewline
M1 & -206.665378833773 & 555.538543 & -0.372 & 0.711558 & 0.355779 \tabularnewline
M2 & -162.867354864276 & 555.04636 & -0.2934 & 0.770485 & 0.385243 \tabularnewline
M3 & -63.2297797597224 & 553.027403 & -0.1143 & 0.90946 & 0.45473 \tabularnewline
M4 & 43.2200006714761 & 551.771414 & 0.0783 & 0.937898 & 0.468949 \tabularnewline
M5 & -17.5093311952292 & 551.917498 & -0.0317 & 0.974826 & 0.487413 \tabularnewline
M6 & 80.4289009723294 & 552.176089 & 0.1457 & 0.884814 & 0.442407 \tabularnewline
M7 & 113.359632514790 & 551.981421 & 0.2054 & 0.838171 & 0.419086 \tabularnewline
M8 & -36.0877919874512 & 552.411094 & -0.0653 & 0.94819 & 0.474095 \tabularnewline
M9 & -73.0366645904004 & 552.094385 & -0.1323 & 0.89532 & 0.44766 \tabularnewline
M10 & -65.9604239235216 & 552.374595 & -0.1194 & 0.905458 & 0.452729 \tabularnewline
M11 & 20.7673994902416 & 551.981025 & 0.0376 & 0.970147 & 0.485074 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69835&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]4956.68494757646[/C][C]668.029121[/C][C]7.4199[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.0944174386294636[/C][C]0.031208[/C][C]-3.0255[/C][C]0.004017[/C][C]0.002009[/C][/ROW]
[ROW][C]M1[/C][C]-206.665378833773[/C][C]555.538543[/C][C]-0.372[/C][C]0.711558[/C][C]0.355779[/C][/ROW]
[ROW][C]M2[/C][C]-162.867354864276[/C][C]555.04636[/C][C]-0.2934[/C][C]0.770485[/C][C]0.385243[/C][/ROW]
[ROW][C]M3[/C][C]-63.2297797597224[/C][C]553.027403[/C][C]-0.1143[/C][C]0.90946[/C][C]0.45473[/C][/ROW]
[ROW][C]M4[/C][C]43.2200006714761[/C][C]551.771414[/C][C]0.0783[/C][C]0.937898[/C][C]0.468949[/C][/ROW]
[ROW][C]M5[/C][C]-17.5093311952292[/C][C]551.917498[/C][C]-0.0317[/C][C]0.974826[/C][C]0.487413[/C][/ROW]
[ROW][C]M6[/C][C]80.4289009723294[/C][C]552.176089[/C][C]0.1457[/C][C]0.884814[/C][C]0.442407[/C][/ROW]
[ROW][C]M7[/C][C]113.359632514790[/C][C]551.981421[/C][C]0.2054[/C][C]0.838171[/C][C]0.419086[/C][/ROW]
[ROW][C]M8[/C][C]-36.0877919874512[/C][C]552.411094[/C][C]-0.0653[/C][C]0.94819[/C][C]0.474095[/C][/ROW]
[ROW][C]M9[/C][C]-73.0366645904004[/C][C]552.094385[/C][C]-0.1323[/C][C]0.89532[/C][C]0.44766[/C][/ROW]
[ROW][C]M10[/C][C]-65.9604239235216[/C][C]552.374595[/C][C]-0.1194[/C][C]0.905458[/C][C]0.452729[/C][/ROW]
[ROW][C]M11[/C][C]20.7673994902416[/C][C]551.981025[/C][C]0.0376[/C][C]0.970147[/C][C]0.485074[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69835&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69835&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)4956.68494757646668.0291217.419900
X-0.09441743862946360.031208-3.02550.0040170.002009
M1-206.665378833773555.538543-0.3720.7115580.355779
M2-162.867354864276555.04636-0.29340.7704850.385243
M3-63.2297797597224553.027403-0.11430.909460.45473
M443.2200006714761551.7714140.07830.9378980.468949
M5-17.5093311952292551.917498-0.03170.9748260.487413
M680.4289009723294552.1760890.14570.8848140.442407
M7113.359632514790551.9814210.20540.8381710.419086
M8-36.0877919874512552.411094-0.06530.948190.474095
M9-73.0366645904004552.094385-0.13230.895320.44766
M10-65.9604239235216552.374595-0.11940.9054580.452729
M1120.7673994902416551.9810250.03760.9701470.485074







Multiple Linear Regression - Regression Statistics
Multiple R0.408125227374325
R-squared0.166566201219344
Adjusted R-squared-0.0462254069799719
F-TEST (value)0.782766776513697
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.664948367821439
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation872.31795811634
Sum Squared Residuals35764115.1424563

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.408125227374325 \tabularnewline
R-squared & 0.166566201219344 \tabularnewline
Adjusted R-squared & -0.0462254069799719 \tabularnewline
F-TEST (value) & 0.782766776513697 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.664948367821439 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 872.31795811634 \tabularnewline
Sum Squared Residuals & 35764115.1424563 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69835&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.408125227374325[/C][/ROW]
[ROW][C]R-squared[/C][C]0.166566201219344[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.0462254069799719[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.782766776513697[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.664948367821439[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]872.31795811634[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]35764115.1424563[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69835&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69835&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.408125227374325
R-squared0.166566201219344
Adjusted R-squared-0.0462254069799719
F-TEST (value)0.782766776513697
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.664948367821439
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation872.31795811634
Sum Squared Residuals35764115.1424563







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12849.273723.51317596317-874.24317596317
22921.443790.63230727414-869.192307274135
32981.853910.85288399991-929.002883999913
43080.584012.01528786786-931.435287867861
53106.223942.50513420862-836.285134208616
63119.314031.94579689952-912.635796899523
73061.264059.58915187873-998.329151878732
83097.313848.67597482871-751.365974828712
93161.693812.38802429617-650.698024296168
103257.163809.55043390695-552.390433906953
113277.013847.8421113038-570.832111303802
123295.323769.48007424959-474.160074249587
133363.993519.66592596215-155.675925962150
143494.173489.723930362044.44606963796447
153667.033520.24794038982146.782059610178
163813.063590.15817207142222.901827928582
173917.963533.67762494304384.282375056961
183895.513525.96274328423369.547256715773
193801.063458.90540731809342.154592681914
203570.123488.4734464573181.646553542692
213701.613368.24839298317333.361607016828
223862.273395.24671320087467.023286799133
233970.13548.25557853251421.844421467486
244138.523544.76657031146593.753429688536
254199.753272.57548906884927.174510931157
264290.893348.75869448825942.131305511754
274443.913422.525891408331021.38410859167
284502.643456.368661533471046.27133846653
294356.983435.29465389114921.685346108862
304591.273510.289448471741080.98055152826
314696.963565.313860653491131.64613934651
324621.43437.015942404251184.38405759575
334562.843411.302744998211151.53725500179
344202.523409.97583362706792.544166372937
354296.493425.41849087558871.071509124418
364435.233348.567132839441086.66286716056
374105.183079.20857475571025.97142524430
384116.683118.38014423236998.299855767645
393844.493062.32336303692782.166636963076
403720.983097.58239474151623.397605258494
413674.43040.62976041998633.77023958002
423857.623282.46016905884575.159830941159
433801.063328.89259432531472.167405674685
443504.373184.16604175455320.203958245453
453032.63072.91064495021-40.3106449502098
463047.033183.75165067087-136.721650670869
472962.343232.33482887833-269.994828878329
482197.823101.94878313928-904.12878313928
492014.452937.67683425014-923.226834250136
501862.832938.51492364323-1075.68492364323
511905.412926.73992116501-1021.32992116501
521810.992772.12548378575-961.135483785746
531670.072773.52282653723-1103.45282653723
541864.442977.49184228567-1113.05184228567
552052.022999.65898582438-947.638985824375
562029.62864.46859455518-834.868594555183
572070.832864.72019277224-793.890192772243
582293.412863.86536859425-570.455368594246
592443.272895.35899040977-452.088990409773
602513.172815.29743946023-302.127439460229

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2849.27 & 3723.51317596317 & -874.24317596317 \tabularnewline
2 & 2921.44 & 3790.63230727414 & -869.192307274135 \tabularnewline
3 & 2981.85 & 3910.85288399991 & -929.002883999913 \tabularnewline
4 & 3080.58 & 4012.01528786786 & -931.435287867861 \tabularnewline
5 & 3106.22 & 3942.50513420862 & -836.285134208616 \tabularnewline
6 & 3119.31 & 4031.94579689952 & -912.635796899523 \tabularnewline
7 & 3061.26 & 4059.58915187873 & -998.329151878732 \tabularnewline
8 & 3097.31 & 3848.67597482871 & -751.365974828712 \tabularnewline
9 & 3161.69 & 3812.38802429617 & -650.698024296168 \tabularnewline
10 & 3257.16 & 3809.55043390695 & -552.390433906953 \tabularnewline
11 & 3277.01 & 3847.8421113038 & -570.832111303802 \tabularnewline
12 & 3295.32 & 3769.48007424959 & -474.160074249587 \tabularnewline
13 & 3363.99 & 3519.66592596215 & -155.675925962150 \tabularnewline
14 & 3494.17 & 3489.72393036204 & 4.44606963796447 \tabularnewline
15 & 3667.03 & 3520.24794038982 & 146.782059610178 \tabularnewline
16 & 3813.06 & 3590.15817207142 & 222.901827928582 \tabularnewline
17 & 3917.96 & 3533.67762494304 & 384.282375056961 \tabularnewline
18 & 3895.51 & 3525.96274328423 & 369.547256715773 \tabularnewline
19 & 3801.06 & 3458.90540731809 & 342.154592681914 \tabularnewline
20 & 3570.12 & 3488.47344645731 & 81.646553542692 \tabularnewline
21 & 3701.61 & 3368.24839298317 & 333.361607016828 \tabularnewline
22 & 3862.27 & 3395.24671320087 & 467.023286799133 \tabularnewline
23 & 3970.1 & 3548.25557853251 & 421.844421467486 \tabularnewline
24 & 4138.52 & 3544.76657031146 & 593.753429688536 \tabularnewline
25 & 4199.75 & 3272.57548906884 & 927.174510931157 \tabularnewline
26 & 4290.89 & 3348.75869448825 & 942.131305511754 \tabularnewline
27 & 4443.91 & 3422.52589140833 & 1021.38410859167 \tabularnewline
28 & 4502.64 & 3456.36866153347 & 1046.27133846653 \tabularnewline
29 & 4356.98 & 3435.29465389114 & 921.685346108862 \tabularnewline
30 & 4591.27 & 3510.28944847174 & 1080.98055152826 \tabularnewline
31 & 4696.96 & 3565.31386065349 & 1131.64613934651 \tabularnewline
32 & 4621.4 & 3437.01594240425 & 1184.38405759575 \tabularnewline
33 & 4562.84 & 3411.30274499821 & 1151.53725500179 \tabularnewline
34 & 4202.52 & 3409.97583362706 & 792.544166372937 \tabularnewline
35 & 4296.49 & 3425.41849087558 & 871.071509124418 \tabularnewline
36 & 4435.23 & 3348.56713283944 & 1086.66286716056 \tabularnewline
37 & 4105.18 & 3079.2085747557 & 1025.97142524430 \tabularnewline
38 & 4116.68 & 3118.38014423236 & 998.299855767645 \tabularnewline
39 & 3844.49 & 3062.32336303692 & 782.166636963076 \tabularnewline
40 & 3720.98 & 3097.58239474151 & 623.397605258494 \tabularnewline
41 & 3674.4 & 3040.62976041998 & 633.77023958002 \tabularnewline
42 & 3857.62 & 3282.46016905884 & 575.159830941159 \tabularnewline
43 & 3801.06 & 3328.89259432531 & 472.167405674685 \tabularnewline
44 & 3504.37 & 3184.16604175455 & 320.203958245453 \tabularnewline
45 & 3032.6 & 3072.91064495021 & -40.3106449502098 \tabularnewline
46 & 3047.03 & 3183.75165067087 & -136.721650670869 \tabularnewline
47 & 2962.34 & 3232.33482887833 & -269.994828878329 \tabularnewline
48 & 2197.82 & 3101.94878313928 & -904.12878313928 \tabularnewline
49 & 2014.45 & 2937.67683425014 & -923.226834250136 \tabularnewline
50 & 1862.83 & 2938.51492364323 & -1075.68492364323 \tabularnewline
51 & 1905.41 & 2926.73992116501 & -1021.32992116501 \tabularnewline
52 & 1810.99 & 2772.12548378575 & -961.135483785746 \tabularnewline
53 & 1670.07 & 2773.52282653723 & -1103.45282653723 \tabularnewline
54 & 1864.44 & 2977.49184228567 & -1113.05184228567 \tabularnewline
55 & 2052.02 & 2999.65898582438 & -947.638985824375 \tabularnewline
56 & 2029.6 & 2864.46859455518 & -834.868594555183 \tabularnewline
57 & 2070.83 & 2864.72019277224 & -793.890192772243 \tabularnewline
58 & 2293.41 & 2863.86536859425 & -570.455368594246 \tabularnewline
59 & 2443.27 & 2895.35899040977 & -452.088990409773 \tabularnewline
60 & 2513.17 & 2815.29743946023 & -302.127439460229 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69835&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]2849.27[/C][C]3723.51317596317[/C][C]-874.24317596317[/C][/ROW]
[ROW][C]2[/C][C]2921.44[/C][C]3790.63230727414[/C][C]-869.192307274135[/C][/ROW]
[ROW][C]3[/C][C]2981.85[/C][C]3910.85288399991[/C][C]-929.002883999913[/C][/ROW]
[ROW][C]4[/C][C]3080.58[/C][C]4012.01528786786[/C][C]-931.435287867861[/C][/ROW]
[ROW][C]5[/C][C]3106.22[/C][C]3942.50513420862[/C][C]-836.285134208616[/C][/ROW]
[ROW][C]6[/C][C]3119.31[/C][C]4031.94579689952[/C][C]-912.635796899523[/C][/ROW]
[ROW][C]7[/C][C]3061.26[/C][C]4059.58915187873[/C][C]-998.329151878732[/C][/ROW]
[ROW][C]8[/C][C]3097.31[/C][C]3848.67597482871[/C][C]-751.365974828712[/C][/ROW]
[ROW][C]9[/C][C]3161.69[/C][C]3812.38802429617[/C][C]-650.698024296168[/C][/ROW]
[ROW][C]10[/C][C]3257.16[/C][C]3809.55043390695[/C][C]-552.390433906953[/C][/ROW]
[ROW][C]11[/C][C]3277.01[/C][C]3847.8421113038[/C][C]-570.832111303802[/C][/ROW]
[ROW][C]12[/C][C]3295.32[/C][C]3769.48007424959[/C][C]-474.160074249587[/C][/ROW]
[ROW][C]13[/C][C]3363.99[/C][C]3519.66592596215[/C][C]-155.675925962150[/C][/ROW]
[ROW][C]14[/C][C]3494.17[/C][C]3489.72393036204[/C][C]4.44606963796447[/C][/ROW]
[ROW][C]15[/C][C]3667.03[/C][C]3520.24794038982[/C][C]146.782059610178[/C][/ROW]
[ROW][C]16[/C][C]3813.06[/C][C]3590.15817207142[/C][C]222.901827928582[/C][/ROW]
[ROW][C]17[/C][C]3917.96[/C][C]3533.67762494304[/C][C]384.282375056961[/C][/ROW]
[ROW][C]18[/C][C]3895.51[/C][C]3525.96274328423[/C][C]369.547256715773[/C][/ROW]
[ROW][C]19[/C][C]3801.06[/C][C]3458.90540731809[/C][C]342.154592681914[/C][/ROW]
[ROW][C]20[/C][C]3570.12[/C][C]3488.47344645731[/C][C]81.646553542692[/C][/ROW]
[ROW][C]21[/C][C]3701.61[/C][C]3368.24839298317[/C][C]333.361607016828[/C][/ROW]
[ROW][C]22[/C][C]3862.27[/C][C]3395.24671320087[/C][C]467.023286799133[/C][/ROW]
[ROW][C]23[/C][C]3970.1[/C][C]3548.25557853251[/C][C]421.844421467486[/C][/ROW]
[ROW][C]24[/C][C]4138.52[/C][C]3544.76657031146[/C][C]593.753429688536[/C][/ROW]
[ROW][C]25[/C][C]4199.75[/C][C]3272.57548906884[/C][C]927.174510931157[/C][/ROW]
[ROW][C]26[/C][C]4290.89[/C][C]3348.75869448825[/C][C]942.131305511754[/C][/ROW]
[ROW][C]27[/C][C]4443.91[/C][C]3422.52589140833[/C][C]1021.38410859167[/C][/ROW]
[ROW][C]28[/C][C]4502.64[/C][C]3456.36866153347[/C][C]1046.27133846653[/C][/ROW]
[ROW][C]29[/C][C]4356.98[/C][C]3435.29465389114[/C][C]921.685346108862[/C][/ROW]
[ROW][C]30[/C][C]4591.27[/C][C]3510.28944847174[/C][C]1080.98055152826[/C][/ROW]
[ROW][C]31[/C][C]4696.96[/C][C]3565.31386065349[/C][C]1131.64613934651[/C][/ROW]
[ROW][C]32[/C][C]4621.4[/C][C]3437.01594240425[/C][C]1184.38405759575[/C][/ROW]
[ROW][C]33[/C][C]4562.84[/C][C]3411.30274499821[/C][C]1151.53725500179[/C][/ROW]
[ROW][C]34[/C][C]4202.52[/C][C]3409.97583362706[/C][C]792.544166372937[/C][/ROW]
[ROW][C]35[/C][C]4296.49[/C][C]3425.41849087558[/C][C]871.071509124418[/C][/ROW]
[ROW][C]36[/C][C]4435.23[/C][C]3348.56713283944[/C][C]1086.66286716056[/C][/ROW]
[ROW][C]37[/C][C]4105.18[/C][C]3079.2085747557[/C][C]1025.97142524430[/C][/ROW]
[ROW][C]38[/C][C]4116.68[/C][C]3118.38014423236[/C][C]998.299855767645[/C][/ROW]
[ROW][C]39[/C][C]3844.49[/C][C]3062.32336303692[/C][C]782.166636963076[/C][/ROW]
[ROW][C]40[/C][C]3720.98[/C][C]3097.58239474151[/C][C]623.397605258494[/C][/ROW]
[ROW][C]41[/C][C]3674.4[/C][C]3040.62976041998[/C][C]633.77023958002[/C][/ROW]
[ROW][C]42[/C][C]3857.62[/C][C]3282.46016905884[/C][C]575.159830941159[/C][/ROW]
[ROW][C]43[/C][C]3801.06[/C][C]3328.89259432531[/C][C]472.167405674685[/C][/ROW]
[ROW][C]44[/C][C]3504.37[/C][C]3184.16604175455[/C][C]320.203958245453[/C][/ROW]
[ROW][C]45[/C][C]3032.6[/C][C]3072.91064495021[/C][C]-40.3106449502098[/C][/ROW]
[ROW][C]46[/C][C]3047.03[/C][C]3183.75165067087[/C][C]-136.721650670869[/C][/ROW]
[ROW][C]47[/C][C]2962.34[/C][C]3232.33482887833[/C][C]-269.994828878329[/C][/ROW]
[ROW][C]48[/C][C]2197.82[/C][C]3101.94878313928[/C][C]-904.12878313928[/C][/ROW]
[ROW][C]49[/C][C]2014.45[/C][C]2937.67683425014[/C][C]-923.226834250136[/C][/ROW]
[ROW][C]50[/C][C]1862.83[/C][C]2938.51492364323[/C][C]-1075.68492364323[/C][/ROW]
[ROW][C]51[/C][C]1905.41[/C][C]2926.73992116501[/C][C]-1021.32992116501[/C][/ROW]
[ROW][C]52[/C][C]1810.99[/C][C]2772.12548378575[/C][C]-961.135483785746[/C][/ROW]
[ROW][C]53[/C][C]1670.07[/C][C]2773.52282653723[/C][C]-1103.45282653723[/C][/ROW]
[ROW][C]54[/C][C]1864.44[/C][C]2977.49184228567[/C][C]-1113.05184228567[/C][/ROW]
[ROW][C]55[/C][C]2052.02[/C][C]2999.65898582438[/C][C]-947.638985824375[/C][/ROW]
[ROW][C]56[/C][C]2029.6[/C][C]2864.46859455518[/C][C]-834.868594555183[/C][/ROW]
[ROW][C]57[/C][C]2070.83[/C][C]2864.72019277224[/C][C]-793.890192772243[/C][/ROW]
[ROW][C]58[/C][C]2293.41[/C][C]2863.86536859425[/C][C]-570.455368594246[/C][/ROW]
[ROW][C]59[/C][C]2443.27[/C][C]2895.35899040977[/C][C]-452.088990409773[/C][/ROW]
[ROW][C]60[/C][C]2513.17[/C][C]2815.29743946023[/C][C]-302.127439460229[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69835&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69835&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
12849.273723.51317596317-874.24317596317
22921.443790.63230727414-869.192307274135
32981.853910.85288399991-929.002883999913
43080.584012.01528786786-931.435287867861
53106.223942.50513420862-836.285134208616
63119.314031.94579689952-912.635796899523
73061.264059.58915187873-998.329151878732
83097.313848.67597482871-751.365974828712
93161.693812.38802429617-650.698024296168
103257.163809.55043390695-552.390433906953
113277.013847.8421113038-570.832111303802
123295.323769.48007424959-474.160074249587
133363.993519.66592596215-155.675925962150
143494.173489.723930362044.44606963796447
153667.033520.24794038982146.782059610178
163813.063590.15817207142222.901827928582
173917.963533.67762494304384.282375056961
183895.513525.96274328423369.547256715773
193801.063458.90540731809342.154592681914
203570.123488.4734464573181.646553542692
213701.613368.24839298317333.361607016828
223862.273395.24671320087467.023286799133
233970.13548.25557853251421.844421467486
244138.523544.76657031146593.753429688536
254199.753272.57548906884927.174510931157
264290.893348.75869448825942.131305511754
274443.913422.525891408331021.38410859167
284502.643456.368661533471046.27133846653
294356.983435.29465389114921.685346108862
304591.273510.289448471741080.98055152826
314696.963565.313860653491131.64613934651
324621.43437.015942404251184.38405759575
334562.843411.302744998211151.53725500179
344202.523409.97583362706792.544166372937
354296.493425.41849087558871.071509124418
364435.233348.567132839441086.66286716056
374105.183079.20857475571025.97142524430
384116.683118.38014423236998.299855767645
393844.493062.32336303692782.166636963076
403720.983097.58239474151623.397605258494
413674.43040.62976041998633.77023958002
423857.623282.46016905884575.159830941159
433801.063328.89259432531472.167405674685
443504.373184.16604175455320.203958245453
453032.63072.91064495021-40.3106449502098
463047.033183.75165067087-136.721650670869
472962.343232.33482887833-269.994828878329
482197.823101.94878313928-904.12878313928
492014.452937.67683425014-923.226834250136
501862.832938.51492364323-1075.68492364323
511905.412926.73992116501-1021.32992116501
521810.992772.12548378575-961.135483785746
531670.072773.52282653723-1103.45282653723
541864.442977.49184228567-1113.05184228567
552052.022999.65898582438-947.638985824375
562029.62864.46859455518-834.868594555183
572070.832864.72019277224-793.890192772243
582293.412863.86536859425-570.455368594246
592443.272895.35899040977-452.088990409773
602513.172815.29743946023-302.127439460229







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.001973955351813740.003947910703627490.998026044648186
170.0002501401150610290.0005002802301220570.99974985988494
180.000109902126470810.000219804252941620.99989009787353
190.0002125692083041420.0004251384166082840.999787430791696
206.70559067973575e-050.0001341118135947150.999932944093203
212.32788329008024e-054.65576658016047e-050.999976721167099
224.18621813678232e-068.37243627356463e-060.999995813781863
233.29587635284704e-066.59175270569408e-060.999996704123647
243.83749912654468e-057.67499825308936e-050.999961625008735
250.0001883184037811300.0003766368075622600.999811681596219
260.0005817697206397340.001163539441279470.99941823027936
270.001128712745307950.002257425490615910.998871287254692
280.0009609301140079740.001921860228015950.999039069885992
290.0006590626357890680.001318125271578140.99934093736421
300.0007637531095880890.001527506219176180.999236246890412
310.002713363449784380.005426726899568770.997286636550216
320.004432262803271150.00886452560654230.995567737196729
330.005226494226968560.01045298845393710.994773505773031
340.002804498552478270.005608997104956550.997195501447522
350.001283942774362400.002567885548724810.998716057225638
360.0005546019792928210.001109203958585640.999445398020707
370.001188999121111380.002377998242222760.998811000878889
380.003788761696631090.007577523393262180.99621123830337
390.03662707880080750.0732541576016150.963372921199192
400.08009252539743650.1601850507948730.919907474602564
410.1812425685643460.3624851371286930.818757431435654
420.2754250754480440.5508501508960880.724574924551956
430.3573185197442570.7146370394885150.642681480255743
440.4789912500335250.957982500067050.521008749966475

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.00197395535181374 & 0.00394791070362749 & 0.998026044648186 \tabularnewline
17 & 0.000250140115061029 & 0.000500280230122057 & 0.99974985988494 \tabularnewline
18 & 0.00010990212647081 & 0.00021980425294162 & 0.99989009787353 \tabularnewline
19 & 0.000212569208304142 & 0.000425138416608284 & 0.999787430791696 \tabularnewline
20 & 6.70559067973575e-05 & 0.000134111813594715 & 0.999932944093203 \tabularnewline
21 & 2.32788329008024e-05 & 4.65576658016047e-05 & 0.999976721167099 \tabularnewline
22 & 4.18621813678232e-06 & 8.37243627356463e-06 & 0.999995813781863 \tabularnewline
23 & 3.29587635284704e-06 & 6.59175270569408e-06 & 0.999996704123647 \tabularnewline
24 & 3.83749912654468e-05 & 7.67499825308936e-05 & 0.999961625008735 \tabularnewline
25 & 0.000188318403781130 & 0.000376636807562260 & 0.999811681596219 \tabularnewline
26 & 0.000581769720639734 & 0.00116353944127947 & 0.99941823027936 \tabularnewline
27 & 0.00112871274530795 & 0.00225742549061591 & 0.998871287254692 \tabularnewline
28 & 0.000960930114007974 & 0.00192186022801595 & 0.999039069885992 \tabularnewline
29 & 0.000659062635789068 & 0.00131812527157814 & 0.99934093736421 \tabularnewline
30 & 0.000763753109588089 & 0.00152750621917618 & 0.999236246890412 \tabularnewline
31 & 0.00271336344978438 & 0.00542672689956877 & 0.997286636550216 \tabularnewline
32 & 0.00443226280327115 & 0.0088645256065423 & 0.995567737196729 \tabularnewline
33 & 0.00522649422696856 & 0.0104529884539371 & 0.994773505773031 \tabularnewline
34 & 0.00280449855247827 & 0.00560899710495655 & 0.997195501447522 \tabularnewline
35 & 0.00128394277436240 & 0.00256788554872481 & 0.998716057225638 \tabularnewline
36 & 0.000554601979292821 & 0.00110920395858564 & 0.999445398020707 \tabularnewline
37 & 0.00118899912111138 & 0.00237799824222276 & 0.998811000878889 \tabularnewline
38 & 0.00378876169663109 & 0.00757752339326218 & 0.99621123830337 \tabularnewline
39 & 0.0366270788008075 & 0.073254157601615 & 0.963372921199192 \tabularnewline
40 & 0.0800925253974365 & 0.160185050794873 & 0.919907474602564 \tabularnewline
41 & 0.181242568564346 & 0.362485137128693 & 0.818757431435654 \tabularnewline
42 & 0.275425075448044 & 0.550850150896088 & 0.724574924551956 \tabularnewline
43 & 0.357318519744257 & 0.714637039488515 & 0.642681480255743 \tabularnewline
44 & 0.478991250033525 & 0.95798250006705 & 0.521008749966475 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69835&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]16[/C][C]0.00197395535181374[/C][C]0.00394791070362749[/C][C]0.998026044648186[/C][/ROW]
[ROW][C]17[/C][C]0.000250140115061029[/C][C]0.000500280230122057[/C][C]0.99974985988494[/C][/ROW]
[ROW][C]18[/C][C]0.00010990212647081[/C][C]0.00021980425294162[/C][C]0.99989009787353[/C][/ROW]
[ROW][C]19[/C][C]0.000212569208304142[/C][C]0.000425138416608284[/C][C]0.999787430791696[/C][/ROW]
[ROW][C]20[/C][C]6.70559067973575e-05[/C][C]0.000134111813594715[/C][C]0.999932944093203[/C][/ROW]
[ROW][C]21[/C][C]2.32788329008024e-05[/C][C]4.65576658016047e-05[/C][C]0.999976721167099[/C][/ROW]
[ROW][C]22[/C][C]4.18621813678232e-06[/C][C]8.37243627356463e-06[/C][C]0.999995813781863[/C][/ROW]
[ROW][C]23[/C][C]3.29587635284704e-06[/C][C]6.59175270569408e-06[/C][C]0.999996704123647[/C][/ROW]
[ROW][C]24[/C][C]3.83749912654468e-05[/C][C]7.67499825308936e-05[/C][C]0.999961625008735[/C][/ROW]
[ROW][C]25[/C][C]0.000188318403781130[/C][C]0.000376636807562260[/C][C]0.999811681596219[/C][/ROW]
[ROW][C]26[/C][C]0.000581769720639734[/C][C]0.00116353944127947[/C][C]0.99941823027936[/C][/ROW]
[ROW][C]27[/C][C]0.00112871274530795[/C][C]0.00225742549061591[/C][C]0.998871287254692[/C][/ROW]
[ROW][C]28[/C][C]0.000960930114007974[/C][C]0.00192186022801595[/C][C]0.999039069885992[/C][/ROW]
[ROW][C]29[/C][C]0.000659062635789068[/C][C]0.00131812527157814[/C][C]0.99934093736421[/C][/ROW]
[ROW][C]30[/C][C]0.000763753109588089[/C][C]0.00152750621917618[/C][C]0.999236246890412[/C][/ROW]
[ROW][C]31[/C][C]0.00271336344978438[/C][C]0.00542672689956877[/C][C]0.997286636550216[/C][/ROW]
[ROW][C]32[/C][C]0.00443226280327115[/C][C]0.0088645256065423[/C][C]0.995567737196729[/C][/ROW]
[ROW][C]33[/C][C]0.00522649422696856[/C][C]0.0104529884539371[/C][C]0.994773505773031[/C][/ROW]
[ROW][C]34[/C][C]0.00280449855247827[/C][C]0.00560899710495655[/C][C]0.997195501447522[/C][/ROW]
[ROW][C]35[/C][C]0.00128394277436240[/C][C]0.00256788554872481[/C][C]0.998716057225638[/C][/ROW]
[ROW][C]36[/C][C]0.000554601979292821[/C][C]0.00110920395858564[/C][C]0.999445398020707[/C][/ROW]
[ROW][C]37[/C][C]0.00118899912111138[/C][C]0.00237799824222276[/C][C]0.998811000878889[/C][/ROW]
[ROW][C]38[/C][C]0.00378876169663109[/C][C]0.00757752339326218[/C][C]0.99621123830337[/C][/ROW]
[ROW][C]39[/C][C]0.0366270788008075[/C][C]0.073254157601615[/C][C]0.963372921199192[/C][/ROW]
[ROW][C]40[/C][C]0.0800925253974365[/C][C]0.160185050794873[/C][C]0.919907474602564[/C][/ROW]
[ROW][C]41[/C][C]0.181242568564346[/C][C]0.362485137128693[/C][C]0.818757431435654[/C][/ROW]
[ROW][C]42[/C][C]0.275425075448044[/C][C]0.550850150896088[/C][C]0.724574924551956[/C][/ROW]
[ROW][C]43[/C][C]0.357318519744257[/C][C]0.714637039488515[/C][C]0.642681480255743[/C][/ROW]
[ROW][C]44[/C][C]0.478991250033525[/C][C]0.95798250006705[/C][C]0.521008749966475[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69835&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69835&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
160.001973955351813740.003947910703627490.998026044648186
170.0002501401150610290.0005002802301220570.99974985988494
180.000109902126470810.000219804252941620.99989009787353
190.0002125692083041420.0004251384166082840.999787430791696
206.70559067973575e-050.0001341118135947150.999932944093203
212.32788329008024e-054.65576658016047e-050.999976721167099
224.18621813678232e-068.37243627356463e-060.999995813781863
233.29587635284704e-066.59175270569408e-060.999996704123647
243.83749912654468e-057.67499825308936e-050.999961625008735
250.0001883184037811300.0003766368075622600.999811681596219
260.0005817697206397340.001163539441279470.99941823027936
270.001128712745307950.002257425490615910.998871287254692
280.0009609301140079740.001921860228015950.999039069885992
290.0006590626357890680.001318125271578140.99934093736421
300.0007637531095880890.001527506219176180.999236246890412
310.002713363449784380.005426726899568770.997286636550216
320.004432262803271150.00886452560654230.995567737196729
330.005226494226968560.01045298845393710.994773505773031
340.002804498552478270.005608997104956550.997195501447522
350.001283942774362400.002567885548724810.998716057225638
360.0005546019792928210.001109203958585640.999445398020707
370.001188999121111380.002377998242222760.998811000878889
380.003788761696631090.007577523393262180.99621123830337
390.03662707880080750.0732541576016150.963372921199192
400.08009252539743650.1601850507948730.919907474602564
410.1812425685643460.3624851371286930.818757431435654
420.2754250754480440.5508501508960880.724574924551956
430.3573185197442570.7146370394885150.642681480255743
440.4789912500335250.957982500067050.521008749966475







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level220.758620689655172NOK
5% type I error level230.793103448275862NOK
10% type I error level240.827586206896552NOK

\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 & 22 & 0.758620689655172 & NOK \tabularnewline
5% type I error level & 23 & 0.793103448275862 & NOK \tabularnewline
10% type I error level & 24 & 0.827586206896552 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69835&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]22[/C][C]0.758620689655172[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]23[/C][C]0.793103448275862[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]24[/C][C]0.827586206896552[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69835&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69835&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 level220.758620689655172NOK
5% type I error level230.793103448275862NOK
10% type I error level240.827586206896552NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}