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, 26 Nov 2008 10:36:14 -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/26/t1227721027dtz5jblvhraoopt.htm/, Retrieved Sun, 19 May 2024 05:34:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25675, Retrieved Sun, 19 May 2024 05:34:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsmultiple lineair regression
Estimated Impact147
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [multiple lineair ...] [2008-11-26 17:36:14] [962e6c9020896982bc8283b8971710a9] [Current]
Feedback Forum

Post a new message
Dataseries X:
159129	0
157928	0
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	0
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	1
104782	0
101281	0
94545	0
93248	0
84031	0
87486	0
115867	0
120327	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=25675&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=25675&T=0

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

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

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

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







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

\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) & 129310.540540541 & 3191.950521 & 40.5114 & 0 & 0 \tabularnewline
plan & -10885.0405405405 & 5088.800759 & -2.139 & 0.036583 & 0.018292 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25675&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]129310.540540541[/C][C]3191.950521[/C][C]40.5114[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]plan[/C][C]-10885.0405405405[/C][C]5088.800759[/C][C]-2.139[/C][C]0.036583[/C][C]0.018292[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25675&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25675&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)129310.5405405413191.95052140.511400
plan-10885.04054054055088.800759-2.1390.0365830.018292







Multiple Linear Regression - Regression Statistics
Multiple R0.268268726654801
R-squared0.0719681097009885
Adjusted R-squared0.056238755628124
F-TEST (value)4.57540146706621
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.0365832365930456
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19415.8770288601
Sum Squared Residuals22241600567.1892

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.268268726654801 \tabularnewline
R-squared & 0.0719681097009885 \tabularnewline
Adjusted R-squared & 0.056238755628124 \tabularnewline
F-TEST (value) & 4.57540146706621 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 59 \tabularnewline
p-value & 0.0365832365930456 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 19415.8770288601 \tabularnewline
Sum Squared Residuals & 22241600567.1892 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25675&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.268268726654801[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0719681097009885[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.056238755628124[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.57540146706621[/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.0365832365930456[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]19415.8770288601[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]22241600567.1892[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25675&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25675&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.268268726654801
R-squared0.0719681097009885
Adjusted R-squared0.056238755628124
F-TEST (value)4.57540146706621
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.0365832365930456
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation19415.8770288601
Sum Squared Residuals22241600567.1892







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1159129129310.5405405429818.4594594599
2157928129310.54054054128617.4594594594
3147768129310.54054054118457.4594594594
4137507129310.5405405418196.45945945945
5136919129310.5405405417608.45945945945
6136151129310.5405405416840.45945945945
7133001129310.5405405413690.45945945945
8125554129310.540540541-3756.54054054055
9119647129310.540540541-9663.54054054055
10114158129310.540540541-15152.5405405406
11116193129310.540540541-13117.5405405406
12152803129310.54054054123492.4594594594
13161761129310.54054054132450.4594594594
14160942129310.54054054131631.4594594594
15149470129310.54054054120159.4594594594
16139208129310.5405405419897.45945945945
17134588129310.5405405415277.45945945945
18130322129310.5405405411011.45945945945
19126611129310.540540541-2699.54054054055
20122401129310.540540541-6909.54054054055
21117352129310.540540541-11958.5405405406
22112135129310.540540541-17175.5405405406
23112879129310.540540541-16431.5405405406
24148729129310.54054054119418.4594594594
25157230129310.54054054127919.4594594594
26157221129310.54054054127910.4594594594
27146681129310.54054054117370.4594594594
28136524129310.5405405417213.45945945945
29132111129310.5405405412800.45945945945
30125326118425.56900.5
31122716118425.54290.5
32116615118425.5-1810.50000000000
33113719118425.5-4706.5
34110737118425.5-7688.5
35112093118425.5-6332.5
36143565118425.525139.5
37149946118425.531520.5
38149147118425.530721.5
39134339118425.515913.5
40122683118425.54257.5
41115614118425.5-2811.500
42116566118425.5-1859.50000000000
43111272118425.5-7153.5
44104609118425.5-13816.5
45101802118425.5-16623.5
4694542118425.5-23883.5
4793051118425.5-25374.5
48124129118425.55703.5
49130374118425.511948.5
50123946118425.55520.5
51114971118425.5-3454.5
52105531118425.5-12894.5
53104919118425.5-13506.5
54104782129310.540540541-24528.5405405406
55101281129310.540540541-28029.5405405406
5694545129310.540540541-34765.5405405406
5793248129310.540540541-36062.5405405406
5884031129310.540540541-45279.5405405406
5987486129310.540540541-41824.5405405406
60115867129310.540540541-13443.5405405406
61120327129310.540540541-8983.54054054055

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 159129 & 129310.54054054 & 29818.4594594599 \tabularnewline
2 & 157928 & 129310.540540541 & 28617.4594594594 \tabularnewline
3 & 147768 & 129310.540540541 & 18457.4594594594 \tabularnewline
4 & 137507 & 129310.540540541 & 8196.45945945945 \tabularnewline
5 & 136919 & 129310.540540541 & 7608.45945945945 \tabularnewline
6 & 136151 & 129310.540540541 & 6840.45945945945 \tabularnewline
7 & 133001 & 129310.540540541 & 3690.45945945945 \tabularnewline
8 & 125554 & 129310.540540541 & -3756.54054054055 \tabularnewline
9 & 119647 & 129310.540540541 & -9663.54054054055 \tabularnewline
10 & 114158 & 129310.540540541 & -15152.5405405406 \tabularnewline
11 & 116193 & 129310.540540541 & -13117.5405405406 \tabularnewline
12 & 152803 & 129310.540540541 & 23492.4594594594 \tabularnewline
13 & 161761 & 129310.540540541 & 32450.4594594594 \tabularnewline
14 & 160942 & 129310.540540541 & 31631.4594594594 \tabularnewline
15 & 149470 & 129310.540540541 & 20159.4594594594 \tabularnewline
16 & 139208 & 129310.540540541 & 9897.45945945945 \tabularnewline
17 & 134588 & 129310.540540541 & 5277.45945945945 \tabularnewline
18 & 130322 & 129310.540540541 & 1011.45945945945 \tabularnewline
19 & 126611 & 129310.540540541 & -2699.54054054055 \tabularnewline
20 & 122401 & 129310.540540541 & -6909.54054054055 \tabularnewline
21 & 117352 & 129310.540540541 & -11958.5405405406 \tabularnewline
22 & 112135 & 129310.540540541 & -17175.5405405406 \tabularnewline
23 & 112879 & 129310.540540541 & -16431.5405405406 \tabularnewline
24 & 148729 & 129310.540540541 & 19418.4594594594 \tabularnewline
25 & 157230 & 129310.540540541 & 27919.4594594594 \tabularnewline
26 & 157221 & 129310.540540541 & 27910.4594594594 \tabularnewline
27 & 146681 & 129310.540540541 & 17370.4594594594 \tabularnewline
28 & 136524 & 129310.540540541 & 7213.45945945945 \tabularnewline
29 & 132111 & 129310.540540541 & 2800.45945945945 \tabularnewline
30 & 125326 & 118425.5 & 6900.5 \tabularnewline
31 & 122716 & 118425.5 & 4290.5 \tabularnewline
32 & 116615 & 118425.5 & -1810.50000000000 \tabularnewline
33 & 113719 & 118425.5 & -4706.5 \tabularnewline
34 & 110737 & 118425.5 & -7688.5 \tabularnewline
35 & 112093 & 118425.5 & -6332.5 \tabularnewline
36 & 143565 & 118425.5 & 25139.5 \tabularnewline
37 & 149946 & 118425.5 & 31520.5 \tabularnewline
38 & 149147 & 118425.5 & 30721.5 \tabularnewline
39 & 134339 & 118425.5 & 15913.5 \tabularnewline
40 & 122683 & 118425.5 & 4257.5 \tabularnewline
41 & 115614 & 118425.5 & -2811.500 \tabularnewline
42 & 116566 & 118425.5 & -1859.50000000000 \tabularnewline
43 & 111272 & 118425.5 & -7153.5 \tabularnewline
44 & 104609 & 118425.5 & -13816.5 \tabularnewline
45 & 101802 & 118425.5 & -16623.5 \tabularnewline
46 & 94542 & 118425.5 & -23883.5 \tabularnewline
47 & 93051 & 118425.5 & -25374.5 \tabularnewline
48 & 124129 & 118425.5 & 5703.5 \tabularnewline
49 & 130374 & 118425.5 & 11948.5 \tabularnewline
50 & 123946 & 118425.5 & 5520.5 \tabularnewline
51 & 114971 & 118425.5 & -3454.5 \tabularnewline
52 & 105531 & 118425.5 & -12894.5 \tabularnewline
53 & 104919 & 118425.5 & -13506.5 \tabularnewline
54 & 104782 & 129310.540540541 & -24528.5405405406 \tabularnewline
55 & 101281 & 129310.540540541 & -28029.5405405406 \tabularnewline
56 & 94545 & 129310.540540541 & -34765.5405405406 \tabularnewline
57 & 93248 & 129310.540540541 & -36062.5405405406 \tabularnewline
58 & 84031 & 129310.540540541 & -45279.5405405406 \tabularnewline
59 & 87486 & 129310.540540541 & -41824.5405405406 \tabularnewline
60 & 115867 & 129310.540540541 & -13443.5405405406 \tabularnewline
61 & 120327 & 129310.540540541 & -8983.54054054055 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25675&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]159129[/C][C]129310.54054054[/C][C]29818.4594594599[/C][/ROW]
[ROW][C]2[/C][C]157928[/C][C]129310.540540541[/C][C]28617.4594594594[/C][/ROW]
[ROW][C]3[/C][C]147768[/C][C]129310.540540541[/C][C]18457.4594594594[/C][/ROW]
[ROW][C]4[/C][C]137507[/C][C]129310.540540541[/C][C]8196.45945945945[/C][/ROW]
[ROW][C]5[/C][C]136919[/C][C]129310.540540541[/C][C]7608.45945945945[/C][/ROW]
[ROW][C]6[/C][C]136151[/C][C]129310.540540541[/C][C]6840.45945945945[/C][/ROW]
[ROW][C]7[/C][C]133001[/C][C]129310.540540541[/C][C]3690.45945945945[/C][/ROW]
[ROW][C]8[/C][C]125554[/C][C]129310.540540541[/C][C]-3756.54054054055[/C][/ROW]
[ROW][C]9[/C][C]119647[/C][C]129310.540540541[/C][C]-9663.54054054055[/C][/ROW]
[ROW][C]10[/C][C]114158[/C][C]129310.540540541[/C][C]-15152.5405405406[/C][/ROW]
[ROW][C]11[/C][C]116193[/C][C]129310.540540541[/C][C]-13117.5405405406[/C][/ROW]
[ROW][C]12[/C][C]152803[/C][C]129310.540540541[/C][C]23492.4594594594[/C][/ROW]
[ROW][C]13[/C][C]161761[/C][C]129310.540540541[/C][C]32450.4594594594[/C][/ROW]
[ROW][C]14[/C][C]160942[/C][C]129310.540540541[/C][C]31631.4594594594[/C][/ROW]
[ROW][C]15[/C][C]149470[/C][C]129310.540540541[/C][C]20159.4594594594[/C][/ROW]
[ROW][C]16[/C][C]139208[/C][C]129310.540540541[/C][C]9897.45945945945[/C][/ROW]
[ROW][C]17[/C][C]134588[/C][C]129310.540540541[/C][C]5277.45945945945[/C][/ROW]
[ROW][C]18[/C][C]130322[/C][C]129310.540540541[/C][C]1011.45945945945[/C][/ROW]
[ROW][C]19[/C][C]126611[/C][C]129310.540540541[/C][C]-2699.54054054055[/C][/ROW]
[ROW][C]20[/C][C]122401[/C][C]129310.540540541[/C][C]-6909.54054054055[/C][/ROW]
[ROW][C]21[/C][C]117352[/C][C]129310.540540541[/C][C]-11958.5405405406[/C][/ROW]
[ROW][C]22[/C][C]112135[/C][C]129310.540540541[/C][C]-17175.5405405406[/C][/ROW]
[ROW][C]23[/C][C]112879[/C][C]129310.540540541[/C][C]-16431.5405405406[/C][/ROW]
[ROW][C]24[/C][C]148729[/C][C]129310.540540541[/C][C]19418.4594594594[/C][/ROW]
[ROW][C]25[/C][C]157230[/C][C]129310.540540541[/C][C]27919.4594594594[/C][/ROW]
[ROW][C]26[/C][C]157221[/C][C]129310.540540541[/C][C]27910.4594594594[/C][/ROW]
[ROW][C]27[/C][C]146681[/C][C]129310.540540541[/C][C]17370.4594594594[/C][/ROW]
[ROW][C]28[/C][C]136524[/C][C]129310.540540541[/C][C]7213.45945945945[/C][/ROW]
[ROW][C]29[/C][C]132111[/C][C]129310.540540541[/C][C]2800.45945945945[/C][/ROW]
[ROW][C]30[/C][C]125326[/C][C]118425.5[/C][C]6900.5[/C][/ROW]
[ROW][C]31[/C][C]122716[/C][C]118425.5[/C][C]4290.5[/C][/ROW]
[ROW][C]32[/C][C]116615[/C][C]118425.5[/C][C]-1810.50000000000[/C][/ROW]
[ROW][C]33[/C][C]113719[/C][C]118425.5[/C][C]-4706.5[/C][/ROW]
[ROW][C]34[/C][C]110737[/C][C]118425.5[/C][C]-7688.5[/C][/ROW]
[ROW][C]35[/C][C]112093[/C][C]118425.5[/C][C]-6332.5[/C][/ROW]
[ROW][C]36[/C][C]143565[/C][C]118425.5[/C][C]25139.5[/C][/ROW]
[ROW][C]37[/C][C]149946[/C][C]118425.5[/C][C]31520.5[/C][/ROW]
[ROW][C]38[/C][C]149147[/C][C]118425.5[/C][C]30721.5[/C][/ROW]
[ROW][C]39[/C][C]134339[/C][C]118425.5[/C][C]15913.5[/C][/ROW]
[ROW][C]40[/C][C]122683[/C][C]118425.5[/C][C]4257.5[/C][/ROW]
[ROW][C]41[/C][C]115614[/C][C]118425.5[/C][C]-2811.500[/C][/ROW]
[ROW][C]42[/C][C]116566[/C][C]118425.5[/C][C]-1859.50000000000[/C][/ROW]
[ROW][C]43[/C][C]111272[/C][C]118425.5[/C][C]-7153.5[/C][/ROW]
[ROW][C]44[/C][C]104609[/C][C]118425.5[/C][C]-13816.5[/C][/ROW]
[ROW][C]45[/C][C]101802[/C][C]118425.5[/C][C]-16623.5[/C][/ROW]
[ROW][C]46[/C][C]94542[/C][C]118425.5[/C][C]-23883.5[/C][/ROW]
[ROW][C]47[/C][C]93051[/C][C]118425.5[/C][C]-25374.5[/C][/ROW]
[ROW][C]48[/C][C]124129[/C][C]118425.5[/C][C]5703.5[/C][/ROW]
[ROW][C]49[/C][C]130374[/C][C]118425.5[/C][C]11948.5[/C][/ROW]
[ROW][C]50[/C][C]123946[/C][C]118425.5[/C][C]5520.5[/C][/ROW]
[ROW][C]51[/C][C]114971[/C][C]118425.5[/C][C]-3454.5[/C][/ROW]
[ROW][C]52[/C][C]105531[/C][C]118425.5[/C][C]-12894.5[/C][/ROW]
[ROW][C]53[/C][C]104919[/C][C]118425.5[/C][C]-13506.5[/C][/ROW]
[ROW][C]54[/C][C]104782[/C][C]129310.540540541[/C][C]-24528.5405405406[/C][/ROW]
[ROW][C]55[/C][C]101281[/C][C]129310.540540541[/C][C]-28029.5405405406[/C][/ROW]
[ROW][C]56[/C][C]94545[/C][C]129310.540540541[/C][C]-34765.5405405406[/C][/ROW]
[ROW][C]57[/C][C]93248[/C][C]129310.540540541[/C][C]-36062.5405405406[/C][/ROW]
[ROW][C]58[/C][C]84031[/C][C]129310.540540541[/C][C]-45279.5405405406[/C][/ROW]
[ROW][C]59[/C][C]87486[/C][C]129310.540540541[/C][C]-41824.5405405406[/C][/ROW]
[ROW][C]60[/C][C]115867[/C][C]129310.540540541[/C][C]-13443.5405405406[/C][/ROW]
[ROW][C]61[/C][C]120327[/C][C]129310.540540541[/C][C]-8983.54054054055[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25675&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25675&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
1159129129310.5405405429818.4594594599
2157928129310.54054054128617.4594594594
3147768129310.54054054118457.4594594594
4137507129310.5405405418196.45945945945
5136919129310.5405405417608.45945945945
6136151129310.5405405416840.45945945945
7133001129310.5405405413690.45945945945
8125554129310.540540541-3756.54054054055
9119647129310.540540541-9663.54054054055
10114158129310.540540541-15152.5405405406
11116193129310.540540541-13117.5405405406
12152803129310.54054054123492.4594594594
13161761129310.54054054132450.4594594594
14160942129310.54054054131631.4594594594
15149470129310.54054054120159.4594594594
16139208129310.5405405419897.45945945945
17134588129310.5405405415277.45945945945
18130322129310.5405405411011.45945945945
19126611129310.540540541-2699.54054054055
20122401129310.540540541-6909.54054054055
21117352129310.540540541-11958.5405405406
22112135129310.540540541-17175.5405405406
23112879129310.540540541-16431.5405405406
24148729129310.54054054119418.4594594594
25157230129310.54054054127919.4594594594
26157221129310.54054054127910.4594594594
27146681129310.54054054117370.4594594594
28136524129310.5405405417213.45945945945
29132111129310.5405405412800.45945945945
30125326118425.56900.5
31122716118425.54290.5
32116615118425.5-1810.50000000000
33113719118425.5-4706.5
34110737118425.5-7688.5
35112093118425.5-6332.5
36143565118425.525139.5
37149946118425.531520.5
38149147118425.530721.5
39134339118425.515913.5
40122683118425.54257.5
41115614118425.5-2811.500
42116566118425.5-1859.50000000000
43111272118425.5-7153.5
44104609118425.5-13816.5
45101802118425.5-16623.5
4694542118425.5-23883.5
4793051118425.5-25374.5
48124129118425.55703.5
49130374118425.511948.5
50123946118425.55520.5
51114971118425.5-3454.5
52105531118425.5-12894.5
53104919118425.5-13506.5
54104782129310.540540541-24528.5405405406
55101281129310.540540541-28029.5405405406
5694545129310.540540541-34765.5405405406
5793248129310.540540541-36062.5405405406
5884031129310.540540541-45279.5405405406
5987486129310.540540541-41824.5405405406
60115867129310.540540541-13443.5405405406
61120327129310.540540541-8983.54054054055







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.2562967892457740.5125935784915480.743703210754226
60.1801090839855540.3602181679711080.819890916014446
70.1376180632186950.2752361264373900.862381936781305
80.1496661823345600.2993323646691190.85033381766544
90.1897199441138150.3794398882276290.810280055886185
100.2545583870961640.5091167741923280.745441612903836
110.2608239933896080.5216479867792170.739176006610392
120.2613301730311950.522660346062390.738669826968805
130.3547872628682170.7095745257364340.645212737131783
140.4326985251632270.8653970503264540.567301474836773
150.3991285063567980.7982570127135950.600871493643202
160.3310660339640240.6621320679280470.668933966035976
170.2699367319441400.5398734638882810.73006326805586
180.2222037828007850.4444075656015690.777796217199215
190.1884090583667660.3768181167335320.811590941633234
200.1698148538149500.3396297076298990.83018514618505
210.1698784771323660.3397569542647320.830121522867634
220.1915935828170620.3831871656341250.808406417182938
230.1988120242443640.3976240484887270.801187975755636
240.2082552622621270.4165105245242550.791744737737873
250.3115752963465670.6231505926931340.688424703653433
260.4804988119978130.9609976239956250.519501188002187
270.5808276812635080.8383446374729830.419172318736492
280.6317960023688410.7364079952623170.368203997631159
290.6917755810914870.6164488378170260.308224418908513
300.6296769174518650.7406461650962710.370323082548135
310.5600795081701010.8798409836597980.439920491829899
320.4901399040955360.9802798081910720.509860095904464
330.4245135734582880.8490271469165760.575486426541712
340.3691486925790060.7382973851580110.630851307420994
350.3095410957368670.6190821914737340.690458904263133
360.421850403956960.843700807913920.57814959604304
370.6580366594814470.6839266810371070.341963340518553
380.8699456073826560.2601087852346880.130054392617344
390.9035229896263480.1929540207473030.0964770103736516
400.8865695925853540.2268608148292920.113430407414646
410.8532099610064060.2935800779871890.146790038993594
420.8140771433048250.3718457133903510.185922856695175
430.7653524295969550.469295140806090.234647570403045
440.7300757622993330.5398484754013340.269924237700667
450.7086903199328230.5826193601343550.291309680067177
460.771071735314220.457856529371560.22892826468578
470.8698288618834380.2603422762331230.130171138116562
480.8257590054369520.3484819891260960.174240994563048
490.8405279244619180.3189441510761630.159472075538082
500.8299556614803540.3400886770392910.170044338519646
510.7741941256119970.4516117487760070.225805874388003
520.6821608396226310.6356783207547380.317839160377369
530.5704982457885550.859003508422890.429501754211445
540.4936004146019840.9872008292039680.506399585398016
550.3950151908430370.7900303816860750.604984809156963
560.3024075337467640.6048150674935280.697592466253236

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.256296789245774 & 0.512593578491548 & 0.743703210754226 \tabularnewline
6 & 0.180109083985554 & 0.360218167971108 & 0.819890916014446 \tabularnewline
7 & 0.137618063218695 & 0.275236126437390 & 0.862381936781305 \tabularnewline
8 & 0.149666182334560 & 0.299332364669119 & 0.85033381766544 \tabularnewline
9 & 0.189719944113815 & 0.379439888227629 & 0.810280055886185 \tabularnewline
10 & 0.254558387096164 & 0.509116774192328 & 0.745441612903836 \tabularnewline
11 & 0.260823993389608 & 0.521647986779217 & 0.739176006610392 \tabularnewline
12 & 0.261330173031195 & 0.52266034606239 & 0.738669826968805 \tabularnewline
13 & 0.354787262868217 & 0.709574525736434 & 0.645212737131783 \tabularnewline
14 & 0.432698525163227 & 0.865397050326454 & 0.567301474836773 \tabularnewline
15 & 0.399128506356798 & 0.798257012713595 & 0.600871493643202 \tabularnewline
16 & 0.331066033964024 & 0.662132067928047 & 0.668933966035976 \tabularnewline
17 & 0.269936731944140 & 0.539873463888281 & 0.73006326805586 \tabularnewline
18 & 0.222203782800785 & 0.444407565601569 & 0.777796217199215 \tabularnewline
19 & 0.188409058366766 & 0.376818116733532 & 0.811590941633234 \tabularnewline
20 & 0.169814853814950 & 0.339629707629899 & 0.83018514618505 \tabularnewline
21 & 0.169878477132366 & 0.339756954264732 & 0.830121522867634 \tabularnewline
22 & 0.191593582817062 & 0.383187165634125 & 0.808406417182938 \tabularnewline
23 & 0.198812024244364 & 0.397624048488727 & 0.801187975755636 \tabularnewline
24 & 0.208255262262127 & 0.416510524524255 & 0.791744737737873 \tabularnewline
25 & 0.311575296346567 & 0.623150592693134 & 0.688424703653433 \tabularnewline
26 & 0.480498811997813 & 0.960997623995625 & 0.519501188002187 \tabularnewline
27 & 0.580827681263508 & 0.838344637472983 & 0.419172318736492 \tabularnewline
28 & 0.631796002368841 & 0.736407995262317 & 0.368203997631159 \tabularnewline
29 & 0.691775581091487 & 0.616448837817026 & 0.308224418908513 \tabularnewline
30 & 0.629676917451865 & 0.740646165096271 & 0.370323082548135 \tabularnewline
31 & 0.560079508170101 & 0.879840983659798 & 0.439920491829899 \tabularnewline
32 & 0.490139904095536 & 0.980279808191072 & 0.509860095904464 \tabularnewline
33 & 0.424513573458288 & 0.849027146916576 & 0.575486426541712 \tabularnewline
34 & 0.369148692579006 & 0.738297385158011 & 0.630851307420994 \tabularnewline
35 & 0.309541095736867 & 0.619082191473734 & 0.690458904263133 \tabularnewline
36 & 0.42185040395696 & 0.84370080791392 & 0.57814959604304 \tabularnewline
37 & 0.658036659481447 & 0.683926681037107 & 0.341963340518553 \tabularnewline
38 & 0.869945607382656 & 0.260108785234688 & 0.130054392617344 \tabularnewline
39 & 0.903522989626348 & 0.192954020747303 & 0.0964770103736516 \tabularnewline
40 & 0.886569592585354 & 0.226860814829292 & 0.113430407414646 \tabularnewline
41 & 0.853209961006406 & 0.293580077987189 & 0.146790038993594 \tabularnewline
42 & 0.814077143304825 & 0.371845713390351 & 0.185922856695175 \tabularnewline
43 & 0.765352429596955 & 0.46929514080609 & 0.234647570403045 \tabularnewline
44 & 0.730075762299333 & 0.539848475401334 & 0.269924237700667 \tabularnewline
45 & 0.708690319932823 & 0.582619360134355 & 0.291309680067177 \tabularnewline
46 & 0.77107173531422 & 0.45785652937156 & 0.22892826468578 \tabularnewline
47 & 0.869828861883438 & 0.260342276233123 & 0.130171138116562 \tabularnewline
48 & 0.825759005436952 & 0.348481989126096 & 0.174240994563048 \tabularnewline
49 & 0.840527924461918 & 0.318944151076163 & 0.159472075538082 \tabularnewline
50 & 0.829955661480354 & 0.340088677039291 & 0.170044338519646 \tabularnewline
51 & 0.774194125611997 & 0.451611748776007 & 0.225805874388003 \tabularnewline
52 & 0.682160839622631 & 0.635678320754738 & 0.317839160377369 \tabularnewline
53 & 0.570498245788555 & 0.85900350842289 & 0.429501754211445 \tabularnewline
54 & 0.493600414601984 & 0.987200829203968 & 0.506399585398016 \tabularnewline
55 & 0.395015190843037 & 0.790030381686075 & 0.604984809156963 \tabularnewline
56 & 0.302407533746764 & 0.604815067493528 & 0.697592466253236 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25675&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.256296789245774[/C][C]0.512593578491548[/C][C]0.743703210754226[/C][/ROW]
[ROW][C]6[/C][C]0.180109083985554[/C][C]0.360218167971108[/C][C]0.819890916014446[/C][/ROW]
[ROW][C]7[/C][C]0.137618063218695[/C][C]0.275236126437390[/C][C]0.862381936781305[/C][/ROW]
[ROW][C]8[/C][C]0.149666182334560[/C][C]0.299332364669119[/C][C]0.85033381766544[/C][/ROW]
[ROW][C]9[/C][C]0.189719944113815[/C][C]0.379439888227629[/C][C]0.810280055886185[/C][/ROW]
[ROW][C]10[/C][C]0.254558387096164[/C][C]0.509116774192328[/C][C]0.745441612903836[/C][/ROW]
[ROW][C]11[/C][C]0.260823993389608[/C][C]0.521647986779217[/C][C]0.739176006610392[/C][/ROW]
[ROW][C]12[/C][C]0.261330173031195[/C][C]0.52266034606239[/C][C]0.738669826968805[/C][/ROW]
[ROW][C]13[/C][C]0.354787262868217[/C][C]0.709574525736434[/C][C]0.645212737131783[/C][/ROW]
[ROW][C]14[/C][C]0.432698525163227[/C][C]0.865397050326454[/C][C]0.567301474836773[/C][/ROW]
[ROW][C]15[/C][C]0.399128506356798[/C][C]0.798257012713595[/C][C]0.600871493643202[/C][/ROW]
[ROW][C]16[/C][C]0.331066033964024[/C][C]0.662132067928047[/C][C]0.668933966035976[/C][/ROW]
[ROW][C]17[/C][C]0.269936731944140[/C][C]0.539873463888281[/C][C]0.73006326805586[/C][/ROW]
[ROW][C]18[/C][C]0.222203782800785[/C][C]0.444407565601569[/C][C]0.777796217199215[/C][/ROW]
[ROW][C]19[/C][C]0.188409058366766[/C][C]0.376818116733532[/C][C]0.811590941633234[/C][/ROW]
[ROW][C]20[/C][C]0.169814853814950[/C][C]0.339629707629899[/C][C]0.83018514618505[/C][/ROW]
[ROW][C]21[/C][C]0.169878477132366[/C][C]0.339756954264732[/C][C]0.830121522867634[/C][/ROW]
[ROW][C]22[/C][C]0.191593582817062[/C][C]0.383187165634125[/C][C]0.808406417182938[/C][/ROW]
[ROW][C]23[/C][C]0.198812024244364[/C][C]0.397624048488727[/C][C]0.801187975755636[/C][/ROW]
[ROW][C]24[/C][C]0.208255262262127[/C][C]0.416510524524255[/C][C]0.791744737737873[/C][/ROW]
[ROW][C]25[/C][C]0.311575296346567[/C][C]0.623150592693134[/C][C]0.688424703653433[/C][/ROW]
[ROW][C]26[/C][C]0.480498811997813[/C][C]0.960997623995625[/C][C]0.519501188002187[/C][/ROW]
[ROW][C]27[/C][C]0.580827681263508[/C][C]0.838344637472983[/C][C]0.419172318736492[/C][/ROW]
[ROW][C]28[/C][C]0.631796002368841[/C][C]0.736407995262317[/C][C]0.368203997631159[/C][/ROW]
[ROW][C]29[/C][C]0.691775581091487[/C][C]0.616448837817026[/C][C]0.308224418908513[/C][/ROW]
[ROW][C]30[/C][C]0.629676917451865[/C][C]0.740646165096271[/C][C]0.370323082548135[/C][/ROW]
[ROW][C]31[/C][C]0.560079508170101[/C][C]0.879840983659798[/C][C]0.439920491829899[/C][/ROW]
[ROW][C]32[/C][C]0.490139904095536[/C][C]0.980279808191072[/C][C]0.509860095904464[/C][/ROW]
[ROW][C]33[/C][C]0.424513573458288[/C][C]0.849027146916576[/C][C]0.575486426541712[/C][/ROW]
[ROW][C]34[/C][C]0.369148692579006[/C][C]0.738297385158011[/C][C]0.630851307420994[/C][/ROW]
[ROW][C]35[/C][C]0.309541095736867[/C][C]0.619082191473734[/C][C]0.690458904263133[/C][/ROW]
[ROW][C]36[/C][C]0.42185040395696[/C][C]0.84370080791392[/C][C]0.57814959604304[/C][/ROW]
[ROW][C]37[/C][C]0.658036659481447[/C][C]0.683926681037107[/C][C]0.341963340518553[/C][/ROW]
[ROW][C]38[/C][C]0.869945607382656[/C][C]0.260108785234688[/C][C]0.130054392617344[/C][/ROW]
[ROW][C]39[/C][C]0.903522989626348[/C][C]0.192954020747303[/C][C]0.0964770103736516[/C][/ROW]
[ROW][C]40[/C][C]0.886569592585354[/C][C]0.226860814829292[/C][C]0.113430407414646[/C][/ROW]
[ROW][C]41[/C][C]0.853209961006406[/C][C]0.293580077987189[/C][C]0.146790038993594[/C][/ROW]
[ROW][C]42[/C][C]0.814077143304825[/C][C]0.371845713390351[/C][C]0.185922856695175[/C][/ROW]
[ROW][C]43[/C][C]0.765352429596955[/C][C]0.46929514080609[/C][C]0.234647570403045[/C][/ROW]
[ROW][C]44[/C][C]0.730075762299333[/C][C]0.539848475401334[/C][C]0.269924237700667[/C][/ROW]
[ROW][C]45[/C][C]0.708690319932823[/C][C]0.582619360134355[/C][C]0.291309680067177[/C][/ROW]
[ROW][C]46[/C][C]0.77107173531422[/C][C]0.45785652937156[/C][C]0.22892826468578[/C][/ROW]
[ROW][C]47[/C][C]0.869828861883438[/C][C]0.260342276233123[/C][C]0.130171138116562[/C][/ROW]
[ROW][C]48[/C][C]0.825759005436952[/C][C]0.348481989126096[/C][C]0.174240994563048[/C][/ROW]
[ROW][C]49[/C][C]0.840527924461918[/C][C]0.318944151076163[/C][C]0.159472075538082[/C][/ROW]
[ROW][C]50[/C][C]0.829955661480354[/C][C]0.340088677039291[/C][C]0.170044338519646[/C][/ROW]
[ROW][C]51[/C][C]0.774194125611997[/C][C]0.451611748776007[/C][C]0.225805874388003[/C][/ROW]
[ROW][C]52[/C][C]0.682160839622631[/C][C]0.635678320754738[/C][C]0.317839160377369[/C][/ROW]
[ROW][C]53[/C][C]0.570498245788555[/C][C]0.85900350842289[/C][C]0.429501754211445[/C][/ROW]
[ROW][C]54[/C][C]0.493600414601984[/C][C]0.987200829203968[/C][C]0.506399585398016[/C][/ROW]
[ROW][C]55[/C][C]0.395015190843037[/C][C]0.790030381686075[/C][C]0.604984809156963[/C][/ROW]
[ROW][C]56[/C][C]0.302407533746764[/C][C]0.604815067493528[/C][C]0.697592466253236[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25675&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25675&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.2562967892457740.5125935784915480.743703210754226
60.1801090839855540.3602181679711080.819890916014446
70.1376180632186950.2752361264373900.862381936781305
80.1496661823345600.2993323646691190.85033381766544
90.1897199441138150.3794398882276290.810280055886185
100.2545583870961640.5091167741923280.745441612903836
110.2608239933896080.5216479867792170.739176006610392
120.2613301730311950.522660346062390.738669826968805
130.3547872628682170.7095745257364340.645212737131783
140.4326985251632270.8653970503264540.567301474836773
150.3991285063567980.7982570127135950.600871493643202
160.3310660339640240.6621320679280470.668933966035976
170.2699367319441400.5398734638882810.73006326805586
180.2222037828007850.4444075656015690.777796217199215
190.1884090583667660.3768181167335320.811590941633234
200.1698148538149500.3396297076298990.83018514618505
210.1698784771323660.3397569542647320.830121522867634
220.1915935828170620.3831871656341250.808406417182938
230.1988120242443640.3976240484887270.801187975755636
240.2082552622621270.4165105245242550.791744737737873
250.3115752963465670.6231505926931340.688424703653433
260.4804988119978130.9609976239956250.519501188002187
270.5808276812635080.8383446374729830.419172318736492
280.6317960023688410.7364079952623170.368203997631159
290.6917755810914870.6164488378170260.308224418908513
300.6296769174518650.7406461650962710.370323082548135
310.5600795081701010.8798409836597980.439920491829899
320.4901399040955360.9802798081910720.509860095904464
330.4245135734582880.8490271469165760.575486426541712
340.3691486925790060.7382973851580110.630851307420994
350.3095410957368670.6190821914737340.690458904263133
360.421850403956960.843700807913920.57814959604304
370.6580366594814470.6839266810371070.341963340518553
380.8699456073826560.2601087852346880.130054392617344
390.9035229896263480.1929540207473030.0964770103736516
400.8865695925853540.2268608148292920.113430407414646
410.8532099610064060.2935800779871890.146790038993594
420.8140771433048250.3718457133903510.185922856695175
430.7653524295969550.469295140806090.234647570403045
440.7300757622993330.5398484754013340.269924237700667
450.7086903199328230.5826193601343550.291309680067177
460.771071735314220.457856529371560.22892826468578
470.8698288618834380.2603422762331230.130171138116562
480.8257590054369520.3484819891260960.174240994563048
490.8405279244619180.3189441510761630.159472075538082
500.8299556614803540.3400886770392910.170044338519646
510.7741941256119970.4516117487760070.225805874388003
520.6821608396226310.6356783207547380.317839160377369
530.5704982457885550.859003508422890.429501754211445
540.4936004146019840.9872008292039680.506399585398016
550.3950151908430370.7900303816860750.604984809156963
560.3024075337467640.6048150674935280.697592466253236







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=25675&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=25675&T=6

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