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 computationFri, 05 Dec 2008 09:55:46 -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/05/t12284963045w1qsz5b6clr4gp.htm/, Retrieved Thu, 16 May 2024 13:57:53 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=29341, Retrieved Thu, 16 May 2024 13:57:53 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact189
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Paper - Multiple ...] [2008-12-05 16:55:46] [7957bb37a64ed417bbed8444b0b0ea8a] [Current]
-   P     [Multiple Regression] [Paper - Multiple ...] [2008-12-07 22:00:11] [fce9014b1ad8484790f3b34d6ba09f7b]
-   PD    [Multiple Regression] [Paper - Multiple ...] [2008-12-07 22:26:39] [fce9014b1ad8484790f3b34d6ba09f7b]
Feedback Forum

Post a new message
Dataseries X:
0	0
9	0
1	0
4	0
6	0
21	0
24	0
23	0
22	0
21	0
20	0
16	0
18	0
18	0
24	0
16	0
15	0
24	0
18	0
15	0
4	0
3	0
6	0
5	0
12	0
12	0
12	0
14	0
12	0
17	0
12	0
20	0
21	0
15	0
22	0
19	0
19	0
26	0
25	0
19	0
20	0
30	0
31	0
35	0
33	0
26	0
25	0
17	0
14	0
8	0
12	0
7	0
4	0
10	0
8	0
16	1
14	1
20	1
9	1
10	1




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29341&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
Spa[t] = + 16.1818181818182 -2.38181818181818Val[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Spa[t] =  +  16.1818181818182 -2.38181818181818Val[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29341&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Spa[t] =  +  16.1818181818182 -2.38181818181818Val[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29341&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29341&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
Spa[t] = + 16.1818181818182 -2.38181818181818Val[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)16.18181818181821.09042314.839900
Val-2.381818181818183.777336-0.63060.5308080.265404

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 16.1818181818182 & 1.090423 & 14.8399 & 0 & 0 \tabularnewline
Val & -2.38181818181818 & 3.777336 & -0.6306 & 0.530808 & 0.265404 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29341&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]16.1818181818182[/C][C]1.090423[/C][C]14.8399[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Val[/C][C]-2.38181818181818[/C][C]3.777336[/C][C]-0.6306[/C][C]0.530808[/C][C]0.265404[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29341&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)16.18181818181821.09042314.839900
Val-2.381818181818183.777336-0.63060.5308080.265404







Multiple Linear Regression - Regression Statistics
Multiple R0.0825135830762714
R-squared0.00680849139208475
Adjusted R-squared-0.0103155001356379
F-TEST (value)0.397599553881011
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.530808328082919
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.08679406467817
Sum Squared Residuals3792.98181818182

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.0825135830762714 \tabularnewline
R-squared & 0.00680849139208475 \tabularnewline
Adjusted R-squared & -0.0103155001356379 \tabularnewline
F-TEST (value) & 0.397599553881011 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0.530808328082919 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 8.08679406467817 \tabularnewline
Sum Squared Residuals & 3792.98181818182 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29341&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.0825135830762714[/C][/ROW]
[ROW][C]R-squared[/C][C]0.00680849139208475[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.0103155001356379[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.397599553881011[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]0.530808328082919[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]8.08679406467817[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3792.98181818182[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29341&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29341&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.0825135830762714
R-squared0.00680849139208475
Adjusted R-squared-0.0103155001356379
F-TEST (value)0.397599553881011
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.530808328082919
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.08679406467817
Sum Squared Residuals3792.98181818182







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1016.1818181818182-16.1818181818182
2916.1818181818182-7.18181818181818
3116.1818181818182-15.1818181818182
4416.1818181818182-12.1818181818182
5616.1818181818182-10.1818181818182
62116.18181818181824.81818181818182
72416.18181818181827.81818181818182
82316.18181818181826.81818181818182
92216.18181818181825.81818181818182
102116.18181818181824.81818181818182
112016.18181818181823.81818181818182
121616.1818181818182-0.181818181818181
131816.18181818181821.81818181818182
141816.18181818181821.81818181818182
152416.18181818181827.81818181818182
161616.1818181818182-0.181818181818181
171516.1818181818182-1.18181818181818
182416.18181818181827.81818181818182
191816.18181818181821.81818181818182
201516.1818181818182-1.18181818181818
21416.1818181818182-12.1818181818182
22316.1818181818182-13.1818181818182
23616.1818181818182-10.1818181818182
24516.1818181818182-11.1818181818182
251216.1818181818182-4.18181818181818
261216.1818181818182-4.18181818181818
271216.1818181818182-4.18181818181818
281416.1818181818182-2.18181818181818
291216.1818181818182-4.18181818181818
301716.18181818181820.818181818181818
311216.1818181818182-4.18181818181818
322016.18181818181823.81818181818182
332116.18181818181824.81818181818182
341516.1818181818182-1.18181818181818
352216.18181818181825.81818181818182
361916.18181818181822.81818181818182
371916.18181818181822.81818181818182
382616.18181818181829.81818181818182
392516.18181818181828.81818181818182
401916.18181818181822.81818181818182
412016.18181818181823.81818181818182
423016.181818181818213.8181818181818
433116.181818181818214.8181818181818
443516.181818181818218.8181818181818
453316.181818181818216.8181818181818
462616.18181818181829.81818181818182
472516.18181818181828.81818181818182
481716.18181818181820.818181818181818
491416.1818181818182-2.18181818181818
50816.1818181818182-8.18181818181818
511216.1818181818182-4.18181818181818
52716.1818181818182-9.18181818181818
53416.1818181818182-12.1818181818182
541016.1818181818182-6.18181818181818
55816.1818181818182-8.18181818181818
561613.82.2
571413.80.200000000000001
582013.86.2
59913.8-4.8
601013.8-3.8

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 0 & 16.1818181818182 & -16.1818181818182 \tabularnewline
2 & 9 & 16.1818181818182 & -7.18181818181818 \tabularnewline
3 & 1 & 16.1818181818182 & -15.1818181818182 \tabularnewline
4 & 4 & 16.1818181818182 & -12.1818181818182 \tabularnewline
5 & 6 & 16.1818181818182 & -10.1818181818182 \tabularnewline
6 & 21 & 16.1818181818182 & 4.81818181818182 \tabularnewline
7 & 24 & 16.1818181818182 & 7.81818181818182 \tabularnewline
8 & 23 & 16.1818181818182 & 6.81818181818182 \tabularnewline
9 & 22 & 16.1818181818182 & 5.81818181818182 \tabularnewline
10 & 21 & 16.1818181818182 & 4.81818181818182 \tabularnewline
11 & 20 & 16.1818181818182 & 3.81818181818182 \tabularnewline
12 & 16 & 16.1818181818182 & -0.181818181818181 \tabularnewline
13 & 18 & 16.1818181818182 & 1.81818181818182 \tabularnewline
14 & 18 & 16.1818181818182 & 1.81818181818182 \tabularnewline
15 & 24 & 16.1818181818182 & 7.81818181818182 \tabularnewline
16 & 16 & 16.1818181818182 & -0.181818181818181 \tabularnewline
17 & 15 & 16.1818181818182 & -1.18181818181818 \tabularnewline
18 & 24 & 16.1818181818182 & 7.81818181818182 \tabularnewline
19 & 18 & 16.1818181818182 & 1.81818181818182 \tabularnewline
20 & 15 & 16.1818181818182 & -1.18181818181818 \tabularnewline
21 & 4 & 16.1818181818182 & -12.1818181818182 \tabularnewline
22 & 3 & 16.1818181818182 & -13.1818181818182 \tabularnewline
23 & 6 & 16.1818181818182 & -10.1818181818182 \tabularnewline
24 & 5 & 16.1818181818182 & -11.1818181818182 \tabularnewline
25 & 12 & 16.1818181818182 & -4.18181818181818 \tabularnewline
26 & 12 & 16.1818181818182 & -4.18181818181818 \tabularnewline
27 & 12 & 16.1818181818182 & -4.18181818181818 \tabularnewline
28 & 14 & 16.1818181818182 & -2.18181818181818 \tabularnewline
29 & 12 & 16.1818181818182 & -4.18181818181818 \tabularnewline
30 & 17 & 16.1818181818182 & 0.818181818181818 \tabularnewline
31 & 12 & 16.1818181818182 & -4.18181818181818 \tabularnewline
32 & 20 & 16.1818181818182 & 3.81818181818182 \tabularnewline
33 & 21 & 16.1818181818182 & 4.81818181818182 \tabularnewline
34 & 15 & 16.1818181818182 & -1.18181818181818 \tabularnewline
35 & 22 & 16.1818181818182 & 5.81818181818182 \tabularnewline
36 & 19 & 16.1818181818182 & 2.81818181818182 \tabularnewline
37 & 19 & 16.1818181818182 & 2.81818181818182 \tabularnewline
38 & 26 & 16.1818181818182 & 9.81818181818182 \tabularnewline
39 & 25 & 16.1818181818182 & 8.81818181818182 \tabularnewline
40 & 19 & 16.1818181818182 & 2.81818181818182 \tabularnewline
41 & 20 & 16.1818181818182 & 3.81818181818182 \tabularnewline
42 & 30 & 16.1818181818182 & 13.8181818181818 \tabularnewline
43 & 31 & 16.1818181818182 & 14.8181818181818 \tabularnewline
44 & 35 & 16.1818181818182 & 18.8181818181818 \tabularnewline
45 & 33 & 16.1818181818182 & 16.8181818181818 \tabularnewline
46 & 26 & 16.1818181818182 & 9.81818181818182 \tabularnewline
47 & 25 & 16.1818181818182 & 8.81818181818182 \tabularnewline
48 & 17 & 16.1818181818182 & 0.818181818181818 \tabularnewline
49 & 14 & 16.1818181818182 & -2.18181818181818 \tabularnewline
50 & 8 & 16.1818181818182 & -8.18181818181818 \tabularnewline
51 & 12 & 16.1818181818182 & -4.18181818181818 \tabularnewline
52 & 7 & 16.1818181818182 & -9.18181818181818 \tabularnewline
53 & 4 & 16.1818181818182 & -12.1818181818182 \tabularnewline
54 & 10 & 16.1818181818182 & -6.18181818181818 \tabularnewline
55 & 8 & 16.1818181818182 & -8.18181818181818 \tabularnewline
56 & 16 & 13.8 & 2.2 \tabularnewline
57 & 14 & 13.8 & 0.200000000000001 \tabularnewline
58 & 20 & 13.8 & 6.2 \tabularnewline
59 & 9 & 13.8 & -4.8 \tabularnewline
60 & 10 & 13.8 & -3.8 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29341&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]0[/C][C]16.1818181818182[/C][C]-16.1818181818182[/C][/ROW]
[ROW][C]2[/C][C]9[/C][C]16.1818181818182[/C][C]-7.18181818181818[/C][/ROW]
[ROW][C]3[/C][C]1[/C][C]16.1818181818182[/C][C]-15.1818181818182[/C][/ROW]
[ROW][C]4[/C][C]4[/C][C]16.1818181818182[/C][C]-12.1818181818182[/C][/ROW]
[ROW][C]5[/C][C]6[/C][C]16.1818181818182[/C][C]-10.1818181818182[/C][/ROW]
[ROW][C]6[/C][C]21[/C][C]16.1818181818182[/C][C]4.81818181818182[/C][/ROW]
[ROW][C]7[/C][C]24[/C][C]16.1818181818182[/C][C]7.81818181818182[/C][/ROW]
[ROW][C]8[/C][C]23[/C][C]16.1818181818182[/C][C]6.81818181818182[/C][/ROW]
[ROW][C]9[/C][C]22[/C][C]16.1818181818182[/C][C]5.81818181818182[/C][/ROW]
[ROW][C]10[/C][C]21[/C][C]16.1818181818182[/C][C]4.81818181818182[/C][/ROW]
[ROW][C]11[/C][C]20[/C][C]16.1818181818182[/C][C]3.81818181818182[/C][/ROW]
[ROW][C]12[/C][C]16[/C][C]16.1818181818182[/C][C]-0.181818181818181[/C][/ROW]
[ROW][C]13[/C][C]18[/C][C]16.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]14[/C][C]18[/C][C]16.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]15[/C][C]24[/C][C]16.1818181818182[/C][C]7.81818181818182[/C][/ROW]
[ROW][C]16[/C][C]16[/C][C]16.1818181818182[/C][C]-0.181818181818181[/C][/ROW]
[ROW][C]17[/C][C]15[/C][C]16.1818181818182[/C][C]-1.18181818181818[/C][/ROW]
[ROW][C]18[/C][C]24[/C][C]16.1818181818182[/C][C]7.81818181818182[/C][/ROW]
[ROW][C]19[/C][C]18[/C][C]16.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]20[/C][C]15[/C][C]16.1818181818182[/C][C]-1.18181818181818[/C][/ROW]
[ROW][C]21[/C][C]4[/C][C]16.1818181818182[/C][C]-12.1818181818182[/C][/ROW]
[ROW][C]22[/C][C]3[/C][C]16.1818181818182[/C][C]-13.1818181818182[/C][/ROW]
[ROW][C]23[/C][C]6[/C][C]16.1818181818182[/C][C]-10.1818181818182[/C][/ROW]
[ROW][C]24[/C][C]5[/C][C]16.1818181818182[/C][C]-11.1818181818182[/C][/ROW]
[ROW][C]25[/C][C]12[/C][C]16.1818181818182[/C][C]-4.18181818181818[/C][/ROW]
[ROW][C]26[/C][C]12[/C][C]16.1818181818182[/C][C]-4.18181818181818[/C][/ROW]
[ROW][C]27[/C][C]12[/C][C]16.1818181818182[/C][C]-4.18181818181818[/C][/ROW]
[ROW][C]28[/C][C]14[/C][C]16.1818181818182[/C][C]-2.18181818181818[/C][/ROW]
[ROW][C]29[/C][C]12[/C][C]16.1818181818182[/C][C]-4.18181818181818[/C][/ROW]
[ROW][C]30[/C][C]17[/C][C]16.1818181818182[/C][C]0.818181818181818[/C][/ROW]
[ROW][C]31[/C][C]12[/C][C]16.1818181818182[/C][C]-4.18181818181818[/C][/ROW]
[ROW][C]32[/C][C]20[/C][C]16.1818181818182[/C][C]3.81818181818182[/C][/ROW]
[ROW][C]33[/C][C]21[/C][C]16.1818181818182[/C][C]4.81818181818182[/C][/ROW]
[ROW][C]34[/C][C]15[/C][C]16.1818181818182[/C][C]-1.18181818181818[/C][/ROW]
[ROW][C]35[/C][C]22[/C][C]16.1818181818182[/C][C]5.81818181818182[/C][/ROW]
[ROW][C]36[/C][C]19[/C][C]16.1818181818182[/C][C]2.81818181818182[/C][/ROW]
[ROW][C]37[/C][C]19[/C][C]16.1818181818182[/C][C]2.81818181818182[/C][/ROW]
[ROW][C]38[/C][C]26[/C][C]16.1818181818182[/C][C]9.81818181818182[/C][/ROW]
[ROW][C]39[/C][C]25[/C][C]16.1818181818182[/C][C]8.81818181818182[/C][/ROW]
[ROW][C]40[/C][C]19[/C][C]16.1818181818182[/C][C]2.81818181818182[/C][/ROW]
[ROW][C]41[/C][C]20[/C][C]16.1818181818182[/C][C]3.81818181818182[/C][/ROW]
[ROW][C]42[/C][C]30[/C][C]16.1818181818182[/C][C]13.8181818181818[/C][/ROW]
[ROW][C]43[/C][C]31[/C][C]16.1818181818182[/C][C]14.8181818181818[/C][/ROW]
[ROW][C]44[/C][C]35[/C][C]16.1818181818182[/C][C]18.8181818181818[/C][/ROW]
[ROW][C]45[/C][C]33[/C][C]16.1818181818182[/C][C]16.8181818181818[/C][/ROW]
[ROW][C]46[/C][C]26[/C][C]16.1818181818182[/C][C]9.81818181818182[/C][/ROW]
[ROW][C]47[/C][C]25[/C][C]16.1818181818182[/C][C]8.81818181818182[/C][/ROW]
[ROW][C]48[/C][C]17[/C][C]16.1818181818182[/C][C]0.818181818181818[/C][/ROW]
[ROW][C]49[/C][C]14[/C][C]16.1818181818182[/C][C]-2.18181818181818[/C][/ROW]
[ROW][C]50[/C][C]8[/C][C]16.1818181818182[/C][C]-8.18181818181818[/C][/ROW]
[ROW][C]51[/C][C]12[/C][C]16.1818181818182[/C][C]-4.18181818181818[/C][/ROW]
[ROW][C]52[/C][C]7[/C][C]16.1818181818182[/C][C]-9.18181818181818[/C][/ROW]
[ROW][C]53[/C][C]4[/C][C]16.1818181818182[/C][C]-12.1818181818182[/C][/ROW]
[ROW][C]54[/C][C]10[/C][C]16.1818181818182[/C][C]-6.18181818181818[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]16.1818181818182[/C][C]-8.18181818181818[/C][/ROW]
[ROW][C]56[/C][C]16[/C][C]13.8[/C][C]2.2[/C][/ROW]
[ROW][C]57[/C][C]14[/C][C]13.8[/C][C]0.200000000000001[/C][/ROW]
[ROW][C]58[/C][C]20[/C][C]13.8[/C][C]6.2[/C][/ROW]
[ROW][C]59[/C][C]9[/C][C]13.8[/C][C]-4.8[/C][/ROW]
[ROW][C]60[/C][C]10[/C][C]13.8[/C][C]-3.8[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29341&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29341&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
1016.1818181818182-16.1818181818182
2916.1818181818182-7.18181818181818
3116.1818181818182-15.1818181818182
4416.1818181818182-12.1818181818182
5616.1818181818182-10.1818181818182
62116.18181818181824.81818181818182
72416.18181818181827.81818181818182
82316.18181818181826.81818181818182
92216.18181818181825.81818181818182
102116.18181818181824.81818181818182
112016.18181818181823.81818181818182
121616.1818181818182-0.181818181818181
131816.18181818181821.81818181818182
141816.18181818181821.81818181818182
152416.18181818181827.81818181818182
161616.1818181818182-0.181818181818181
171516.1818181818182-1.18181818181818
182416.18181818181827.81818181818182
191816.18181818181821.81818181818182
201516.1818181818182-1.18181818181818
21416.1818181818182-12.1818181818182
22316.1818181818182-13.1818181818182
23616.1818181818182-10.1818181818182
24516.1818181818182-11.1818181818182
251216.1818181818182-4.18181818181818
261216.1818181818182-4.18181818181818
271216.1818181818182-4.18181818181818
281416.1818181818182-2.18181818181818
291216.1818181818182-4.18181818181818
301716.18181818181820.818181818181818
311216.1818181818182-4.18181818181818
322016.18181818181823.81818181818182
332116.18181818181824.81818181818182
341516.1818181818182-1.18181818181818
352216.18181818181825.81818181818182
361916.18181818181822.81818181818182
371916.18181818181822.81818181818182
382616.18181818181829.81818181818182
392516.18181818181828.81818181818182
401916.18181818181822.81818181818182
412016.18181818181823.81818181818182
423016.181818181818213.8181818181818
433116.181818181818214.8181818181818
443516.181818181818218.8181818181818
453316.181818181818216.8181818181818
462616.18181818181829.81818181818182
472516.18181818181828.81818181818182
481716.18181818181820.818181818181818
491416.1818181818182-2.18181818181818
50816.1818181818182-8.18181818181818
511216.1818181818182-4.18181818181818
52716.1818181818182-9.18181818181818
53416.1818181818182-12.1818181818182
541016.1818181818182-6.18181818181818
55816.1818181818182-8.18181818181818
561613.82.2
571413.80.200000000000001
582013.86.2
59913.8-4.8
601013.8-3.8







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1937468184292950.3874936368585910.806253181570705
60.7241905609420230.5516188781159550.275809439057977
70.8977459980068670.2045080039862660.102254001993133
80.9299237705801510.1401524588396980.0700762294198491
90.9321363423057380.1357273153885250.0678636576942623
100.9203295640580860.1593408718838270.0796704359419137
110.8965410207776620.2069179584446770.103458979222338
120.847919463926220.304161072147560.15208053607378
130.7953897824323760.4092204351352490.204610217567624
140.7336151826564820.5327696346870360.266384817343518
150.7360407709207250.5279184581585510.263959229079275
160.659395289924480.681209420151040.34060471007552
170.5771321124480440.8457357751039110.422867887551956
180.574867607155140.850264785689720.42513239284486
190.4963890699304540.9927781398609090.503610930069546
200.4150765943952250.830153188790450.584923405604775
210.5002760444697060.9994479110605880.499723955530294
220.6068969997711590.7862060004576830.393103000228841
230.6356241865659760.7287516268680480.364375813434024
240.6882652393789580.6234695212420830.311734760621042
250.6366680196895680.7266639606208630.363331980310432
260.584394163323860.831211673352280.41560583667614
270.53274944802450.9345011039510.4672505519755
280.4682324110113790.9364648220227580.531767588988621
290.4208183576609880.8416367153219750.579181642339012
300.3567361433243840.7134722866487670.643263856675616
310.3166821144744070.6333642289488150.683317885525593
320.2725759323019620.5451518646039250.727424067698037
330.2373682247142040.4747364494284070.762631775285797
340.1902769552605310.3805539105210630.809723044739469
350.1666513575418480.3333027150836970.833348642458152
360.1293484540420870.2586969080841740.870651545957913
370.09775832045368480.1955166409073700.902241679546315
380.1071311929247450.2142623858494910.892868807075255
390.1057190128501060.2114380257002130.894280987149894
400.07629067711387910.1525813542277580.923709322886121
410.05469597464618930.1093919492923790.94530402535381
420.09160592157445230.1832118431489050.908394078425548
430.1678333103136440.3356666206272870.832166689686356
440.4644202338248570.9288404676497140.535579766175143
450.8160435300817470.3679129398365060.183956469918253
460.9239486744799140.1521026510401720.076051325520086
470.990664049520960.01867190095807850.00933595047903926
480.9943960308711320.01120793825773660.0056039691288683
490.9942876240204080.01142475195918440.00571237597959221
500.987254396076450.02549120784709780.0127456039235489
510.9820605854552680.03587882908946420.0179394145447321
520.9608629536798230.07827409264035470.0391370463201773
530.9456088145963360.1087823708073270.0543911854036637
540.8842974126100420.2314051747799160.115702587389958
550.7645634748661430.4708730502677140.235436525133857

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.193746818429295 & 0.387493636858591 & 0.806253181570705 \tabularnewline
6 & 0.724190560942023 & 0.551618878115955 & 0.275809439057977 \tabularnewline
7 & 0.897745998006867 & 0.204508003986266 & 0.102254001993133 \tabularnewline
8 & 0.929923770580151 & 0.140152458839698 & 0.0700762294198491 \tabularnewline
9 & 0.932136342305738 & 0.135727315388525 & 0.0678636576942623 \tabularnewline
10 & 0.920329564058086 & 0.159340871883827 & 0.0796704359419137 \tabularnewline
11 & 0.896541020777662 & 0.206917958444677 & 0.103458979222338 \tabularnewline
12 & 0.84791946392622 & 0.30416107214756 & 0.15208053607378 \tabularnewline
13 & 0.795389782432376 & 0.409220435135249 & 0.204610217567624 \tabularnewline
14 & 0.733615182656482 & 0.532769634687036 & 0.266384817343518 \tabularnewline
15 & 0.736040770920725 & 0.527918458158551 & 0.263959229079275 \tabularnewline
16 & 0.65939528992448 & 0.68120942015104 & 0.34060471007552 \tabularnewline
17 & 0.577132112448044 & 0.845735775103911 & 0.422867887551956 \tabularnewline
18 & 0.57486760715514 & 0.85026478568972 & 0.42513239284486 \tabularnewline
19 & 0.496389069930454 & 0.992778139860909 & 0.503610930069546 \tabularnewline
20 & 0.415076594395225 & 0.83015318879045 & 0.584923405604775 \tabularnewline
21 & 0.500276044469706 & 0.999447911060588 & 0.499723955530294 \tabularnewline
22 & 0.606896999771159 & 0.786206000457683 & 0.393103000228841 \tabularnewline
23 & 0.635624186565976 & 0.728751626868048 & 0.364375813434024 \tabularnewline
24 & 0.688265239378958 & 0.623469521242083 & 0.311734760621042 \tabularnewline
25 & 0.636668019689568 & 0.726663960620863 & 0.363331980310432 \tabularnewline
26 & 0.58439416332386 & 0.83121167335228 & 0.41560583667614 \tabularnewline
27 & 0.5327494480245 & 0.934501103951 & 0.4672505519755 \tabularnewline
28 & 0.468232411011379 & 0.936464822022758 & 0.531767588988621 \tabularnewline
29 & 0.420818357660988 & 0.841636715321975 & 0.579181642339012 \tabularnewline
30 & 0.356736143324384 & 0.713472286648767 & 0.643263856675616 \tabularnewline
31 & 0.316682114474407 & 0.633364228948815 & 0.683317885525593 \tabularnewline
32 & 0.272575932301962 & 0.545151864603925 & 0.727424067698037 \tabularnewline
33 & 0.237368224714204 & 0.474736449428407 & 0.762631775285797 \tabularnewline
34 & 0.190276955260531 & 0.380553910521063 & 0.809723044739469 \tabularnewline
35 & 0.166651357541848 & 0.333302715083697 & 0.833348642458152 \tabularnewline
36 & 0.129348454042087 & 0.258696908084174 & 0.870651545957913 \tabularnewline
37 & 0.0977583204536848 & 0.195516640907370 & 0.902241679546315 \tabularnewline
38 & 0.107131192924745 & 0.214262385849491 & 0.892868807075255 \tabularnewline
39 & 0.105719012850106 & 0.211438025700213 & 0.894280987149894 \tabularnewline
40 & 0.0762906771138791 & 0.152581354227758 & 0.923709322886121 \tabularnewline
41 & 0.0546959746461893 & 0.109391949292379 & 0.94530402535381 \tabularnewline
42 & 0.0916059215744523 & 0.183211843148905 & 0.908394078425548 \tabularnewline
43 & 0.167833310313644 & 0.335666620627287 & 0.832166689686356 \tabularnewline
44 & 0.464420233824857 & 0.928840467649714 & 0.535579766175143 \tabularnewline
45 & 0.816043530081747 & 0.367912939836506 & 0.183956469918253 \tabularnewline
46 & 0.923948674479914 & 0.152102651040172 & 0.076051325520086 \tabularnewline
47 & 0.99066404952096 & 0.0186719009580785 & 0.00933595047903926 \tabularnewline
48 & 0.994396030871132 & 0.0112079382577366 & 0.0056039691288683 \tabularnewline
49 & 0.994287624020408 & 0.0114247519591844 & 0.00571237597959221 \tabularnewline
50 & 0.98725439607645 & 0.0254912078470978 & 0.0127456039235489 \tabularnewline
51 & 0.982060585455268 & 0.0358788290894642 & 0.0179394145447321 \tabularnewline
52 & 0.960862953679823 & 0.0782740926403547 & 0.0391370463201773 \tabularnewline
53 & 0.945608814596336 & 0.108782370807327 & 0.0543911854036637 \tabularnewline
54 & 0.884297412610042 & 0.231405174779916 & 0.115702587389958 \tabularnewline
55 & 0.764563474866143 & 0.470873050267714 & 0.235436525133857 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29341&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.193746818429295[/C][C]0.387493636858591[/C][C]0.806253181570705[/C][/ROW]
[ROW][C]6[/C][C]0.724190560942023[/C][C]0.551618878115955[/C][C]0.275809439057977[/C][/ROW]
[ROW][C]7[/C][C]0.897745998006867[/C][C]0.204508003986266[/C][C]0.102254001993133[/C][/ROW]
[ROW][C]8[/C][C]0.929923770580151[/C][C]0.140152458839698[/C][C]0.0700762294198491[/C][/ROW]
[ROW][C]9[/C][C]0.932136342305738[/C][C]0.135727315388525[/C][C]0.0678636576942623[/C][/ROW]
[ROW][C]10[/C][C]0.920329564058086[/C][C]0.159340871883827[/C][C]0.0796704359419137[/C][/ROW]
[ROW][C]11[/C][C]0.896541020777662[/C][C]0.206917958444677[/C][C]0.103458979222338[/C][/ROW]
[ROW][C]12[/C][C]0.84791946392622[/C][C]0.30416107214756[/C][C]0.15208053607378[/C][/ROW]
[ROW][C]13[/C][C]0.795389782432376[/C][C]0.409220435135249[/C][C]0.204610217567624[/C][/ROW]
[ROW][C]14[/C][C]0.733615182656482[/C][C]0.532769634687036[/C][C]0.266384817343518[/C][/ROW]
[ROW][C]15[/C][C]0.736040770920725[/C][C]0.527918458158551[/C][C]0.263959229079275[/C][/ROW]
[ROW][C]16[/C][C]0.65939528992448[/C][C]0.68120942015104[/C][C]0.34060471007552[/C][/ROW]
[ROW][C]17[/C][C]0.577132112448044[/C][C]0.845735775103911[/C][C]0.422867887551956[/C][/ROW]
[ROW][C]18[/C][C]0.57486760715514[/C][C]0.85026478568972[/C][C]0.42513239284486[/C][/ROW]
[ROW][C]19[/C][C]0.496389069930454[/C][C]0.992778139860909[/C][C]0.503610930069546[/C][/ROW]
[ROW][C]20[/C][C]0.415076594395225[/C][C]0.83015318879045[/C][C]0.584923405604775[/C][/ROW]
[ROW][C]21[/C][C]0.500276044469706[/C][C]0.999447911060588[/C][C]0.499723955530294[/C][/ROW]
[ROW][C]22[/C][C]0.606896999771159[/C][C]0.786206000457683[/C][C]0.393103000228841[/C][/ROW]
[ROW][C]23[/C][C]0.635624186565976[/C][C]0.728751626868048[/C][C]0.364375813434024[/C][/ROW]
[ROW][C]24[/C][C]0.688265239378958[/C][C]0.623469521242083[/C][C]0.311734760621042[/C][/ROW]
[ROW][C]25[/C][C]0.636668019689568[/C][C]0.726663960620863[/C][C]0.363331980310432[/C][/ROW]
[ROW][C]26[/C][C]0.58439416332386[/C][C]0.83121167335228[/C][C]0.41560583667614[/C][/ROW]
[ROW][C]27[/C][C]0.5327494480245[/C][C]0.934501103951[/C][C]0.4672505519755[/C][/ROW]
[ROW][C]28[/C][C]0.468232411011379[/C][C]0.936464822022758[/C][C]0.531767588988621[/C][/ROW]
[ROW][C]29[/C][C]0.420818357660988[/C][C]0.841636715321975[/C][C]0.579181642339012[/C][/ROW]
[ROW][C]30[/C][C]0.356736143324384[/C][C]0.713472286648767[/C][C]0.643263856675616[/C][/ROW]
[ROW][C]31[/C][C]0.316682114474407[/C][C]0.633364228948815[/C][C]0.683317885525593[/C][/ROW]
[ROW][C]32[/C][C]0.272575932301962[/C][C]0.545151864603925[/C][C]0.727424067698037[/C][/ROW]
[ROW][C]33[/C][C]0.237368224714204[/C][C]0.474736449428407[/C][C]0.762631775285797[/C][/ROW]
[ROW][C]34[/C][C]0.190276955260531[/C][C]0.380553910521063[/C][C]0.809723044739469[/C][/ROW]
[ROW][C]35[/C][C]0.166651357541848[/C][C]0.333302715083697[/C][C]0.833348642458152[/C][/ROW]
[ROW][C]36[/C][C]0.129348454042087[/C][C]0.258696908084174[/C][C]0.870651545957913[/C][/ROW]
[ROW][C]37[/C][C]0.0977583204536848[/C][C]0.195516640907370[/C][C]0.902241679546315[/C][/ROW]
[ROW][C]38[/C][C]0.107131192924745[/C][C]0.214262385849491[/C][C]0.892868807075255[/C][/ROW]
[ROW][C]39[/C][C]0.105719012850106[/C][C]0.211438025700213[/C][C]0.894280987149894[/C][/ROW]
[ROW][C]40[/C][C]0.0762906771138791[/C][C]0.152581354227758[/C][C]0.923709322886121[/C][/ROW]
[ROW][C]41[/C][C]0.0546959746461893[/C][C]0.109391949292379[/C][C]0.94530402535381[/C][/ROW]
[ROW][C]42[/C][C]0.0916059215744523[/C][C]0.183211843148905[/C][C]0.908394078425548[/C][/ROW]
[ROW][C]43[/C][C]0.167833310313644[/C][C]0.335666620627287[/C][C]0.832166689686356[/C][/ROW]
[ROW][C]44[/C][C]0.464420233824857[/C][C]0.928840467649714[/C][C]0.535579766175143[/C][/ROW]
[ROW][C]45[/C][C]0.816043530081747[/C][C]0.367912939836506[/C][C]0.183956469918253[/C][/ROW]
[ROW][C]46[/C][C]0.923948674479914[/C][C]0.152102651040172[/C][C]0.076051325520086[/C][/ROW]
[ROW][C]47[/C][C]0.99066404952096[/C][C]0.0186719009580785[/C][C]0.00933595047903926[/C][/ROW]
[ROW][C]48[/C][C]0.994396030871132[/C][C]0.0112079382577366[/C][C]0.0056039691288683[/C][/ROW]
[ROW][C]49[/C][C]0.994287624020408[/C][C]0.0114247519591844[/C][C]0.00571237597959221[/C][/ROW]
[ROW][C]50[/C][C]0.98725439607645[/C][C]0.0254912078470978[/C][C]0.0127456039235489[/C][/ROW]
[ROW][C]51[/C][C]0.982060585455268[/C][C]0.0358788290894642[/C][C]0.0179394145447321[/C][/ROW]
[ROW][C]52[/C][C]0.960862953679823[/C][C]0.0782740926403547[/C][C]0.0391370463201773[/C][/ROW]
[ROW][C]53[/C][C]0.945608814596336[/C][C]0.108782370807327[/C][C]0.0543911854036637[/C][/ROW]
[ROW][C]54[/C][C]0.884297412610042[/C][C]0.231405174779916[/C][C]0.115702587389958[/C][/ROW]
[ROW][C]55[/C][C]0.764563474866143[/C][C]0.470873050267714[/C][C]0.235436525133857[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29341&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29341&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.1937468184292950.3874936368585910.806253181570705
60.7241905609420230.5516188781159550.275809439057977
70.8977459980068670.2045080039862660.102254001993133
80.9299237705801510.1401524588396980.0700762294198491
90.9321363423057380.1357273153885250.0678636576942623
100.9203295640580860.1593408718838270.0796704359419137
110.8965410207776620.2069179584446770.103458979222338
120.847919463926220.304161072147560.15208053607378
130.7953897824323760.4092204351352490.204610217567624
140.7336151826564820.5327696346870360.266384817343518
150.7360407709207250.5279184581585510.263959229079275
160.659395289924480.681209420151040.34060471007552
170.5771321124480440.8457357751039110.422867887551956
180.574867607155140.850264785689720.42513239284486
190.4963890699304540.9927781398609090.503610930069546
200.4150765943952250.830153188790450.584923405604775
210.5002760444697060.9994479110605880.499723955530294
220.6068969997711590.7862060004576830.393103000228841
230.6356241865659760.7287516268680480.364375813434024
240.6882652393789580.6234695212420830.311734760621042
250.6366680196895680.7266639606208630.363331980310432
260.584394163323860.831211673352280.41560583667614
270.53274944802450.9345011039510.4672505519755
280.4682324110113790.9364648220227580.531767588988621
290.4208183576609880.8416367153219750.579181642339012
300.3567361433243840.7134722866487670.643263856675616
310.3166821144744070.6333642289488150.683317885525593
320.2725759323019620.5451518646039250.727424067698037
330.2373682247142040.4747364494284070.762631775285797
340.1902769552605310.3805539105210630.809723044739469
350.1666513575418480.3333027150836970.833348642458152
360.1293484540420870.2586969080841740.870651545957913
370.09775832045368480.1955166409073700.902241679546315
380.1071311929247450.2142623858494910.892868807075255
390.1057190128501060.2114380257002130.894280987149894
400.07629067711387910.1525813542277580.923709322886121
410.05469597464618930.1093919492923790.94530402535381
420.09160592157445230.1832118431489050.908394078425548
430.1678333103136440.3356666206272870.832166689686356
440.4644202338248570.9288404676497140.535579766175143
450.8160435300817470.3679129398365060.183956469918253
460.9239486744799140.1521026510401720.076051325520086
470.990664049520960.01867190095807850.00933595047903926
480.9943960308711320.01120793825773660.0056039691288683
490.9942876240204080.01142475195918440.00571237597959221
500.987254396076450.02549120784709780.0127456039235489
510.9820605854552680.03587882908946420.0179394145447321
520.9608629536798230.07827409264035470.0391370463201773
530.9456088145963360.1087823708073270.0543911854036637
540.8842974126100420.2314051747799160.115702587389958
550.7645634748661430.4708730502677140.235436525133857







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29341&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 level50.0980392156862745NOK
10% type I error level60.117647058823529NOK



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