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 computationMon, 14 Dec 2015 18:00:43 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2015/Dec/14/t1450116124wmjkgdxpl7gg7mk.htm/, Retrieved Thu, 16 May 2024 14:52:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=286362, Retrieved Thu, 16 May 2024 14:52:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact64
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Multiple regression] [2015-12-14 18:00:43] [2ea4f5baf6c33ea976d37beb530b55ab] [Current]
Feedback Forum

Post a new message
Dataseries X:
6.5
6.2
6.3
6.4
6.3
6.1
5.7
5.6
5.6
6.2
6.3
6.2
6
5.9
6
6.1
6.1
6
6
6
5.9
6.1
6.3
6.5
7.1
7.5
7.6
7.6
7.4
7.1
6.9
6.8
6.8
7.3
7.3
7.3
7.2
7.2
7.4
7.7
7.8
7.9
7.9
7.8
7.7
7.9
7.8
7.6
7.5
7.4
7.7
8.2
8.4
8.4
8.2
8
8
8.2
8.2
8




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ yule.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'George Udny Yule' @ yule.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286362&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]'George Udny Yule' @ yule.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286362&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286362&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'George Udny Yule' @ yule.wessa.net







Multiple Linear Regression - Estimated Regression Equation
M_25[t] = + 5.505 + 0.233472M1[t] + 0.168611M2[t] + 0.28375M3[t] + 0.438889M4[t] + 0.394028M5[t] + 0.249167M6[t] + 0.0443056M7[t] -0.100556M8[t] -0.185417M9[t] + 0.109722M10[t] + 0.104861M11[t] + 0.0448611t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
M_25[t] =  +  5.505 +  0.233472M1[t] +  0.168611M2[t] +  0.28375M3[t] +  0.438889M4[t] +  0.394028M5[t] +  0.249167M6[t] +  0.0443056M7[t] -0.100556M8[t] -0.185417M9[t] +  0.109722M10[t] +  0.104861M11[t] +  0.0448611t  + e[t] \tabularnewline
 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286362&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]M_25[t] =  +  5.505 +  0.233472M1[t] +  0.168611M2[t] +  0.28375M3[t] +  0.438889M4[t] +  0.394028M5[t] +  0.249167M6[t] +  0.0443056M7[t] -0.100556M8[t] -0.185417M9[t] +  0.109722M10[t] +  0.104861M11[t] +  0.0448611t  + e[t][/C][/ROW]
[ROW][C][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286362&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286362&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
M_25[t] = + 5.505 + 0.233472M1[t] + 0.168611M2[t] + 0.28375M3[t] + 0.438889M4[t] + 0.394028M5[t] + 0.249167M6[t] + 0.0443056M7[t] -0.100556M8[t] -0.185417M9[t] + 0.109722M10[t] + 0.104861M11[t] + 0.0448611t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)+5.505 0.1858+2.9630e+01 4.627e-32 2.314e-32
M1+0.2335 0.226+1.0330e+00 0.3069 0.1535
M2+0.1686 0.2257+7.4710e-01 0.4587 0.2294
M3+0.2838 0.2254+1.2590e+00 0.2143 0.1071
M4+0.4389 0.2251+1.9500e+00 0.0572 0.0286
M5+0.394 0.2249+1.7520e+00 0.08625 0.04313
M6+0.2492 0.2247+1.1090e+00 0.273 0.1365
M7+0.04431 0.2245+1.9740e-01 0.8444 0.4222
M8-0.1006 0.2243-4.4820e-01 0.656 0.328
M9-0.1854 0.2242-8.2690e-01 0.4125 0.2062
M10+0.1097 0.2241+4.8950e-01 0.6267 0.3134
M11+0.1049 0.2241+4.6790e-01 0.642 0.321
t+0.04486 0.002695+1.6640e+01 2.461e-21 1.231e-21

\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) & +5.505 &  0.1858 & +2.9630e+01 &  4.627e-32 &  2.314e-32 \tabularnewline
M1 & +0.2335 &  0.226 & +1.0330e+00 &  0.3069 &  0.1535 \tabularnewline
M2 & +0.1686 &  0.2257 & +7.4710e-01 &  0.4587 &  0.2294 \tabularnewline
M3 & +0.2838 &  0.2254 & +1.2590e+00 &  0.2143 &  0.1071 \tabularnewline
M4 & +0.4389 &  0.2251 & +1.9500e+00 &  0.0572 &  0.0286 \tabularnewline
M5 & +0.394 &  0.2249 & +1.7520e+00 &  0.08625 &  0.04313 \tabularnewline
M6 & +0.2492 &  0.2247 & +1.1090e+00 &  0.273 &  0.1365 \tabularnewline
M7 & +0.04431 &  0.2245 & +1.9740e-01 &  0.8444 &  0.4222 \tabularnewline
M8 & -0.1006 &  0.2243 & -4.4820e-01 &  0.656 &  0.328 \tabularnewline
M9 & -0.1854 &  0.2242 & -8.2690e-01 &  0.4125 &  0.2062 \tabularnewline
M10 & +0.1097 &  0.2241 & +4.8950e-01 &  0.6267 &  0.3134 \tabularnewline
M11 & +0.1049 &  0.2241 & +4.6790e-01 &  0.642 &  0.321 \tabularnewline
t & +0.04486 &  0.002695 & +1.6640e+01 &  2.461e-21 &  1.231e-21 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286362&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]+5.505[/C][C] 0.1858[/C][C]+2.9630e+01[/C][C] 4.627e-32[/C][C] 2.314e-32[/C][/ROW]
[ROW][C]M1[/C][C]+0.2335[/C][C] 0.226[/C][C]+1.0330e+00[/C][C] 0.3069[/C][C] 0.1535[/C][/ROW]
[ROW][C]M2[/C][C]+0.1686[/C][C] 0.2257[/C][C]+7.4710e-01[/C][C] 0.4587[/C][C] 0.2294[/C][/ROW]
[ROW][C]M3[/C][C]+0.2838[/C][C] 0.2254[/C][C]+1.2590e+00[/C][C] 0.2143[/C][C] 0.1071[/C][/ROW]
[ROW][C]M4[/C][C]+0.4389[/C][C] 0.2251[/C][C]+1.9500e+00[/C][C] 0.0572[/C][C] 0.0286[/C][/ROW]
[ROW][C]M5[/C][C]+0.394[/C][C] 0.2249[/C][C]+1.7520e+00[/C][C] 0.08625[/C][C] 0.04313[/C][/ROW]
[ROW][C]M6[/C][C]+0.2492[/C][C] 0.2247[/C][C]+1.1090e+00[/C][C] 0.273[/C][C] 0.1365[/C][/ROW]
[ROW][C]M7[/C][C]+0.04431[/C][C] 0.2245[/C][C]+1.9740e-01[/C][C] 0.8444[/C][C] 0.4222[/C][/ROW]
[ROW][C]M8[/C][C]-0.1006[/C][C] 0.2243[/C][C]-4.4820e-01[/C][C] 0.656[/C][C] 0.328[/C][/ROW]
[ROW][C]M9[/C][C]-0.1854[/C][C] 0.2242[/C][C]-8.2690e-01[/C][C] 0.4125[/C][C] 0.2062[/C][/ROW]
[ROW][C]M10[/C][C]+0.1097[/C][C] 0.2241[/C][C]+4.8950e-01[/C][C] 0.6267[/C][C] 0.3134[/C][/ROW]
[ROW][C]M11[/C][C]+0.1049[/C][C] 0.2241[/C][C]+4.6790e-01[/C][C] 0.642[/C][C] 0.321[/C][/ROW]
[ROW][C]t[/C][C]+0.04486[/C][C] 0.002695[/C][C]+1.6640e+01[/C][C] 2.461e-21[/C][C] 1.231e-21[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286362&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286362&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)+5.505 0.1858+2.9630e+01 4.627e-32 2.314e-32
M1+0.2335 0.226+1.0330e+00 0.3069 0.1535
M2+0.1686 0.2257+7.4710e-01 0.4587 0.2294
M3+0.2838 0.2254+1.2590e+00 0.2143 0.1071
M4+0.4389 0.2251+1.9500e+00 0.0572 0.0286
M5+0.394 0.2249+1.7520e+00 0.08625 0.04313
M6+0.2492 0.2247+1.1090e+00 0.273 0.1365
M7+0.04431 0.2245+1.9740e-01 0.8444 0.4222
M8-0.1006 0.2243-4.4820e-01 0.656 0.328
M9-0.1854 0.2242-8.2690e-01 0.4125 0.2062
M10+0.1097 0.2241+4.8950e-01 0.6267 0.3134
M11+0.1049 0.2241+4.6790e-01 0.642 0.321
t+0.04486 0.002695+1.6640e+01 2.461e-21 1.231e-21







Multiple Linear Regression - Regression Statistics
Multiple R 0.9271
R-squared 0.8596
Adjusted R-squared 0.8237
F-TEST (value) 23.97
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value 4.441e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation 0.3543
Sum Squared Residuals 5.9

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R &  0.9271 \tabularnewline
R-squared &  0.8596 \tabularnewline
Adjusted R-squared &  0.8237 \tabularnewline
F-TEST (value) &  23.97 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value &  4.441e-16 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation &  0.3543 \tabularnewline
Sum Squared Residuals &  5.9 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286362&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C] 0.9271[/C][/ROW]
[ROW][C]R-squared[/C][C] 0.8596[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C] 0.8237[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C] 23.97[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C] 4.441e-16[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C] 0.3543[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C] 5.9[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286362&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286362&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 R 0.9271
R-squared 0.8596
Adjusted R-squared 0.8237
F-TEST (value) 23.97
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value 4.441e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation 0.3543
Sum Squared Residuals 5.9







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1 6.5 5.783 0.7167
2 6.2 5.763 0.4367
3 6.3 5.923 0.3767
4 6.4 6.123 0.2767
5 6.3 6.123 0.1767
6 6.1 6.023 0.07667
7 5.7 5.863-0.1633
8 5.6 5.763-0.1633
9 5.6 5.723-0.1233
10 6.2 6.063 0.1367
11 6.3 6.103 0.1967
12 6.2 6.043 0.1567
13 6 6.322-0.3217
14 5.9 6.302-0.4017
15 6 6.462-0.4617
16 6.1 6.662-0.5617
17 6.1 6.662-0.5617
18 6 6.562-0.5617
19 6 6.402-0.4017
20 6 6.302-0.3017
21 5.9 6.262-0.3617
22 6.1 6.602-0.5017
23 6.3 6.642-0.3417
24 6.5 6.582-0.08167
25 7.1 6.86 0.24
26 7.5 6.84 0.66
27 7.6 7 0.6
28 7.6 7.2 0.4
29 7.4 7.2 0.2
30 7.1 7.1-5.551e-16
31 6.9 6.94-0.04
32 6.8 6.84-0.04
33 6.8 6.8 5.551e-17
34 7.3 7.14 0.16
35 7.3 7.18 0.12
36 7.3 7.12 0.18
37 7.2 7.398-0.1983
38 7.2 7.378-0.1783
39 7.4 7.538-0.1383
40 7.7 7.738-0.03833
41 7.8 7.738 0.06167
42 7.9 7.638 0.2617
43 7.9 7.478 0.4217
44 7.8 7.378 0.4217
45 7.7 7.338 0.3617
46 7.9 7.678 0.2217
47 7.8 7.718 0.08167
48 7.6 7.658-0.05833
49 7.5 7.937-0.4367
50 7.4 7.917-0.5167
51 7.7 8.077-0.3767
52 8.2 8.277-0.07667
53 8.4 8.277 0.1233
54 8.4 8.177 0.2233
55 8.2 8.017 0.1833
56 8 7.917 0.08333
57 8 7.877 0.1233
58 8.2 8.217-0.01667
59 8.2 8.257-0.05667
60 8 8.197-0.1967

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 &  6.5 &  5.783 &  0.7167 \tabularnewline
2 &  6.2 &  5.763 &  0.4367 \tabularnewline
3 &  6.3 &  5.923 &  0.3767 \tabularnewline
4 &  6.4 &  6.123 &  0.2767 \tabularnewline
5 &  6.3 &  6.123 &  0.1767 \tabularnewline
6 &  6.1 &  6.023 &  0.07667 \tabularnewline
7 &  5.7 &  5.863 & -0.1633 \tabularnewline
8 &  5.6 &  5.763 & -0.1633 \tabularnewline
9 &  5.6 &  5.723 & -0.1233 \tabularnewline
10 &  6.2 &  6.063 &  0.1367 \tabularnewline
11 &  6.3 &  6.103 &  0.1967 \tabularnewline
12 &  6.2 &  6.043 &  0.1567 \tabularnewline
13 &  6 &  6.322 & -0.3217 \tabularnewline
14 &  5.9 &  6.302 & -0.4017 \tabularnewline
15 &  6 &  6.462 & -0.4617 \tabularnewline
16 &  6.1 &  6.662 & -0.5617 \tabularnewline
17 &  6.1 &  6.662 & -0.5617 \tabularnewline
18 &  6 &  6.562 & -0.5617 \tabularnewline
19 &  6 &  6.402 & -0.4017 \tabularnewline
20 &  6 &  6.302 & -0.3017 \tabularnewline
21 &  5.9 &  6.262 & -0.3617 \tabularnewline
22 &  6.1 &  6.602 & -0.5017 \tabularnewline
23 &  6.3 &  6.642 & -0.3417 \tabularnewline
24 &  6.5 &  6.582 & -0.08167 \tabularnewline
25 &  7.1 &  6.86 &  0.24 \tabularnewline
26 &  7.5 &  6.84 &  0.66 \tabularnewline
27 &  7.6 &  7 &  0.6 \tabularnewline
28 &  7.6 &  7.2 &  0.4 \tabularnewline
29 &  7.4 &  7.2 &  0.2 \tabularnewline
30 &  7.1 &  7.1 & -5.551e-16 \tabularnewline
31 &  6.9 &  6.94 & -0.04 \tabularnewline
32 &  6.8 &  6.84 & -0.04 \tabularnewline
33 &  6.8 &  6.8 &  5.551e-17 \tabularnewline
34 &  7.3 &  7.14 &  0.16 \tabularnewline
35 &  7.3 &  7.18 &  0.12 \tabularnewline
36 &  7.3 &  7.12 &  0.18 \tabularnewline
37 &  7.2 &  7.398 & -0.1983 \tabularnewline
38 &  7.2 &  7.378 & -0.1783 \tabularnewline
39 &  7.4 &  7.538 & -0.1383 \tabularnewline
40 &  7.7 &  7.738 & -0.03833 \tabularnewline
41 &  7.8 &  7.738 &  0.06167 \tabularnewline
42 &  7.9 &  7.638 &  0.2617 \tabularnewline
43 &  7.9 &  7.478 &  0.4217 \tabularnewline
44 &  7.8 &  7.378 &  0.4217 \tabularnewline
45 &  7.7 &  7.338 &  0.3617 \tabularnewline
46 &  7.9 &  7.678 &  0.2217 \tabularnewline
47 &  7.8 &  7.718 &  0.08167 \tabularnewline
48 &  7.6 &  7.658 & -0.05833 \tabularnewline
49 &  7.5 &  7.937 & -0.4367 \tabularnewline
50 &  7.4 &  7.917 & -0.5167 \tabularnewline
51 &  7.7 &  8.077 & -0.3767 \tabularnewline
52 &  8.2 &  8.277 & -0.07667 \tabularnewline
53 &  8.4 &  8.277 &  0.1233 \tabularnewline
54 &  8.4 &  8.177 &  0.2233 \tabularnewline
55 &  8.2 &  8.017 &  0.1833 \tabularnewline
56 &  8 &  7.917 &  0.08333 \tabularnewline
57 &  8 &  7.877 &  0.1233 \tabularnewline
58 &  8.2 &  8.217 & -0.01667 \tabularnewline
59 &  8.2 &  8.257 & -0.05667 \tabularnewline
60 &  8 &  8.197 & -0.1967 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286362&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] 6.5[/C][C] 5.783[/C][C] 0.7167[/C][/ROW]
[ROW][C]2[/C][C] 6.2[/C][C] 5.763[/C][C] 0.4367[/C][/ROW]
[ROW][C]3[/C][C] 6.3[/C][C] 5.923[/C][C] 0.3767[/C][/ROW]
[ROW][C]4[/C][C] 6.4[/C][C] 6.123[/C][C] 0.2767[/C][/ROW]
[ROW][C]5[/C][C] 6.3[/C][C] 6.123[/C][C] 0.1767[/C][/ROW]
[ROW][C]6[/C][C] 6.1[/C][C] 6.023[/C][C] 0.07667[/C][/ROW]
[ROW][C]7[/C][C] 5.7[/C][C] 5.863[/C][C]-0.1633[/C][/ROW]
[ROW][C]8[/C][C] 5.6[/C][C] 5.763[/C][C]-0.1633[/C][/ROW]
[ROW][C]9[/C][C] 5.6[/C][C] 5.723[/C][C]-0.1233[/C][/ROW]
[ROW][C]10[/C][C] 6.2[/C][C] 6.063[/C][C] 0.1367[/C][/ROW]
[ROW][C]11[/C][C] 6.3[/C][C] 6.103[/C][C] 0.1967[/C][/ROW]
[ROW][C]12[/C][C] 6.2[/C][C] 6.043[/C][C] 0.1567[/C][/ROW]
[ROW][C]13[/C][C] 6[/C][C] 6.322[/C][C]-0.3217[/C][/ROW]
[ROW][C]14[/C][C] 5.9[/C][C] 6.302[/C][C]-0.4017[/C][/ROW]
[ROW][C]15[/C][C] 6[/C][C] 6.462[/C][C]-0.4617[/C][/ROW]
[ROW][C]16[/C][C] 6.1[/C][C] 6.662[/C][C]-0.5617[/C][/ROW]
[ROW][C]17[/C][C] 6.1[/C][C] 6.662[/C][C]-0.5617[/C][/ROW]
[ROW][C]18[/C][C] 6[/C][C] 6.562[/C][C]-0.5617[/C][/ROW]
[ROW][C]19[/C][C] 6[/C][C] 6.402[/C][C]-0.4017[/C][/ROW]
[ROW][C]20[/C][C] 6[/C][C] 6.302[/C][C]-0.3017[/C][/ROW]
[ROW][C]21[/C][C] 5.9[/C][C] 6.262[/C][C]-0.3617[/C][/ROW]
[ROW][C]22[/C][C] 6.1[/C][C] 6.602[/C][C]-0.5017[/C][/ROW]
[ROW][C]23[/C][C] 6.3[/C][C] 6.642[/C][C]-0.3417[/C][/ROW]
[ROW][C]24[/C][C] 6.5[/C][C] 6.582[/C][C]-0.08167[/C][/ROW]
[ROW][C]25[/C][C] 7.1[/C][C] 6.86[/C][C] 0.24[/C][/ROW]
[ROW][C]26[/C][C] 7.5[/C][C] 6.84[/C][C] 0.66[/C][/ROW]
[ROW][C]27[/C][C] 7.6[/C][C] 7[/C][C] 0.6[/C][/ROW]
[ROW][C]28[/C][C] 7.6[/C][C] 7.2[/C][C] 0.4[/C][/ROW]
[ROW][C]29[/C][C] 7.4[/C][C] 7.2[/C][C] 0.2[/C][/ROW]
[ROW][C]30[/C][C] 7.1[/C][C] 7.1[/C][C]-5.551e-16[/C][/ROW]
[ROW][C]31[/C][C] 6.9[/C][C] 6.94[/C][C]-0.04[/C][/ROW]
[ROW][C]32[/C][C] 6.8[/C][C] 6.84[/C][C]-0.04[/C][/ROW]
[ROW][C]33[/C][C] 6.8[/C][C] 6.8[/C][C] 5.551e-17[/C][/ROW]
[ROW][C]34[/C][C] 7.3[/C][C] 7.14[/C][C] 0.16[/C][/ROW]
[ROW][C]35[/C][C] 7.3[/C][C] 7.18[/C][C] 0.12[/C][/ROW]
[ROW][C]36[/C][C] 7.3[/C][C] 7.12[/C][C] 0.18[/C][/ROW]
[ROW][C]37[/C][C] 7.2[/C][C] 7.398[/C][C]-0.1983[/C][/ROW]
[ROW][C]38[/C][C] 7.2[/C][C] 7.378[/C][C]-0.1783[/C][/ROW]
[ROW][C]39[/C][C] 7.4[/C][C] 7.538[/C][C]-0.1383[/C][/ROW]
[ROW][C]40[/C][C] 7.7[/C][C] 7.738[/C][C]-0.03833[/C][/ROW]
[ROW][C]41[/C][C] 7.8[/C][C] 7.738[/C][C] 0.06167[/C][/ROW]
[ROW][C]42[/C][C] 7.9[/C][C] 7.638[/C][C] 0.2617[/C][/ROW]
[ROW][C]43[/C][C] 7.9[/C][C] 7.478[/C][C] 0.4217[/C][/ROW]
[ROW][C]44[/C][C] 7.8[/C][C] 7.378[/C][C] 0.4217[/C][/ROW]
[ROW][C]45[/C][C] 7.7[/C][C] 7.338[/C][C] 0.3617[/C][/ROW]
[ROW][C]46[/C][C] 7.9[/C][C] 7.678[/C][C] 0.2217[/C][/ROW]
[ROW][C]47[/C][C] 7.8[/C][C] 7.718[/C][C] 0.08167[/C][/ROW]
[ROW][C]48[/C][C] 7.6[/C][C] 7.658[/C][C]-0.05833[/C][/ROW]
[ROW][C]49[/C][C] 7.5[/C][C] 7.937[/C][C]-0.4367[/C][/ROW]
[ROW][C]50[/C][C] 7.4[/C][C] 7.917[/C][C]-0.5167[/C][/ROW]
[ROW][C]51[/C][C] 7.7[/C][C] 8.077[/C][C]-0.3767[/C][/ROW]
[ROW][C]52[/C][C] 8.2[/C][C] 8.277[/C][C]-0.07667[/C][/ROW]
[ROW][C]53[/C][C] 8.4[/C][C] 8.277[/C][C] 0.1233[/C][/ROW]
[ROW][C]54[/C][C] 8.4[/C][C] 8.177[/C][C] 0.2233[/C][/ROW]
[ROW][C]55[/C][C] 8.2[/C][C] 8.017[/C][C] 0.1833[/C][/ROW]
[ROW][C]56[/C][C] 8[/C][C] 7.917[/C][C] 0.08333[/C][/ROW]
[ROW][C]57[/C][C] 8[/C][C] 7.877[/C][C] 0.1233[/C][/ROW]
[ROW][C]58[/C][C] 8.2[/C][C] 8.217[/C][C]-0.01667[/C][/ROW]
[ROW][C]59[/C][C] 8.2[/C][C] 8.257[/C][C]-0.05667[/C][/ROW]
[ROW][C]60[/C][C] 8[/C][C] 8.197[/C][C]-0.1967[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286362&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286362&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
1 6.5 5.783 0.7167
2 6.2 5.763 0.4367
3 6.3 5.923 0.3767
4 6.4 6.123 0.2767
5 6.3 6.123 0.1767
6 6.1 6.023 0.07667
7 5.7 5.863-0.1633
8 5.6 5.763-0.1633
9 5.6 5.723-0.1233
10 6.2 6.063 0.1367
11 6.3 6.103 0.1967
12 6.2 6.043 0.1567
13 6 6.322-0.3217
14 5.9 6.302-0.4017
15 6 6.462-0.4617
16 6.1 6.662-0.5617
17 6.1 6.662-0.5617
18 6 6.562-0.5617
19 6 6.402-0.4017
20 6 6.302-0.3017
21 5.9 6.262-0.3617
22 6.1 6.602-0.5017
23 6.3 6.642-0.3417
24 6.5 6.582-0.08167
25 7.1 6.86 0.24
26 7.5 6.84 0.66
27 7.6 7 0.6
28 7.6 7.2 0.4
29 7.4 7.2 0.2
30 7.1 7.1-5.551e-16
31 6.9 6.94-0.04
32 6.8 6.84-0.04
33 6.8 6.8 5.551e-17
34 7.3 7.14 0.16
35 7.3 7.18 0.12
36 7.3 7.12 0.18
37 7.2 7.398-0.1983
38 7.2 7.378-0.1783
39 7.4 7.538-0.1383
40 7.7 7.738-0.03833
41 7.8 7.738 0.06167
42 7.9 7.638 0.2617
43 7.9 7.478 0.4217
44 7.8 7.378 0.4217
45 7.7 7.338 0.3617
46 7.9 7.678 0.2217
47 7.8 7.718 0.08167
48 7.6 7.658-0.05833
49 7.5 7.937-0.4367
50 7.4 7.917-0.5167
51 7.7 8.077-0.3767
52 8.2 8.277-0.07667
53 8.4 8.277 0.1233
54 8.4 8.177 0.2233
55 8.2 8.017 0.1833
56 8 7.917 0.08333
57 8 7.877 0.1233
58 8.2 8.217-0.01667
59 8.2 8.257-0.05667
60 8 8.197-0.1967







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
16 0.01155 0.02311 0.9884
17 0.005366 0.01073 0.9946
18 0.005524 0.01105 0.9945
19 0.074 0.148 0.926
20 0.1752 0.3504 0.8248
21 0.2155 0.4311 0.7845
22 0.2225 0.4451 0.7775
23 0.2151 0.4302 0.7849
24 0.2285 0.4571 0.7715
25 0.6172 0.7656 0.3828
26 0.9875 0.02509 0.01255
27 0.9997 0.0005272 0.0002636
28 0.9999 0.0001482 7.409e-05
29 0.9999 0.0002523 0.0001261
30 0.9999 0.000281 0.0001405
31 0.9999 0.000108 5.398e-05
32 1 2.361e-05 1.181e-05
33 1 8.758e-07 4.379e-07
34 1 1.129e-06 5.645e-07
35 1 2.001e-06 1.001e-06
36 1 9.386e-06 4.693e-06
37 1 3.369e-05 1.685e-05
38 1 5.925e-05 2.962e-05
39 0.9999 0.0002186 0.0001093
40 0.9997 0.0006783 0.0003392
41 0.9998 0.0003947 0.0001973
42 0.9998 0.0003697 0.0001848
43 0.9988 0.002359 0.001179
44 0.9983 0.003312 0.001656

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 &  0.01155 &  0.02311 &  0.9884 \tabularnewline
17 &  0.005366 &  0.01073 &  0.9946 \tabularnewline
18 &  0.005524 &  0.01105 &  0.9945 \tabularnewline
19 &  0.074 &  0.148 &  0.926 \tabularnewline
20 &  0.1752 &  0.3504 &  0.8248 \tabularnewline
21 &  0.2155 &  0.4311 &  0.7845 \tabularnewline
22 &  0.2225 &  0.4451 &  0.7775 \tabularnewline
23 &  0.2151 &  0.4302 &  0.7849 \tabularnewline
24 &  0.2285 &  0.4571 &  0.7715 \tabularnewline
25 &  0.6172 &  0.7656 &  0.3828 \tabularnewline
26 &  0.9875 &  0.02509 &  0.01255 \tabularnewline
27 &  0.9997 &  0.0005272 &  0.0002636 \tabularnewline
28 &  0.9999 &  0.0001482 &  7.409e-05 \tabularnewline
29 &  0.9999 &  0.0002523 &  0.0001261 \tabularnewline
30 &  0.9999 &  0.000281 &  0.0001405 \tabularnewline
31 &  0.9999 &  0.000108 &  5.398e-05 \tabularnewline
32 &  1 &  2.361e-05 &  1.181e-05 \tabularnewline
33 &  1 &  8.758e-07 &  4.379e-07 \tabularnewline
34 &  1 &  1.129e-06 &  5.645e-07 \tabularnewline
35 &  1 &  2.001e-06 &  1.001e-06 \tabularnewline
36 &  1 &  9.386e-06 &  4.693e-06 \tabularnewline
37 &  1 &  3.369e-05 &  1.685e-05 \tabularnewline
38 &  1 &  5.925e-05 &  2.962e-05 \tabularnewline
39 &  0.9999 &  0.0002186 &  0.0001093 \tabularnewline
40 &  0.9997 &  0.0006783 &  0.0003392 \tabularnewline
41 &  0.9998 &  0.0003947 &  0.0001973 \tabularnewline
42 &  0.9998 &  0.0003697 &  0.0001848 \tabularnewline
43 &  0.9988 &  0.002359 &  0.001179 \tabularnewline
44 &  0.9983 &  0.003312 &  0.001656 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286362&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]16[/C][C] 0.01155[/C][C] 0.02311[/C][C] 0.9884[/C][/ROW]
[ROW][C]17[/C][C] 0.005366[/C][C] 0.01073[/C][C] 0.9946[/C][/ROW]
[ROW][C]18[/C][C] 0.005524[/C][C] 0.01105[/C][C] 0.9945[/C][/ROW]
[ROW][C]19[/C][C] 0.074[/C][C] 0.148[/C][C] 0.926[/C][/ROW]
[ROW][C]20[/C][C] 0.1752[/C][C] 0.3504[/C][C] 0.8248[/C][/ROW]
[ROW][C]21[/C][C] 0.2155[/C][C] 0.4311[/C][C] 0.7845[/C][/ROW]
[ROW][C]22[/C][C] 0.2225[/C][C] 0.4451[/C][C] 0.7775[/C][/ROW]
[ROW][C]23[/C][C] 0.2151[/C][C] 0.4302[/C][C] 0.7849[/C][/ROW]
[ROW][C]24[/C][C] 0.2285[/C][C] 0.4571[/C][C] 0.7715[/C][/ROW]
[ROW][C]25[/C][C] 0.6172[/C][C] 0.7656[/C][C] 0.3828[/C][/ROW]
[ROW][C]26[/C][C] 0.9875[/C][C] 0.02509[/C][C] 0.01255[/C][/ROW]
[ROW][C]27[/C][C] 0.9997[/C][C] 0.0005272[/C][C] 0.0002636[/C][/ROW]
[ROW][C]28[/C][C] 0.9999[/C][C] 0.0001482[/C][C] 7.409e-05[/C][/ROW]
[ROW][C]29[/C][C] 0.9999[/C][C] 0.0002523[/C][C] 0.0001261[/C][/ROW]
[ROW][C]30[/C][C] 0.9999[/C][C] 0.000281[/C][C] 0.0001405[/C][/ROW]
[ROW][C]31[/C][C] 0.9999[/C][C] 0.000108[/C][C] 5.398e-05[/C][/ROW]
[ROW][C]32[/C][C] 1[/C][C] 2.361e-05[/C][C] 1.181e-05[/C][/ROW]
[ROW][C]33[/C][C] 1[/C][C] 8.758e-07[/C][C] 4.379e-07[/C][/ROW]
[ROW][C]34[/C][C] 1[/C][C] 1.129e-06[/C][C] 5.645e-07[/C][/ROW]
[ROW][C]35[/C][C] 1[/C][C] 2.001e-06[/C][C] 1.001e-06[/C][/ROW]
[ROW][C]36[/C][C] 1[/C][C] 9.386e-06[/C][C] 4.693e-06[/C][/ROW]
[ROW][C]37[/C][C] 1[/C][C] 3.369e-05[/C][C] 1.685e-05[/C][/ROW]
[ROW][C]38[/C][C] 1[/C][C] 5.925e-05[/C][C] 2.962e-05[/C][/ROW]
[ROW][C]39[/C][C] 0.9999[/C][C] 0.0002186[/C][C] 0.0001093[/C][/ROW]
[ROW][C]40[/C][C] 0.9997[/C][C] 0.0006783[/C][C] 0.0003392[/C][/ROW]
[ROW][C]41[/C][C] 0.9998[/C][C] 0.0003947[/C][C] 0.0001973[/C][/ROW]
[ROW][C]42[/C][C] 0.9998[/C][C] 0.0003697[/C][C] 0.0001848[/C][/ROW]
[ROW][C]43[/C][C] 0.9988[/C][C] 0.002359[/C][C] 0.001179[/C][/ROW]
[ROW][C]44[/C][C] 0.9983[/C][C] 0.003312[/C][C] 0.001656[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286362&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286362&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
16 0.01155 0.02311 0.9884
17 0.005366 0.01073 0.9946
18 0.005524 0.01105 0.9945
19 0.074 0.148 0.926
20 0.1752 0.3504 0.8248
21 0.2155 0.4311 0.7845
22 0.2225 0.4451 0.7775
23 0.2151 0.4302 0.7849
24 0.2285 0.4571 0.7715
25 0.6172 0.7656 0.3828
26 0.9875 0.02509 0.01255
27 0.9997 0.0005272 0.0002636
28 0.9999 0.0001482 7.409e-05
29 0.9999 0.0002523 0.0001261
30 0.9999 0.000281 0.0001405
31 0.9999 0.000108 5.398e-05
32 1 2.361e-05 1.181e-05
33 1 8.758e-07 4.379e-07
34 1 1.129e-06 5.645e-07
35 1 2.001e-06 1.001e-06
36 1 9.386e-06 4.693e-06
37 1 3.369e-05 1.685e-05
38 1 5.925e-05 2.962e-05
39 0.9999 0.0002186 0.0001093
40 0.9997 0.0006783 0.0003392
41 0.9998 0.0003947 0.0001973
42 0.9998 0.0003697 0.0001848
43 0.9988 0.002359 0.001179
44 0.9983 0.003312 0.001656







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level18 0.6207NOK
5% type I error level220.758621NOK
10% type I error level220.758621NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286362&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 level18 0.6207NOK
5% type I error level220.758621NOK
10% type I error level220.758621NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ; par4 = ; par5 = ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
mywarning <- ''
par1 <- as.numeric(par1)
if(is.na(par1)) {
par1 <- 1
mywarning = 'Warning: you did not specify the column number of the endogenous series! The first column was selected by default.'
}
if (par4=='') par4 <- 0
par4 <- as.numeric(par4)
if (par5=='') par5 <- 0
par5 <- as.numeric(par5)
x <- na.omit(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'){
(n <- n -1)
x2 <- array(0, dim=c(n,k), dimnames=list(1:n, paste('(1-B)',colnames(x),sep='')))
for (i in 1:n) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par3 == 'Seasonal Differences (s=12)'){
(n <- n - 12)
x2 <- array(0, dim=c(n,k), dimnames=list(1:n, paste('(1-B12)',colnames(x),sep='')))
for (i in 1:n) {
for (j in 1:k) {
x2[i,j] <- x[i+12,j] - x[i,j]
}
}
x <- x2
}
if (par3 == 'First and Seasonal Differences (s=12)'){
(n <- n -1)
x2 <- array(0, dim=c(n,k), dimnames=list(1:n, paste('(1-B)',colnames(x),sep='')))
for (i in 1:n) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
(n <- n - 12)
x2 <- array(0, dim=c(n,k), dimnames=list(1:n, paste('(1-B12)',colnames(x),sep='')))
for (i in 1:n) {
for (j in 1:k) {
x2[i,j] <- x[i+12,j] - x[i,j]
}
}
x <- x2
}
if(par4 > 0) {
x2 <- array(0, dim=c(n-par4,par4), dimnames=list(1:(n-par4), paste(colnames(x)[par1],'(t-',1:par4,')',sep='')))
for (i in 1:(n-par4)) {
for (j in 1:par4) {
x2[i,j] <- x[i+par4-j,par1]
}
}
x <- cbind(x[(par4+1):n,], x2)
n <- n - par4
}
if(par5 > 0) {
x2 <- array(0, dim=c(n-par5*12,par5), dimnames=list(1:(n-par5*12), paste(colnames(x)[par1],'(t-',1:par5,'s)',sep='')))
for (i in 1:(n-par5*12)) {
for (j in 1:par5) {
x2[i,j] <- x[i+par5*12-j*12,par1]
}
}
x <- cbind(x[(par5*12+1):n,], x2)
n <- n - par5*12
}
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[n,]))
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
(k <- length(x[n,]))
head(x)
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, signif(mysum$coefficients[i,1],6), 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.row.start(a)
a<-table.element(a, mywarning)
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,formatC(signif(mysum$coefficients[i,1],5),format='g',flag='+'))
a<-table.element(a,formatC(signif(mysum$coefficients[i,2],5),format='g',flag=' '))
a<-table.element(a,formatC(signif(mysum$coefficients[i,3],4),format='e',flag='+'))
a<-table.element(a,formatC(signif(mysum$coefficients[i,4],4),format='g',flag=' '))
a<-table.element(a,formatC(signif(mysum$coefficients[i,4]/2,4),format='g',flag=' '))
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,formatC(signif(sqrt(mysum$r.squared),6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a,formatC(signif(mysum$r.squared,6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a,formatC(signif(mysum$adj.r.squared,6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a,formatC(signif(mysum$fstatistic[1],6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, signif(mysum$fstatistic[2],6))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, signif(mysum$fstatistic[3],6))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a,formatC(signif(1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]),6),format='g',flag=' '))
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,formatC(signif(mysum$sigma,6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a,formatC(signif(sum(myerror*myerror),6),format='g',flag=' '))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
if(n < 200) {
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,formatC(signif(x[i],6),format='g',flag=' '))
a<-table.element(a,formatC(signif(x[i]-mysum$resid[i],6),format='g',flag=' '))
a<-table.element(a,formatC(signif(mysum$resid[i],6),format='g',flag=' '))
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,formatC(signif(gqarr[mypoint-kp3+1,1],6),format='g',flag=' '))
a<-table.element(a,formatC(signif(gqarr[mypoint-kp3+1,2],6),format='g',flag=' '))
a<-table.element(a,formatC(signif(gqarr[mypoint-kp3+1,3],6),format='g',flag=' '))
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,signif(numsignificant1,6))
a<-table.element(a,formatC(signif(numsignificant1/numgqtests,6),format='g',flag=' '))
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,signif(numsignificant5,6))
a<-table.element(a,signif(numsignificant5/numgqtests,6))
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,signif(numsignificant10,6))
a<-table.element(a,signif(numsignificant10/numgqtests,6))
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')
}
}