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 computationFri, 20 Nov 2009 08:02: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/Nov/20/t1258729488t2ui4xyxnb0z3if.htm/, Retrieved Thu, 18 Apr 2024 12:42:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58246, Retrieved Thu, 18 Apr 2024 12:42:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact116
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-11-20 15:02:23] [54f12ba6dfaf5b88c7c2745223d9c32f] [Current]
Feedback Forum

Post a new message
Dataseries X:
20366	0
22782	0
19169	0
13807	0
29743	0
25591	0
29096	0
26482	0
22405	0
27044	0
17970	0
18730	0
19684	0
19785	0
18479	0
10698	0
31956	0
29506	0
34506	0
27165	0
26736	0
23691	0
18157	0
17328	0
18205	0
20995	0
17382	0
9367	0
31124	0
26551	0
30651	0
25859	0
25100	0
25778	0
20418	0
18688	0
20424	0
24776	0
19814	0
12738	0
31566	0
30111	0
30019	0
31934	1
25826	1
26835	1
20205	1
17789	1
20520	1
22518	1
15572	1
11509	1
25447	1
24090	1
27786	1
26195	1
20516	1
22759	1
19028	1
16971	1
20036	1




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 18279.6417582418 -946.104395604395X[t] + 1908.22637362637M1[t] + 4080.77912087912M2[t] -7.22087912088476M3[t] -6466.62087912088M4[t] + 11876.7791208791M5[t] + 9079.37912087912M6[t] + 12321.1791208791M7[t] + 9625.8M8[t] + 6215.4M9[t] + 7320.2M10[t] + 1254.40000000000M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  18279.6417582418 -946.104395604395X[t] +  1908.22637362637M1[t] +  4080.77912087912M2[t] -7.22087912088476M3[t] -6466.62087912088M4[t] +  11876.7791208791M5[t] +  9079.37912087912M6[t] +  12321.1791208791M7[t] +  9625.8M8[t] +  6215.4M9[t] +  7320.2M10[t] +  1254.40000000000M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58246&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  18279.6417582418 -946.104395604395X[t] +  1908.22637362637M1[t] +  4080.77912087912M2[t] -7.22087912088476M3[t] -6466.62087912088M4[t] +  11876.7791208791M5[t] +  9079.37912087912M6[t] +  12321.1791208791M7[t] +  9625.8M8[t] +  6215.4M9[t] +  7320.2M10[t] +  1254.40000000000M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58246&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58246&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] = + 18279.6417582418 -946.104395604395X[t] + 1908.22637362637M1[t] + 4080.77912087912M2[t] -7.22087912088476M3[t] -6466.62087912088M4[t] + 11876.7791208791M5[t] + 9079.37912087912M6[t] + 12321.1791208791M7[t] + 9625.8M8[t] + 6215.4M9[t] + 7320.2M10[t] + 1254.40000000000M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)18279.6417582418906.25564520.170500
X-946.104395604395563.482576-1.6790.0996450.049823
M11908.226373626371189.1129081.60470.115110.057555
M24080.779120879121246.4730473.27390.0019720.000986
M3-7.220879120884761246.473047-0.00580.9954020.497701
M4-6466.620879120881246.473047-5.18794e-062e-06
M511876.77912087911246.4730479.528300
M69079.379120879121246.4730477.284100
M712321.17912087911246.4730479.884800
M89625.81241.3680177.754200
M96215.41241.3680175.00698e-064e-06
M107320.21241.3680175.896900
M111254.400000000001241.3680171.01050.3173240.158662

\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) & 18279.6417582418 & 906.255645 & 20.1705 & 0 & 0 \tabularnewline
X & -946.104395604395 & 563.482576 & -1.679 & 0.099645 & 0.049823 \tabularnewline
M1 & 1908.22637362637 & 1189.112908 & 1.6047 & 0.11511 & 0.057555 \tabularnewline
M2 & 4080.77912087912 & 1246.473047 & 3.2739 & 0.001972 & 0.000986 \tabularnewline
M3 & -7.22087912088476 & 1246.473047 & -0.0058 & 0.995402 & 0.497701 \tabularnewline
M4 & -6466.62087912088 & 1246.473047 & -5.1879 & 4e-06 & 2e-06 \tabularnewline
M5 & 11876.7791208791 & 1246.473047 & 9.5283 & 0 & 0 \tabularnewline
M6 & 9079.37912087912 & 1246.473047 & 7.2841 & 0 & 0 \tabularnewline
M7 & 12321.1791208791 & 1246.473047 & 9.8848 & 0 & 0 \tabularnewline
M8 & 9625.8 & 1241.368017 & 7.7542 & 0 & 0 \tabularnewline
M9 & 6215.4 & 1241.368017 & 5.0069 & 8e-06 & 4e-06 \tabularnewline
M10 & 7320.2 & 1241.368017 & 5.8969 & 0 & 0 \tabularnewline
M11 & 1254.40000000000 & 1241.368017 & 1.0105 & 0.317324 & 0.158662 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58246&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]18279.6417582418[/C][C]906.255645[/C][C]20.1705[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-946.104395604395[/C][C]563.482576[/C][C]-1.679[/C][C]0.099645[/C][C]0.049823[/C][/ROW]
[ROW][C]M1[/C][C]1908.22637362637[/C][C]1189.112908[/C][C]1.6047[/C][C]0.11511[/C][C]0.057555[/C][/ROW]
[ROW][C]M2[/C][C]4080.77912087912[/C][C]1246.473047[/C][C]3.2739[/C][C]0.001972[/C][C]0.000986[/C][/ROW]
[ROW][C]M3[/C][C]-7.22087912088476[/C][C]1246.473047[/C][C]-0.0058[/C][C]0.995402[/C][C]0.497701[/C][/ROW]
[ROW][C]M4[/C][C]-6466.62087912088[/C][C]1246.473047[/C][C]-5.1879[/C][C]4e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M5[/C][C]11876.7791208791[/C][C]1246.473047[/C][C]9.5283[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]9079.37912087912[/C][C]1246.473047[/C][C]7.2841[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]12321.1791208791[/C][C]1246.473047[/C][C]9.8848[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]9625.8[/C][C]1241.368017[/C][C]7.7542[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]6215.4[/C][C]1241.368017[/C][C]5.0069[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M10[/C][C]7320.2[/C][C]1241.368017[/C][C]5.8969[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]1254.40000000000[/C][C]1241.368017[/C][C]1.0105[/C][C]0.317324[/C][C]0.158662[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58246&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58246&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)18279.6417582418906.25564520.170500
X-946.104395604395563.482576-1.6790.0996450.049823
M11908.226373626371189.1129081.60470.115110.057555
M24080.779120879121246.4730473.27390.0019720.000986
M3-7.220879120884761246.473047-0.00580.9954020.497701
M4-6466.620879120881246.473047-5.18794e-062e-06
M511876.77912087911246.4730479.528300
M69079.379120879121246.4730477.284100
M712321.17912087911246.4730479.884800
M89625.81241.3680177.754200
M96215.41241.3680175.00698e-064e-06
M107320.21241.3680175.896900
M111254.400000000001241.3680171.01050.3173240.158662







Multiple Linear Regression - Regression Statistics
Multiple R0.951725983616065
R-squared0.905782347889966
Adjusted R-squared0.882227934862457
F-TEST (value)38.4548894014946
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1962.77517338917
Sum Squared Residuals184919346.301099

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.951725983616065 \tabularnewline
R-squared & 0.905782347889966 \tabularnewline
Adjusted R-squared & 0.882227934862457 \tabularnewline
F-TEST (value) & 38.4548894014946 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1962.77517338917 \tabularnewline
Sum Squared Residuals & 184919346.301099 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58246&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.951725983616065[/C][/ROW]
[ROW][C]R-squared[/C][C]0.905782347889966[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.882227934862457[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]38.4548894014946[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/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]1962.77517338917[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]184919346.301099[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58246&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58246&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.951725983616065
R-squared0.905782347889966
Adjusted R-squared0.882227934862457
F-TEST (value)38.4548894014946
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1962.77517338917
Sum Squared Residuals184919346.301099







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12036620187.8681318682178.131868131848
22278222360.4208791209421.579120879116
31916918272.4208791209896.579120879119
41380711813.02087912091993.97912087913
52974330156.4208791209-413.420879120878
62559127359.0208791209-1768.02087912088
72909630600.8208791209-1504.82087912089
82648227905.4417582418-1423.44175824175
92240524495.0417582418-2090.04175824175
102704425599.84175824181444.15824175824
111797019534.0417582418-1564.04175824175
121873018279.6417582418450.358241758241
131968420187.8681318681-503.868131868128
141978522360.4208791209-2575.42087912088
151847918272.4208791209206.579120879122
161069811813.0208791209-1115.02087912088
173195630156.42087912091799.57912087912
182950627359.02087912092146.97912087912
193450630600.82087912093905.17912087912
202716527905.4417582418-740.441758241761
212673624495.04175824182240.95824175824
222369125599.8417582418-1908.84175824176
231815719534.0417582418-1377.04175824176
241732818279.6417582418-951.641758241757
251820520187.8681318681-1982.86813186813
262099522360.4208791209-1365.42087912088
271738218272.4208791209-890.420879120877
28936711813.0208791209-2446.02087912088
293112430156.4208791209967.579120879122
302655127359.0208791209-808.02087912088
313065130600.820879120950.1791208791221
322585927905.4417582418-2046.44175824176
332510024495.0417582418604.95824175824
342577825599.8417582418178.158241758242
352041819534.0417582418883.95824175824
361868818279.6417582418408.358241758243
372042420187.8681318681236.131868131871
382477622360.42087912092415.57912087912
391981418272.42087912091541.57912087912
401273811813.0208791209924.979120879121
413156630156.42087912091409.57912087912
423011127359.02087912092751.97912087912
433001930600.8208791209-581.820879120878
443193426959.33736263744974.66263736264
452582623548.93736263742277.06263736263
462683524653.73736263742181.26263736264
472020518587.93736263741617.06263736263
481778917333.5373626374455.462637362638
492052019241.76373626371278.23626373627
502251821414.31648351651103.68351648352
511557217326.3164835165-1754.31648351648
521150910866.9164835165642.083516483515
532544729210.3164835165-3763.31648351649
542409026412.9164835165-2322.91648351648
552778629654.7164835165-1868.71648351648
562619526959.3373626374-764.337362637366
572051623548.9373626374-3032.93736263737
582275924653.7373626374-1894.73736263736
591902818587.9373626374440.062637362636
601697117333.5373626374-362.537362637362
612003619241.7637362637794.236263736267

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 20366 & 20187.8681318682 & 178.131868131848 \tabularnewline
2 & 22782 & 22360.4208791209 & 421.579120879116 \tabularnewline
3 & 19169 & 18272.4208791209 & 896.579120879119 \tabularnewline
4 & 13807 & 11813.0208791209 & 1993.97912087913 \tabularnewline
5 & 29743 & 30156.4208791209 & -413.420879120878 \tabularnewline
6 & 25591 & 27359.0208791209 & -1768.02087912088 \tabularnewline
7 & 29096 & 30600.8208791209 & -1504.82087912089 \tabularnewline
8 & 26482 & 27905.4417582418 & -1423.44175824175 \tabularnewline
9 & 22405 & 24495.0417582418 & -2090.04175824175 \tabularnewline
10 & 27044 & 25599.8417582418 & 1444.15824175824 \tabularnewline
11 & 17970 & 19534.0417582418 & -1564.04175824175 \tabularnewline
12 & 18730 & 18279.6417582418 & 450.358241758241 \tabularnewline
13 & 19684 & 20187.8681318681 & -503.868131868128 \tabularnewline
14 & 19785 & 22360.4208791209 & -2575.42087912088 \tabularnewline
15 & 18479 & 18272.4208791209 & 206.579120879122 \tabularnewline
16 & 10698 & 11813.0208791209 & -1115.02087912088 \tabularnewline
17 & 31956 & 30156.4208791209 & 1799.57912087912 \tabularnewline
18 & 29506 & 27359.0208791209 & 2146.97912087912 \tabularnewline
19 & 34506 & 30600.8208791209 & 3905.17912087912 \tabularnewline
20 & 27165 & 27905.4417582418 & -740.441758241761 \tabularnewline
21 & 26736 & 24495.0417582418 & 2240.95824175824 \tabularnewline
22 & 23691 & 25599.8417582418 & -1908.84175824176 \tabularnewline
23 & 18157 & 19534.0417582418 & -1377.04175824176 \tabularnewline
24 & 17328 & 18279.6417582418 & -951.641758241757 \tabularnewline
25 & 18205 & 20187.8681318681 & -1982.86813186813 \tabularnewline
26 & 20995 & 22360.4208791209 & -1365.42087912088 \tabularnewline
27 & 17382 & 18272.4208791209 & -890.420879120877 \tabularnewline
28 & 9367 & 11813.0208791209 & -2446.02087912088 \tabularnewline
29 & 31124 & 30156.4208791209 & 967.579120879122 \tabularnewline
30 & 26551 & 27359.0208791209 & -808.02087912088 \tabularnewline
31 & 30651 & 30600.8208791209 & 50.1791208791221 \tabularnewline
32 & 25859 & 27905.4417582418 & -2046.44175824176 \tabularnewline
33 & 25100 & 24495.0417582418 & 604.95824175824 \tabularnewline
34 & 25778 & 25599.8417582418 & 178.158241758242 \tabularnewline
35 & 20418 & 19534.0417582418 & 883.95824175824 \tabularnewline
36 & 18688 & 18279.6417582418 & 408.358241758243 \tabularnewline
37 & 20424 & 20187.8681318681 & 236.131868131871 \tabularnewline
38 & 24776 & 22360.4208791209 & 2415.57912087912 \tabularnewline
39 & 19814 & 18272.4208791209 & 1541.57912087912 \tabularnewline
40 & 12738 & 11813.0208791209 & 924.979120879121 \tabularnewline
41 & 31566 & 30156.4208791209 & 1409.57912087912 \tabularnewline
42 & 30111 & 27359.0208791209 & 2751.97912087912 \tabularnewline
43 & 30019 & 30600.8208791209 & -581.820879120878 \tabularnewline
44 & 31934 & 26959.3373626374 & 4974.66263736264 \tabularnewline
45 & 25826 & 23548.9373626374 & 2277.06263736263 \tabularnewline
46 & 26835 & 24653.7373626374 & 2181.26263736264 \tabularnewline
47 & 20205 & 18587.9373626374 & 1617.06263736263 \tabularnewline
48 & 17789 & 17333.5373626374 & 455.462637362638 \tabularnewline
49 & 20520 & 19241.7637362637 & 1278.23626373627 \tabularnewline
50 & 22518 & 21414.3164835165 & 1103.68351648352 \tabularnewline
51 & 15572 & 17326.3164835165 & -1754.31648351648 \tabularnewline
52 & 11509 & 10866.9164835165 & 642.083516483515 \tabularnewline
53 & 25447 & 29210.3164835165 & -3763.31648351649 \tabularnewline
54 & 24090 & 26412.9164835165 & -2322.91648351648 \tabularnewline
55 & 27786 & 29654.7164835165 & -1868.71648351648 \tabularnewline
56 & 26195 & 26959.3373626374 & -764.337362637366 \tabularnewline
57 & 20516 & 23548.9373626374 & -3032.93736263737 \tabularnewline
58 & 22759 & 24653.7373626374 & -1894.73736263736 \tabularnewline
59 & 19028 & 18587.9373626374 & 440.062637362636 \tabularnewline
60 & 16971 & 17333.5373626374 & -362.537362637362 \tabularnewline
61 & 20036 & 19241.7637362637 & 794.236263736267 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58246&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]20366[/C][C]20187.8681318682[/C][C]178.131868131848[/C][/ROW]
[ROW][C]2[/C][C]22782[/C][C]22360.4208791209[/C][C]421.579120879116[/C][/ROW]
[ROW][C]3[/C][C]19169[/C][C]18272.4208791209[/C][C]896.579120879119[/C][/ROW]
[ROW][C]4[/C][C]13807[/C][C]11813.0208791209[/C][C]1993.97912087913[/C][/ROW]
[ROW][C]5[/C][C]29743[/C][C]30156.4208791209[/C][C]-413.420879120878[/C][/ROW]
[ROW][C]6[/C][C]25591[/C][C]27359.0208791209[/C][C]-1768.02087912088[/C][/ROW]
[ROW][C]7[/C][C]29096[/C][C]30600.8208791209[/C][C]-1504.82087912089[/C][/ROW]
[ROW][C]8[/C][C]26482[/C][C]27905.4417582418[/C][C]-1423.44175824175[/C][/ROW]
[ROW][C]9[/C][C]22405[/C][C]24495.0417582418[/C][C]-2090.04175824175[/C][/ROW]
[ROW][C]10[/C][C]27044[/C][C]25599.8417582418[/C][C]1444.15824175824[/C][/ROW]
[ROW][C]11[/C][C]17970[/C][C]19534.0417582418[/C][C]-1564.04175824175[/C][/ROW]
[ROW][C]12[/C][C]18730[/C][C]18279.6417582418[/C][C]450.358241758241[/C][/ROW]
[ROW][C]13[/C][C]19684[/C][C]20187.8681318681[/C][C]-503.868131868128[/C][/ROW]
[ROW][C]14[/C][C]19785[/C][C]22360.4208791209[/C][C]-2575.42087912088[/C][/ROW]
[ROW][C]15[/C][C]18479[/C][C]18272.4208791209[/C][C]206.579120879122[/C][/ROW]
[ROW][C]16[/C][C]10698[/C][C]11813.0208791209[/C][C]-1115.02087912088[/C][/ROW]
[ROW][C]17[/C][C]31956[/C][C]30156.4208791209[/C][C]1799.57912087912[/C][/ROW]
[ROW][C]18[/C][C]29506[/C][C]27359.0208791209[/C][C]2146.97912087912[/C][/ROW]
[ROW][C]19[/C][C]34506[/C][C]30600.8208791209[/C][C]3905.17912087912[/C][/ROW]
[ROW][C]20[/C][C]27165[/C][C]27905.4417582418[/C][C]-740.441758241761[/C][/ROW]
[ROW][C]21[/C][C]26736[/C][C]24495.0417582418[/C][C]2240.95824175824[/C][/ROW]
[ROW][C]22[/C][C]23691[/C][C]25599.8417582418[/C][C]-1908.84175824176[/C][/ROW]
[ROW][C]23[/C][C]18157[/C][C]19534.0417582418[/C][C]-1377.04175824176[/C][/ROW]
[ROW][C]24[/C][C]17328[/C][C]18279.6417582418[/C][C]-951.641758241757[/C][/ROW]
[ROW][C]25[/C][C]18205[/C][C]20187.8681318681[/C][C]-1982.86813186813[/C][/ROW]
[ROW][C]26[/C][C]20995[/C][C]22360.4208791209[/C][C]-1365.42087912088[/C][/ROW]
[ROW][C]27[/C][C]17382[/C][C]18272.4208791209[/C][C]-890.420879120877[/C][/ROW]
[ROW][C]28[/C][C]9367[/C][C]11813.0208791209[/C][C]-2446.02087912088[/C][/ROW]
[ROW][C]29[/C][C]31124[/C][C]30156.4208791209[/C][C]967.579120879122[/C][/ROW]
[ROW][C]30[/C][C]26551[/C][C]27359.0208791209[/C][C]-808.02087912088[/C][/ROW]
[ROW][C]31[/C][C]30651[/C][C]30600.8208791209[/C][C]50.1791208791221[/C][/ROW]
[ROW][C]32[/C][C]25859[/C][C]27905.4417582418[/C][C]-2046.44175824176[/C][/ROW]
[ROW][C]33[/C][C]25100[/C][C]24495.0417582418[/C][C]604.95824175824[/C][/ROW]
[ROW][C]34[/C][C]25778[/C][C]25599.8417582418[/C][C]178.158241758242[/C][/ROW]
[ROW][C]35[/C][C]20418[/C][C]19534.0417582418[/C][C]883.95824175824[/C][/ROW]
[ROW][C]36[/C][C]18688[/C][C]18279.6417582418[/C][C]408.358241758243[/C][/ROW]
[ROW][C]37[/C][C]20424[/C][C]20187.8681318681[/C][C]236.131868131871[/C][/ROW]
[ROW][C]38[/C][C]24776[/C][C]22360.4208791209[/C][C]2415.57912087912[/C][/ROW]
[ROW][C]39[/C][C]19814[/C][C]18272.4208791209[/C][C]1541.57912087912[/C][/ROW]
[ROW][C]40[/C][C]12738[/C][C]11813.0208791209[/C][C]924.979120879121[/C][/ROW]
[ROW][C]41[/C][C]31566[/C][C]30156.4208791209[/C][C]1409.57912087912[/C][/ROW]
[ROW][C]42[/C][C]30111[/C][C]27359.0208791209[/C][C]2751.97912087912[/C][/ROW]
[ROW][C]43[/C][C]30019[/C][C]30600.8208791209[/C][C]-581.820879120878[/C][/ROW]
[ROW][C]44[/C][C]31934[/C][C]26959.3373626374[/C][C]4974.66263736264[/C][/ROW]
[ROW][C]45[/C][C]25826[/C][C]23548.9373626374[/C][C]2277.06263736263[/C][/ROW]
[ROW][C]46[/C][C]26835[/C][C]24653.7373626374[/C][C]2181.26263736264[/C][/ROW]
[ROW][C]47[/C][C]20205[/C][C]18587.9373626374[/C][C]1617.06263736263[/C][/ROW]
[ROW][C]48[/C][C]17789[/C][C]17333.5373626374[/C][C]455.462637362638[/C][/ROW]
[ROW][C]49[/C][C]20520[/C][C]19241.7637362637[/C][C]1278.23626373627[/C][/ROW]
[ROW][C]50[/C][C]22518[/C][C]21414.3164835165[/C][C]1103.68351648352[/C][/ROW]
[ROW][C]51[/C][C]15572[/C][C]17326.3164835165[/C][C]-1754.31648351648[/C][/ROW]
[ROW][C]52[/C][C]11509[/C][C]10866.9164835165[/C][C]642.083516483515[/C][/ROW]
[ROW][C]53[/C][C]25447[/C][C]29210.3164835165[/C][C]-3763.31648351649[/C][/ROW]
[ROW][C]54[/C][C]24090[/C][C]26412.9164835165[/C][C]-2322.91648351648[/C][/ROW]
[ROW][C]55[/C][C]27786[/C][C]29654.7164835165[/C][C]-1868.71648351648[/C][/ROW]
[ROW][C]56[/C][C]26195[/C][C]26959.3373626374[/C][C]-764.337362637366[/C][/ROW]
[ROW][C]57[/C][C]20516[/C][C]23548.9373626374[/C][C]-3032.93736263737[/C][/ROW]
[ROW][C]58[/C][C]22759[/C][C]24653.7373626374[/C][C]-1894.73736263736[/C][/ROW]
[ROW][C]59[/C][C]19028[/C][C]18587.9373626374[/C][C]440.062637362636[/C][/ROW]
[ROW][C]60[/C][C]16971[/C][C]17333.5373626374[/C][C]-362.537362637362[/C][/ROW]
[ROW][C]61[/C][C]20036[/C][C]19241.7637362637[/C][C]794.236263736267[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58246&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58246&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
12036620187.8681318682178.131868131848
22278222360.4208791209421.579120879116
31916918272.4208791209896.579120879119
41380711813.02087912091993.97912087913
52974330156.4208791209-413.420879120878
62559127359.0208791209-1768.02087912088
72909630600.8208791209-1504.82087912089
82648227905.4417582418-1423.44175824175
92240524495.0417582418-2090.04175824175
102704425599.84175824181444.15824175824
111797019534.0417582418-1564.04175824175
121873018279.6417582418450.358241758241
131968420187.8681318681-503.868131868128
141978522360.4208791209-2575.42087912088
151847918272.4208791209206.579120879122
161069811813.0208791209-1115.02087912088
173195630156.42087912091799.57912087912
182950627359.02087912092146.97912087912
193450630600.82087912093905.17912087912
202716527905.4417582418-740.441758241761
212673624495.04175824182240.95824175824
222369125599.8417582418-1908.84175824176
231815719534.0417582418-1377.04175824176
241732818279.6417582418-951.641758241757
251820520187.8681318681-1982.86813186813
262099522360.4208791209-1365.42087912088
271738218272.4208791209-890.420879120877
28936711813.0208791209-2446.02087912088
293112430156.4208791209967.579120879122
302655127359.0208791209-808.02087912088
313065130600.820879120950.1791208791221
322585927905.4417582418-2046.44175824176
332510024495.0417582418604.95824175824
342577825599.8417582418178.158241758242
352041819534.0417582418883.95824175824
361868818279.6417582418408.358241758243
372042420187.8681318681236.131868131871
382477622360.42087912092415.57912087912
391981418272.42087912091541.57912087912
401273811813.0208791209924.979120879121
413156630156.42087912091409.57912087912
423011127359.02087912092751.97912087912
433001930600.8208791209-581.820879120878
443193426959.33736263744974.66263736264
452582623548.93736263742277.06263736263
462683524653.73736263742181.26263736264
472020518587.93736263741617.06263736263
481778917333.5373626374455.462637362638
492052019241.76373626371278.23626373627
502251821414.31648351651103.68351648352
511557217326.3164835165-1754.31648351648
521150910866.9164835165642.083516483515
532544729210.3164835165-3763.31648351649
542409026412.9164835165-2322.91648351648
552778629654.7164835165-1868.71648351648
562619526959.3373626374-764.337362637366
572051623548.9373626374-3032.93736263737
582275924653.7373626374-1894.73736263736
591902818587.9373626374440.062637362636
601697117333.5373626374-362.537362637362
612003619241.7637362637794.236263736267







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.4446467288617010.8892934577234030.555353271138299
170.3737341259995320.7474682519990640.626265874000468
180.4737658151525930.9475316303051860.526234184847407
190.7294454547650140.5411090904699710.270554545234986
200.6296231402236380.7407537195527240.370376859776362
210.6926047341252840.6147905317494320.307395265874716
220.688111304524360.6237773909512790.311888695475640
230.6153878843923220.7692242312153560.384612115607678
240.5339731623009770.9320536753980460.466026837699023
250.5127365784207840.9745268431584320.487263421579216
260.4732339398623820.9464678797247650.526766060137618
270.400953218500080.801906437000160.59904678149992
280.457312300319790.914624600639580.54268769968021
290.3803763141532210.7607526283064430.619623685846779
300.310684545423810.621369090847620.68931545457619
310.2427972394279370.4855944788558740.757202760572063
320.3444243898117440.6888487796234870.655575610188256
330.2621242257359620.5242484514719250.737875774264038
340.2019621320536650.403924264107330.798037867946335
350.1868029087898420.3736058175796840.813197091210158
360.1415077823748130.2830155647496260.858492217625187
370.1464020664988950.2928041329977890.853597933501105
380.1591531312559970.3183062625119930.840846868744003
390.1107163390252060.2214326780504120.889283660974794
400.1027977066662970.2055954133325940.897202293333703
410.06846976240789160.1369395248157830.931530237592108
420.06831084438459840.1366216887691970.931689155615402
430.03816110376321880.07632220752643770.961838896236781
440.1086757027732370.2173514055464740.891324297226763
450.3803411079856260.7606822159712510.619658892014374

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.444646728861701 & 0.889293457723403 & 0.555353271138299 \tabularnewline
17 & 0.373734125999532 & 0.747468251999064 & 0.626265874000468 \tabularnewline
18 & 0.473765815152593 & 0.947531630305186 & 0.526234184847407 \tabularnewline
19 & 0.729445454765014 & 0.541109090469971 & 0.270554545234986 \tabularnewline
20 & 0.629623140223638 & 0.740753719552724 & 0.370376859776362 \tabularnewline
21 & 0.692604734125284 & 0.614790531749432 & 0.307395265874716 \tabularnewline
22 & 0.68811130452436 & 0.623777390951279 & 0.311888695475640 \tabularnewline
23 & 0.615387884392322 & 0.769224231215356 & 0.384612115607678 \tabularnewline
24 & 0.533973162300977 & 0.932053675398046 & 0.466026837699023 \tabularnewline
25 & 0.512736578420784 & 0.974526843158432 & 0.487263421579216 \tabularnewline
26 & 0.473233939862382 & 0.946467879724765 & 0.526766060137618 \tabularnewline
27 & 0.40095321850008 & 0.80190643700016 & 0.59904678149992 \tabularnewline
28 & 0.45731230031979 & 0.91462460063958 & 0.54268769968021 \tabularnewline
29 & 0.380376314153221 & 0.760752628306443 & 0.619623685846779 \tabularnewline
30 & 0.31068454542381 & 0.62136909084762 & 0.68931545457619 \tabularnewline
31 & 0.242797239427937 & 0.485594478855874 & 0.757202760572063 \tabularnewline
32 & 0.344424389811744 & 0.688848779623487 & 0.655575610188256 \tabularnewline
33 & 0.262124225735962 & 0.524248451471925 & 0.737875774264038 \tabularnewline
34 & 0.201962132053665 & 0.40392426410733 & 0.798037867946335 \tabularnewline
35 & 0.186802908789842 & 0.373605817579684 & 0.813197091210158 \tabularnewline
36 & 0.141507782374813 & 0.283015564749626 & 0.858492217625187 \tabularnewline
37 & 0.146402066498895 & 0.292804132997789 & 0.853597933501105 \tabularnewline
38 & 0.159153131255997 & 0.318306262511993 & 0.840846868744003 \tabularnewline
39 & 0.110716339025206 & 0.221432678050412 & 0.889283660974794 \tabularnewline
40 & 0.102797706666297 & 0.205595413332594 & 0.897202293333703 \tabularnewline
41 & 0.0684697624078916 & 0.136939524815783 & 0.931530237592108 \tabularnewline
42 & 0.0683108443845984 & 0.136621688769197 & 0.931689155615402 \tabularnewline
43 & 0.0381611037632188 & 0.0763222075264377 & 0.961838896236781 \tabularnewline
44 & 0.108675702773237 & 0.217351405546474 & 0.891324297226763 \tabularnewline
45 & 0.380341107985626 & 0.760682215971251 & 0.619658892014374 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58246&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.444646728861701[/C][C]0.889293457723403[/C][C]0.555353271138299[/C][/ROW]
[ROW][C]17[/C][C]0.373734125999532[/C][C]0.747468251999064[/C][C]0.626265874000468[/C][/ROW]
[ROW][C]18[/C][C]0.473765815152593[/C][C]0.947531630305186[/C][C]0.526234184847407[/C][/ROW]
[ROW][C]19[/C][C]0.729445454765014[/C][C]0.541109090469971[/C][C]0.270554545234986[/C][/ROW]
[ROW][C]20[/C][C]0.629623140223638[/C][C]0.740753719552724[/C][C]0.370376859776362[/C][/ROW]
[ROW][C]21[/C][C]0.692604734125284[/C][C]0.614790531749432[/C][C]0.307395265874716[/C][/ROW]
[ROW][C]22[/C][C]0.68811130452436[/C][C]0.623777390951279[/C][C]0.311888695475640[/C][/ROW]
[ROW][C]23[/C][C]0.615387884392322[/C][C]0.769224231215356[/C][C]0.384612115607678[/C][/ROW]
[ROW][C]24[/C][C]0.533973162300977[/C][C]0.932053675398046[/C][C]0.466026837699023[/C][/ROW]
[ROW][C]25[/C][C]0.512736578420784[/C][C]0.974526843158432[/C][C]0.487263421579216[/C][/ROW]
[ROW][C]26[/C][C]0.473233939862382[/C][C]0.946467879724765[/C][C]0.526766060137618[/C][/ROW]
[ROW][C]27[/C][C]0.40095321850008[/C][C]0.80190643700016[/C][C]0.59904678149992[/C][/ROW]
[ROW][C]28[/C][C]0.45731230031979[/C][C]0.91462460063958[/C][C]0.54268769968021[/C][/ROW]
[ROW][C]29[/C][C]0.380376314153221[/C][C]0.760752628306443[/C][C]0.619623685846779[/C][/ROW]
[ROW][C]30[/C][C]0.31068454542381[/C][C]0.62136909084762[/C][C]0.68931545457619[/C][/ROW]
[ROW][C]31[/C][C]0.242797239427937[/C][C]0.485594478855874[/C][C]0.757202760572063[/C][/ROW]
[ROW][C]32[/C][C]0.344424389811744[/C][C]0.688848779623487[/C][C]0.655575610188256[/C][/ROW]
[ROW][C]33[/C][C]0.262124225735962[/C][C]0.524248451471925[/C][C]0.737875774264038[/C][/ROW]
[ROW][C]34[/C][C]0.201962132053665[/C][C]0.40392426410733[/C][C]0.798037867946335[/C][/ROW]
[ROW][C]35[/C][C]0.186802908789842[/C][C]0.373605817579684[/C][C]0.813197091210158[/C][/ROW]
[ROW][C]36[/C][C]0.141507782374813[/C][C]0.283015564749626[/C][C]0.858492217625187[/C][/ROW]
[ROW][C]37[/C][C]0.146402066498895[/C][C]0.292804132997789[/C][C]0.853597933501105[/C][/ROW]
[ROW][C]38[/C][C]0.159153131255997[/C][C]0.318306262511993[/C][C]0.840846868744003[/C][/ROW]
[ROW][C]39[/C][C]0.110716339025206[/C][C]0.221432678050412[/C][C]0.889283660974794[/C][/ROW]
[ROW][C]40[/C][C]0.102797706666297[/C][C]0.205595413332594[/C][C]0.897202293333703[/C][/ROW]
[ROW][C]41[/C][C]0.0684697624078916[/C][C]0.136939524815783[/C][C]0.931530237592108[/C][/ROW]
[ROW][C]42[/C][C]0.0683108443845984[/C][C]0.136621688769197[/C][C]0.931689155615402[/C][/ROW]
[ROW][C]43[/C][C]0.0381611037632188[/C][C]0.0763222075264377[/C][C]0.961838896236781[/C][/ROW]
[ROW][C]44[/C][C]0.108675702773237[/C][C]0.217351405546474[/C][C]0.891324297226763[/C][/ROW]
[ROW][C]45[/C][C]0.380341107985626[/C][C]0.760682215971251[/C][C]0.619658892014374[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58246&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58246&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.4446467288617010.8892934577234030.555353271138299
170.3737341259995320.7474682519990640.626265874000468
180.4737658151525930.9475316303051860.526234184847407
190.7294454547650140.5411090904699710.270554545234986
200.6296231402236380.7407537195527240.370376859776362
210.6926047341252840.6147905317494320.307395265874716
220.688111304524360.6237773909512790.311888695475640
230.6153878843923220.7692242312153560.384612115607678
240.5339731623009770.9320536753980460.466026837699023
250.5127365784207840.9745268431584320.487263421579216
260.4732339398623820.9464678797247650.526766060137618
270.400953218500080.801906437000160.59904678149992
280.457312300319790.914624600639580.54268769968021
290.3803763141532210.7607526283064430.619623685846779
300.310684545423810.621369090847620.68931545457619
310.2427972394279370.4855944788558740.757202760572063
320.3444243898117440.6888487796234870.655575610188256
330.2621242257359620.5242484514719250.737875774264038
340.2019621320536650.403924264107330.798037867946335
350.1868029087898420.3736058175796840.813197091210158
360.1415077823748130.2830155647496260.858492217625187
370.1464020664988950.2928041329977890.853597933501105
380.1591531312559970.3183062625119930.840846868744003
390.1107163390252060.2214326780504120.889283660974794
400.1027977066662970.2055954133325940.897202293333703
410.06846976240789160.1369395248157830.931530237592108
420.06831084438459840.1366216887691970.931689155615402
430.03816110376321880.07632220752643770.961838896236781
440.1086757027732370.2173514055464740.891324297226763
450.3803411079856260.7606822159712510.619658892014374







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 level10.0333333333333333OK

\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 & 1 & 0.0333333333333333 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58246&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]1[/C][C]0.0333333333333333[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58246&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58246&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 level10.0333333333333333OK



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