Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 24 Nov 2008 06:07:44 -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/24/t1227532377tlu13a0ma2mq56i.htm/, Retrieved Tue, 14 May 2024 14:38:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25417, Retrieved Tue, 14 May 2024 14:38:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact119
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Seatbeltlawq3] [2008-11-24 13:07:44] [80e37024345c6a903bf645806b7fbe14] [Current]
Feedback Forum

Post a new message
Dataseries X:
17015	1
17979	1
16593	1
18817	1
17370	1
17338	1
17224	1
13405	1
16159	1
17157	1
15202	0
13230	0
14351	0
15960	0
15140	0
14392	0
16202	0
14180	0
14716	0
13105	0
15428	0
15452	0
15031	0
12621	0
13154	0
15486	0
14741	0
13260	0
16170	0
13584	0
13527	0
13880	0
14733	0
13615	0
14466	0
11593	0
11816	0
14049	0
13012	0
13772	0
14908	0
12934	0
12509	0
12973	0
13807	0
13979	0
13938	0
10723	0
11956	0
13698	0
11810	0
12778	0
13933	0
11793	0
11391	0
11191	0
11687	0
13040	0
12639	0
9097	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=25417&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=25417&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25417&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
Uitvoer[t] = + 13533.04 + 3372.65999999999x[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Uitvoer[t] =  +  13533.04 +  3372.65999999999x[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25417&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Uitvoer[t] =  +  13533.04 +  3372.65999999999x[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25417&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25417&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
Uitvoer[t] = + 13533.04 + 3372.65999999999x[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)13533.04210.17653864.388900
x3372.65999999999514.8252756.551100

\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) & 13533.04 & 210.176538 & 64.3889 & 0 & 0 \tabularnewline
x & 3372.65999999999 & 514.825275 & 6.5511 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25417&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]13533.04[/C][C]210.176538[/C][C]64.3889[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]x[/C][C]3372.65999999999[/C][C]514.825275[/C][C]6.5511[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25417&T=2

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







Multiple Linear Regression - Regression Statistics
Multiple R0.652125791064754
R-squared0.425268047371832
Adjusted R-squared0.415358875774794
F-TEST (value)42.9166094468459
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value1.65659783668559e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1486.17255472364
Sum Squared Residuals128105114.02

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.652125791064754 \tabularnewline
R-squared & 0.425268047371832 \tabularnewline
Adjusted R-squared & 0.415358875774794 \tabularnewline
F-TEST (value) & 42.9166094468459 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 1.65659783668559e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1486.17255472364 \tabularnewline
Sum Squared Residuals & 128105114.02 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25417&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.652125791064754[/C][/ROW]
[ROW][C]R-squared[/C][C]0.425268047371832[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.415358875774794[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]42.9166094468459[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]1.65659783668559e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1486.17255472364[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]128105114.02[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25417&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25417&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.652125791064754
R-squared0.425268047371832
Adjusted R-squared0.415358875774794
F-TEST (value)42.9166094468459
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value1.65659783668559e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1486.17255472364
Sum Squared Residuals128105114.02







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11701516905.7000000000109.299999999980
21797916905.71073.29999999999
31659316905.7-312.699999999996
41881716905.71911.30000000000
51737016905.7464.300000000004
61733816905.7432.300000000004
71722416905.7318.300000000004
81340516905.7-3500.70
91615916905.7-746.699999999996
101715716905.7251.300000000004
111520213533.041668.96
121323013533.04-303.04
131435113533.04817.96
141596013533.042426.96
151514013533.041606.96
161439213533.04858.96
171620213533.042668.96
181418013533.04646.96
191471613533.041182.96
201310513533.04-428.04
211542813533.041894.96
221545213533.041918.96
231503113533.041497.96
241262113533.04-912.04
251315413533.04-379.04
261548613533.041952.96
271474113533.041207.96
281326013533.04-273.04
291617013533.042636.96
301358413533.0450.96
311352713533.04-6.03999999999995
321388013533.04346.96
331473313533.041199.96
341361513533.0481.96
351446613533.04932.96
361159313533.04-1940.04
371181613533.04-1717.04
381404913533.04515.96
391301213533.04-521.04
401377213533.04238.96
411490813533.041374.96
421293413533.04-599.04
431250913533.04-1024.04
441297313533.04-560.04
451380713533.04273.96
461397913533.04445.96
471393813533.04404.96
481072313533.04-2810.04
491195613533.04-1577.04
501369813533.04164.96
511181013533.04-1723.04
521277813533.04-755.04
531393313533.04399.96
541179313533.04-1740.04
551139113533.04-2142.04
561119113533.04-2342.04
571168713533.04-1846.04
581304013533.04-493.04
591263913533.04-894.04
60909713533.04-4436.04

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 17015 & 16905.7000000000 & 109.299999999980 \tabularnewline
2 & 17979 & 16905.7 & 1073.29999999999 \tabularnewline
3 & 16593 & 16905.7 & -312.699999999996 \tabularnewline
4 & 18817 & 16905.7 & 1911.30000000000 \tabularnewline
5 & 17370 & 16905.7 & 464.300000000004 \tabularnewline
6 & 17338 & 16905.7 & 432.300000000004 \tabularnewline
7 & 17224 & 16905.7 & 318.300000000004 \tabularnewline
8 & 13405 & 16905.7 & -3500.70 \tabularnewline
9 & 16159 & 16905.7 & -746.699999999996 \tabularnewline
10 & 17157 & 16905.7 & 251.300000000004 \tabularnewline
11 & 15202 & 13533.04 & 1668.96 \tabularnewline
12 & 13230 & 13533.04 & -303.04 \tabularnewline
13 & 14351 & 13533.04 & 817.96 \tabularnewline
14 & 15960 & 13533.04 & 2426.96 \tabularnewline
15 & 15140 & 13533.04 & 1606.96 \tabularnewline
16 & 14392 & 13533.04 & 858.96 \tabularnewline
17 & 16202 & 13533.04 & 2668.96 \tabularnewline
18 & 14180 & 13533.04 & 646.96 \tabularnewline
19 & 14716 & 13533.04 & 1182.96 \tabularnewline
20 & 13105 & 13533.04 & -428.04 \tabularnewline
21 & 15428 & 13533.04 & 1894.96 \tabularnewline
22 & 15452 & 13533.04 & 1918.96 \tabularnewline
23 & 15031 & 13533.04 & 1497.96 \tabularnewline
24 & 12621 & 13533.04 & -912.04 \tabularnewline
25 & 13154 & 13533.04 & -379.04 \tabularnewline
26 & 15486 & 13533.04 & 1952.96 \tabularnewline
27 & 14741 & 13533.04 & 1207.96 \tabularnewline
28 & 13260 & 13533.04 & -273.04 \tabularnewline
29 & 16170 & 13533.04 & 2636.96 \tabularnewline
30 & 13584 & 13533.04 & 50.96 \tabularnewline
31 & 13527 & 13533.04 & -6.03999999999995 \tabularnewline
32 & 13880 & 13533.04 & 346.96 \tabularnewline
33 & 14733 & 13533.04 & 1199.96 \tabularnewline
34 & 13615 & 13533.04 & 81.96 \tabularnewline
35 & 14466 & 13533.04 & 932.96 \tabularnewline
36 & 11593 & 13533.04 & -1940.04 \tabularnewline
37 & 11816 & 13533.04 & -1717.04 \tabularnewline
38 & 14049 & 13533.04 & 515.96 \tabularnewline
39 & 13012 & 13533.04 & -521.04 \tabularnewline
40 & 13772 & 13533.04 & 238.96 \tabularnewline
41 & 14908 & 13533.04 & 1374.96 \tabularnewline
42 & 12934 & 13533.04 & -599.04 \tabularnewline
43 & 12509 & 13533.04 & -1024.04 \tabularnewline
44 & 12973 & 13533.04 & -560.04 \tabularnewline
45 & 13807 & 13533.04 & 273.96 \tabularnewline
46 & 13979 & 13533.04 & 445.96 \tabularnewline
47 & 13938 & 13533.04 & 404.96 \tabularnewline
48 & 10723 & 13533.04 & -2810.04 \tabularnewline
49 & 11956 & 13533.04 & -1577.04 \tabularnewline
50 & 13698 & 13533.04 & 164.96 \tabularnewline
51 & 11810 & 13533.04 & -1723.04 \tabularnewline
52 & 12778 & 13533.04 & -755.04 \tabularnewline
53 & 13933 & 13533.04 & 399.96 \tabularnewline
54 & 11793 & 13533.04 & -1740.04 \tabularnewline
55 & 11391 & 13533.04 & -2142.04 \tabularnewline
56 & 11191 & 13533.04 & -2342.04 \tabularnewline
57 & 11687 & 13533.04 & -1846.04 \tabularnewline
58 & 13040 & 13533.04 & -493.04 \tabularnewline
59 & 12639 & 13533.04 & -894.04 \tabularnewline
60 & 9097 & 13533.04 & -4436.04 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25417&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]17015[/C][C]16905.7000000000[/C][C]109.299999999980[/C][/ROW]
[ROW][C]2[/C][C]17979[/C][C]16905.7[/C][C]1073.29999999999[/C][/ROW]
[ROW][C]3[/C][C]16593[/C][C]16905.7[/C][C]-312.699999999996[/C][/ROW]
[ROW][C]4[/C][C]18817[/C][C]16905.7[/C][C]1911.30000000000[/C][/ROW]
[ROW][C]5[/C][C]17370[/C][C]16905.7[/C][C]464.300000000004[/C][/ROW]
[ROW][C]6[/C][C]17338[/C][C]16905.7[/C][C]432.300000000004[/C][/ROW]
[ROW][C]7[/C][C]17224[/C][C]16905.7[/C][C]318.300000000004[/C][/ROW]
[ROW][C]8[/C][C]13405[/C][C]16905.7[/C][C]-3500.70[/C][/ROW]
[ROW][C]9[/C][C]16159[/C][C]16905.7[/C][C]-746.699999999996[/C][/ROW]
[ROW][C]10[/C][C]17157[/C][C]16905.7[/C][C]251.300000000004[/C][/ROW]
[ROW][C]11[/C][C]15202[/C][C]13533.04[/C][C]1668.96[/C][/ROW]
[ROW][C]12[/C][C]13230[/C][C]13533.04[/C][C]-303.04[/C][/ROW]
[ROW][C]13[/C][C]14351[/C][C]13533.04[/C][C]817.96[/C][/ROW]
[ROW][C]14[/C][C]15960[/C][C]13533.04[/C][C]2426.96[/C][/ROW]
[ROW][C]15[/C][C]15140[/C][C]13533.04[/C][C]1606.96[/C][/ROW]
[ROW][C]16[/C][C]14392[/C][C]13533.04[/C][C]858.96[/C][/ROW]
[ROW][C]17[/C][C]16202[/C][C]13533.04[/C][C]2668.96[/C][/ROW]
[ROW][C]18[/C][C]14180[/C][C]13533.04[/C][C]646.96[/C][/ROW]
[ROW][C]19[/C][C]14716[/C][C]13533.04[/C][C]1182.96[/C][/ROW]
[ROW][C]20[/C][C]13105[/C][C]13533.04[/C][C]-428.04[/C][/ROW]
[ROW][C]21[/C][C]15428[/C][C]13533.04[/C][C]1894.96[/C][/ROW]
[ROW][C]22[/C][C]15452[/C][C]13533.04[/C][C]1918.96[/C][/ROW]
[ROW][C]23[/C][C]15031[/C][C]13533.04[/C][C]1497.96[/C][/ROW]
[ROW][C]24[/C][C]12621[/C][C]13533.04[/C][C]-912.04[/C][/ROW]
[ROW][C]25[/C][C]13154[/C][C]13533.04[/C][C]-379.04[/C][/ROW]
[ROW][C]26[/C][C]15486[/C][C]13533.04[/C][C]1952.96[/C][/ROW]
[ROW][C]27[/C][C]14741[/C][C]13533.04[/C][C]1207.96[/C][/ROW]
[ROW][C]28[/C][C]13260[/C][C]13533.04[/C][C]-273.04[/C][/ROW]
[ROW][C]29[/C][C]16170[/C][C]13533.04[/C][C]2636.96[/C][/ROW]
[ROW][C]30[/C][C]13584[/C][C]13533.04[/C][C]50.96[/C][/ROW]
[ROW][C]31[/C][C]13527[/C][C]13533.04[/C][C]-6.03999999999995[/C][/ROW]
[ROW][C]32[/C][C]13880[/C][C]13533.04[/C][C]346.96[/C][/ROW]
[ROW][C]33[/C][C]14733[/C][C]13533.04[/C][C]1199.96[/C][/ROW]
[ROW][C]34[/C][C]13615[/C][C]13533.04[/C][C]81.96[/C][/ROW]
[ROW][C]35[/C][C]14466[/C][C]13533.04[/C][C]932.96[/C][/ROW]
[ROW][C]36[/C][C]11593[/C][C]13533.04[/C][C]-1940.04[/C][/ROW]
[ROW][C]37[/C][C]11816[/C][C]13533.04[/C][C]-1717.04[/C][/ROW]
[ROW][C]38[/C][C]14049[/C][C]13533.04[/C][C]515.96[/C][/ROW]
[ROW][C]39[/C][C]13012[/C][C]13533.04[/C][C]-521.04[/C][/ROW]
[ROW][C]40[/C][C]13772[/C][C]13533.04[/C][C]238.96[/C][/ROW]
[ROW][C]41[/C][C]14908[/C][C]13533.04[/C][C]1374.96[/C][/ROW]
[ROW][C]42[/C][C]12934[/C][C]13533.04[/C][C]-599.04[/C][/ROW]
[ROW][C]43[/C][C]12509[/C][C]13533.04[/C][C]-1024.04[/C][/ROW]
[ROW][C]44[/C][C]12973[/C][C]13533.04[/C][C]-560.04[/C][/ROW]
[ROW][C]45[/C][C]13807[/C][C]13533.04[/C][C]273.96[/C][/ROW]
[ROW][C]46[/C][C]13979[/C][C]13533.04[/C][C]445.96[/C][/ROW]
[ROW][C]47[/C][C]13938[/C][C]13533.04[/C][C]404.96[/C][/ROW]
[ROW][C]48[/C][C]10723[/C][C]13533.04[/C][C]-2810.04[/C][/ROW]
[ROW][C]49[/C][C]11956[/C][C]13533.04[/C][C]-1577.04[/C][/ROW]
[ROW][C]50[/C][C]13698[/C][C]13533.04[/C][C]164.96[/C][/ROW]
[ROW][C]51[/C][C]11810[/C][C]13533.04[/C][C]-1723.04[/C][/ROW]
[ROW][C]52[/C][C]12778[/C][C]13533.04[/C][C]-755.04[/C][/ROW]
[ROW][C]53[/C][C]13933[/C][C]13533.04[/C][C]399.96[/C][/ROW]
[ROW][C]54[/C][C]11793[/C][C]13533.04[/C][C]-1740.04[/C][/ROW]
[ROW][C]55[/C][C]11391[/C][C]13533.04[/C][C]-2142.04[/C][/ROW]
[ROW][C]56[/C][C]11191[/C][C]13533.04[/C][C]-2342.04[/C][/ROW]
[ROW][C]57[/C][C]11687[/C][C]13533.04[/C][C]-1846.04[/C][/ROW]
[ROW][C]58[/C][C]13040[/C][C]13533.04[/C][C]-493.04[/C][/ROW]
[ROW][C]59[/C][C]12639[/C][C]13533.04[/C][C]-894.04[/C][/ROW]
[ROW][C]60[/C][C]9097[/C][C]13533.04[/C][C]-4436.04[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25417&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25417&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
11701516905.7000000000109.299999999980
21797916905.71073.29999999999
31659316905.7-312.699999999996
41881716905.71911.30000000000
51737016905.7464.300000000004
61733816905.7432.300000000004
71722416905.7318.300000000004
81340516905.7-3500.70
91615916905.7-746.699999999996
101715716905.7251.300000000004
111520213533.041668.96
121323013533.04-303.04
131435113533.04817.96
141596013533.042426.96
151514013533.041606.96
161439213533.04858.96
171620213533.042668.96
181418013533.04646.96
191471613533.041182.96
201310513533.04-428.04
211542813533.041894.96
221545213533.041918.96
231503113533.041497.96
241262113533.04-912.04
251315413533.04-379.04
261548613533.041952.96
271474113533.041207.96
281326013533.04-273.04
291617013533.042636.96
301358413533.0450.96
311352713533.04-6.03999999999995
321388013533.04346.96
331473313533.041199.96
341361513533.0481.96
351446613533.04932.96
361159313533.04-1940.04
371181613533.04-1717.04
381404913533.04515.96
391301213533.04-521.04
401377213533.04238.96
411490813533.041374.96
421293413533.04-599.04
431250913533.04-1024.04
441297313533.04-560.04
451380713533.04273.96
461397913533.04445.96
471393813533.04404.96
481072313533.04-2810.04
491195613533.04-1577.04
501369813533.04164.96
511181013533.04-1723.04
521277813533.04-755.04
531393313533.04399.96
541179313533.04-1740.04
551139113533.04-2142.04
561119113533.04-2342.04
571168713533.04-1846.04
581304013533.04-493.04
591263913533.04-894.04
60909713533.04-4436.04







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.2760347196359490.5520694392718980.723965280364051
60.1457985027306160.2915970054612310.854201497269384
70.07399185583945380.1479837116789080.926008144160546
80.7396870129846810.5206259740306380.260312987015319
90.658232012430880.6835359751382410.341767987569121
100.5512576657671910.8974846684656170.448742334232809
110.4613663544327630.9227327088655260.538633645567237
120.4339698912507840.8679397825015680.566030108749216
130.3424569380441820.6849138760883650.657543061955818
140.3732483064162150.746496612832430.626751693583785
150.3148010635642450.6296021271284890.685198936435755
160.2480895918593310.4961791837186610.75191040814067
170.2956584465048970.5913168930097940.704341553495103
180.2439209176204290.4878418352408580.756079082379571
190.1964591708665370.3929183417330750.803540829133463
200.2015141681765760.4030283363531520.798485831823424
210.1946303466753070.3892606933506130.805369653324693
220.1935945755141270.3871891510282540.806405424485873
230.1733515358596620.3467030717193250.826648464140338
240.2165762042807860.4331524085615720.783423795719214
250.2029976764633300.4059953529266590.79700232353667
260.2265615326142750.453123065228550.773438467385725
270.2053669965553890.4107339931107780.79463300344461
280.1857573215946620.3715146431893240.814242678405338
290.3326647178719610.6653294357439230.667335282128039
300.2973584450255010.5947168900510020.702641554974499
310.2629938696463350.525987739292670.737006130353665
320.229501764129260.459003528258520.77049823587074
330.2390755115434030.4781510230868070.760924488456597
340.2100553556290670.4201107112581330.789944644370933
350.2135024044676760.4270048089353520.786497595532324
360.3131890403034880.6263780806069760.686810959696512
370.3652956069445620.7305912138891240.634704393055438
380.3410400613678470.6820801227356950.658959938632153
390.2966034371341560.5932068742683110.703396562865845
400.2649505931027310.5299011862054620.73504940689727
410.3580113135208210.7160226270416430.641988686479179
420.313683979426930.627367958853860.68631602057307
430.2765672103212040.5531344206424090.723432789678796
440.2323813829042170.4647627658084350.767618617095783
450.2248554829550940.4497109659101890.775144517044906
460.2457788825743130.4915577651486260.754221117425687
470.2882454860519000.5764909721037990.7117545139481
480.3858600096154510.7717200192309030.614139990384549
490.3296797300321190.6593594600642370.670320269967881
500.3515121574382780.7030243148765560.648487842561722
510.2868402018371620.5736804036743240.713159798162838
520.2288325613795600.4576651227591210.77116743862044
530.3514904664936360.7029809329872720.648509533506364
540.254960686302940.509921372605880.74503931369706
550.1667882195729730.3335764391459460.833211780427027

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.276034719635949 & 0.552069439271898 & 0.723965280364051 \tabularnewline
6 & 0.145798502730616 & 0.291597005461231 & 0.854201497269384 \tabularnewline
7 & 0.0739918558394538 & 0.147983711678908 & 0.926008144160546 \tabularnewline
8 & 0.739687012984681 & 0.520625974030638 & 0.260312987015319 \tabularnewline
9 & 0.65823201243088 & 0.683535975138241 & 0.341767987569121 \tabularnewline
10 & 0.551257665767191 & 0.897484668465617 & 0.448742334232809 \tabularnewline
11 & 0.461366354432763 & 0.922732708865526 & 0.538633645567237 \tabularnewline
12 & 0.433969891250784 & 0.867939782501568 & 0.566030108749216 \tabularnewline
13 & 0.342456938044182 & 0.684913876088365 & 0.657543061955818 \tabularnewline
14 & 0.373248306416215 & 0.74649661283243 & 0.626751693583785 \tabularnewline
15 & 0.314801063564245 & 0.629602127128489 & 0.685198936435755 \tabularnewline
16 & 0.248089591859331 & 0.496179183718661 & 0.75191040814067 \tabularnewline
17 & 0.295658446504897 & 0.591316893009794 & 0.704341553495103 \tabularnewline
18 & 0.243920917620429 & 0.487841835240858 & 0.756079082379571 \tabularnewline
19 & 0.196459170866537 & 0.392918341733075 & 0.803540829133463 \tabularnewline
20 & 0.201514168176576 & 0.403028336353152 & 0.798485831823424 \tabularnewline
21 & 0.194630346675307 & 0.389260693350613 & 0.805369653324693 \tabularnewline
22 & 0.193594575514127 & 0.387189151028254 & 0.806405424485873 \tabularnewline
23 & 0.173351535859662 & 0.346703071719325 & 0.826648464140338 \tabularnewline
24 & 0.216576204280786 & 0.433152408561572 & 0.783423795719214 \tabularnewline
25 & 0.202997676463330 & 0.405995352926659 & 0.79700232353667 \tabularnewline
26 & 0.226561532614275 & 0.45312306522855 & 0.773438467385725 \tabularnewline
27 & 0.205366996555389 & 0.410733993110778 & 0.79463300344461 \tabularnewline
28 & 0.185757321594662 & 0.371514643189324 & 0.814242678405338 \tabularnewline
29 & 0.332664717871961 & 0.665329435743923 & 0.667335282128039 \tabularnewline
30 & 0.297358445025501 & 0.594716890051002 & 0.702641554974499 \tabularnewline
31 & 0.262993869646335 & 0.52598773929267 & 0.737006130353665 \tabularnewline
32 & 0.22950176412926 & 0.45900352825852 & 0.77049823587074 \tabularnewline
33 & 0.239075511543403 & 0.478151023086807 & 0.760924488456597 \tabularnewline
34 & 0.210055355629067 & 0.420110711258133 & 0.789944644370933 \tabularnewline
35 & 0.213502404467676 & 0.427004808935352 & 0.786497595532324 \tabularnewline
36 & 0.313189040303488 & 0.626378080606976 & 0.686810959696512 \tabularnewline
37 & 0.365295606944562 & 0.730591213889124 & 0.634704393055438 \tabularnewline
38 & 0.341040061367847 & 0.682080122735695 & 0.658959938632153 \tabularnewline
39 & 0.296603437134156 & 0.593206874268311 & 0.703396562865845 \tabularnewline
40 & 0.264950593102731 & 0.529901186205462 & 0.73504940689727 \tabularnewline
41 & 0.358011313520821 & 0.716022627041643 & 0.641988686479179 \tabularnewline
42 & 0.31368397942693 & 0.62736795885386 & 0.68631602057307 \tabularnewline
43 & 0.276567210321204 & 0.553134420642409 & 0.723432789678796 \tabularnewline
44 & 0.232381382904217 & 0.464762765808435 & 0.767618617095783 \tabularnewline
45 & 0.224855482955094 & 0.449710965910189 & 0.775144517044906 \tabularnewline
46 & 0.245778882574313 & 0.491557765148626 & 0.754221117425687 \tabularnewline
47 & 0.288245486051900 & 0.576490972103799 & 0.7117545139481 \tabularnewline
48 & 0.385860009615451 & 0.771720019230903 & 0.614139990384549 \tabularnewline
49 & 0.329679730032119 & 0.659359460064237 & 0.670320269967881 \tabularnewline
50 & 0.351512157438278 & 0.703024314876556 & 0.648487842561722 \tabularnewline
51 & 0.286840201837162 & 0.573680403674324 & 0.713159798162838 \tabularnewline
52 & 0.228832561379560 & 0.457665122759121 & 0.77116743862044 \tabularnewline
53 & 0.351490466493636 & 0.702980932987272 & 0.648509533506364 \tabularnewline
54 & 0.25496068630294 & 0.50992137260588 & 0.74503931369706 \tabularnewline
55 & 0.166788219572973 & 0.333576439145946 & 0.833211780427027 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25417&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]5[/C][C]0.276034719635949[/C][C]0.552069439271898[/C][C]0.723965280364051[/C][/ROW]
[ROW][C]6[/C][C]0.145798502730616[/C][C]0.291597005461231[/C][C]0.854201497269384[/C][/ROW]
[ROW][C]7[/C][C]0.0739918558394538[/C][C]0.147983711678908[/C][C]0.926008144160546[/C][/ROW]
[ROW][C]8[/C][C]0.739687012984681[/C][C]0.520625974030638[/C][C]0.260312987015319[/C][/ROW]
[ROW][C]9[/C][C]0.65823201243088[/C][C]0.683535975138241[/C][C]0.341767987569121[/C][/ROW]
[ROW][C]10[/C][C]0.551257665767191[/C][C]0.897484668465617[/C][C]0.448742334232809[/C][/ROW]
[ROW][C]11[/C][C]0.461366354432763[/C][C]0.922732708865526[/C][C]0.538633645567237[/C][/ROW]
[ROW][C]12[/C][C]0.433969891250784[/C][C]0.867939782501568[/C][C]0.566030108749216[/C][/ROW]
[ROW][C]13[/C][C]0.342456938044182[/C][C]0.684913876088365[/C][C]0.657543061955818[/C][/ROW]
[ROW][C]14[/C][C]0.373248306416215[/C][C]0.74649661283243[/C][C]0.626751693583785[/C][/ROW]
[ROW][C]15[/C][C]0.314801063564245[/C][C]0.629602127128489[/C][C]0.685198936435755[/C][/ROW]
[ROW][C]16[/C][C]0.248089591859331[/C][C]0.496179183718661[/C][C]0.75191040814067[/C][/ROW]
[ROW][C]17[/C][C]0.295658446504897[/C][C]0.591316893009794[/C][C]0.704341553495103[/C][/ROW]
[ROW][C]18[/C][C]0.243920917620429[/C][C]0.487841835240858[/C][C]0.756079082379571[/C][/ROW]
[ROW][C]19[/C][C]0.196459170866537[/C][C]0.392918341733075[/C][C]0.803540829133463[/C][/ROW]
[ROW][C]20[/C][C]0.201514168176576[/C][C]0.403028336353152[/C][C]0.798485831823424[/C][/ROW]
[ROW][C]21[/C][C]0.194630346675307[/C][C]0.389260693350613[/C][C]0.805369653324693[/C][/ROW]
[ROW][C]22[/C][C]0.193594575514127[/C][C]0.387189151028254[/C][C]0.806405424485873[/C][/ROW]
[ROW][C]23[/C][C]0.173351535859662[/C][C]0.346703071719325[/C][C]0.826648464140338[/C][/ROW]
[ROW][C]24[/C][C]0.216576204280786[/C][C]0.433152408561572[/C][C]0.783423795719214[/C][/ROW]
[ROW][C]25[/C][C]0.202997676463330[/C][C]0.405995352926659[/C][C]0.79700232353667[/C][/ROW]
[ROW][C]26[/C][C]0.226561532614275[/C][C]0.45312306522855[/C][C]0.773438467385725[/C][/ROW]
[ROW][C]27[/C][C]0.205366996555389[/C][C]0.410733993110778[/C][C]0.79463300344461[/C][/ROW]
[ROW][C]28[/C][C]0.185757321594662[/C][C]0.371514643189324[/C][C]0.814242678405338[/C][/ROW]
[ROW][C]29[/C][C]0.332664717871961[/C][C]0.665329435743923[/C][C]0.667335282128039[/C][/ROW]
[ROW][C]30[/C][C]0.297358445025501[/C][C]0.594716890051002[/C][C]0.702641554974499[/C][/ROW]
[ROW][C]31[/C][C]0.262993869646335[/C][C]0.52598773929267[/C][C]0.737006130353665[/C][/ROW]
[ROW][C]32[/C][C]0.22950176412926[/C][C]0.45900352825852[/C][C]0.77049823587074[/C][/ROW]
[ROW][C]33[/C][C]0.239075511543403[/C][C]0.478151023086807[/C][C]0.760924488456597[/C][/ROW]
[ROW][C]34[/C][C]0.210055355629067[/C][C]0.420110711258133[/C][C]0.789944644370933[/C][/ROW]
[ROW][C]35[/C][C]0.213502404467676[/C][C]0.427004808935352[/C][C]0.786497595532324[/C][/ROW]
[ROW][C]36[/C][C]0.313189040303488[/C][C]0.626378080606976[/C][C]0.686810959696512[/C][/ROW]
[ROW][C]37[/C][C]0.365295606944562[/C][C]0.730591213889124[/C][C]0.634704393055438[/C][/ROW]
[ROW][C]38[/C][C]0.341040061367847[/C][C]0.682080122735695[/C][C]0.658959938632153[/C][/ROW]
[ROW][C]39[/C][C]0.296603437134156[/C][C]0.593206874268311[/C][C]0.703396562865845[/C][/ROW]
[ROW][C]40[/C][C]0.264950593102731[/C][C]0.529901186205462[/C][C]0.73504940689727[/C][/ROW]
[ROW][C]41[/C][C]0.358011313520821[/C][C]0.716022627041643[/C][C]0.641988686479179[/C][/ROW]
[ROW][C]42[/C][C]0.31368397942693[/C][C]0.62736795885386[/C][C]0.68631602057307[/C][/ROW]
[ROW][C]43[/C][C]0.276567210321204[/C][C]0.553134420642409[/C][C]0.723432789678796[/C][/ROW]
[ROW][C]44[/C][C]0.232381382904217[/C][C]0.464762765808435[/C][C]0.767618617095783[/C][/ROW]
[ROW][C]45[/C][C]0.224855482955094[/C][C]0.449710965910189[/C][C]0.775144517044906[/C][/ROW]
[ROW][C]46[/C][C]0.245778882574313[/C][C]0.491557765148626[/C][C]0.754221117425687[/C][/ROW]
[ROW][C]47[/C][C]0.288245486051900[/C][C]0.576490972103799[/C][C]0.7117545139481[/C][/ROW]
[ROW][C]48[/C][C]0.385860009615451[/C][C]0.771720019230903[/C][C]0.614139990384549[/C][/ROW]
[ROW][C]49[/C][C]0.329679730032119[/C][C]0.659359460064237[/C][C]0.670320269967881[/C][/ROW]
[ROW][C]50[/C][C]0.351512157438278[/C][C]0.703024314876556[/C][C]0.648487842561722[/C][/ROW]
[ROW][C]51[/C][C]0.286840201837162[/C][C]0.573680403674324[/C][C]0.713159798162838[/C][/ROW]
[ROW][C]52[/C][C]0.228832561379560[/C][C]0.457665122759121[/C][C]0.77116743862044[/C][/ROW]
[ROW][C]53[/C][C]0.351490466493636[/C][C]0.702980932987272[/C][C]0.648509533506364[/C][/ROW]
[ROW][C]54[/C][C]0.25496068630294[/C][C]0.50992137260588[/C][C]0.74503931369706[/C][/ROW]
[ROW][C]55[/C][C]0.166788219572973[/C][C]0.333576439145946[/C][C]0.833211780427027[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25417&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25417&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
50.2760347196359490.5520694392718980.723965280364051
60.1457985027306160.2915970054612310.854201497269384
70.07399185583945380.1479837116789080.926008144160546
80.7396870129846810.5206259740306380.260312987015319
90.658232012430880.6835359751382410.341767987569121
100.5512576657671910.8974846684656170.448742334232809
110.4613663544327630.9227327088655260.538633645567237
120.4339698912507840.8679397825015680.566030108749216
130.3424569380441820.6849138760883650.657543061955818
140.3732483064162150.746496612832430.626751693583785
150.3148010635642450.6296021271284890.685198936435755
160.2480895918593310.4961791837186610.75191040814067
170.2956584465048970.5913168930097940.704341553495103
180.2439209176204290.4878418352408580.756079082379571
190.1964591708665370.3929183417330750.803540829133463
200.2015141681765760.4030283363531520.798485831823424
210.1946303466753070.3892606933506130.805369653324693
220.1935945755141270.3871891510282540.806405424485873
230.1733515358596620.3467030717193250.826648464140338
240.2165762042807860.4331524085615720.783423795719214
250.2029976764633300.4059953529266590.79700232353667
260.2265615326142750.453123065228550.773438467385725
270.2053669965553890.4107339931107780.79463300344461
280.1857573215946620.3715146431893240.814242678405338
290.3326647178719610.6653294357439230.667335282128039
300.2973584450255010.5947168900510020.702641554974499
310.2629938696463350.525987739292670.737006130353665
320.229501764129260.459003528258520.77049823587074
330.2390755115434030.4781510230868070.760924488456597
340.2100553556290670.4201107112581330.789944644370933
350.2135024044676760.4270048089353520.786497595532324
360.3131890403034880.6263780806069760.686810959696512
370.3652956069445620.7305912138891240.634704393055438
380.3410400613678470.6820801227356950.658959938632153
390.2966034371341560.5932068742683110.703396562865845
400.2649505931027310.5299011862054620.73504940689727
410.3580113135208210.7160226270416430.641988686479179
420.313683979426930.627367958853860.68631602057307
430.2765672103212040.5531344206424090.723432789678796
440.2323813829042170.4647627658084350.767618617095783
450.2248554829550940.4497109659101890.775144517044906
460.2457788825743130.4915577651486260.754221117425687
470.2882454860519000.5764909721037990.7117545139481
480.3858600096154510.7717200192309030.614139990384549
490.3296797300321190.6593594600642370.670320269967881
500.3515121574382780.7030243148765560.648487842561722
510.2868402018371620.5736804036743240.713159798162838
520.2288325613795600.4576651227591210.77116743862044
530.3514904664936360.7029809329872720.648509533506364
540.254960686302940.509921372605880.74503931369706
550.1667882195729730.3335764391459460.833211780427027







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



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