Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 17 Dec 2008 02:54:45 -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/Dec/17/t1229507789tzsaecpbh6qeoal.htm/, Retrieved Sun, 26 May 2024 21:16:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34290, Retrieved Sun, 26 May 2024 21:16:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsmultiple lineair regression
Estimated Impact203
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [MLR] [2008-11-26 18:25:12] [3ffd109c9e040b1ae7e5dbe576d4698c]
- R P   [Multiple Regression] [Multiple Lineair ...] [2008-12-16 16:18:01] [3ffd109c9e040b1ae7e5dbe576d4698c]
-   P       [Multiple Regression] [multiple lineair ...] [2008-12-17 09:54:45] [962e6c9020896982bc8283b8971710a9] [Current]
Feedback Forum

Post a new message
Dataseries X:
147768	0
137507	0
136919	0
136151	0
133001	0
125554	0
119647	0
114158	0
116193	0
152803	0
161761	0
160942	0
149470	0
139208	0
134588	0
130322	0
126611	0
122401	0
117352	0
112135	0
112879	0
148729	0
157230	0
157221	0
146681	0
136524	0
132111	1
125326	1
122716	1
116615	1
113719	1
110737	1
112093	1
143565	1
149946	1
149147	1
134339	1
122683	1
115614	1
116566	1
111272	1
104609	1
101802	1
94542	1
93051	1
124129	1
130374	1
123946	1
114971	1
105531	1
104919	0
104782	0
101281	0
94545	0
93248	0
84031	0
87486	0
115867	0
120327	0
117008	0
108811	0




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
jonger_dan_25[t] = + 126109.729729730 -6551.22972972975plan[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
jonger_dan_25[t] =  +  126109.729729730 -6551.22972972975plan[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34290&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]jonger_dan_25[t] =  +  126109.729729730 -6551.22972972975plan[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34290&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34290&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
jonger_dan_25[t] = + 126109.729729730 -6551.22972972975plan[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)126109.7297297303122.71363640.384700
plan-6551.229729729754978.419125-1.31590.1932890.096645

\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) & 126109.729729730 & 3122.713636 & 40.3847 & 0 & 0 \tabularnewline
plan & -6551.22972972975 & 4978.419125 & -1.3159 & 0.193289 & 0.096645 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34290&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]126109.729729730[/C][C]3122.713636[/C][C]40.3847[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]plan[/C][C]-6551.22972972975[/C][C]4978.419125[/C][C]-1.3159[/C][C]0.193289[/C][C]0.096645[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34290&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34290&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)126109.7297297303122.71363640.384700
plan-6551.229729729754978.419125-1.31590.1932890.096645







Multiple Linear Regression - Regression Statistics
Multiple R0.168858837431560
R-squared0.0285133069787379
Adjusted R-squared0.0120474308258351
F-TEST (value)1.73166047855348
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.193289166757992
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation18994.7254977231
Sum Squared Residuals21287176207.2973

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.168858837431560 \tabularnewline
R-squared & 0.0285133069787379 \tabularnewline
Adjusted R-squared & 0.0120474308258351 \tabularnewline
F-TEST (value) & 1.73166047855348 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 59 \tabularnewline
p-value & 0.193289166757992 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 18994.7254977231 \tabularnewline
Sum Squared Residuals & 21287176207.2973 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34290&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.168858837431560[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0285133069787379[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0120474308258351[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.73166047855348[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]59[/C][/ROW]
[ROW][C]p-value[/C][C]0.193289166757992[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]18994.7254977231[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]21287176207.2973[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34290&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34290&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.168858837431560
R-squared0.0285133069787379
Adjusted R-squared0.0120474308258351
F-TEST (value)1.73166047855348
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.193289166757992
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation18994.7254977231
Sum Squared Residuals21287176207.2973







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1147768126109.72972972921658.2702702708
2137507126109.72972973011397.2702702703
3136919126109.72972973010809.2702702703
4136151126109.72972973010041.2702702703
5133001126109.7297297306891.27027027026
6125554126109.729729730-555.729729729742
7119647126109.729729730-6462.72972972974
8114158126109.729729730-11951.7297297297
9116193126109.729729730-9916.72972972974
10152803126109.72972973026693.2702702703
11161761126109.72972973035651.2702702703
12160942126109.72972973034832.2702702703
13149470126109.72972973023360.2702702703
14139208126109.72972973013098.2702702703
15134588126109.7297297308478.27027027026
16130322126109.7297297304212.27027027026
17126611126109.729729730501.270270270258
18122401126109.729729730-3708.72972972974
19117352126109.729729730-8757.72972972974
20112135126109.729729730-13974.7297297297
21112879126109.729729730-13230.7297297297
22148729126109.72972973022619.2702702703
23157230126109.72972973031120.2702702703
24157221126109.72972973031111.2702702703
25146681126109.72972973020571.2702702703
26136524126109.72972973010414.2702702703
27132111119558.512552.5
28125326119558.55767.5
29122716119558.53157.5
30116615119558.5-2943.5
31113719119558.5-5839.5
32110737119558.5-8821.5
33112093119558.5-7465.5
34143565119558.524006.5
35149946119558.530387.5
36149147119558.529588.5
37134339119558.514780.5
38122683119558.53124.5
39115614119558.5-3944.5
40116566119558.5-2992.5
41111272119558.5-8286.5
42104609119558.5-14949.5
43101802119558.5-17756.5
4494542119558.5-25016.5
4593051119558.5-26507.5
46124129119558.54570.5
47130374119558.510815.5
48123946119558.54387.5
49114971119558.5-4587.5
50105531119558.5-14027.5
51104919126109.729729730-21190.7297297297
52104782126109.729729730-21327.7297297297
53101281126109.729729730-24828.7297297297
5494545126109.729729730-31564.7297297297
5593248126109.729729730-32861.7297297297
5684031126109.729729730-42078.7297297297
5787486126109.729729730-38623.7297297297
58115867126109.729729730-10242.7297297297
59120327126109.729729730-5782.72972972974
60117008126109.729729730-9101.72972972974
61108811126109.729729730-17298.7297297297

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 147768 & 126109.729729729 & 21658.2702702708 \tabularnewline
2 & 137507 & 126109.729729730 & 11397.2702702703 \tabularnewline
3 & 136919 & 126109.729729730 & 10809.2702702703 \tabularnewline
4 & 136151 & 126109.729729730 & 10041.2702702703 \tabularnewline
5 & 133001 & 126109.729729730 & 6891.27027027026 \tabularnewline
6 & 125554 & 126109.729729730 & -555.729729729742 \tabularnewline
7 & 119647 & 126109.729729730 & -6462.72972972974 \tabularnewline
8 & 114158 & 126109.729729730 & -11951.7297297297 \tabularnewline
9 & 116193 & 126109.729729730 & -9916.72972972974 \tabularnewline
10 & 152803 & 126109.729729730 & 26693.2702702703 \tabularnewline
11 & 161761 & 126109.729729730 & 35651.2702702703 \tabularnewline
12 & 160942 & 126109.729729730 & 34832.2702702703 \tabularnewline
13 & 149470 & 126109.729729730 & 23360.2702702703 \tabularnewline
14 & 139208 & 126109.729729730 & 13098.2702702703 \tabularnewline
15 & 134588 & 126109.729729730 & 8478.27027027026 \tabularnewline
16 & 130322 & 126109.729729730 & 4212.27027027026 \tabularnewline
17 & 126611 & 126109.729729730 & 501.270270270258 \tabularnewline
18 & 122401 & 126109.729729730 & -3708.72972972974 \tabularnewline
19 & 117352 & 126109.729729730 & -8757.72972972974 \tabularnewline
20 & 112135 & 126109.729729730 & -13974.7297297297 \tabularnewline
21 & 112879 & 126109.729729730 & -13230.7297297297 \tabularnewline
22 & 148729 & 126109.729729730 & 22619.2702702703 \tabularnewline
23 & 157230 & 126109.729729730 & 31120.2702702703 \tabularnewline
24 & 157221 & 126109.729729730 & 31111.2702702703 \tabularnewline
25 & 146681 & 126109.729729730 & 20571.2702702703 \tabularnewline
26 & 136524 & 126109.729729730 & 10414.2702702703 \tabularnewline
27 & 132111 & 119558.5 & 12552.5 \tabularnewline
28 & 125326 & 119558.5 & 5767.5 \tabularnewline
29 & 122716 & 119558.5 & 3157.5 \tabularnewline
30 & 116615 & 119558.5 & -2943.5 \tabularnewline
31 & 113719 & 119558.5 & -5839.5 \tabularnewline
32 & 110737 & 119558.5 & -8821.5 \tabularnewline
33 & 112093 & 119558.5 & -7465.5 \tabularnewline
34 & 143565 & 119558.5 & 24006.5 \tabularnewline
35 & 149946 & 119558.5 & 30387.5 \tabularnewline
36 & 149147 & 119558.5 & 29588.5 \tabularnewline
37 & 134339 & 119558.5 & 14780.5 \tabularnewline
38 & 122683 & 119558.5 & 3124.5 \tabularnewline
39 & 115614 & 119558.5 & -3944.5 \tabularnewline
40 & 116566 & 119558.5 & -2992.5 \tabularnewline
41 & 111272 & 119558.5 & -8286.5 \tabularnewline
42 & 104609 & 119558.5 & -14949.5 \tabularnewline
43 & 101802 & 119558.5 & -17756.5 \tabularnewline
44 & 94542 & 119558.5 & -25016.5 \tabularnewline
45 & 93051 & 119558.5 & -26507.5 \tabularnewline
46 & 124129 & 119558.5 & 4570.5 \tabularnewline
47 & 130374 & 119558.5 & 10815.5 \tabularnewline
48 & 123946 & 119558.5 & 4387.5 \tabularnewline
49 & 114971 & 119558.5 & -4587.5 \tabularnewline
50 & 105531 & 119558.5 & -14027.5 \tabularnewline
51 & 104919 & 126109.729729730 & -21190.7297297297 \tabularnewline
52 & 104782 & 126109.729729730 & -21327.7297297297 \tabularnewline
53 & 101281 & 126109.729729730 & -24828.7297297297 \tabularnewline
54 & 94545 & 126109.729729730 & -31564.7297297297 \tabularnewline
55 & 93248 & 126109.729729730 & -32861.7297297297 \tabularnewline
56 & 84031 & 126109.729729730 & -42078.7297297297 \tabularnewline
57 & 87486 & 126109.729729730 & -38623.7297297297 \tabularnewline
58 & 115867 & 126109.729729730 & -10242.7297297297 \tabularnewline
59 & 120327 & 126109.729729730 & -5782.72972972974 \tabularnewline
60 & 117008 & 126109.729729730 & -9101.72972972974 \tabularnewline
61 & 108811 & 126109.729729730 & -17298.7297297297 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34290&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]147768[/C][C]126109.729729729[/C][C]21658.2702702708[/C][/ROW]
[ROW][C]2[/C][C]137507[/C][C]126109.729729730[/C][C]11397.2702702703[/C][/ROW]
[ROW][C]3[/C][C]136919[/C][C]126109.729729730[/C][C]10809.2702702703[/C][/ROW]
[ROW][C]4[/C][C]136151[/C][C]126109.729729730[/C][C]10041.2702702703[/C][/ROW]
[ROW][C]5[/C][C]133001[/C][C]126109.729729730[/C][C]6891.27027027026[/C][/ROW]
[ROW][C]6[/C][C]125554[/C][C]126109.729729730[/C][C]-555.729729729742[/C][/ROW]
[ROW][C]7[/C][C]119647[/C][C]126109.729729730[/C][C]-6462.72972972974[/C][/ROW]
[ROW][C]8[/C][C]114158[/C][C]126109.729729730[/C][C]-11951.7297297297[/C][/ROW]
[ROW][C]9[/C][C]116193[/C][C]126109.729729730[/C][C]-9916.72972972974[/C][/ROW]
[ROW][C]10[/C][C]152803[/C][C]126109.729729730[/C][C]26693.2702702703[/C][/ROW]
[ROW][C]11[/C][C]161761[/C][C]126109.729729730[/C][C]35651.2702702703[/C][/ROW]
[ROW][C]12[/C][C]160942[/C][C]126109.729729730[/C][C]34832.2702702703[/C][/ROW]
[ROW][C]13[/C][C]149470[/C][C]126109.729729730[/C][C]23360.2702702703[/C][/ROW]
[ROW][C]14[/C][C]139208[/C][C]126109.729729730[/C][C]13098.2702702703[/C][/ROW]
[ROW][C]15[/C][C]134588[/C][C]126109.729729730[/C][C]8478.27027027026[/C][/ROW]
[ROW][C]16[/C][C]130322[/C][C]126109.729729730[/C][C]4212.27027027026[/C][/ROW]
[ROW][C]17[/C][C]126611[/C][C]126109.729729730[/C][C]501.270270270258[/C][/ROW]
[ROW][C]18[/C][C]122401[/C][C]126109.729729730[/C][C]-3708.72972972974[/C][/ROW]
[ROW][C]19[/C][C]117352[/C][C]126109.729729730[/C][C]-8757.72972972974[/C][/ROW]
[ROW][C]20[/C][C]112135[/C][C]126109.729729730[/C][C]-13974.7297297297[/C][/ROW]
[ROW][C]21[/C][C]112879[/C][C]126109.729729730[/C][C]-13230.7297297297[/C][/ROW]
[ROW][C]22[/C][C]148729[/C][C]126109.729729730[/C][C]22619.2702702703[/C][/ROW]
[ROW][C]23[/C][C]157230[/C][C]126109.729729730[/C][C]31120.2702702703[/C][/ROW]
[ROW][C]24[/C][C]157221[/C][C]126109.729729730[/C][C]31111.2702702703[/C][/ROW]
[ROW][C]25[/C][C]146681[/C][C]126109.729729730[/C][C]20571.2702702703[/C][/ROW]
[ROW][C]26[/C][C]136524[/C][C]126109.729729730[/C][C]10414.2702702703[/C][/ROW]
[ROW][C]27[/C][C]132111[/C][C]119558.5[/C][C]12552.5[/C][/ROW]
[ROW][C]28[/C][C]125326[/C][C]119558.5[/C][C]5767.5[/C][/ROW]
[ROW][C]29[/C][C]122716[/C][C]119558.5[/C][C]3157.5[/C][/ROW]
[ROW][C]30[/C][C]116615[/C][C]119558.5[/C][C]-2943.5[/C][/ROW]
[ROW][C]31[/C][C]113719[/C][C]119558.5[/C][C]-5839.5[/C][/ROW]
[ROW][C]32[/C][C]110737[/C][C]119558.5[/C][C]-8821.5[/C][/ROW]
[ROW][C]33[/C][C]112093[/C][C]119558.5[/C][C]-7465.5[/C][/ROW]
[ROW][C]34[/C][C]143565[/C][C]119558.5[/C][C]24006.5[/C][/ROW]
[ROW][C]35[/C][C]149946[/C][C]119558.5[/C][C]30387.5[/C][/ROW]
[ROW][C]36[/C][C]149147[/C][C]119558.5[/C][C]29588.5[/C][/ROW]
[ROW][C]37[/C][C]134339[/C][C]119558.5[/C][C]14780.5[/C][/ROW]
[ROW][C]38[/C][C]122683[/C][C]119558.5[/C][C]3124.5[/C][/ROW]
[ROW][C]39[/C][C]115614[/C][C]119558.5[/C][C]-3944.5[/C][/ROW]
[ROW][C]40[/C][C]116566[/C][C]119558.5[/C][C]-2992.5[/C][/ROW]
[ROW][C]41[/C][C]111272[/C][C]119558.5[/C][C]-8286.5[/C][/ROW]
[ROW][C]42[/C][C]104609[/C][C]119558.5[/C][C]-14949.5[/C][/ROW]
[ROW][C]43[/C][C]101802[/C][C]119558.5[/C][C]-17756.5[/C][/ROW]
[ROW][C]44[/C][C]94542[/C][C]119558.5[/C][C]-25016.5[/C][/ROW]
[ROW][C]45[/C][C]93051[/C][C]119558.5[/C][C]-26507.5[/C][/ROW]
[ROW][C]46[/C][C]124129[/C][C]119558.5[/C][C]4570.5[/C][/ROW]
[ROW][C]47[/C][C]130374[/C][C]119558.5[/C][C]10815.5[/C][/ROW]
[ROW][C]48[/C][C]123946[/C][C]119558.5[/C][C]4387.5[/C][/ROW]
[ROW][C]49[/C][C]114971[/C][C]119558.5[/C][C]-4587.5[/C][/ROW]
[ROW][C]50[/C][C]105531[/C][C]119558.5[/C][C]-14027.5[/C][/ROW]
[ROW][C]51[/C][C]104919[/C][C]126109.729729730[/C][C]-21190.7297297297[/C][/ROW]
[ROW][C]52[/C][C]104782[/C][C]126109.729729730[/C][C]-21327.7297297297[/C][/ROW]
[ROW][C]53[/C][C]101281[/C][C]126109.729729730[/C][C]-24828.7297297297[/C][/ROW]
[ROW][C]54[/C][C]94545[/C][C]126109.729729730[/C][C]-31564.7297297297[/C][/ROW]
[ROW][C]55[/C][C]93248[/C][C]126109.729729730[/C][C]-32861.7297297297[/C][/ROW]
[ROW][C]56[/C][C]84031[/C][C]126109.729729730[/C][C]-42078.7297297297[/C][/ROW]
[ROW][C]57[/C][C]87486[/C][C]126109.729729730[/C][C]-38623.7297297297[/C][/ROW]
[ROW][C]58[/C][C]115867[/C][C]126109.729729730[/C][C]-10242.7297297297[/C][/ROW]
[ROW][C]59[/C][C]120327[/C][C]126109.729729730[/C][C]-5782.72972972974[/C][/ROW]
[ROW][C]60[/C][C]117008[/C][C]126109.729729730[/C][C]-9101.72972972974[/C][/ROW]
[ROW][C]61[/C][C]108811[/C][C]126109.729729730[/C][C]-17298.7297297297[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34290&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34290&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
1147768126109.72972972921658.2702702708
2137507126109.72972973011397.2702702703
3136919126109.72972973010809.2702702703
4136151126109.72972973010041.2702702703
5133001126109.7297297306891.27027027026
6125554126109.729729730-555.729729729742
7119647126109.729729730-6462.72972972974
8114158126109.729729730-11951.7297297297
9116193126109.729729730-9916.72972972974
10152803126109.72972973026693.2702702703
11161761126109.72972973035651.2702702703
12160942126109.72972973034832.2702702703
13149470126109.72972973023360.2702702703
14139208126109.72972973013098.2702702703
15134588126109.7297297308478.27027027026
16130322126109.7297297304212.27027027026
17126611126109.729729730501.270270270258
18122401126109.729729730-3708.72972972974
19117352126109.729729730-8757.72972972974
20112135126109.729729730-13974.7297297297
21112879126109.729729730-13230.7297297297
22148729126109.72972973022619.2702702703
23157230126109.72972973031120.2702702703
24157221126109.72972973031111.2702702703
25146681126109.72972973020571.2702702703
26136524126109.72972973010414.2702702703
27132111119558.512552.5
28125326119558.55767.5
29122716119558.53157.5
30116615119558.5-2943.5
31113719119558.5-5839.5
32110737119558.5-8821.5
33112093119558.5-7465.5
34143565119558.524006.5
35149946119558.530387.5
36149147119558.529588.5
37134339119558.514780.5
38122683119558.53124.5
39115614119558.5-3944.5
40116566119558.5-2992.5
41111272119558.5-8286.5
42104609119558.5-14949.5
43101802119558.5-17756.5
4494542119558.5-25016.5
4593051119558.5-26507.5
46124129119558.54570.5
47130374119558.510815.5
48123946119558.54387.5
49114971119558.5-4587.5
50105531119558.5-14027.5
51104919126109.729729730-21190.7297297297
52104782126109.729729730-21327.7297297297
53101281126109.729729730-24828.7297297297
5494545126109.729729730-31564.7297297297
5593248126109.729729730-32861.7297297297
5684031126109.729729730-42078.7297297297
5787486126109.729729730-38623.7297297297
58115867126109.729729730-10242.7297297297
59120327126109.729729730-5782.72972972974
60117008126109.729729730-9101.72972972974
61108811126109.729729730-17298.7297297297







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.04650184715497140.09300369430994290.953498152845029
60.04693977803114250.0938795560622850.953060221968858
70.06346864464166110.1269372892833220.936531355358339
80.09323565615567790.1864713123113560.906764343844322
90.08312235682967330.1662447136593470.916877643170327
100.1364585046286440.2729170092572870.863541495371356
110.290558569845680.581117139691360.70944143015432
120.418663448210750.83732689642150.58133655178925
130.3985674814847100.7971349629694210.60143251851529
140.3270399800095870.6540799600191740.672960019990413
150.2597232277653440.5194464555306890.740276772234656
160.2057579553778840.4115159107557680.794242044622116
170.1669119715288810.3338239430577610.83308802847112
180.1440453009609560.2880906019219130.855954699039044
190.1394605398031090.2789210796062190.86053946019689
200.1549249532629420.3098499065258850.845075046737058
210.1570636108386310.3141272216772630.842936389161369
220.1807757041099080.3615514082198150.819224295890092
230.3129890049079100.6259780098158190.68701099509209
240.5257971109788410.9484057780423180.474202889021159
250.6524399482549510.6951201034900980.347560051745049
260.7163685820372760.5672628359254480.283631417962724
270.671975928565950.65604814286810.32802407143405
280.6107135272751290.7785729454497430.389286472724872
290.5429242739332480.9141514521335030.457075726066752
300.4808298652897090.9616597305794190.519170134710291
310.4243314380823920.8486628761647850.575668561917608
320.3791716662081780.7583433324163560.620828333791822
330.3256429973717890.6512859947435790.67435700262821
340.4299714408539870.8599428817079740.570028559146013
350.6582893919559120.6834212160881760.341710608044088
360.863383924303440.2732321513931200.136616075696560
370.8933856720546040.2132286558907910.106614327945396
380.8740465684895220.2519068630209570.125953431510478
390.8407630190683990.3184739618632030.159236980931601
400.8015891144460640.3968217711078720.198410885553936
410.7568789693260760.4862420613478480.243121030673924
420.7317116471923540.5365767056152910.268288352807646
430.7236433840457630.5527132319084740.276356615954237
440.8029373332789190.3941253334421620.197062666721081
450.91152962557770.1769407488445990.0884703744222994
460.8729841149377540.2540317701244920.127015885062246
470.868057922897090.2638841542058190.131942077102910
480.8446111775142440.3107776449715130.155388822485756
490.7909039604164660.4181920791670670.209096039583534
500.7156348328185260.5687303343629480.284365167181474
510.6651114176120670.6697771647758660.334888582387933
520.5974469008197270.8051061983605460.402553099180273
530.5203945153528770.9592109692942460.479605484647123
540.4732539489555190.9465078979110380.526746051044481
550.4273913022907590.8547826045815180.572608697709241
560.5807121451615790.8385757096768430.419287854838421

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.0465018471549714 & 0.0930036943099429 & 0.953498152845029 \tabularnewline
6 & 0.0469397780311425 & 0.093879556062285 & 0.953060221968858 \tabularnewline
7 & 0.0634686446416611 & 0.126937289283322 & 0.936531355358339 \tabularnewline
8 & 0.0932356561556779 & 0.186471312311356 & 0.906764343844322 \tabularnewline
9 & 0.0831223568296733 & 0.166244713659347 & 0.916877643170327 \tabularnewline
10 & 0.136458504628644 & 0.272917009257287 & 0.863541495371356 \tabularnewline
11 & 0.29055856984568 & 0.58111713969136 & 0.70944143015432 \tabularnewline
12 & 0.41866344821075 & 0.8373268964215 & 0.58133655178925 \tabularnewline
13 & 0.398567481484710 & 0.797134962969421 & 0.60143251851529 \tabularnewline
14 & 0.327039980009587 & 0.654079960019174 & 0.672960019990413 \tabularnewline
15 & 0.259723227765344 & 0.519446455530689 & 0.740276772234656 \tabularnewline
16 & 0.205757955377884 & 0.411515910755768 & 0.794242044622116 \tabularnewline
17 & 0.166911971528881 & 0.333823943057761 & 0.83308802847112 \tabularnewline
18 & 0.144045300960956 & 0.288090601921913 & 0.855954699039044 \tabularnewline
19 & 0.139460539803109 & 0.278921079606219 & 0.86053946019689 \tabularnewline
20 & 0.154924953262942 & 0.309849906525885 & 0.845075046737058 \tabularnewline
21 & 0.157063610838631 & 0.314127221677263 & 0.842936389161369 \tabularnewline
22 & 0.180775704109908 & 0.361551408219815 & 0.819224295890092 \tabularnewline
23 & 0.312989004907910 & 0.625978009815819 & 0.68701099509209 \tabularnewline
24 & 0.525797110978841 & 0.948405778042318 & 0.474202889021159 \tabularnewline
25 & 0.652439948254951 & 0.695120103490098 & 0.347560051745049 \tabularnewline
26 & 0.716368582037276 & 0.567262835925448 & 0.283631417962724 \tabularnewline
27 & 0.67197592856595 & 0.6560481428681 & 0.32802407143405 \tabularnewline
28 & 0.610713527275129 & 0.778572945449743 & 0.389286472724872 \tabularnewline
29 & 0.542924273933248 & 0.914151452133503 & 0.457075726066752 \tabularnewline
30 & 0.480829865289709 & 0.961659730579419 & 0.519170134710291 \tabularnewline
31 & 0.424331438082392 & 0.848662876164785 & 0.575668561917608 \tabularnewline
32 & 0.379171666208178 & 0.758343332416356 & 0.620828333791822 \tabularnewline
33 & 0.325642997371789 & 0.651285994743579 & 0.67435700262821 \tabularnewline
34 & 0.429971440853987 & 0.859942881707974 & 0.570028559146013 \tabularnewline
35 & 0.658289391955912 & 0.683421216088176 & 0.341710608044088 \tabularnewline
36 & 0.86338392430344 & 0.273232151393120 & 0.136616075696560 \tabularnewline
37 & 0.893385672054604 & 0.213228655890791 & 0.106614327945396 \tabularnewline
38 & 0.874046568489522 & 0.251906863020957 & 0.125953431510478 \tabularnewline
39 & 0.840763019068399 & 0.318473961863203 & 0.159236980931601 \tabularnewline
40 & 0.801589114446064 & 0.396821771107872 & 0.198410885553936 \tabularnewline
41 & 0.756878969326076 & 0.486242061347848 & 0.243121030673924 \tabularnewline
42 & 0.731711647192354 & 0.536576705615291 & 0.268288352807646 \tabularnewline
43 & 0.723643384045763 & 0.552713231908474 & 0.276356615954237 \tabularnewline
44 & 0.802937333278919 & 0.394125333442162 & 0.197062666721081 \tabularnewline
45 & 0.9115296255777 & 0.176940748844599 & 0.0884703744222994 \tabularnewline
46 & 0.872984114937754 & 0.254031770124492 & 0.127015885062246 \tabularnewline
47 & 0.86805792289709 & 0.263884154205819 & 0.131942077102910 \tabularnewline
48 & 0.844611177514244 & 0.310777644971513 & 0.155388822485756 \tabularnewline
49 & 0.790903960416466 & 0.418192079167067 & 0.209096039583534 \tabularnewline
50 & 0.715634832818526 & 0.568730334362948 & 0.284365167181474 \tabularnewline
51 & 0.665111417612067 & 0.669777164775866 & 0.334888582387933 \tabularnewline
52 & 0.597446900819727 & 0.805106198360546 & 0.402553099180273 \tabularnewline
53 & 0.520394515352877 & 0.959210969294246 & 0.479605484647123 \tabularnewline
54 & 0.473253948955519 & 0.946507897911038 & 0.526746051044481 \tabularnewline
55 & 0.427391302290759 & 0.854782604581518 & 0.572608697709241 \tabularnewline
56 & 0.580712145161579 & 0.838575709676843 & 0.419287854838421 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34290&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.0465018471549714[/C][C]0.0930036943099429[/C][C]0.953498152845029[/C][/ROW]
[ROW][C]6[/C][C]0.0469397780311425[/C][C]0.093879556062285[/C][C]0.953060221968858[/C][/ROW]
[ROW][C]7[/C][C]0.0634686446416611[/C][C]0.126937289283322[/C][C]0.936531355358339[/C][/ROW]
[ROW][C]8[/C][C]0.0932356561556779[/C][C]0.186471312311356[/C][C]0.906764343844322[/C][/ROW]
[ROW][C]9[/C][C]0.0831223568296733[/C][C]0.166244713659347[/C][C]0.916877643170327[/C][/ROW]
[ROW][C]10[/C][C]0.136458504628644[/C][C]0.272917009257287[/C][C]0.863541495371356[/C][/ROW]
[ROW][C]11[/C][C]0.29055856984568[/C][C]0.58111713969136[/C][C]0.70944143015432[/C][/ROW]
[ROW][C]12[/C][C]0.41866344821075[/C][C]0.8373268964215[/C][C]0.58133655178925[/C][/ROW]
[ROW][C]13[/C][C]0.398567481484710[/C][C]0.797134962969421[/C][C]0.60143251851529[/C][/ROW]
[ROW][C]14[/C][C]0.327039980009587[/C][C]0.654079960019174[/C][C]0.672960019990413[/C][/ROW]
[ROW][C]15[/C][C]0.259723227765344[/C][C]0.519446455530689[/C][C]0.740276772234656[/C][/ROW]
[ROW][C]16[/C][C]0.205757955377884[/C][C]0.411515910755768[/C][C]0.794242044622116[/C][/ROW]
[ROW][C]17[/C][C]0.166911971528881[/C][C]0.333823943057761[/C][C]0.83308802847112[/C][/ROW]
[ROW][C]18[/C][C]0.144045300960956[/C][C]0.288090601921913[/C][C]0.855954699039044[/C][/ROW]
[ROW][C]19[/C][C]0.139460539803109[/C][C]0.278921079606219[/C][C]0.86053946019689[/C][/ROW]
[ROW][C]20[/C][C]0.154924953262942[/C][C]0.309849906525885[/C][C]0.845075046737058[/C][/ROW]
[ROW][C]21[/C][C]0.157063610838631[/C][C]0.314127221677263[/C][C]0.842936389161369[/C][/ROW]
[ROW][C]22[/C][C]0.180775704109908[/C][C]0.361551408219815[/C][C]0.819224295890092[/C][/ROW]
[ROW][C]23[/C][C]0.312989004907910[/C][C]0.625978009815819[/C][C]0.68701099509209[/C][/ROW]
[ROW][C]24[/C][C]0.525797110978841[/C][C]0.948405778042318[/C][C]0.474202889021159[/C][/ROW]
[ROW][C]25[/C][C]0.652439948254951[/C][C]0.695120103490098[/C][C]0.347560051745049[/C][/ROW]
[ROW][C]26[/C][C]0.716368582037276[/C][C]0.567262835925448[/C][C]0.283631417962724[/C][/ROW]
[ROW][C]27[/C][C]0.67197592856595[/C][C]0.6560481428681[/C][C]0.32802407143405[/C][/ROW]
[ROW][C]28[/C][C]0.610713527275129[/C][C]0.778572945449743[/C][C]0.389286472724872[/C][/ROW]
[ROW][C]29[/C][C]0.542924273933248[/C][C]0.914151452133503[/C][C]0.457075726066752[/C][/ROW]
[ROW][C]30[/C][C]0.480829865289709[/C][C]0.961659730579419[/C][C]0.519170134710291[/C][/ROW]
[ROW][C]31[/C][C]0.424331438082392[/C][C]0.848662876164785[/C][C]0.575668561917608[/C][/ROW]
[ROW][C]32[/C][C]0.379171666208178[/C][C]0.758343332416356[/C][C]0.620828333791822[/C][/ROW]
[ROW][C]33[/C][C]0.325642997371789[/C][C]0.651285994743579[/C][C]0.67435700262821[/C][/ROW]
[ROW][C]34[/C][C]0.429971440853987[/C][C]0.859942881707974[/C][C]0.570028559146013[/C][/ROW]
[ROW][C]35[/C][C]0.658289391955912[/C][C]0.683421216088176[/C][C]0.341710608044088[/C][/ROW]
[ROW][C]36[/C][C]0.86338392430344[/C][C]0.273232151393120[/C][C]0.136616075696560[/C][/ROW]
[ROW][C]37[/C][C]0.893385672054604[/C][C]0.213228655890791[/C][C]0.106614327945396[/C][/ROW]
[ROW][C]38[/C][C]0.874046568489522[/C][C]0.251906863020957[/C][C]0.125953431510478[/C][/ROW]
[ROW][C]39[/C][C]0.840763019068399[/C][C]0.318473961863203[/C][C]0.159236980931601[/C][/ROW]
[ROW][C]40[/C][C]0.801589114446064[/C][C]0.396821771107872[/C][C]0.198410885553936[/C][/ROW]
[ROW][C]41[/C][C]0.756878969326076[/C][C]0.486242061347848[/C][C]0.243121030673924[/C][/ROW]
[ROW][C]42[/C][C]0.731711647192354[/C][C]0.536576705615291[/C][C]0.268288352807646[/C][/ROW]
[ROW][C]43[/C][C]0.723643384045763[/C][C]0.552713231908474[/C][C]0.276356615954237[/C][/ROW]
[ROW][C]44[/C][C]0.802937333278919[/C][C]0.394125333442162[/C][C]0.197062666721081[/C][/ROW]
[ROW][C]45[/C][C]0.9115296255777[/C][C]0.176940748844599[/C][C]0.0884703744222994[/C][/ROW]
[ROW][C]46[/C][C]0.872984114937754[/C][C]0.254031770124492[/C][C]0.127015885062246[/C][/ROW]
[ROW][C]47[/C][C]0.86805792289709[/C][C]0.263884154205819[/C][C]0.131942077102910[/C][/ROW]
[ROW][C]48[/C][C]0.844611177514244[/C][C]0.310777644971513[/C][C]0.155388822485756[/C][/ROW]
[ROW][C]49[/C][C]0.790903960416466[/C][C]0.418192079167067[/C][C]0.209096039583534[/C][/ROW]
[ROW][C]50[/C][C]0.715634832818526[/C][C]0.568730334362948[/C][C]0.284365167181474[/C][/ROW]
[ROW][C]51[/C][C]0.665111417612067[/C][C]0.669777164775866[/C][C]0.334888582387933[/C][/ROW]
[ROW][C]52[/C][C]0.597446900819727[/C][C]0.805106198360546[/C][C]0.402553099180273[/C][/ROW]
[ROW][C]53[/C][C]0.520394515352877[/C][C]0.959210969294246[/C][C]0.479605484647123[/C][/ROW]
[ROW][C]54[/C][C]0.473253948955519[/C][C]0.946507897911038[/C][C]0.526746051044481[/C][/ROW]
[ROW][C]55[/C][C]0.427391302290759[/C][C]0.854782604581518[/C][C]0.572608697709241[/C][/ROW]
[ROW][C]56[/C][C]0.580712145161579[/C][C]0.838575709676843[/C][C]0.419287854838421[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34290&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34290&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.04650184715497140.09300369430994290.953498152845029
60.04693977803114250.0938795560622850.953060221968858
70.06346864464166110.1269372892833220.936531355358339
80.09323565615567790.1864713123113560.906764343844322
90.08312235682967330.1662447136593470.916877643170327
100.1364585046286440.2729170092572870.863541495371356
110.290558569845680.581117139691360.70944143015432
120.418663448210750.83732689642150.58133655178925
130.3985674814847100.7971349629694210.60143251851529
140.3270399800095870.6540799600191740.672960019990413
150.2597232277653440.5194464555306890.740276772234656
160.2057579553778840.4115159107557680.794242044622116
170.1669119715288810.3338239430577610.83308802847112
180.1440453009609560.2880906019219130.855954699039044
190.1394605398031090.2789210796062190.86053946019689
200.1549249532629420.3098499065258850.845075046737058
210.1570636108386310.3141272216772630.842936389161369
220.1807757041099080.3615514082198150.819224295890092
230.3129890049079100.6259780098158190.68701099509209
240.5257971109788410.9484057780423180.474202889021159
250.6524399482549510.6951201034900980.347560051745049
260.7163685820372760.5672628359254480.283631417962724
270.671975928565950.65604814286810.32802407143405
280.6107135272751290.7785729454497430.389286472724872
290.5429242739332480.9141514521335030.457075726066752
300.4808298652897090.9616597305794190.519170134710291
310.4243314380823920.8486628761647850.575668561917608
320.3791716662081780.7583433324163560.620828333791822
330.3256429973717890.6512859947435790.67435700262821
340.4299714408539870.8599428817079740.570028559146013
350.6582893919559120.6834212160881760.341710608044088
360.863383924303440.2732321513931200.136616075696560
370.8933856720546040.2132286558907910.106614327945396
380.8740465684895220.2519068630209570.125953431510478
390.8407630190683990.3184739618632030.159236980931601
400.8015891144460640.3968217711078720.198410885553936
410.7568789693260760.4862420613478480.243121030673924
420.7317116471923540.5365767056152910.268288352807646
430.7236433840457630.5527132319084740.276356615954237
440.8029373332789190.3941253334421620.197062666721081
450.91152962557770.1769407488445990.0884703744222994
460.8729841149377540.2540317701244920.127015885062246
470.868057922897090.2638841542058190.131942077102910
480.8446111775142440.3107776449715130.155388822485756
490.7909039604164660.4181920791670670.209096039583534
500.7156348328185260.5687303343629480.284365167181474
510.6651114176120670.6697771647758660.334888582387933
520.5974469008197270.8051061983605460.402553099180273
530.5203945153528770.9592109692942460.479605484647123
540.4732539489555190.9465078979110380.526746051044481
550.4273913022907590.8547826045815180.572608697709241
560.5807121451615790.8385757096768430.419287854838421







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 level20.0384615384615385OK

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

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



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