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, 30 Nov 2009 12:16:26 -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/Nov/30/t1259608667z4pw606r6dmkazf.htm/, Retrieved Wed, 01 May 2024 20:22:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61866, Retrieved Wed, 01 May 2024 20:22:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsws7 link 4 verbetering
Estimated Impact128
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [WS7 link4] [2009-11-20 12:08:05] [616e2df490b611f6cb7080068870ecbd]
-    D        [Multiple Regression] [ws7 link 4 verbet...] [2009-11-30 19:16:26] [88e98f4c87ea17c4967db8279bda8533] [Current]
Feedback Forum

Post a new message
Dataseries X:
286602	326011	277915	276687	283042	286602
283042	328282	286602	277915	276687	283042
276687	317480	283042	286602	277915	276687
277915	317539	276687	283042	286602	277915
277128	313737	277915	276687	283042	286602
277103	312276	277128	277915	276687	283042
275037	309391	277103	277128	277915	276687
270150	302950	275037	277103	277128	277915
267140	300316	270150	275037	277103	277128
264993	304035	267140	270150	275037	277103
287259	333476	264993	267140	270150	275037
291186	337698	287259	264993	267140	270150
292300	335932	291186	287259	264993	267140
288186	323931	292300	291186	287259	264993
281477	313927	288186	292300	291186	287259
282656	314485	281477	288186	292300	291186
280190	313218	282656	281477	288186	292300
280408	309664	280190	282656	281477	288186
276836	302963	280408	280190	282656	281477
275216	298989	276836	280408	280190	282656
274352	298423	275216	276836	280408	280190
271311	301631	274352	275216	276836	280408
289802	329765	271311	274352	275216	276836
290726	335083	289802	271311	274352	275216
292300	327616	290726	289802	271311	274352
278506	309119	292300	290726	289802	271311
269826	295916	278506	292300	290726	289802
265861	291413	269826	278506	292300	290726
269034	291542	265861	269826	278506	292300
264176	284678	269034	265861	269826	278506
255198	276475	264176	269034	265861	269826
253353	272566	255198	264176	269034	265861
246057	264981	253353	255198	264176	269034
235372	263290	246057	253353	255198	264176
258556	296806	235372	246057	253353	255198
260993	303598	258556	235372	246057	253353
254663	286994	260993	258556	235372	246057
250643	276427	254663	260993	258556	235372
243422	266424	250643	254663	260993	258556
247105	267153	243422	250643	254663	260993
248541	268381	247105	243422	250643	254663
245039	262522	248541	247105	243422	250643
237080	255542	245039	248541	247105	243422
237085	253158	237080	245039	248541	247105
225554	243803	237085	237080	245039	248541
226839	250741	225554	237085	237080	245039
247934	280445	226839	225554	237085	237080
248333	285257	247934	226839	225554	237085
246969	270976	248333	247934	226839	225554
245098	261076	246969	248333	247934	226839
246263	255603	245098	246969	248333	247934
255765	260376	246263	245098	246969	248333
264319	263903	255765	246263	245098	246969
268347	264291	264319	255765	246263	245098
273046	263276	268347	264319	255765	246263
273963	262572	273046	268347	264319	255765
267430	256167	273963	273046	268347	264319
271993	264221	267430	273963	273046	268347
292710	293860	271993	267430	273963	273046
295881	300713	292710	271993	267430	273963
293299	287224	295881	292710	271993	267430




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=61866&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=61866&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61866&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] = -94720.9605158426 + 0.592327661009512X[t] + 0.895766698514853Y1[t] -0.417564650909098Y2[t] + 0.270154944508241Y3[t] -0.157692651463375Y4[t] + 12851.7566275878M1[t] + 8051.82719716753M2[t] + 15042.7024308202M3[t] + 19434.5168649013M4[t] + 18108.0290237541M5[t] + 18650.3443112222M6[t] + 17673.7431743616M7[t] + 20418.5457150754M8[t] + 17570.7707595111M9[t] + 18101.5818362902M10[t] + 20103.1448944525M11[t] + 520.055780191044t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -94720.9605158426 +  0.592327661009512X[t] +  0.895766698514853Y1[t] -0.417564650909098Y2[t] +  0.270154944508241Y3[t] -0.157692651463375Y4[t] +  12851.7566275878M1[t] +  8051.82719716753M2[t] +  15042.7024308202M3[t] +  19434.5168649013M4[t] +  18108.0290237541M5[t] +  18650.3443112222M6[t] +  17673.7431743616M7[t] +  20418.5457150754M8[t] +  17570.7707595111M9[t] +  18101.5818362902M10[t] +  20103.1448944525M11[t] +  520.055780191044t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61866&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -94720.9605158426 +  0.592327661009512X[t] +  0.895766698514853Y1[t] -0.417564650909098Y2[t] +  0.270154944508241Y3[t] -0.157692651463375Y4[t] +  12851.7566275878M1[t] +  8051.82719716753M2[t] +  15042.7024308202M3[t] +  19434.5168649013M4[t] +  18108.0290237541M5[t] +  18650.3443112222M6[t] +  17673.7431743616M7[t] +  20418.5457150754M8[t] +  17570.7707595111M9[t] +  18101.5818362902M10[t] +  20103.1448944525M11[t] +  520.055780191044t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61866&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61866&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] = -94720.9605158426 + 0.592327661009512X[t] + 0.895766698514853Y1[t] -0.417564650909098Y2[t] + 0.270154944508241Y3[t] -0.157692651463375Y4[t] + 12851.7566275878M1[t] + 8051.82719716753M2[t] + 15042.7024308202M3[t] + 19434.5168649013M4[t] + 18108.0290237541M5[t] + 18650.3443112222M6[t] + 17673.7431743616M7[t] + 20418.5457150754M8[t] + 17570.7707595111M9[t] + 18101.5818362902M10[t] + 20103.1448944525M11[t] + 520.055780191044t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-94720.960515842631536.948962-3.00350.0044360.002218
X0.5923276610095120.1673473.53950.0009770.000489
Y10.8957666985148530.1617675.53742e-061e-06
Y2-0.4175646509090980.181553-2.30.0263680.013184
Y30.2701549445082410.1524071.77260.0833820.041691
Y4-0.1576926514633750.108262-1.45660.1524960.076248
M112851.75662758784884.9826352.63090.0117740.005887
M28051.827197167535756.9216311.39860.1690940.084547
M315042.70243082026456.1370522.330.0245690.012285
M419434.51686490135730.2152843.39160.0015010.00075
M518108.02902375415142.9771543.52090.0010320.000516
M618650.34431122225874.3016483.17490.002770.001385
M717673.74317436166624.661222.66790.010720.00536
M820418.54571507546768.6817443.01660.0042810.002141
M917570.77075951117007.1721362.50750.0160130.008007
M1018101.58183629026211.44472.91420.0056390.00282
M1120103.14489445253929.68525.11577e-063e-06
t520.055780191044154.6676023.36240.0016320.000816

\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) & -94720.9605158426 & 31536.948962 & -3.0035 & 0.004436 & 0.002218 \tabularnewline
X & 0.592327661009512 & 0.167347 & 3.5395 & 0.000977 & 0.000489 \tabularnewline
Y1 & 0.895766698514853 & 0.161767 & 5.5374 & 2e-06 & 1e-06 \tabularnewline
Y2 & -0.417564650909098 & 0.181553 & -2.3 & 0.026368 & 0.013184 \tabularnewline
Y3 & 0.270154944508241 & 0.152407 & 1.7726 & 0.083382 & 0.041691 \tabularnewline
Y4 & -0.157692651463375 & 0.108262 & -1.4566 & 0.152496 & 0.076248 \tabularnewline
M1 & 12851.7566275878 & 4884.982635 & 2.6309 & 0.011774 & 0.005887 \tabularnewline
M2 & 8051.82719716753 & 5756.921631 & 1.3986 & 0.169094 & 0.084547 \tabularnewline
M3 & 15042.7024308202 & 6456.137052 & 2.33 & 0.024569 & 0.012285 \tabularnewline
M4 & 19434.5168649013 & 5730.215284 & 3.3916 & 0.001501 & 0.00075 \tabularnewline
M5 & 18108.0290237541 & 5142.977154 & 3.5209 & 0.001032 & 0.000516 \tabularnewline
M6 & 18650.3443112222 & 5874.301648 & 3.1749 & 0.00277 & 0.001385 \tabularnewline
M7 & 17673.7431743616 & 6624.66122 & 2.6679 & 0.01072 & 0.00536 \tabularnewline
M8 & 20418.5457150754 & 6768.681744 & 3.0166 & 0.004281 & 0.002141 \tabularnewline
M9 & 17570.7707595111 & 7007.172136 & 2.5075 & 0.016013 & 0.008007 \tabularnewline
M10 & 18101.5818362902 & 6211.4447 & 2.9142 & 0.005639 & 0.00282 \tabularnewline
M11 & 20103.1448944525 & 3929.6852 & 5.1157 & 7e-06 & 3e-06 \tabularnewline
t & 520.055780191044 & 154.667602 & 3.3624 & 0.001632 & 0.000816 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61866&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]-94720.9605158426[/C][C]31536.948962[/C][C]-3.0035[/C][C]0.004436[/C][C]0.002218[/C][/ROW]
[ROW][C]X[/C][C]0.592327661009512[/C][C]0.167347[/C][C]3.5395[/C][C]0.000977[/C][C]0.000489[/C][/ROW]
[ROW][C]Y1[/C][C]0.895766698514853[/C][C]0.161767[/C][C]5.5374[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]Y2[/C][C]-0.417564650909098[/C][C]0.181553[/C][C]-2.3[/C][C]0.026368[/C][C]0.013184[/C][/ROW]
[ROW][C]Y3[/C][C]0.270154944508241[/C][C]0.152407[/C][C]1.7726[/C][C]0.083382[/C][C]0.041691[/C][/ROW]
[ROW][C]Y4[/C][C]-0.157692651463375[/C][C]0.108262[/C][C]-1.4566[/C][C]0.152496[/C][C]0.076248[/C][/ROW]
[ROW][C]M1[/C][C]12851.7566275878[/C][C]4884.982635[/C][C]2.6309[/C][C]0.011774[/C][C]0.005887[/C][/ROW]
[ROW][C]M2[/C][C]8051.82719716753[/C][C]5756.921631[/C][C]1.3986[/C][C]0.169094[/C][C]0.084547[/C][/ROW]
[ROW][C]M3[/C][C]15042.7024308202[/C][C]6456.137052[/C][C]2.33[/C][C]0.024569[/C][C]0.012285[/C][/ROW]
[ROW][C]M4[/C][C]19434.5168649013[/C][C]5730.215284[/C][C]3.3916[/C][C]0.001501[/C][C]0.00075[/C][/ROW]
[ROW][C]M5[/C][C]18108.0290237541[/C][C]5142.977154[/C][C]3.5209[/C][C]0.001032[/C][C]0.000516[/C][/ROW]
[ROW][C]M6[/C][C]18650.3443112222[/C][C]5874.301648[/C][C]3.1749[/C][C]0.00277[/C][C]0.001385[/C][/ROW]
[ROW][C]M7[/C][C]17673.7431743616[/C][C]6624.66122[/C][C]2.6679[/C][C]0.01072[/C][C]0.00536[/C][/ROW]
[ROW][C]M8[/C][C]20418.5457150754[/C][C]6768.681744[/C][C]3.0166[/C][C]0.004281[/C][C]0.002141[/C][/ROW]
[ROW][C]M9[/C][C]17570.7707595111[/C][C]7007.172136[/C][C]2.5075[/C][C]0.016013[/C][C]0.008007[/C][/ROW]
[ROW][C]M10[/C][C]18101.5818362902[/C][C]6211.4447[/C][C]2.9142[/C][C]0.005639[/C][C]0.00282[/C][/ROW]
[ROW][C]M11[/C][C]20103.1448944525[/C][C]3929.6852[/C][C]5.1157[/C][C]7e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]t[/C][C]520.055780191044[/C][C]154.667602[/C][C]3.3624[/C][C]0.001632[/C][C]0.000816[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61866&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61866&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)-94720.960515842631536.948962-3.00350.0044360.002218
X0.5923276610095120.1673473.53950.0009770.000489
Y10.8957666985148530.1617675.53742e-061e-06
Y2-0.4175646509090980.181553-2.30.0263680.013184
Y30.2701549445082410.1524071.77260.0833820.041691
Y4-0.1576926514633750.108262-1.45660.1524960.076248
M112851.75662758784884.9826352.63090.0117740.005887
M28051.827197167535756.9216311.39860.1690940.084547
M315042.70243082026456.1370522.330.0245690.012285
M419434.51686490135730.2152843.39160.0015010.00075
M518108.02902375415142.9771543.52090.0010320.000516
M618650.34431122225874.3016483.17490.002770.001385
M717673.74317436166624.661222.66790.010720.00536
M820418.54571507546768.6817443.01660.0042810.002141
M917570.77075951117007.1721362.50750.0160130.008007
M1018101.58183629026211.44472.91420.0056390.00282
M1120103.14489445253929.68525.11577e-063e-06
t520.055780191044154.6676023.36240.0016320.000816







Multiple Linear Regression - Regression Statistics
Multiple R0.985124369674081
R-squared0.970470023725756
Adjusted R-squared0.958795381942916
F-TEST (value)83.1263212848346
F-TEST (DF numerator)17
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3685.96446459631
Sum Squared Residuals584212363.473471

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.985124369674081 \tabularnewline
R-squared & 0.970470023725756 \tabularnewline
Adjusted R-squared & 0.958795381942916 \tabularnewline
F-TEST (value) & 83.1263212848346 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3685.96446459631 \tabularnewline
Sum Squared Residuals & 584212363.473471 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61866&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.985124369674081[/C][/ROW]
[ROW][C]R-squared[/C][C]0.970470023725756[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.958795381942916[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]83.1263212848346[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]43[/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]3685.96446459631[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]584212363.473471[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61866&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61866&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.985124369674081
R-squared0.970470023725756
Adjusted R-squared0.958795381942916
F-TEST (value)83.1263212848346
F-TEST (DF numerator)17
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3685.96446459631
Sum Squared Residuals584212363.473471







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1286602276438.64294577310163.3570542271
2283042279617.2524992393424.74750076138
3276687275247.4336216031439.56637839672
4277915278141.373382996-226.373382995589
5277128276504.908751473623.09124852682
6277103274328.7024902102774.29750979044
7275037273803.4081162361233.59188376398
8270150271006.610572395-856.610572394643
9267140263721.1272941473418.87270585261
10264993265765.043609807-772.043609807469
11287259284064.5854175783194.41458242155
12291186287781.4339074643404.56609253556
13292300294222.009188872-1922.00918887193
14288186288545.555114005-359.555114005374
15281477283530.202877907-2053.20287790750
16282656284162.447686412-1506.44768641232
17280190285175.999604018-4985.99960401816
18280408280268.246807905139.753192095442
19276836278443.978042471-1607.97804247134
20275216275212.0967682993.90323170146075
21274352273037.2828746591314.71712534145
22271311274891.478715301-3580.47871530065
23289802291840.020437621-2038.02043762125
24290726293262.414173577-2536.41417357664
25292300294632.52167068-2332.52167067987
26278506285895.448752782-7389.44875278206
27269826269906.153408989-80.1534089887796
28265861270414.91988997-4553.91988997006
29269034265782.9187696143251.08123038630
30264176267107.7318633-2931.73186329997
31255198256413.363304377-1215.36330437660
32253353252831.601455222521.39854477773
33246057246294.511344679-237.51134467947
34235372238919.264884460-3547.26488445952
35258556255685.950880832870.04911917025
36260993263674.977140295-2681.97714029476
37254663257977.865645282-3314.86564528209
38250643248699.2755596661943.72444033395
39243422246329.776260896-2907.77626089623
40247105244789.354116372315.64588363029
41248541250936.815124818-2395.81512481807
42245039246960.304400980-1921.30440098034
43237080240766.393450401-3686.3934504008
44237085236759.207346437325.792653562820
45225554231045.609529229-5491.6095292287
46226839224276.9485365372562.05146346283
47247934251615.493002461-3681.49300246100
48248333250126.367393348-1793.36739334811
49246969248753.536143747-1784.53614374741
50245098242717.4680743082380.53192569210
51246263242661.4338306043601.56616939579
52255765251793.9049242523971.09507574767
53264319260811.3577500773507.64224992311
54268347266408.0144376061938.98556239443
55273046267769.8570865155276.14291348477
56273963273957.4838576475.51614235262969
57267430266434.468957286995.53104271411
58271993266655.2642538955337.7357461048
59292710293054.950261510-344.950261509565
60295881292273.8073853163607.19261468396
61293299294108.424405646-809.424405645755

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 286602 & 276438.642945773 & 10163.3570542271 \tabularnewline
2 & 283042 & 279617.252499239 & 3424.74750076138 \tabularnewline
3 & 276687 & 275247.433621603 & 1439.56637839672 \tabularnewline
4 & 277915 & 278141.373382996 & -226.373382995589 \tabularnewline
5 & 277128 & 276504.908751473 & 623.09124852682 \tabularnewline
6 & 277103 & 274328.702490210 & 2774.29750979044 \tabularnewline
7 & 275037 & 273803.408116236 & 1233.59188376398 \tabularnewline
8 & 270150 & 271006.610572395 & -856.610572394643 \tabularnewline
9 & 267140 & 263721.127294147 & 3418.87270585261 \tabularnewline
10 & 264993 & 265765.043609807 & -772.043609807469 \tabularnewline
11 & 287259 & 284064.585417578 & 3194.41458242155 \tabularnewline
12 & 291186 & 287781.433907464 & 3404.56609253556 \tabularnewline
13 & 292300 & 294222.009188872 & -1922.00918887193 \tabularnewline
14 & 288186 & 288545.555114005 & -359.555114005374 \tabularnewline
15 & 281477 & 283530.202877907 & -2053.20287790750 \tabularnewline
16 & 282656 & 284162.447686412 & -1506.44768641232 \tabularnewline
17 & 280190 & 285175.999604018 & -4985.99960401816 \tabularnewline
18 & 280408 & 280268.246807905 & 139.753192095442 \tabularnewline
19 & 276836 & 278443.978042471 & -1607.97804247134 \tabularnewline
20 & 275216 & 275212.096768299 & 3.90323170146075 \tabularnewline
21 & 274352 & 273037.282874659 & 1314.71712534145 \tabularnewline
22 & 271311 & 274891.478715301 & -3580.47871530065 \tabularnewline
23 & 289802 & 291840.020437621 & -2038.02043762125 \tabularnewline
24 & 290726 & 293262.414173577 & -2536.41417357664 \tabularnewline
25 & 292300 & 294632.52167068 & -2332.52167067987 \tabularnewline
26 & 278506 & 285895.448752782 & -7389.44875278206 \tabularnewline
27 & 269826 & 269906.153408989 & -80.1534089887796 \tabularnewline
28 & 265861 & 270414.91988997 & -4553.91988997006 \tabularnewline
29 & 269034 & 265782.918769614 & 3251.08123038630 \tabularnewline
30 & 264176 & 267107.7318633 & -2931.73186329997 \tabularnewline
31 & 255198 & 256413.363304377 & -1215.36330437660 \tabularnewline
32 & 253353 & 252831.601455222 & 521.39854477773 \tabularnewline
33 & 246057 & 246294.511344679 & -237.51134467947 \tabularnewline
34 & 235372 & 238919.264884460 & -3547.26488445952 \tabularnewline
35 & 258556 & 255685.95088083 & 2870.04911917025 \tabularnewline
36 & 260993 & 263674.977140295 & -2681.97714029476 \tabularnewline
37 & 254663 & 257977.865645282 & -3314.86564528209 \tabularnewline
38 & 250643 & 248699.275559666 & 1943.72444033395 \tabularnewline
39 & 243422 & 246329.776260896 & -2907.77626089623 \tabularnewline
40 & 247105 & 244789.35411637 & 2315.64588363029 \tabularnewline
41 & 248541 & 250936.815124818 & -2395.81512481807 \tabularnewline
42 & 245039 & 246960.304400980 & -1921.30440098034 \tabularnewline
43 & 237080 & 240766.393450401 & -3686.3934504008 \tabularnewline
44 & 237085 & 236759.207346437 & 325.792653562820 \tabularnewline
45 & 225554 & 231045.609529229 & -5491.6095292287 \tabularnewline
46 & 226839 & 224276.948536537 & 2562.05146346283 \tabularnewline
47 & 247934 & 251615.493002461 & -3681.49300246100 \tabularnewline
48 & 248333 & 250126.367393348 & -1793.36739334811 \tabularnewline
49 & 246969 & 248753.536143747 & -1784.53614374741 \tabularnewline
50 & 245098 & 242717.468074308 & 2380.53192569210 \tabularnewline
51 & 246263 & 242661.433830604 & 3601.56616939579 \tabularnewline
52 & 255765 & 251793.904924252 & 3971.09507574767 \tabularnewline
53 & 264319 & 260811.357750077 & 3507.64224992311 \tabularnewline
54 & 268347 & 266408.014437606 & 1938.98556239443 \tabularnewline
55 & 273046 & 267769.857086515 & 5276.14291348477 \tabularnewline
56 & 273963 & 273957.483857647 & 5.51614235262969 \tabularnewline
57 & 267430 & 266434.468957286 & 995.53104271411 \tabularnewline
58 & 271993 & 266655.264253895 & 5337.7357461048 \tabularnewline
59 & 292710 & 293054.950261510 & -344.950261509565 \tabularnewline
60 & 295881 & 292273.807385316 & 3607.19261468396 \tabularnewline
61 & 293299 & 294108.424405646 & -809.424405645755 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61866&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]286602[/C][C]276438.642945773[/C][C]10163.3570542271[/C][/ROW]
[ROW][C]2[/C][C]283042[/C][C]279617.252499239[/C][C]3424.74750076138[/C][/ROW]
[ROW][C]3[/C][C]276687[/C][C]275247.433621603[/C][C]1439.56637839672[/C][/ROW]
[ROW][C]4[/C][C]277915[/C][C]278141.373382996[/C][C]-226.373382995589[/C][/ROW]
[ROW][C]5[/C][C]277128[/C][C]276504.908751473[/C][C]623.09124852682[/C][/ROW]
[ROW][C]6[/C][C]277103[/C][C]274328.702490210[/C][C]2774.29750979044[/C][/ROW]
[ROW][C]7[/C][C]275037[/C][C]273803.408116236[/C][C]1233.59188376398[/C][/ROW]
[ROW][C]8[/C][C]270150[/C][C]271006.610572395[/C][C]-856.610572394643[/C][/ROW]
[ROW][C]9[/C][C]267140[/C][C]263721.127294147[/C][C]3418.87270585261[/C][/ROW]
[ROW][C]10[/C][C]264993[/C][C]265765.043609807[/C][C]-772.043609807469[/C][/ROW]
[ROW][C]11[/C][C]287259[/C][C]284064.585417578[/C][C]3194.41458242155[/C][/ROW]
[ROW][C]12[/C][C]291186[/C][C]287781.433907464[/C][C]3404.56609253556[/C][/ROW]
[ROW][C]13[/C][C]292300[/C][C]294222.009188872[/C][C]-1922.00918887193[/C][/ROW]
[ROW][C]14[/C][C]288186[/C][C]288545.555114005[/C][C]-359.555114005374[/C][/ROW]
[ROW][C]15[/C][C]281477[/C][C]283530.202877907[/C][C]-2053.20287790750[/C][/ROW]
[ROW][C]16[/C][C]282656[/C][C]284162.447686412[/C][C]-1506.44768641232[/C][/ROW]
[ROW][C]17[/C][C]280190[/C][C]285175.999604018[/C][C]-4985.99960401816[/C][/ROW]
[ROW][C]18[/C][C]280408[/C][C]280268.246807905[/C][C]139.753192095442[/C][/ROW]
[ROW][C]19[/C][C]276836[/C][C]278443.978042471[/C][C]-1607.97804247134[/C][/ROW]
[ROW][C]20[/C][C]275216[/C][C]275212.096768299[/C][C]3.90323170146075[/C][/ROW]
[ROW][C]21[/C][C]274352[/C][C]273037.282874659[/C][C]1314.71712534145[/C][/ROW]
[ROW][C]22[/C][C]271311[/C][C]274891.478715301[/C][C]-3580.47871530065[/C][/ROW]
[ROW][C]23[/C][C]289802[/C][C]291840.020437621[/C][C]-2038.02043762125[/C][/ROW]
[ROW][C]24[/C][C]290726[/C][C]293262.414173577[/C][C]-2536.41417357664[/C][/ROW]
[ROW][C]25[/C][C]292300[/C][C]294632.52167068[/C][C]-2332.52167067987[/C][/ROW]
[ROW][C]26[/C][C]278506[/C][C]285895.448752782[/C][C]-7389.44875278206[/C][/ROW]
[ROW][C]27[/C][C]269826[/C][C]269906.153408989[/C][C]-80.1534089887796[/C][/ROW]
[ROW][C]28[/C][C]265861[/C][C]270414.91988997[/C][C]-4553.91988997006[/C][/ROW]
[ROW][C]29[/C][C]269034[/C][C]265782.918769614[/C][C]3251.08123038630[/C][/ROW]
[ROW][C]30[/C][C]264176[/C][C]267107.7318633[/C][C]-2931.73186329997[/C][/ROW]
[ROW][C]31[/C][C]255198[/C][C]256413.363304377[/C][C]-1215.36330437660[/C][/ROW]
[ROW][C]32[/C][C]253353[/C][C]252831.601455222[/C][C]521.39854477773[/C][/ROW]
[ROW][C]33[/C][C]246057[/C][C]246294.511344679[/C][C]-237.51134467947[/C][/ROW]
[ROW][C]34[/C][C]235372[/C][C]238919.264884460[/C][C]-3547.26488445952[/C][/ROW]
[ROW][C]35[/C][C]258556[/C][C]255685.95088083[/C][C]2870.04911917025[/C][/ROW]
[ROW][C]36[/C][C]260993[/C][C]263674.977140295[/C][C]-2681.97714029476[/C][/ROW]
[ROW][C]37[/C][C]254663[/C][C]257977.865645282[/C][C]-3314.86564528209[/C][/ROW]
[ROW][C]38[/C][C]250643[/C][C]248699.275559666[/C][C]1943.72444033395[/C][/ROW]
[ROW][C]39[/C][C]243422[/C][C]246329.776260896[/C][C]-2907.77626089623[/C][/ROW]
[ROW][C]40[/C][C]247105[/C][C]244789.35411637[/C][C]2315.64588363029[/C][/ROW]
[ROW][C]41[/C][C]248541[/C][C]250936.815124818[/C][C]-2395.81512481807[/C][/ROW]
[ROW][C]42[/C][C]245039[/C][C]246960.304400980[/C][C]-1921.30440098034[/C][/ROW]
[ROW][C]43[/C][C]237080[/C][C]240766.393450401[/C][C]-3686.3934504008[/C][/ROW]
[ROW][C]44[/C][C]237085[/C][C]236759.207346437[/C][C]325.792653562820[/C][/ROW]
[ROW][C]45[/C][C]225554[/C][C]231045.609529229[/C][C]-5491.6095292287[/C][/ROW]
[ROW][C]46[/C][C]226839[/C][C]224276.948536537[/C][C]2562.05146346283[/C][/ROW]
[ROW][C]47[/C][C]247934[/C][C]251615.493002461[/C][C]-3681.49300246100[/C][/ROW]
[ROW][C]48[/C][C]248333[/C][C]250126.367393348[/C][C]-1793.36739334811[/C][/ROW]
[ROW][C]49[/C][C]246969[/C][C]248753.536143747[/C][C]-1784.53614374741[/C][/ROW]
[ROW][C]50[/C][C]245098[/C][C]242717.468074308[/C][C]2380.53192569210[/C][/ROW]
[ROW][C]51[/C][C]246263[/C][C]242661.433830604[/C][C]3601.56616939579[/C][/ROW]
[ROW][C]52[/C][C]255765[/C][C]251793.904924252[/C][C]3971.09507574767[/C][/ROW]
[ROW][C]53[/C][C]264319[/C][C]260811.357750077[/C][C]3507.64224992311[/C][/ROW]
[ROW][C]54[/C][C]268347[/C][C]266408.014437606[/C][C]1938.98556239443[/C][/ROW]
[ROW][C]55[/C][C]273046[/C][C]267769.857086515[/C][C]5276.14291348477[/C][/ROW]
[ROW][C]56[/C][C]273963[/C][C]273957.483857647[/C][C]5.51614235262969[/C][/ROW]
[ROW][C]57[/C][C]267430[/C][C]266434.468957286[/C][C]995.53104271411[/C][/ROW]
[ROW][C]58[/C][C]271993[/C][C]266655.264253895[/C][C]5337.7357461048[/C][/ROW]
[ROW][C]59[/C][C]292710[/C][C]293054.950261510[/C][C]-344.950261509565[/C][/ROW]
[ROW][C]60[/C][C]295881[/C][C]292273.807385316[/C][C]3607.19261468396[/C][/ROW]
[ROW][C]61[/C][C]293299[/C][C]294108.424405646[/C][C]-809.424405645755[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61866&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61866&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
1286602276438.64294577310163.3570542271
2283042279617.2524992393424.74750076138
3276687275247.4336216031439.56637839672
4277915278141.373382996-226.373382995589
5277128276504.908751473623.09124852682
6277103274328.7024902102774.29750979044
7275037273803.4081162361233.59188376398
8270150271006.610572395-856.610572394643
9267140263721.1272941473418.87270585261
10264993265765.043609807-772.043609807469
11287259284064.5854175783194.41458242155
12291186287781.4339074643404.56609253556
13292300294222.009188872-1922.00918887193
14288186288545.555114005-359.555114005374
15281477283530.202877907-2053.20287790750
16282656284162.447686412-1506.44768641232
17280190285175.999604018-4985.99960401816
18280408280268.246807905139.753192095442
19276836278443.978042471-1607.97804247134
20275216275212.0967682993.90323170146075
21274352273037.2828746591314.71712534145
22271311274891.478715301-3580.47871530065
23289802291840.020437621-2038.02043762125
24290726293262.414173577-2536.41417357664
25292300294632.52167068-2332.52167067987
26278506285895.448752782-7389.44875278206
27269826269906.153408989-80.1534089887796
28265861270414.91988997-4553.91988997006
29269034265782.9187696143251.08123038630
30264176267107.7318633-2931.73186329997
31255198256413.363304377-1215.36330437660
32253353252831.601455222521.39854477773
33246057246294.511344679-237.51134467947
34235372238919.264884460-3547.26488445952
35258556255685.950880832870.04911917025
36260993263674.977140295-2681.97714029476
37254663257977.865645282-3314.86564528209
38250643248699.2755596661943.72444033395
39243422246329.776260896-2907.77626089623
40247105244789.354116372315.64588363029
41248541250936.815124818-2395.81512481807
42245039246960.304400980-1921.30440098034
43237080240766.393450401-3686.3934504008
44237085236759.207346437325.792653562820
45225554231045.609529229-5491.6095292287
46226839224276.9485365372562.05146346283
47247934251615.493002461-3681.49300246100
48248333250126.367393348-1793.36739334811
49246969248753.536143747-1784.53614374741
50245098242717.4680743082380.53192569210
51246263242661.4338306043601.56616939579
52255765251793.9049242523971.09507574767
53264319260811.3577500773507.64224992311
54268347266408.0144376061938.98556239443
55273046267769.8570865155276.14291348477
56273963273957.4838576475.51614235262969
57267430266434.468957286995.53104271411
58271993266655.2642538955337.7357461048
59292710293054.950261510-344.950261509565
60295881292273.8073853163607.19261468396
61293299294108.424405646-809.424405645755







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.302992381396510.605984762793020.69700761860349
220.1886024943756570.3772049887513130.811397505624343
230.1273817064228380.2547634128456770.872618293577162
240.1454558939832020.2909117879664040.854544106016798
250.09886230134666040.1977246026933210.90113769865334
260.5604252273522940.8791495452954120.439574772647706
270.6840168403048940.6319663193902120.315983159695106
280.7630174410541940.4739651178916120.236982558945806
290.8050516043109140.3898967913781720.194948395689086
300.7171874157285890.5656251685428220.282812584271411
310.6351433241676740.7297133516646510.364856675832326
320.5943517433167170.8112965133665660.405648256683283
330.6706981947717540.6586036104564930.329301805228246
340.9089811779267820.1820376441464370.0910188220732183
350.9146956507684410.1706086984631180.085304349231559
360.919791650386780.160416699226440.08020834961322
370.870226710421630.2595465791567410.129773289578371
380.8165997347996730.3668005304006540.183400265200327
390.6859552949931270.6280894100137460.314044705006873
400.6757537803036320.6484924393927370.324246219696368

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.30299238139651 & 0.60598476279302 & 0.69700761860349 \tabularnewline
22 & 0.188602494375657 & 0.377204988751313 & 0.811397505624343 \tabularnewline
23 & 0.127381706422838 & 0.254763412845677 & 0.872618293577162 \tabularnewline
24 & 0.145455893983202 & 0.290911787966404 & 0.854544106016798 \tabularnewline
25 & 0.0988623013466604 & 0.197724602693321 & 0.90113769865334 \tabularnewline
26 & 0.560425227352294 & 0.879149545295412 & 0.439574772647706 \tabularnewline
27 & 0.684016840304894 & 0.631966319390212 & 0.315983159695106 \tabularnewline
28 & 0.763017441054194 & 0.473965117891612 & 0.236982558945806 \tabularnewline
29 & 0.805051604310914 & 0.389896791378172 & 0.194948395689086 \tabularnewline
30 & 0.717187415728589 & 0.565625168542822 & 0.282812584271411 \tabularnewline
31 & 0.635143324167674 & 0.729713351664651 & 0.364856675832326 \tabularnewline
32 & 0.594351743316717 & 0.811296513366566 & 0.405648256683283 \tabularnewline
33 & 0.670698194771754 & 0.658603610456493 & 0.329301805228246 \tabularnewline
34 & 0.908981177926782 & 0.182037644146437 & 0.0910188220732183 \tabularnewline
35 & 0.914695650768441 & 0.170608698463118 & 0.085304349231559 \tabularnewline
36 & 0.91979165038678 & 0.16041669922644 & 0.08020834961322 \tabularnewline
37 & 0.87022671042163 & 0.259546579156741 & 0.129773289578371 \tabularnewline
38 & 0.816599734799673 & 0.366800530400654 & 0.183400265200327 \tabularnewline
39 & 0.685955294993127 & 0.628089410013746 & 0.314044705006873 \tabularnewline
40 & 0.675753780303632 & 0.648492439392737 & 0.324246219696368 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61866&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]21[/C][C]0.30299238139651[/C][C]0.60598476279302[/C][C]0.69700761860349[/C][/ROW]
[ROW][C]22[/C][C]0.188602494375657[/C][C]0.377204988751313[/C][C]0.811397505624343[/C][/ROW]
[ROW][C]23[/C][C]0.127381706422838[/C][C]0.254763412845677[/C][C]0.872618293577162[/C][/ROW]
[ROW][C]24[/C][C]0.145455893983202[/C][C]0.290911787966404[/C][C]0.854544106016798[/C][/ROW]
[ROW][C]25[/C][C]0.0988623013466604[/C][C]0.197724602693321[/C][C]0.90113769865334[/C][/ROW]
[ROW][C]26[/C][C]0.560425227352294[/C][C]0.879149545295412[/C][C]0.439574772647706[/C][/ROW]
[ROW][C]27[/C][C]0.684016840304894[/C][C]0.631966319390212[/C][C]0.315983159695106[/C][/ROW]
[ROW][C]28[/C][C]0.763017441054194[/C][C]0.473965117891612[/C][C]0.236982558945806[/C][/ROW]
[ROW][C]29[/C][C]0.805051604310914[/C][C]0.389896791378172[/C][C]0.194948395689086[/C][/ROW]
[ROW][C]30[/C][C]0.717187415728589[/C][C]0.565625168542822[/C][C]0.282812584271411[/C][/ROW]
[ROW][C]31[/C][C]0.635143324167674[/C][C]0.729713351664651[/C][C]0.364856675832326[/C][/ROW]
[ROW][C]32[/C][C]0.594351743316717[/C][C]0.811296513366566[/C][C]0.405648256683283[/C][/ROW]
[ROW][C]33[/C][C]0.670698194771754[/C][C]0.658603610456493[/C][C]0.329301805228246[/C][/ROW]
[ROW][C]34[/C][C]0.908981177926782[/C][C]0.182037644146437[/C][C]0.0910188220732183[/C][/ROW]
[ROW][C]35[/C][C]0.914695650768441[/C][C]0.170608698463118[/C][C]0.085304349231559[/C][/ROW]
[ROW][C]36[/C][C]0.91979165038678[/C][C]0.16041669922644[/C][C]0.08020834961322[/C][/ROW]
[ROW][C]37[/C][C]0.87022671042163[/C][C]0.259546579156741[/C][C]0.129773289578371[/C][/ROW]
[ROW][C]38[/C][C]0.816599734799673[/C][C]0.366800530400654[/C][C]0.183400265200327[/C][/ROW]
[ROW][C]39[/C][C]0.685955294993127[/C][C]0.628089410013746[/C][C]0.314044705006873[/C][/ROW]
[ROW][C]40[/C][C]0.675753780303632[/C][C]0.648492439392737[/C][C]0.324246219696368[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61866&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61866&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
210.302992381396510.605984762793020.69700761860349
220.1886024943756570.3772049887513130.811397505624343
230.1273817064228380.2547634128456770.872618293577162
240.1454558939832020.2909117879664040.854544106016798
250.09886230134666040.1977246026933210.90113769865334
260.5604252273522940.8791495452954120.439574772647706
270.6840168403048940.6319663193902120.315983159695106
280.7630174410541940.4739651178916120.236982558945806
290.8050516043109140.3898967913781720.194948395689086
300.7171874157285890.5656251685428220.282812584271411
310.6351433241676740.7297133516646510.364856675832326
320.5943517433167170.8112965133665660.405648256683283
330.6706981947717540.6586036104564930.329301805228246
340.9089811779267820.1820376441464370.0910188220732183
350.9146956507684410.1706086984631180.085304349231559
360.919791650386780.160416699226440.08020834961322
370.870226710421630.2595465791567410.129773289578371
380.8165997347996730.3668005304006540.183400265200327
390.6859552949931270.6280894100137460.314044705006873
400.6757537803036320.6484924393927370.324246219696368







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61866&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61866&T=6

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

As an alternative you can also use a QR Code:  

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

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



Parameters (Session):
par1 = 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')
}