Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSun, 23 Nov 2008 12:02:03 -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/2008/Nov/23/t1227467159gbcx67lzqyzq0on.htm/, Retrieved Sat, 18 May 2024 00:29:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25319, Retrieved Sat, 18 May 2024 00:29:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact148
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [] [2007-11-19 19:55:31] [b731da8b544846036771bbf9bf2f34ce]
- R PD    [Multiple Regression] [] [2008-11-23 19:02:03] [8767719db498704e1fee27044c098ad0] [Current]
Feedback Forum

Post a new message
Dataseries X:
16	0
8	0
-10	0
-24	0
-19	0
8	0
24	0
14	0
7	0
9	0
-26	0
19	0
15	0
-1	0
-10	0
-21	0
-14	0
-27	0
26	0
23	0
5	0
19	0
-19	0
24	0
17	0
1	0
-9	0
-16	0
-21	0
-14	0
31	0
27	0
10	0
12	0
-23	0
13	0
26	0
-1	0
4	0
-16	0
-5	0
9	0
23	0
9	0
2	0
10	1
-29	1
17	1
9	1
9	1
-10	1
-23	1
13	1
13	1
-9	1
9	1
5	1
8	1
-18	1
7	1
4	0




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25319&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
x[t] = + 16.1343151693667 -2.39911634756995y[t] -1.94516445753562M1[t] -13.0505645557192M2[t] -23.2734904270987M3[t] -36.2964162984782M4[t] -25.5193421698576M5[t] -18.5422680412371M6[t] + 2.63480608738341M7[t] + 0.0118802160039215M8[t] -10.6110456553755M9[t] -4.35414825724105M10[t] -38.9770741286205M11[t] + 0.0229258713794794t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
x[t] =  +  16.1343151693667 -2.39911634756995y[t] -1.94516445753562M1[t] -13.0505645557192M2[t] -23.2734904270987M3[t] -36.2964162984782M4[t] -25.5193421698576M5[t] -18.5422680412371M6[t] +  2.63480608738341M7[t] +  0.0118802160039215M8[t] -10.6110456553755M9[t] -4.35414825724105M10[t] -38.9770741286205M11[t] +  0.0229258713794794t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25319&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]x[t] =  +  16.1343151693667 -2.39911634756995y[t] -1.94516445753562M1[t] -13.0505645557192M2[t] -23.2734904270987M3[t] -36.2964162984782M4[t] -25.5193421698576M5[t] -18.5422680412371M6[t] +  2.63480608738341M7[t] +  0.0118802160039215M8[t] -10.6110456553755M9[t] -4.35414825724105M10[t] -38.9770741286205M11[t] +  0.0229258713794794t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25319&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25319&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
x[t] = + 16.1343151693667 -2.39911634756995y[t] -1.94516445753562M1[t] -13.0505645557192M2[t] -23.2734904270987M3[t] -36.2964162984782M4[t] -25.5193421698576M5[t] -18.5422680412371M6[t] + 2.63480608738341M7[t] + 0.0118802160039215M8[t] -10.6110456553755M9[t] -4.35414825724105M10[t] -38.9770741286205M11[t] + 0.0229258713794794t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)16.13431516936674.9935673.2310.0022550.001128
y-2.399116347569954.089544-0.58660.5602490.280124
M1-1.945164457535625.756622-0.33790.7369430.368471
M2-13.05056455571926.010267-2.17140.0349840.017492
M3-23.27349042709876.004305-3.87610.0003280.000164
M4-36.29641629847825.999982-6.049400
M5-25.51934216985765.997302-4.25519.9e-054.9e-05
M6-18.54226804123715.996266-3.09230.0033370.001668
M72.634806087383415.9968770.43940.6624120.331206
M80.01188021600392155.9991320.0020.9984280.499214
M9-10.61104565537556.00303-1.76760.0836170.041808
M10-4.354148257241055.972073-0.72910.4695680.234784
M11-38.97707412862055.969594-6.529300
t0.02292587137947940.0993390.23080.8184840.409242

\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) & 16.1343151693667 & 4.993567 & 3.231 & 0.002255 & 0.001128 \tabularnewline
y & -2.39911634756995 & 4.089544 & -0.5866 & 0.560249 & 0.280124 \tabularnewline
M1 & -1.94516445753562 & 5.756622 & -0.3379 & 0.736943 & 0.368471 \tabularnewline
M2 & -13.0505645557192 & 6.010267 & -2.1714 & 0.034984 & 0.017492 \tabularnewline
M3 & -23.2734904270987 & 6.004305 & -3.8761 & 0.000328 & 0.000164 \tabularnewline
M4 & -36.2964162984782 & 5.999982 & -6.0494 & 0 & 0 \tabularnewline
M5 & -25.5193421698576 & 5.997302 & -4.2551 & 9.9e-05 & 4.9e-05 \tabularnewline
M6 & -18.5422680412371 & 5.996266 & -3.0923 & 0.003337 & 0.001668 \tabularnewline
M7 & 2.63480608738341 & 5.996877 & 0.4394 & 0.662412 & 0.331206 \tabularnewline
M8 & 0.0118802160039215 & 5.999132 & 0.002 & 0.998428 & 0.499214 \tabularnewline
M9 & -10.6110456553755 & 6.00303 & -1.7676 & 0.083617 & 0.041808 \tabularnewline
M10 & -4.35414825724105 & 5.972073 & -0.7291 & 0.469568 & 0.234784 \tabularnewline
M11 & -38.9770741286205 & 5.969594 & -6.5293 & 0 & 0 \tabularnewline
t & 0.0229258713794794 & 0.099339 & 0.2308 & 0.818484 & 0.409242 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25319&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]16.1343151693667[/C][C]4.993567[/C][C]3.231[/C][C]0.002255[/C][C]0.001128[/C][/ROW]
[ROW][C]y[/C][C]-2.39911634756995[/C][C]4.089544[/C][C]-0.5866[/C][C]0.560249[/C][C]0.280124[/C][/ROW]
[ROW][C]M1[/C][C]-1.94516445753562[/C][C]5.756622[/C][C]-0.3379[/C][C]0.736943[/C][C]0.368471[/C][/ROW]
[ROW][C]M2[/C][C]-13.0505645557192[/C][C]6.010267[/C][C]-2.1714[/C][C]0.034984[/C][C]0.017492[/C][/ROW]
[ROW][C]M3[/C][C]-23.2734904270987[/C][C]6.004305[/C][C]-3.8761[/C][C]0.000328[/C][C]0.000164[/C][/ROW]
[ROW][C]M4[/C][C]-36.2964162984782[/C][C]5.999982[/C][C]-6.0494[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]-25.5193421698576[/C][C]5.997302[/C][C]-4.2551[/C][C]9.9e-05[/C][C]4.9e-05[/C][/ROW]
[ROW][C]M6[/C][C]-18.5422680412371[/C][C]5.996266[/C][C]-3.0923[/C][C]0.003337[/C][C]0.001668[/C][/ROW]
[ROW][C]M7[/C][C]2.63480608738341[/C][C]5.996877[/C][C]0.4394[/C][C]0.662412[/C][C]0.331206[/C][/ROW]
[ROW][C]M8[/C][C]0.0118802160039215[/C][C]5.999132[/C][C]0.002[/C][C]0.998428[/C][C]0.499214[/C][/ROW]
[ROW][C]M9[/C][C]-10.6110456553755[/C][C]6.00303[/C][C]-1.7676[/C][C]0.083617[/C][C]0.041808[/C][/ROW]
[ROW][C]M10[/C][C]-4.35414825724105[/C][C]5.972073[/C][C]-0.7291[/C][C]0.469568[/C][C]0.234784[/C][/ROW]
[ROW][C]M11[/C][C]-38.9770741286205[/C][C]5.969594[/C][C]-6.5293[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]t[/C][C]0.0229258713794794[/C][C]0.099339[/C][C]0.2308[/C][C]0.818484[/C][C]0.409242[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25319&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25319&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)16.13431516936674.9935673.2310.0022550.001128
y-2.399116347569954.089544-0.58660.5602490.280124
M1-1.945164457535625.756622-0.33790.7369430.368471
M2-13.05056455571926.010267-2.17140.0349840.017492
M3-23.27349042709876.004305-3.87610.0003280.000164
M4-36.29641629847825.999982-6.049400
M5-25.51934216985765.997302-4.25519.9e-054.9e-05
M6-18.54226804123715.996266-3.09230.0033370.001668
M72.634806087383415.9968770.43940.6624120.331206
M80.01188021600392155.9991320.0020.9984280.499214
M9-10.61104565537556.00303-1.76760.0836170.041808
M10-4.354148257241055.972073-0.72910.4695680.234784
M11-38.97707412862055.969594-6.529300
t0.02292587137947940.0993390.23080.8184840.409242







Multiple Linear Regression - Regression Statistics
Multiple R0.857577001083252
R-squared0.735438312786945
Adjusted R-squared0.662261675898227
F-TEST (value)10.0501791836287
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value1.31296329364261e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation9.4374504900065
Sum Squared Residuals4186.07717231222

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.857577001083252 \tabularnewline
R-squared & 0.735438312786945 \tabularnewline
Adjusted R-squared & 0.662261675898227 \tabularnewline
F-TEST (value) & 10.0501791836287 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 1.31296329364261e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 9.4374504900065 \tabularnewline
Sum Squared Residuals & 4186.07717231222 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25319&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.857577001083252[/C][/ROW]
[ROW][C]R-squared[/C][C]0.735438312786945[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.662261675898227[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.0501791836287[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]1.31296329364261e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]9.4374504900065[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]4186.07717231222[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25319&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25319&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.857577001083252
R-squared0.735438312786945
Adjusted R-squared0.662261675898227
F-TEST (value)10.0501791836287
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value1.31296329364261e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation9.4374504900065
Sum Squared Residuals4186.07717231222







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11614.21207658321061.78792341678938
283.129602356406494.87039764359351
3-10-7.07039764359356-2.92960235640644
4-24-20.0703976435936-3.92960235640644
5-19-9.27039764359358-9.72960235640642
68-2.2703976435935510.2703976435935
72418.92960235640655.07039764359349
81416.3296023564065-2.32960235640648
975.72960235640651.27039764359350
10912.0094256259205-3.00942562592048
11-26-22.5905743740795-3.40942562592051
121916.40942562592052.59057437407953
131514.48718703976440.512812960235637
14-13.40471281296024-4.40471281296024
15-10-6.79528718703976-3.20471281296024
16-21-19.7952871870398-1.20471281296025
17-14-8.99528718703975-5.00471281296025
18-27-1.99528718703975-25.0047128129603
192619.20471281296026.79528718703977
202316.60471281296026.39528718703976
2156.00471281296023-1.00471281296023
221912.28453608247426.71546391752577
23-19-22.31546391752583.31546391752578
242416.68453608247427.31546391752576
251714.76229749631812.23770250368189
2613.67982326951399-2.67982326951399
27-9-6.520176730486-2.479823269514
28-16-19.5201767304863.520176730486
29-21-8.720176730486-12.279823269514
30-14-1.720176730486-12.279823269514
313119.47982326951411.5201767304860
322716.87982326951410.120176730486
33106.279823269513993.72017673048601
341212.5596465390280-0.559646539027982
35-23-22.0403534609720-0.95964653902797
361316.959646539028-3.95964653902798
372615.037407952871910.9625920471281
38-13.95493372606774-4.95493372606774
394-6.2450662739322510.2450662739322
40-16-19.24506627393223.24506627393225
41-5-8.445066273932253.44506627393225
429-1.4450662739322510.4450662739322
432319.75493372606773.24506627393226
44917.1549337260677-8.15493372606774
4526.55493372606774-4.55493372606774
461010.4356406480118-0.435640648011781
47-29-24.1643593519882-4.83564064801177
481714.83564064801182.16435935198821
49912.9134020618557-3.91340206185567
5091.830927835051547.16907216494846
51-10-8.36907216494845-1.63092783505155
52-23-21.3690721649484-1.63092783505155
5313-10.569072164948423.5690721649484
5413-3.5690721649484416.5690721649484
55-917.6309278350515-26.6309278350515
56915.0309278350515-6.03092783505154
5754.430927835051540.569072164948459
58810.7107511045655-2.71075110456553
59-18-23.88924889543455.88924889543447
60715.1107511045655-8.11075110456554
61415.5876288659794-11.5876288659794

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 16 & 14.2120765832106 & 1.78792341678938 \tabularnewline
2 & 8 & 3.12960235640649 & 4.87039764359351 \tabularnewline
3 & -10 & -7.07039764359356 & -2.92960235640644 \tabularnewline
4 & -24 & -20.0703976435936 & -3.92960235640644 \tabularnewline
5 & -19 & -9.27039764359358 & -9.72960235640642 \tabularnewline
6 & 8 & -2.27039764359355 & 10.2703976435935 \tabularnewline
7 & 24 & 18.9296023564065 & 5.07039764359349 \tabularnewline
8 & 14 & 16.3296023564065 & -2.32960235640648 \tabularnewline
9 & 7 & 5.7296023564065 & 1.27039764359350 \tabularnewline
10 & 9 & 12.0094256259205 & -3.00942562592048 \tabularnewline
11 & -26 & -22.5905743740795 & -3.40942562592051 \tabularnewline
12 & 19 & 16.4094256259205 & 2.59057437407953 \tabularnewline
13 & 15 & 14.4871870397644 & 0.512812960235637 \tabularnewline
14 & -1 & 3.40471281296024 & -4.40471281296024 \tabularnewline
15 & -10 & -6.79528718703976 & -3.20471281296024 \tabularnewline
16 & -21 & -19.7952871870398 & -1.20471281296025 \tabularnewline
17 & -14 & -8.99528718703975 & -5.00471281296025 \tabularnewline
18 & -27 & -1.99528718703975 & -25.0047128129603 \tabularnewline
19 & 26 & 19.2047128129602 & 6.79528718703977 \tabularnewline
20 & 23 & 16.6047128129602 & 6.39528718703976 \tabularnewline
21 & 5 & 6.00471281296023 & -1.00471281296023 \tabularnewline
22 & 19 & 12.2845360824742 & 6.71546391752577 \tabularnewline
23 & -19 & -22.3154639175258 & 3.31546391752578 \tabularnewline
24 & 24 & 16.6845360824742 & 7.31546391752576 \tabularnewline
25 & 17 & 14.7622974963181 & 2.23770250368189 \tabularnewline
26 & 1 & 3.67982326951399 & -2.67982326951399 \tabularnewline
27 & -9 & -6.520176730486 & -2.479823269514 \tabularnewline
28 & -16 & -19.520176730486 & 3.520176730486 \tabularnewline
29 & -21 & -8.720176730486 & -12.279823269514 \tabularnewline
30 & -14 & -1.720176730486 & -12.279823269514 \tabularnewline
31 & 31 & 19.479823269514 & 11.5201767304860 \tabularnewline
32 & 27 & 16.879823269514 & 10.120176730486 \tabularnewline
33 & 10 & 6.27982326951399 & 3.72017673048601 \tabularnewline
34 & 12 & 12.5596465390280 & -0.559646539027982 \tabularnewline
35 & -23 & -22.0403534609720 & -0.95964653902797 \tabularnewline
36 & 13 & 16.959646539028 & -3.95964653902798 \tabularnewline
37 & 26 & 15.0374079528719 & 10.9625920471281 \tabularnewline
38 & -1 & 3.95493372606774 & -4.95493372606774 \tabularnewline
39 & 4 & -6.24506627393225 & 10.2450662739322 \tabularnewline
40 & -16 & -19.2450662739322 & 3.24506627393225 \tabularnewline
41 & -5 & -8.44506627393225 & 3.44506627393225 \tabularnewline
42 & 9 & -1.44506627393225 & 10.4450662739322 \tabularnewline
43 & 23 & 19.7549337260677 & 3.24506627393226 \tabularnewline
44 & 9 & 17.1549337260677 & -8.15493372606774 \tabularnewline
45 & 2 & 6.55493372606774 & -4.55493372606774 \tabularnewline
46 & 10 & 10.4356406480118 & -0.435640648011781 \tabularnewline
47 & -29 & -24.1643593519882 & -4.83564064801177 \tabularnewline
48 & 17 & 14.8356406480118 & 2.16435935198821 \tabularnewline
49 & 9 & 12.9134020618557 & -3.91340206185567 \tabularnewline
50 & 9 & 1.83092783505154 & 7.16907216494846 \tabularnewline
51 & -10 & -8.36907216494845 & -1.63092783505155 \tabularnewline
52 & -23 & -21.3690721649484 & -1.63092783505155 \tabularnewline
53 & 13 & -10.5690721649484 & 23.5690721649484 \tabularnewline
54 & 13 & -3.56907216494844 & 16.5690721649484 \tabularnewline
55 & -9 & 17.6309278350515 & -26.6309278350515 \tabularnewline
56 & 9 & 15.0309278350515 & -6.03092783505154 \tabularnewline
57 & 5 & 4.43092783505154 & 0.569072164948459 \tabularnewline
58 & 8 & 10.7107511045655 & -2.71075110456553 \tabularnewline
59 & -18 & -23.8892488954345 & 5.88924889543447 \tabularnewline
60 & 7 & 15.1107511045655 & -8.11075110456554 \tabularnewline
61 & 4 & 15.5876288659794 & -11.5876288659794 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25319&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]16[/C][C]14.2120765832106[/C][C]1.78792341678938[/C][/ROW]
[ROW][C]2[/C][C]8[/C][C]3.12960235640649[/C][C]4.87039764359351[/C][/ROW]
[ROW][C]3[/C][C]-10[/C][C]-7.07039764359356[/C][C]-2.92960235640644[/C][/ROW]
[ROW][C]4[/C][C]-24[/C][C]-20.0703976435936[/C][C]-3.92960235640644[/C][/ROW]
[ROW][C]5[/C][C]-19[/C][C]-9.27039764359358[/C][C]-9.72960235640642[/C][/ROW]
[ROW][C]6[/C][C]8[/C][C]-2.27039764359355[/C][C]10.2703976435935[/C][/ROW]
[ROW][C]7[/C][C]24[/C][C]18.9296023564065[/C][C]5.07039764359349[/C][/ROW]
[ROW][C]8[/C][C]14[/C][C]16.3296023564065[/C][C]-2.32960235640648[/C][/ROW]
[ROW][C]9[/C][C]7[/C][C]5.7296023564065[/C][C]1.27039764359350[/C][/ROW]
[ROW][C]10[/C][C]9[/C][C]12.0094256259205[/C][C]-3.00942562592048[/C][/ROW]
[ROW][C]11[/C][C]-26[/C][C]-22.5905743740795[/C][C]-3.40942562592051[/C][/ROW]
[ROW][C]12[/C][C]19[/C][C]16.4094256259205[/C][C]2.59057437407953[/C][/ROW]
[ROW][C]13[/C][C]15[/C][C]14.4871870397644[/C][C]0.512812960235637[/C][/ROW]
[ROW][C]14[/C][C]-1[/C][C]3.40471281296024[/C][C]-4.40471281296024[/C][/ROW]
[ROW][C]15[/C][C]-10[/C][C]-6.79528718703976[/C][C]-3.20471281296024[/C][/ROW]
[ROW][C]16[/C][C]-21[/C][C]-19.7952871870398[/C][C]-1.20471281296025[/C][/ROW]
[ROW][C]17[/C][C]-14[/C][C]-8.99528718703975[/C][C]-5.00471281296025[/C][/ROW]
[ROW][C]18[/C][C]-27[/C][C]-1.99528718703975[/C][C]-25.0047128129603[/C][/ROW]
[ROW][C]19[/C][C]26[/C][C]19.2047128129602[/C][C]6.79528718703977[/C][/ROW]
[ROW][C]20[/C][C]23[/C][C]16.6047128129602[/C][C]6.39528718703976[/C][/ROW]
[ROW][C]21[/C][C]5[/C][C]6.00471281296023[/C][C]-1.00471281296023[/C][/ROW]
[ROW][C]22[/C][C]19[/C][C]12.2845360824742[/C][C]6.71546391752577[/C][/ROW]
[ROW][C]23[/C][C]-19[/C][C]-22.3154639175258[/C][C]3.31546391752578[/C][/ROW]
[ROW][C]24[/C][C]24[/C][C]16.6845360824742[/C][C]7.31546391752576[/C][/ROW]
[ROW][C]25[/C][C]17[/C][C]14.7622974963181[/C][C]2.23770250368189[/C][/ROW]
[ROW][C]26[/C][C]1[/C][C]3.67982326951399[/C][C]-2.67982326951399[/C][/ROW]
[ROW][C]27[/C][C]-9[/C][C]-6.520176730486[/C][C]-2.479823269514[/C][/ROW]
[ROW][C]28[/C][C]-16[/C][C]-19.520176730486[/C][C]3.520176730486[/C][/ROW]
[ROW][C]29[/C][C]-21[/C][C]-8.720176730486[/C][C]-12.279823269514[/C][/ROW]
[ROW][C]30[/C][C]-14[/C][C]-1.720176730486[/C][C]-12.279823269514[/C][/ROW]
[ROW][C]31[/C][C]31[/C][C]19.479823269514[/C][C]11.5201767304860[/C][/ROW]
[ROW][C]32[/C][C]27[/C][C]16.879823269514[/C][C]10.120176730486[/C][/ROW]
[ROW][C]33[/C][C]10[/C][C]6.27982326951399[/C][C]3.72017673048601[/C][/ROW]
[ROW][C]34[/C][C]12[/C][C]12.5596465390280[/C][C]-0.559646539027982[/C][/ROW]
[ROW][C]35[/C][C]-23[/C][C]-22.0403534609720[/C][C]-0.95964653902797[/C][/ROW]
[ROW][C]36[/C][C]13[/C][C]16.959646539028[/C][C]-3.95964653902798[/C][/ROW]
[ROW][C]37[/C][C]26[/C][C]15.0374079528719[/C][C]10.9625920471281[/C][/ROW]
[ROW][C]38[/C][C]-1[/C][C]3.95493372606774[/C][C]-4.95493372606774[/C][/ROW]
[ROW][C]39[/C][C]4[/C][C]-6.24506627393225[/C][C]10.2450662739322[/C][/ROW]
[ROW][C]40[/C][C]-16[/C][C]-19.2450662739322[/C][C]3.24506627393225[/C][/ROW]
[ROW][C]41[/C][C]-5[/C][C]-8.44506627393225[/C][C]3.44506627393225[/C][/ROW]
[ROW][C]42[/C][C]9[/C][C]-1.44506627393225[/C][C]10.4450662739322[/C][/ROW]
[ROW][C]43[/C][C]23[/C][C]19.7549337260677[/C][C]3.24506627393226[/C][/ROW]
[ROW][C]44[/C][C]9[/C][C]17.1549337260677[/C][C]-8.15493372606774[/C][/ROW]
[ROW][C]45[/C][C]2[/C][C]6.55493372606774[/C][C]-4.55493372606774[/C][/ROW]
[ROW][C]46[/C][C]10[/C][C]10.4356406480118[/C][C]-0.435640648011781[/C][/ROW]
[ROW][C]47[/C][C]-29[/C][C]-24.1643593519882[/C][C]-4.83564064801177[/C][/ROW]
[ROW][C]48[/C][C]17[/C][C]14.8356406480118[/C][C]2.16435935198821[/C][/ROW]
[ROW][C]49[/C][C]9[/C][C]12.9134020618557[/C][C]-3.91340206185567[/C][/ROW]
[ROW][C]50[/C][C]9[/C][C]1.83092783505154[/C][C]7.16907216494846[/C][/ROW]
[ROW][C]51[/C][C]-10[/C][C]-8.36907216494845[/C][C]-1.63092783505155[/C][/ROW]
[ROW][C]52[/C][C]-23[/C][C]-21.3690721649484[/C][C]-1.63092783505155[/C][/ROW]
[ROW][C]53[/C][C]13[/C][C]-10.5690721649484[/C][C]23.5690721649484[/C][/ROW]
[ROW][C]54[/C][C]13[/C][C]-3.56907216494844[/C][C]16.5690721649484[/C][/ROW]
[ROW][C]55[/C][C]-9[/C][C]17.6309278350515[/C][C]-26.6309278350515[/C][/ROW]
[ROW][C]56[/C][C]9[/C][C]15.0309278350515[/C][C]-6.03092783505154[/C][/ROW]
[ROW][C]57[/C][C]5[/C][C]4.43092783505154[/C][C]0.569072164948459[/C][/ROW]
[ROW][C]58[/C][C]8[/C][C]10.7107511045655[/C][C]-2.71075110456553[/C][/ROW]
[ROW][C]59[/C][C]-18[/C][C]-23.8892488954345[/C][C]5.88924889543447[/C][/ROW]
[ROW][C]60[/C][C]7[/C][C]15.1107511045655[/C][C]-8.11075110456554[/C][/ROW]
[ROW][C]61[/C][C]4[/C][C]15.5876288659794[/C][C]-11.5876288659794[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25319&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25319&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
11614.21207658321061.78792341678938
283.129602356406494.87039764359351
3-10-7.07039764359356-2.92960235640644
4-24-20.0703976435936-3.92960235640644
5-19-9.27039764359358-9.72960235640642
68-2.2703976435935510.2703976435935
72418.92960235640655.07039764359349
81416.3296023564065-2.32960235640648
975.72960235640651.27039764359350
10912.0094256259205-3.00942562592048
11-26-22.5905743740795-3.40942562592051
121916.40942562592052.59057437407953
131514.48718703976440.512812960235637
14-13.40471281296024-4.40471281296024
15-10-6.79528718703976-3.20471281296024
16-21-19.7952871870398-1.20471281296025
17-14-8.99528718703975-5.00471281296025
18-27-1.99528718703975-25.0047128129603
192619.20471281296026.79528718703977
202316.60471281296026.39528718703976
2156.00471281296023-1.00471281296023
221912.28453608247426.71546391752577
23-19-22.31546391752583.31546391752578
242416.68453608247427.31546391752576
251714.76229749631812.23770250368189
2613.67982326951399-2.67982326951399
27-9-6.520176730486-2.479823269514
28-16-19.5201767304863.520176730486
29-21-8.720176730486-12.279823269514
30-14-1.720176730486-12.279823269514
313119.47982326951411.5201767304860
322716.87982326951410.120176730486
33106.279823269513993.72017673048601
341212.5596465390280-0.559646539027982
35-23-22.0403534609720-0.95964653902797
361316.959646539028-3.95964653902798
372615.037407952871910.9625920471281
38-13.95493372606774-4.95493372606774
394-6.2450662739322510.2450662739322
40-16-19.24506627393223.24506627393225
41-5-8.445066273932253.44506627393225
429-1.4450662739322510.4450662739322
432319.75493372606773.24506627393226
44917.1549337260677-8.15493372606774
4526.55493372606774-4.55493372606774
461010.4356406480118-0.435640648011781
47-29-24.1643593519882-4.83564064801177
481714.83564064801182.16435935198821
49912.9134020618557-3.91340206185567
5091.830927835051547.16907216494846
51-10-8.36907216494845-1.63092783505155
52-23-21.3690721649484-1.63092783505155
5313-10.569072164948423.5690721649484
5413-3.5690721649484416.5690721649484
55-917.6309278350515-26.6309278350515
56915.0309278350515-6.03092783505154
5754.430927835051540.569072164948459
58810.7107511045655-2.71075110456553
59-18-23.88924889543455.88924889543447
60715.1107511045655-8.11075110456554
61415.5876288659794-11.5876288659794







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.07588493139969620.1517698627993920.924115068600304
180.7469378331248860.5061243337502280.253062166875114
190.6487152754697160.7025694490605680.351284724530284
200.599491374944770.801017250110460.40050862505523
210.4754124097976550.950824819595310.524587590202345
220.4276473752341840.8552947504683690.572352624765816
230.3437220229434140.6874440458868280.656277977056586
240.2675489303364840.5350978606729680.732451069663516
250.1855734290993630.3711468581987260.814426570900637
260.1244370838108060.2488741676216120.875562916189194
270.08255976081364260.1651195216272850.917440239186357
280.05563350265362120.1112670053072420.944366497346379
290.08442274459722560.1688454891944510.915577255402774
300.2031167026749500.4062334053499010.79688329732505
310.2228728896732340.4457457793464670.777127110326766
320.2231313697294280.4462627394588570.776868630270572
330.1588061946476980.3176123892953970.841193805352302
340.1075320218160610.2150640436321220.892467978183939
350.07051441997908390.1410288399581680.929485580020916
360.05507878899371790.1101575779874360.944921211006282
370.07098777317672230.1419755463534450.929012226823278
380.06222934563898410.1244586912779680.937770654361016
390.06982722387081030.1396544477416210.93017277612919
400.04266949482690230.08533898965380460.957330505173098
410.09397310346562980.1879462069312600.90602689653437
420.1111844162119840.2223688324239680.888815583788016
430.6996870989822220.6006258020355560.300312901017778
440.5829607024478570.8340785951042860.417039297552143

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0758849313996962 & 0.151769862799392 & 0.924115068600304 \tabularnewline
18 & 0.746937833124886 & 0.506124333750228 & 0.253062166875114 \tabularnewline
19 & 0.648715275469716 & 0.702569449060568 & 0.351284724530284 \tabularnewline
20 & 0.59949137494477 & 0.80101725011046 & 0.40050862505523 \tabularnewline
21 & 0.475412409797655 & 0.95082481959531 & 0.524587590202345 \tabularnewline
22 & 0.427647375234184 & 0.855294750468369 & 0.572352624765816 \tabularnewline
23 & 0.343722022943414 & 0.687444045886828 & 0.656277977056586 \tabularnewline
24 & 0.267548930336484 & 0.535097860672968 & 0.732451069663516 \tabularnewline
25 & 0.185573429099363 & 0.371146858198726 & 0.814426570900637 \tabularnewline
26 & 0.124437083810806 & 0.248874167621612 & 0.875562916189194 \tabularnewline
27 & 0.0825597608136426 & 0.165119521627285 & 0.917440239186357 \tabularnewline
28 & 0.0556335026536212 & 0.111267005307242 & 0.944366497346379 \tabularnewline
29 & 0.0844227445972256 & 0.168845489194451 & 0.915577255402774 \tabularnewline
30 & 0.203116702674950 & 0.406233405349901 & 0.79688329732505 \tabularnewline
31 & 0.222872889673234 & 0.445745779346467 & 0.777127110326766 \tabularnewline
32 & 0.223131369729428 & 0.446262739458857 & 0.776868630270572 \tabularnewline
33 & 0.158806194647698 & 0.317612389295397 & 0.841193805352302 \tabularnewline
34 & 0.107532021816061 & 0.215064043632122 & 0.892467978183939 \tabularnewline
35 & 0.0705144199790839 & 0.141028839958168 & 0.929485580020916 \tabularnewline
36 & 0.0550787889937179 & 0.110157577987436 & 0.944921211006282 \tabularnewline
37 & 0.0709877731767223 & 0.141975546353445 & 0.929012226823278 \tabularnewline
38 & 0.0622293456389841 & 0.124458691277968 & 0.937770654361016 \tabularnewline
39 & 0.0698272238708103 & 0.139654447741621 & 0.93017277612919 \tabularnewline
40 & 0.0426694948269023 & 0.0853389896538046 & 0.957330505173098 \tabularnewline
41 & 0.0939731034656298 & 0.187946206931260 & 0.90602689653437 \tabularnewline
42 & 0.111184416211984 & 0.222368832423968 & 0.888815583788016 \tabularnewline
43 & 0.699687098982222 & 0.600625802035556 & 0.300312901017778 \tabularnewline
44 & 0.582960702447857 & 0.834078595104286 & 0.417039297552143 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25319&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]17[/C][C]0.0758849313996962[/C][C]0.151769862799392[/C][C]0.924115068600304[/C][/ROW]
[ROW][C]18[/C][C]0.746937833124886[/C][C]0.506124333750228[/C][C]0.253062166875114[/C][/ROW]
[ROW][C]19[/C][C]0.648715275469716[/C][C]0.702569449060568[/C][C]0.351284724530284[/C][/ROW]
[ROW][C]20[/C][C]0.59949137494477[/C][C]0.80101725011046[/C][C]0.40050862505523[/C][/ROW]
[ROW][C]21[/C][C]0.475412409797655[/C][C]0.95082481959531[/C][C]0.524587590202345[/C][/ROW]
[ROW][C]22[/C][C]0.427647375234184[/C][C]0.855294750468369[/C][C]0.572352624765816[/C][/ROW]
[ROW][C]23[/C][C]0.343722022943414[/C][C]0.687444045886828[/C][C]0.656277977056586[/C][/ROW]
[ROW][C]24[/C][C]0.267548930336484[/C][C]0.535097860672968[/C][C]0.732451069663516[/C][/ROW]
[ROW][C]25[/C][C]0.185573429099363[/C][C]0.371146858198726[/C][C]0.814426570900637[/C][/ROW]
[ROW][C]26[/C][C]0.124437083810806[/C][C]0.248874167621612[/C][C]0.875562916189194[/C][/ROW]
[ROW][C]27[/C][C]0.0825597608136426[/C][C]0.165119521627285[/C][C]0.917440239186357[/C][/ROW]
[ROW][C]28[/C][C]0.0556335026536212[/C][C]0.111267005307242[/C][C]0.944366497346379[/C][/ROW]
[ROW][C]29[/C][C]0.0844227445972256[/C][C]0.168845489194451[/C][C]0.915577255402774[/C][/ROW]
[ROW][C]30[/C][C]0.203116702674950[/C][C]0.406233405349901[/C][C]0.79688329732505[/C][/ROW]
[ROW][C]31[/C][C]0.222872889673234[/C][C]0.445745779346467[/C][C]0.777127110326766[/C][/ROW]
[ROW][C]32[/C][C]0.223131369729428[/C][C]0.446262739458857[/C][C]0.776868630270572[/C][/ROW]
[ROW][C]33[/C][C]0.158806194647698[/C][C]0.317612389295397[/C][C]0.841193805352302[/C][/ROW]
[ROW][C]34[/C][C]0.107532021816061[/C][C]0.215064043632122[/C][C]0.892467978183939[/C][/ROW]
[ROW][C]35[/C][C]0.0705144199790839[/C][C]0.141028839958168[/C][C]0.929485580020916[/C][/ROW]
[ROW][C]36[/C][C]0.0550787889937179[/C][C]0.110157577987436[/C][C]0.944921211006282[/C][/ROW]
[ROW][C]37[/C][C]0.0709877731767223[/C][C]0.141975546353445[/C][C]0.929012226823278[/C][/ROW]
[ROW][C]38[/C][C]0.0622293456389841[/C][C]0.124458691277968[/C][C]0.937770654361016[/C][/ROW]
[ROW][C]39[/C][C]0.0698272238708103[/C][C]0.139654447741621[/C][C]0.93017277612919[/C][/ROW]
[ROW][C]40[/C][C]0.0426694948269023[/C][C]0.0853389896538046[/C][C]0.957330505173098[/C][/ROW]
[ROW][C]41[/C][C]0.0939731034656298[/C][C]0.187946206931260[/C][C]0.90602689653437[/C][/ROW]
[ROW][C]42[/C][C]0.111184416211984[/C][C]0.222368832423968[/C][C]0.888815583788016[/C][/ROW]
[ROW][C]43[/C][C]0.699687098982222[/C][C]0.600625802035556[/C][C]0.300312901017778[/C][/ROW]
[ROW][C]44[/C][C]0.582960702447857[/C][C]0.834078595104286[/C][C]0.417039297552143[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25319&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25319&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
170.07588493139969620.1517698627993920.924115068600304
180.7469378331248860.5061243337502280.253062166875114
190.6487152754697160.7025694490605680.351284724530284
200.599491374944770.801017250110460.40050862505523
210.4754124097976550.950824819595310.524587590202345
220.4276473752341840.8552947504683690.572352624765816
230.3437220229434140.6874440458868280.656277977056586
240.2675489303364840.5350978606729680.732451069663516
250.1855734290993630.3711468581987260.814426570900637
260.1244370838108060.2488741676216120.875562916189194
270.08255976081364260.1651195216272850.917440239186357
280.05563350265362120.1112670053072420.944366497346379
290.08442274459722560.1688454891944510.915577255402774
300.2031167026749500.4062334053499010.79688329732505
310.2228728896732340.4457457793464670.777127110326766
320.2231313697294280.4462627394588570.776868630270572
330.1588061946476980.3176123892953970.841193805352302
340.1075320218160610.2150640436321220.892467978183939
350.07051441997908390.1410288399581680.929485580020916
360.05507878899371790.1101575779874360.944921211006282
370.07098777317672230.1419755463534450.929012226823278
380.06222934563898410.1244586912779680.937770654361016
390.06982722387081030.1396544477416210.93017277612919
400.04266949482690230.08533898965380460.957330505173098
410.09397310346562980.1879462069312600.90602689653437
420.1111844162119840.2223688324239680.888815583788016
430.6996870989822220.6006258020355560.300312901017778
440.5829607024478570.8340785951042860.417039297552143







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.0357142857142857OK

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

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



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