Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 02 Jul 2012 10:06:34 -0400
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Jul/02/t13412388207td2dyqlko2x23r.htm/, Retrieved Sun, 28 Apr 2024 12:08:21 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=168758, Retrieved Sun, 28 Apr 2024 12:08:21 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact203
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [MULT REGR MECHLESS] [2012-07-02 14:06:34] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
122 188	0 0 
159 189	0 0
956 193	1 0
-11 195	0 0
-10 198	0 0
793 202	1 0
1666 203 1 0
-51 203	0 0
-15 212	0 0
-11 216	0 0
257 219	1 0
514 228	1 0
2094 238 1 0
725 238	0 0
481 238	0 0
5698 241 1 0
4524 243 1 0
853 245	0 0
4032 249 0 1
3318 249 0 1
3528 258 1 0
1054 262 0 0
1397 266 0 0
3958 270 1 0
1002 272 0 0
2898 279 1 0
2749 279 1 0
1436 281 0 0
8958 281 1 1
12192 286 1 1
1614 286 0 0
1716 287 0 0
3286 290 1 0
1919 294 0 0
3800 299 0 1
4766 302 1 1
5698	241	1	0
4524	243	1	0
853	245	0	0
4032	249	0	1
3318	249	0	1
3528	258	1	0
1054	262	0	0
1397	266	0	0
3958	270	1	0
1002	272	0	0
2898	279	1	0
2749	279	1	0
1436	281	0	0
8958	281	1	1
12192	286	1	1
1614	286	0	0
1716	287	0	0
3286	290	1	0
1919	294	0	0
3800	299	0	1
4766	302	1	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time13 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net

\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 & 13 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=168758&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]13 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ jenkins.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=168758&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=168758&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 time13 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net







Multiple Linear Regression - Estimated Regression Equation
units[t] = -4099.40226645732 + 19.1857493382761store[t] + 2562.97249727806promo[t] + 3668.33961822363window[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
units[t] =  -4099.40226645732 +  19.1857493382761store[t] +  2562.97249727806promo[t] +  3668.33961822363window[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=168758&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]units[t] =  -4099.40226645732 +  19.1857493382761store[t] +  2562.97249727806promo[t] +  3668.33961822363window[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=168758&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=168758&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
units[t] = -4099.40226645732 + 19.1857493382761store[t] + 2562.97249727806promo[t] + 3668.33961822363window[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-4099.402266457321597.65361-2.56590.0131550.006577
store19.18574933827616.3373543.02740.0038030.001902
promo2562.97249727806391.936376.539300
window3668.33961822363507.2169917.232300

\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) & -4099.40226645732 & 1597.65361 & -2.5659 & 0.013155 & 0.006577 \tabularnewline
store & 19.1857493382761 & 6.337354 & 3.0274 & 0.003803 & 0.001902 \tabularnewline
promo & 2562.97249727806 & 391.93637 & 6.5393 & 0 & 0 \tabularnewline
window & 3668.33961822363 & 507.216991 & 7.2323 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=168758&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]-4099.40226645732[/C][C]1597.65361[/C][C]-2.5659[/C][C]0.013155[/C][C]0.006577[/C][/ROW]
[ROW][C]store[/C][C]19.1857493382761[/C][C]6.337354[/C][C]3.0274[/C][C]0.003803[/C][C]0.001902[/C][/ROW]
[ROW][C]promo[/C][C]2562.97249727806[/C][C]391.93637[/C][C]6.5393[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]window[/C][C]3668.33961822363[/C][C]507.216991[/C][C]7.2323[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=168758&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=168758&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)-4099.402266457321597.65361-2.56590.0131550.006577
store19.18574933827616.3373543.02740.0038030.001902
promo2562.97249727806391.936376.539300
window3668.33961822363507.2169917.232300







Multiple Linear Regression - Regression Statistics
Multiple R0.849974881565275
R-squared0.722457299291904
Adjusted R-squared0.70674733510088
F-TEST (value)45.9872021671871
F-TEST (DF numerator)3
F-TEST (DF denominator)53
p-value8.88178419700125e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1467.83798851293
Sum Squared Residuals114191063.107649

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.849974881565275 \tabularnewline
R-squared & 0.722457299291904 \tabularnewline
Adjusted R-squared & 0.70674733510088 \tabularnewline
F-TEST (value) & 45.9872021671871 \tabularnewline
F-TEST (DF numerator) & 3 \tabularnewline
F-TEST (DF denominator) & 53 \tabularnewline
p-value & 8.88178419700125e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1467.83798851293 \tabularnewline
Sum Squared Residuals & 114191063.107649 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=168758&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.849974881565275[/C][/ROW]
[ROW][C]R-squared[/C][C]0.722457299291904[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.70674733510088[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]45.9872021671871[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]3[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]53[/C][/ROW]
[ROW][C]p-value[/C][C]8.88178419700125e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1467.83798851293[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]114191063.107649[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=168758&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=168758&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.849974881565275
R-squared0.722457299291904
Adjusted R-squared0.70674733510088
F-TEST (value)45.9872021671871
F-TEST (DF numerator)3
F-TEST (DF denominator)53
p-value8.88178419700125e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1467.83798851293
Sum Squared Residuals114191063.107649







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1122-492.481390861418614.481390861418
2159-473.295641523142632.295641523142
39562166.41985310802-1210.41985310802
4-11-358.181145493485347.181145493485
5-10-300.623897478658290.623897478658
67932339.0915971525-1546.0915971525
716662358.27734649078-692.27734649078
8-51-204.695150787278153.695150787278
9-15-32.02340674279317.023406742793
10-1144.7195906103112-55.7195906103112
112572665.2493359032-2408.2493359032
125142837.92107994768-2323.92107994768
1320943029.77857333044-935.778573330443
14725466.806076052385258.193923947615
15481466.80607605238514.1939239476147
1656983087.335821345272610.66417865473
1745243125.707320021821398.29267997818
18853601.106321420318251.893678579682
1940324346.18893699706-314.188936997056
2033184346.18893699706-1028.18893699706
2135283413.49356009596114.506439904035
221054927.264060171011126.735939828989
2313971004.00705752412392.992942475884
2439583643.72255215528314.277447844722
2510021119.12155355377-117.121553553772
2628983816.39429619976-918.394296199763
2727493816.39429619976-1067.39429619976
2814361291.79329759826144.206702401743
2989587523.105413099951434.89458690005
30121927619.034159791334572.96584020867
3116141387.72204428964226.277955710363
3217161406.90779362791309.092206372087
3332864027.4375389208-741.437538920799
3419191541.20803899585377.791961004154
3538005305.47640391086-1505.47640391086
3647667926.00614920375-3160.00614920375
3756983087.335821345272610.66417865473
3845243125.707320021821398.29267997818
39853601.106321420318251.893678579682
4040324346.18893699706-314.188936997056
4133184346.18893699706-1028.18893699706
4235283413.49356009596114.506439904035
431054927.264060171011126.735939828989
4413971004.00705752412392.992942475884
4539583643.72255215528314.277447844722
4610021119.12155355377-117.121553553772
4728983816.39429619976-918.394296199763
4827493816.39429619976-1067.39429619976
4914361291.79329759826144.206702401743
5089587523.105413099951434.89458690005
51121927619.034159791334572.96584020867
5216141387.72204428964226.277955710363
5317161406.90779362791309.092206372087
5432864027.4375389208-741.437538920799
5519191541.20803899585377.791961004154
5638005305.47640391086-1505.47640391086
5747667926.00614920375-3160.00614920375

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 122 & -492.481390861418 & 614.481390861418 \tabularnewline
2 & 159 & -473.295641523142 & 632.295641523142 \tabularnewline
3 & 956 & 2166.41985310802 & -1210.41985310802 \tabularnewline
4 & -11 & -358.181145493485 & 347.181145493485 \tabularnewline
5 & -10 & -300.623897478658 & 290.623897478658 \tabularnewline
6 & 793 & 2339.0915971525 & -1546.0915971525 \tabularnewline
7 & 1666 & 2358.27734649078 & -692.27734649078 \tabularnewline
8 & -51 & -204.695150787278 & 153.695150787278 \tabularnewline
9 & -15 & -32.023406742793 & 17.023406742793 \tabularnewline
10 & -11 & 44.7195906103112 & -55.7195906103112 \tabularnewline
11 & 257 & 2665.2493359032 & -2408.2493359032 \tabularnewline
12 & 514 & 2837.92107994768 & -2323.92107994768 \tabularnewline
13 & 2094 & 3029.77857333044 & -935.778573330443 \tabularnewline
14 & 725 & 466.806076052385 & 258.193923947615 \tabularnewline
15 & 481 & 466.806076052385 & 14.1939239476147 \tabularnewline
16 & 5698 & 3087.33582134527 & 2610.66417865473 \tabularnewline
17 & 4524 & 3125.70732002182 & 1398.29267997818 \tabularnewline
18 & 853 & 601.106321420318 & 251.893678579682 \tabularnewline
19 & 4032 & 4346.18893699706 & -314.188936997056 \tabularnewline
20 & 3318 & 4346.18893699706 & -1028.18893699706 \tabularnewline
21 & 3528 & 3413.49356009596 & 114.506439904035 \tabularnewline
22 & 1054 & 927.264060171011 & 126.735939828989 \tabularnewline
23 & 1397 & 1004.00705752412 & 392.992942475884 \tabularnewline
24 & 3958 & 3643.72255215528 & 314.277447844722 \tabularnewline
25 & 1002 & 1119.12155355377 & -117.121553553772 \tabularnewline
26 & 2898 & 3816.39429619976 & -918.394296199763 \tabularnewline
27 & 2749 & 3816.39429619976 & -1067.39429619976 \tabularnewline
28 & 1436 & 1291.79329759826 & 144.206702401743 \tabularnewline
29 & 8958 & 7523.10541309995 & 1434.89458690005 \tabularnewline
30 & 12192 & 7619.03415979133 & 4572.96584020867 \tabularnewline
31 & 1614 & 1387.72204428964 & 226.277955710363 \tabularnewline
32 & 1716 & 1406.90779362791 & 309.092206372087 \tabularnewline
33 & 3286 & 4027.4375389208 & -741.437538920799 \tabularnewline
34 & 1919 & 1541.20803899585 & 377.791961004154 \tabularnewline
35 & 3800 & 5305.47640391086 & -1505.47640391086 \tabularnewline
36 & 4766 & 7926.00614920375 & -3160.00614920375 \tabularnewline
37 & 5698 & 3087.33582134527 & 2610.66417865473 \tabularnewline
38 & 4524 & 3125.70732002182 & 1398.29267997818 \tabularnewline
39 & 853 & 601.106321420318 & 251.893678579682 \tabularnewline
40 & 4032 & 4346.18893699706 & -314.188936997056 \tabularnewline
41 & 3318 & 4346.18893699706 & -1028.18893699706 \tabularnewline
42 & 3528 & 3413.49356009596 & 114.506439904035 \tabularnewline
43 & 1054 & 927.264060171011 & 126.735939828989 \tabularnewline
44 & 1397 & 1004.00705752412 & 392.992942475884 \tabularnewline
45 & 3958 & 3643.72255215528 & 314.277447844722 \tabularnewline
46 & 1002 & 1119.12155355377 & -117.121553553772 \tabularnewline
47 & 2898 & 3816.39429619976 & -918.394296199763 \tabularnewline
48 & 2749 & 3816.39429619976 & -1067.39429619976 \tabularnewline
49 & 1436 & 1291.79329759826 & 144.206702401743 \tabularnewline
50 & 8958 & 7523.10541309995 & 1434.89458690005 \tabularnewline
51 & 12192 & 7619.03415979133 & 4572.96584020867 \tabularnewline
52 & 1614 & 1387.72204428964 & 226.277955710363 \tabularnewline
53 & 1716 & 1406.90779362791 & 309.092206372087 \tabularnewline
54 & 3286 & 4027.4375389208 & -741.437538920799 \tabularnewline
55 & 1919 & 1541.20803899585 & 377.791961004154 \tabularnewline
56 & 3800 & 5305.47640391086 & -1505.47640391086 \tabularnewline
57 & 4766 & 7926.00614920375 & -3160.00614920375 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=168758&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]122[/C][C]-492.481390861418[/C][C]614.481390861418[/C][/ROW]
[ROW][C]2[/C][C]159[/C][C]-473.295641523142[/C][C]632.295641523142[/C][/ROW]
[ROW][C]3[/C][C]956[/C][C]2166.41985310802[/C][C]-1210.41985310802[/C][/ROW]
[ROW][C]4[/C][C]-11[/C][C]-358.181145493485[/C][C]347.181145493485[/C][/ROW]
[ROW][C]5[/C][C]-10[/C][C]-300.623897478658[/C][C]290.623897478658[/C][/ROW]
[ROW][C]6[/C][C]793[/C][C]2339.0915971525[/C][C]-1546.0915971525[/C][/ROW]
[ROW][C]7[/C][C]1666[/C][C]2358.27734649078[/C][C]-692.27734649078[/C][/ROW]
[ROW][C]8[/C][C]-51[/C][C]-204.695150787278[/C][C]153.695150787278[/C][/ROW]
[ROW][C]9[/C][C]-15[/C][C]-32.023406742793[/C][C]17.023406742793[/C][/ROW]
[ROW][C]10[/C][C]-11[/C][C]44.7195906103112[/C][C]-55.7195906103112[/C][/ROW]
[ROW][C]11[/C][C]257[/C][C]2665.2493359032[/C][C]-2408.2493359032[/C][/ROW]
[ROW][C]12[/C][C]514[/C][C]2837.92107994768[/C][C]-2323.92107994768[/C][/ROW]
[ROW][C]13[/C][C]2094[/C][C]3029.77857333044[/C][C]-935.778573330443[/C][/ROW]
[ROW][C]14[/C][C]725[/C][C]466.806076052385[/C][C]258.193923947615[/C][/ROW]
[ROW][C]15[/C][C]481[/C][C]466.806076052385[/C][C]14.1939239476147[/C][/ROW]
[ROW][C]16[/C][C]5698[/C][C]3087.33582134527[/C][C]2610.66417865473[/C][/ROW]
[ROW][C]17[/C][C]4524[/C][C]3125.70732002182[/C][C]1398.29267997818[/C][/ROW]
[ROW][C]18[/C][C]853[/C][C]601.106321420318[/C][C]251.893678579682[/C][/ROW]
[ROW][C]19[/C][C]4032[/C][C]4346.18893699706[/C][C]-314.188936997056[/C][/ROW]
[ROW][C]20[/C][C]3318[/C][C]4346.18893699706[/C][C]-1028.18893699706[/C][/ROW]
[ROW][C]21[/C][C]3528[/C][C]3413.49356009596[/C][C]114.506439904035[/C][/ROW]
[ROW][C]22[/C][C]1054[/C][C]927.264060171011[/C][C]126.735939828989[/C][/ROW]
[ROW][C]23[/C][C]1397[/C][C]1004.00705752412[/C][C]392.992942475884[/C][/ROW]
[ROW][C]24[/C][C]3958[/C][C]3643.72255215528[/C][C]314.277447844722[/C][/ROW]
[ROW][C]25[/C][C]1002[/C][C]1119.12155355377[/C][C]-117.121553553772[/C][/ROW]
[ROW][C]26[/C][C]2898[/C][C]3816.39429619976[/C][C]-918.394296199763[/C][/ROW]
[ROW][C]27[/C][C]2749[/C][C]3816.39429619976[/C][C]-1067.39429619976[/C][/ROW]
[ROW][C]28[/C][C]1436[/C][C]1291.79329759826[/C][C]144.206702401743[/C][/ROW]
[ROW][C]29[/C][C]8958[/C][C]7523.10541309995[/C][C]1434.89458690005[/C][/ROW]
[ROW][C]30[/C][C]12192[/C][C]7619.03415979133[/C][C]4572.96584020867[/C][/ROW]
[ROW][C]31[/C][C]1614[/C][C]1387.72204428964[/C][C]226.277955710363[/C][/ROW]
[ROW][C]32[/C][C]1716[/C][C]1406.90779362791[/C][C]309.092206372087[/C][/ROW]
[ROW][C]33[/C][C]3286[/C][C]4027.4375389208[/C][C]-741.437538920799[/C][/ROW]
[ROW][C]34[/C][C]1919[/C][C]1541.20803899585[/C][C]377.791961004154[/C][/ROW]
[ROW][C]35[/C][C]3800[/C][C]5305.47640391086[/C][C]-1505.47640391086[/C][/ROW]
[ROW][C]36[/C][C]4766[/C][C]7926.00614920375[/C][C]-3160.00614920375[/C][/ROW]
[ROW][C]37[/C][C]5698[/C][C]3087.33582134527[/C][C]2610.66417865473[/C][/ROW]
[ROW][C]38[/C][C]4524[/C][C]3125.70732002182[/C][C]1398.29267997818[/C][/ROW]
[ROW][C]39[/C][C]853[/C][C]601.106321420318[/C][C]251.893678579682[/C][/ROW]
[ROW][C]40[/C][C]4032[/C][C]4346.18893699706[/C][C]-314.188936997056[/C][/ROW]
[ROW][C]41[/C][C]3318[/C][C]4346.18893699706[/C][C]-1028.18893699706[/C][/ROW]
[ROW][C]42[/C][C]3528[/C][C]3413.49356009596[/C][C]114.506439904035[/C][/ROW]
[ROW][C]43[/C][C]1054[/C][C]927.264060171011[/C][C]126.735939828989[/C][/ROW]
[ROW][C]44[/C][C]1397[/C][C]1004.00705752412[/C][C]392.992942475884[/C][/ROW]
[ROW][C]45[/C][C]3958[/C][C]3643.72255215528[/C][C]314.277447844722[/C][/ROW]
[ROW][C]46[/C][C]1002[/C][C]1119.12155355377[/C][C]-117.121553553772[/C][/ROW]
[ROW][C]47[/C][C]2898[/C][C]3816.39429619976[/C][C]-918.394296199763[/C][/ROW]
[ROW][C]48[/C][C]2749[/C][C]3816.39429619976[/C][C]-1067.39429619976[/C][/ROW]
[ROW][C]49[/C][C]1436[/C][C]1291.79329759826[/C][C]144.206702401743[/C][/ROW]
[ROW][C]50[/C][C]8958[/C][C]7523.10541309995[/C][C]1434.89458690005[/C][/ROW]
[ROW][C]51[/C][C]12192[/C][C]7619.03415979133[/C][C]4572.96584020867[/C][/ROW]
[ROW][C]52[/C][C]1614[/C][C]1387.72204428964[/C][C]226.277955710363[/C][/ROW]
[ROW][C]53[/C][C]1716[/C][C]1406.90779362791[/C][C]309.092206372087[/C][/ROW]
[ROW][C]54[/C][C]3286[/C][C]4027.4375389208[/C][C]-741.437538920799[/C][/ROW]
[ROW][C]55[/C][C]1919[/C][C]1541.20803899585[/C][C]377.791961004154[/C][/ROW]
[ROW][C]56[/C][C]3800[/C][C]5305.47640391086[/C][C]-1505.47640391086[/C][/ROW]
[ROW][C]57[/C][C]4766[/C][C]7926.00614920375[/C][C]-3160.00614920375[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=168758&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=168758&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
1122-492.481390861418614.481390861418
2159-473.295641523142632.295641523142
39562166.41985310802-1210.41985310802
4-11-358.181145493485347.181145493485
5-10-300.623897478658290.623897478658
67932339.0915971525-1546.0915971525
716662358.27734649078-692.27734649078
8-51-204.695150787278153.695150787278
9-15-32.02340674279317.023406742793
10-1144.7195906103112-55.7195906103112
112572665.2493359032-2408.2493359032
125142837.92107994768-2323.92107994768
1320943029.77857333044-935.778573330443
14725466.806076052385258.193923947615
15481466.80607605238514.1939239476147
1656983087.335821345272610.66417865473
1745243125.707320021821398.29267997818
18853601.106321420318251.893678579682
1940324346.18893699706-314.188936997056
2033184346.18893699706-1028.18893699706
2135283413.49356009596114.506439904035
221054927.264060171011126.735939828989
2313971004.00705752412392.992942475884
2439583643.72255215528314.277447844722
2510021119.12155355377-117.121553553772
2628983816.39429619976-918.394296199763
2727493816.39429619976-1067.39429619976
2814361291.79329759826144.206702401743
2989587523.105413099951434.89458690005
30121927619.034159791334572.96584020867
3116141387.72204428964226.277955710363
3217161406.90779362791309.092206372087
3332864027.4375389208-741.437538920799
3419191541.20803899585377.791961004154
3538005305.47640391086-1505.47640391086
3647667926.00614920375-3160.00614920375
3756983087.335821345272610.66417865473
3845243125.707320021821398.29267997818
39853601.106321420318251.893678579682
4040324346.18893699706-314.188936997056
4133184346.18893699706-1028.18893699706
4235283413.49356009596114.506439904035
431054927.264060171011126.735939828989
4413971004.00705752412392.992942475884
4539583643.72255215528314.277447844722
4610021119.12155355377-117.121553553772
4728983816.39429619976-918.394296199763
4827493816.39429619976-1067.39429619976
4914361291.79329759826144.206702401743
5089587523.105413099951434.89458690005
51121927619.034159791334572.96584020867
5216141387.72204428964226.277955710363
5317161406.90779362791309.092206372087
5432864027.4375389208-741.437538920799
5519191541.20803899585377.791961004154
5638005305.47640391086-1505.47640391086
5747667926.00614920375-3160.00614920375







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.02116389395609620.04232778791219240.978836106043904
80.004581583375433090.009163166750866180.995418416624567
90.0008457288093796750.001691457618759350.99915427119062
100.0001415951430280890.0002831902860561770.999858404856972
110.0002233501882351590.0004467003764703180.999776649811765
127.03439827901713e-050.0001406879655803430.99992965601721
130.001402025751209760.002804051502419510.99859797424879
140.0006171107984900270.001234221596980050.99938288920151
150.0002016928263800830.0004033856527601650.99979830717362
160.2117816251514830.4235632503029660.788218374848517
170.2461639174001890.4923278348003770.753836082599811
180.186524818391160.373049636782320.81347518160884
190.133031265916830.2660625318336610.86696873408317
200.1072585322680440.2145170645360880.892741467731956
210.07278109351803330.1455621870360670.927218906481967
220.05289114036371640.1057822807274330.947108859636284
230.03417666910789350.06835333821578710.965823330892106
240.02123466632184290.04246933264368580.978765333678157
250.01487587460280660.02975174920561330.985124125397193
260.01102567897265280.02205135794530560.988974321027347
270.008557360216016880.01711472043203380.991442639783983
280.004922304358098410.009844608716196810.995077695641902
290.009354606949063710.01870921389812740.990645393050936
300.2771342949209360.5542685898418720.722865705079064
310.2166111912359740.4332223824719470.783388808764026
320.1664372919122170.3328745838244340.833562708087783
330.1313120652726590.2626241305453190.868687934727341
340.1009581099322390.2019162198644780.899041890067761
350.1287761256569360.2575522513138730.871223874343064
360.2996350538340960.5992701076681910.700364946165904
370.3739607259869420.7479214519738840.626039274013058
380.3306163772371290.6612327544742590.669383622762871
390.2546305962274740.5092611924549480.745369403772526
400.1947958329153570.3895916658307140.805204167084643
410.2494715952631540.4989431905263080.750528404736846
420.1961317687229420.3922635374458850.803868231277058
430.160460023933020.320920047866040.83953997606698
440.1265223654460.2530447308920010.873477634554
450.08511104120360340.1702220824072070.914888958796397
460.09119742202067050.1823948440413410.90880257797933
470.07459685816085680.1491937163217140.925403141839143
480.1092201281910260.2184402563820530.890779871808974
490.1023118109622840.2046236219245670.897688189037716
500.2362590352242740.4725180704485480.763740964775726

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
7 & 0.0211638939560962 & 0.0423277879121924 & 0.978836106043904 \tabularnewline
8 & 0.00458158337543309 & 0.00916316675086618 & 0.995418416624567 \tabularnewline
9 & 0.000845728809379675 & 0.00169145761875935 & 0.99915427119062 \tabularnewline
10 & 0.000141595143028089 & 0.000283190286056177 & 0.999858404856972 \tabularnewline
11 & 0.000223350188235159 & 0.000446700376470318 & 0.999776649811765 \tabularnewline
12 & 7.03439827901713e-05 & 0.000140687965580343 & 0.99992965601721 \tabularnewline
13 & 0.00140202575120976 & 0.00280405150241951 & 0.99859797424879 \tabularnewline
14 & 0.000617110798490027 & 0.00123422159698005 & 0.99938288920151 \tabularnewline
15 & 0.000201692826380083 & 0.000403385652760165 & 0.99979830717362 \tabularnewline
16 & 0.211781625151483 & 0.423563250302966 & 0.788218374848517 \tabularnewline
17 & 0.246163917400189 & 0.492327834800377 & 0.753836082599811 \tabularnewline
18 & 0.18652481839116 & 0.37304963678232 & 0.81347518160884 \tabularnewline
19 & 0.13303126591683 & 0.266062531833661 & 0.86696873408317 \tabularnewline
20 & 0.107258532268044 & 0.214517064536088 & 0.892741467731956 \tabularnewline
21 & 0.0727810935180333 & 0.145562187036067 & 0.927218906481967 \tabularnewline
22 & 0.0528911403637164 & 0.105782280727433 & 0.947108859636284 \tabularnewline
23 & 0.0341766691078935 & 0.0683533382157871 & 0.965823330892106 \tabularnewline
24 & 0.0212346663218429 & 0.0424693326436858 & 0.978765333678157 \tabularnewline
25 & 0.0148758746028066 & 0.0297517492056133 & 0.985124125397193 \tabularnewline
26 & 0.0110256789726528 & 0.0220513579453056 & 0.988974321027347 \tabularnewline
27 & 0.00855736021601688 & 0.0171147204320338 & 0.991442639783983 \tabularnewline
28 & 0.00492230435809841 & 0.00984460871619681 & 0.995077695641902 \tabularnewline
29 & 0.00935460694906371 & 0.0187092138981274 & 0.990645393050936 \tabularnewline
30 & 0.277134294920936 & 0.554268589841872 & 0.722865705079064 \tabularnewline
31 & 0.216611191235974 & 0.433222382471947 & 0.783388808764026 \tabularnewline
32 & 0.166437291912217 & 0.332874583824434 & 0.833562708087783 \tabularnewline
33 & 0.131312065272659 & 0.262624130545319 & 0.868687934727341 \tabularnewline
34 & 0.100958109932239 & 0.201916219864478 & 0.899041890067761 \tabularnewline
35 & 0.128776125656936 & 0.257552251313873 & 0.871223874343064 \tabularnewline
36 & 0.299635053834096 & 0.599270107668191 & 0.700364946165904 \tabularnewline
37 & 0.373960725986942 & 0.747921451973884 & 0.626039274013058 \tabularnewline
38 & 0.330616377237129 & 0.661232754474259 & 0.669383622762871 \tabularnewline
39 & 0.254630596227474 & 0.509261192454948 & 0.745369403772526 \tabularnewline
40 & 0.194795832915357 & 0.389591665830714 & 0.805204167084643 \tabularnewline
41 & 0.249471595263154 & 0.498943190526308 & 0.750528404736846 \tabularnewline
42 & 0.196131768722942 & 0.392263537445885 & 0.803868231277058 \tabularnewline
43 & 0.16046002393302 & 0.32092004786604 & 0.83953997606698 \tabularnewline
44 & 0.126522365446 & 0.253044730892001 & 0.873477634554 \tabularnewline
45 & 0.0851110412036034 & 0.170222082407207 & 0.914888958796397 \tabularnewline
46 & 0.0911974220206705 & 0.182394844041341 & 0.90880257797933 \tabularnewline
47 & 0.0745968581608568 & 0.149193716321714 & 0.925403141839143 \tabularnewline
48 & 0.109220128191026 & 0.218440256382053 & 0.890779871808974 \tabularnewline
49 & 0.102311810962284 & 0.204623621924567 & 0.897688189037716 \tabularnewline
50 & 0.236259035224274 & 0.472518070448548 & 0.763740964775726 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=168758&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]7[/C][C]0.0211638939560962[/C][C]0.0423277879121924[/C][C]0.978836106043904[/C][/ROW]
[ROW][C]8[/C][C]0.00458158337543309[/C][C]0.00916316675086618[/C][C]0.995418416624567[/C][/ROW]
[ROW][C]9[/C][C]0.000845728809379675[/C][C]0.00169145761875935[/C][C]0.99915427119062[/C][/ROW]
[ROW][C]10[/C][C]0.000141595143028089[/C][C]0.000283190286056177[/C][C]0.999858404856972[/C][/ROW]
[ROW][C]11[/C][C]0.000223350188235159[/C][C]0.000446700376470318[/C][C]0.999776649811765[/C][/ROW]
[ROW][C]12[/C][C]7.03439827901713e-05[/C][C]0.000140687965580343[/C][C]0.99992965601721[/C][/ROW]
[ROW][C]13[/C][C]0.00140202575120976[/C][C]0.00280405150241951[/C][C]0.99859797424879[/C][/ROW]
[ROW][C]14[/C][C]0.000617110798490027[/C][C]0.00123422159698005[/C][C]0.99938288920151[/C][/ROW]
[ROW][C]15[/C][C]0.000201692826380083[/C][C]0.000403385652760165[/C][C]0.99979830717362[/C][/ROW]
[ROW][C]16[/C][C]0.211781625151483[/C][C]0.423563250302966[/C][C]0.788218374848517[/C][/ROW]
[ROW][C]17[/C][C]0.246163917400189[/C][C]0.492327834800377[/C][C]0.753836082599811[/C][/ROW]
[ROW][C]18[/C][C]0.18652481839116[/C][C]0.37304963678232[/C][C]0.81347518160884[/C][/ROW]
[ROW][C]19[/C][C]0.13303126591683[/C][C]0.266062531833661[/C][C]0.86696873408317[/C][/ROW]
[ROW][C]20[/C][C]0.107258532268044[/C][C]0.214517064536088[/C][C]0.892741467731956[/C][/ROW]
[ROW][C]21[/C][C]0.0727810935180333[/C][C]0.145562187036067[/C][C]0.927218906481967[/C][/ROW]
[ROW][C]22[/C][C]0.0528911403637164[/C][C]0.105782280727433[/C][C]0.947108859636284[/C][/ROW]
[ROW][C]23[/C][C]0.0341766691078935[/C][C]0.0683533382157871[/C][C]0.965823330892106[/C][/ROW]
[ROW][C]24[/C][C]0.0212346663218429[/C][C]0.0424693326436858[/C][C]0.978765333678157[/C][/ROW]
[ROW][C]25[/C][C]0.0148758746028066[/C][C]0.0297517492056133[/C][C]0.985124125397193[/C][/ROW]
[ROW][C]26[/C][C]0.0110256789726528[/C][C]0.0220513579453056[/C][C]0.988974321027347[/C][/ROW]
[ROW][C]27[/C][C]0.00855736021601688[/C][C]0.0171147204320338[/C][C]0.991442639783983[/C][/ROW]
[ROW][C]28[/C][C]0.00492230435809841[/C][C]0.00984460871619681[/C][C]0.995077695641902[/C][/ROW]
[ROW][C]29[/C][C]0.00935460694906371[/C][C]0.0187092138981274[/C][C]0.990645393050936[/C][/ROW]
[ROW][C]30[/C][C]0.277134294920936[/C][C]0.554268589841872[/C][C]0.722865705079064[/C][/ROW]
[ROW][C]31[/C][C]0.216611191235974[/C][C]0.433222382471947[/C][C]0.783388808764026[/C][/ROW]
[ROW][C]32[/C][C]0.166437291912217[/C][C]0.332874583824434[/C][C]0.833562708087783[/C][/ROW]
[ROW][C]33[/C][C]0.131312065272659[/C][C]0.262624130545319[/C][C]0.868687934727341[/C][/ROW]
[ROW][C]34[/C][C]0.100958109932239[/C][C]0.201916219864478[/C][C]0.899041890067761[/C][/ROW]
[ROW][C]35[/C][C]0.128776125656936[/C][C]0.257552251313873[/C][C]0.871223874343064[/C][/ROW]
[ROW][C]36[/C][C]0.299635053834096[/C][C]0.599270107668191[/C][C]0.700364946165904[/C][/ROW]
[ROW][C]37[/C][C]0.373960725986942[/C][C]0.747921451973884[/C][C]0.626039274013058[/C][/ROW]
[ROW][C]38[/C][C]0.330616377237129[/C][C]0.661232754474259[/C][C]0.669383622762871[/C][/ROW]
[ROW][C]39[/C][C]0.254630596227474[/C][C]0.509261192454948[/C][C]0.745369403772526[/C][/ROW]
[ROW][C]40[/C][C]0.194795832915357[/C][C]0.389591665830714[/C][C]0.805204167084643[/C][/ROW]
[ROW][C]41[/C][C]0.249471595263154[/C][C]0.498943190526308[/C][C]0.750528404736846[/C][/ROW]
[ROW][C]42[/C][C]0.196131768722942[/C][C]0.392263537445885[/C][C]0.803868231277058[/C][/ROW]
[ROW][C]43[/C][C]0.16046002393302[/C][C]0.32092004786604[/C][C]0.83953997606698[/C][/ROW]
[ROW][C]44[/C][C]0.126522365446[/C][C]0.253044730892001[/C][C]0.873477634554[/C][/ROW]
[ROW][C]45[/C][C]0.0851110412036034[/C][C]0.170222082407207[/C][C]0.914888958796397[/C][/ROW]
[ROW][C]46[/C][C]0.0911974220206705[/C][C]0.182394844041341[/C][C]0.90880257797933[/C][/ROW]
[ROW][C]47[/C][C]0.0745968581608568[/C][C]0.149193716321714[/C][C]0.925403141839143[/C][/ROW]
[ROW][C]48[/C][C]0.109220128191026[/C][C]0.218440256382053[/C][C]0.890779871808974[/C][/ROW]
[ROW][C]49[/C][C]0.102311810962284[/C][C]0.204623621924567[/C][C]0.897688189037716[/C][/ROW]
[ROW][C]50[/C][C]0.236259035224274[/C][C]0.472518070448548[/C][C]0.763740964775726[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=168758&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=168758&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
70.02116389395609620.04232778791219240.978836106043904
80.004581583375433090.009163166750866180.995418416624567
90.0008457288093796750.001691457618759350.99915427119062
100.0001415951430280890.0002831902860561770.999858404856972
110.0002233501882351590.0004467003764703180.999776649811765
127.03439827901713e-050.0001406879655803430.99992965601721
130.001402025751209760.002804051502419510.99859797424879
140.0006171107984900270.001234221596980050.99938288920151
150.0002016928263800830.0004033856527601650.99979830717362
160.2117816251514830.4235632503029660.788218374848517
170.2461639174001890.4923278348003770.753836082599811
180.186524818391160.373049636782320.81347518160884
190.133031265916830.2660625318336610.86696873408317
200.1072585322680440.2145170645360880.892741467731956
210.07278109351803330.1455621870360670.927218906481967
220.05289114036371640.1057822807274330.947108859636284
230.03417666910789350.06835333821578710.965823330892106
240.02123466632184290.04246933264368580.978765333678157
250.01487587460280660.02975174920561330.985124125397193
260.01102567897265280.02205135794530560.988974321027347
270.008557360216016880.01711472043203380.991442639783983
280.004922304358098410.009844608716196810.995077695641902
290.009354606949063710.01870921389812740.990645393050936
300.2771342949209360.5542685898418720.722865705079064
310.2166111912359740.4332223824719470.783388808764026
320.1664372919122170.3328745838244340.833562708087783
330.1313120652726590.2626241305453190.868687934727341
340.1009581099322390.2019162198644780.899041890067761
350.1287761256569360.2575522513138730.871223874343064
360.2996350538340960.5992701076681910.700364946165904
370.3739607259869420.7479214519738840.626039274013058
380.3306163772371290.6612327544742590.669383622762871
390.2546305962274740.5092611924549480.745369403772526
400.1947958329153570.3895916658307140.805204167084643
410.2494715952631540.4989431905263080.750528404736846
420.1961317687229420.3922635374458850.803868231277058
430.160460023933020.320920047866040.83953997606698
440.1265223654460.2530447308920010.873477634554
450.08511104120360340.1702220824072070.914888958796397
460.09119742202067050.1823948440413410.90880257797933
470.07459685816085680.1491937163217140.925403141839143
480.1092201281910260.2184402563820530.890779871808974
490.1023118109622840.2046236219245670.897688189037716
500.2362590352242740.4725180704485480.763740964775726







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level90.204545454545455NOK
5% type I error level150.340909090909091NOK
10% type I error level160.363636363636364NOK

\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 & 9 & 0.204545454545455 & NOK \tabularnewline
5% type I error level & 15 & 0.340909090909091 & NOK \tabularnewline
10% type I error level & 16 & 0.363636363636364 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=168758&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]9[/C][C]0.204545454545455[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]15[/C][C]0.340909090909091[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]16[/C][C]0.363636363636364[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=168758&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=168758&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 level90.204545454545455NOK
5% type I error level150.340909090909091NOK
10% type I error level160.363636363636364NOK



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