Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSun, 23 Nov 2008 11:48:48 -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/23/t1227466353vws7kmksu7b4gbs.htm/, Retrieved Sun, 19 May 2024 06:47:20 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25317, Retrieved Sun, 19 May 2024 06:47:20 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsrente en woongebouwen
Estimated Impact145
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [] [2007-11-19 19:55:31] [b731da8b544846036771bbf9bf2f34ce]
- R  D    [Multiple Regression] [] [2008-11-23 18:48:48] [8767719db498704e1fee27044c098ad0] [Current]
Feedback Forum

Post a new message
Dataseries X:
16	0
8	0
-10	0
-24	0
-19	0
8	0
24	0
14	0
7	0
9	0
-26	0
19	0
15	0
-1	0
-10	0
-21	0
-14	0
-27	0
26	0
23	0
5	0
19	0
-19	0
24	0
17	0
1	0
-9	0
-16	0
-21	0
-14	0
31	0
27	0
10	0
12	0
-23	0
13	0
26	0
-1	0
4	0
-16	0
-5	0
9	0
23	0
9	0
2	0
10	1
-29	1
17	1
9	1
9	1
-10	1
-23	1
13	1
13	1
-9	1
9	1
5	1
8	1
-18	1
7	1
4	0




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' @ 72.249.76.132

\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' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25317&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' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25317&T=0

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







Multiple Linear Regression - Estimated Regression Equation
x[t] = + 2.80434782608695 -2.07101449275362y[t] + e[t]

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

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]x[t] =  +  2.80434782608695 -2.07101449275362y[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25317&T=1

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







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.804347826086952.410841.16320.2494220.124711
y-2.071014492753624.861694-0.4260.6716680.335834

\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) & 2.80434782608695 & 2.41084 & 1.1632 & 0.249422 & 0.124711 \tabularnewline
y & -2.07101449275362 & 4.861694 & -0.426 & 0.671668 & 0.335834 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25317&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]2.80434782608695[/C][C]2.41084[/C][C]1.1632[/C][C]0.249422[/C][C]0.124711[/C][/ROW]
[ROW][C]y[/C][C]-2.07101449275362[/C][C]4.861694[/C][C]-0.426[/C][C]0.671668[/C][C]0.335834[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25317&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25317&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)2.804347826086952.410841.16320.2494220.124711
y-2.071014492753624.861694-0.4260.6716680.335834







Multiple Linear Regression - Regression Statistics
Multiple R0.0553735830765855
R-squared0.00306623370273951
Adjusted R-squared-0.0138309487768751
F-TEST (value)0.181464200107843
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.671668010767671
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.3511117456307
Sum Squared Residuals15774.1724637681

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.0553735830765855 \tabularnewline
R-squared & 0.00306623370273951 \tabularnewline
Adjusted R-squared & -0.0138309487768751 \tabularnewline
F-TEST (value) & 0.181464200107843 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 59 \tabularnewline
p-value & 0.671668010767671 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 16.3511117456307 \tabularnewline
Sum Squared Residuals & 15774.1724637681 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25317&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.0553735830765855[/C][/ROW]
[ROW][C]R-squared[/C][C]0.00306623370273951[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.0138309487768751[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.181464200107843[/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.671668010767671[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]16.3511117456307[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]15774.1724637681[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25317&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25317&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.0553735830765855
R-squared0.00306623370273951
Adjusted R-squared-0.0138309487768751
F-TEST (value)0.181464200107843
F-TEST (DF numerator)1
F-TEST (DF denominator)59
p-value0.671668010767671
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.3511117456307
Sum Squared Residuals15774.1724637681







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1162.8043478260869713.1956521739130
282.804347826086965.19565217391304
3-102.80434782608696-12.8043478260870
4-242.80434782608696-26.8043478260870
5-192.80434782608696-21.8043478260870
682.804347826086965.19565217391304
7242.8043478260869621.1956521739130
8142.8043478260869611.1956521739130
972.804347826086964.19565217391304
1092.804347826086966.19565217391304
11-262.80434782608696-28.8043478260870
12192.8043478260869616.1956521739130
13152.8043478260869612.1956521739130
14-12.80434782608696-3.80434782608696
15-102.80434782608696-12.8043478260870
16-212.80434782608696-23.8043478260870
17-142.80434782608696-16.8043478260870
18-272.80434782608696-29.8043478260870
19262.8043478260869623.1956521739130
20232.8043478260869620.1956521739130
2152.804347826086962.19565217391304
22192.8043478260869616.1956521739130
23-192.80434782608696-21.8043478260870
24242.8043478260869621.1956521739130
25172.8043478260869614.1956521739130
2612.80434782608696-1.80434782608696
27-92.80434782608696-11.8043478260870
28-162.80434782608696-18.8043478260870
29-212.80434782608696-23.8043478260870
30-142.80434782608696-16.8043478260870
31312.8043478260869628.1956521739130
32272.8043478260869624.1956521739130
33102.804347826086967.19565217391304
34122.804347826086969.19565217391304
35-232.80434782608696-25.8043478260870
36132.8043478260869610.1956521739130
37262.8043478260869623.1956521739130
38-12.80434782608696-3.80434782608696
3942.804347826086961.19565217391304
40-162.80434782608696-18.8043478260870
41-52.80434782608696-7.80434782608696
4292.804347826086966.19565217391304
43232.8043478260869620.1956521739130
4492.804347826086966.19565217391304
4522.80434782608696-0.804347826086957
46100.733333333333339.26666666666667
47-290.733333333333334-29.7333333333333
48170.7333333333333316.2666666666667
4990.733333333333338.26666666666667
5090.733333333333338.26666666666667
51-100.73333333333333-10.7333333333333
52-230.733333333333334-23.7333333333333
53130.7333333333333312.2666666666667
54130.7333333333333312.2666666666667
55-90.73333333333333-9.73333333333333
5690.733333333333338.26666666666667
5750.7333333333333324.26666666666667
5880.733333333333337.26666666666667
59-180.733333333333334-18.7333333333333
6070.733333333333336.26666666666667
6142.804347826086961.19565217391304

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 16 & 2.80434782608697 & 13.1956521739130 \tabularnewline
2 & 8 & 2.80434782608696 & 5.19565217391304 \tabularnewline
3 & -10 & 2.80434782608696 & -12.8043478260870 \tabularnewline
4 & -24 & 2.80434782608696 & -26.8043478260870 \tabularnewline
5 & -19 & 2.80434782608696 & -21.8043478260870 \tabularnewline
6 & 8 & 2.80434782608696 & 5.19565217391304 \tabularnewline
7 & 24 & 2.80434782608696 & 21.1956521739130 \tabularnewline
8 & 14 & 2.80434782608696 & 11.1956521739130 \tabularnewline
9 & 7 & 2.80434782608696 & 4.19565217391304 \tabularnewline
10 & 9 & 2.80434782608696 & 6.19565217391304 \tabularnewline
11 & -26 & 2.80434782608696 & -28.8043478260870 \tabularnewline
12 & 19 & 2.80434782608696 & 16.1956521739130 \tabularnewline
13 & 15 & 2.80434782608696 & 12.1956521739130 \tabularnewline
14 & -1 & 2.80434782608696 & -3.80434782608696 \tabularnewline
15 & -10 & 2.80434782608696 & -12.8043478260870 \tabularnewline
16 & -21 & 2.80434782608696 & -23.8043478260870 \tabularnewline
17 & -14 & 2.80434782608696 & -16.8043478260870 \tabularnewline
18 & -27 & 2.80434782608696 & -29.8043478260870 \tabularnewline
19 & 26 & 2.80434782608696 & 23.1956521739130 \tabularnewline
20 & 23 & 2.80434782608696 & 20.1956521739130 \tabularnewline
21 & 5 & 2.80434782608696 & 2.19565217391304 \tabularnewline
22 & 19 & 2.80434782608696 & 16.1956521739130 \tabularnewline
23 & -19 & 2.80434782608696 & -21.8043478260870 \tabularnewline
24 & 24 & 2.80434782608696 & 21.1956521739130 \tabularnewline
25 & 17 & 2.80434782608696 & 14.1956521739130 \tabularnewline
26 & 1 & 2.80434782608696 & -1.80434782608696 \tabularnewline
27 & -9 & 2.80434782608696 & -11.8043478260870 \tabularnewline
28 & -16 & 2.80434782608696 & -18.8043478260870 \tabularnewline
29 & -21 & 2.80434782608696 & -23.8043478260870 \tabularnewline
30 & -14 & 2.80434782608696 & -16.8043478260870 \tabularnewline
31 & 31 & 2.80434782608696 & 28.1956521739130 \tabularnewline
32 & 27 & 2.80434782608696 & 24.1956521739130 \tabularnewline
33 & 10 & 2.80434782608696 & 7.19565217391304 \tabularnewline
34 & 12 & 2.80434782608696 & 9.19565217391304 \tabularnewline
35 & -23 & 2.80434782608696 & -25.8043478260870 \tabularnewline
36 & 13 & 2.80434782608696 & 10.1956521739130 \tabularnewline
37 & 26 & 2.80434782608696 & 23.1956521739130 \tabularnewline
38 & -1 & 2.80434782608696 & -3.80434782608696 \tabularnewline
39 & 4 & 2.80434782608696 & 1.19565217391304 \tabularnewline
40 & -16 & 2.80434782608696 & -18.8043478260870 \tabularnewline
41 & -5 & 2.80434782608696 & -7.80434782608696 \tabularnewline
42 & 9 & 2.80434782608696 & 6.19565217391304 \tabularnewline
43 & 23 & 2.80434782608696 & 20.1956521739130 \tabularnewline
44 & 9 & 2.80434782608696 & 6.19565217391304 \tabularnewline
45 & 2 & 2.80434782608696 & -0.804347826086957 \tabularnewline
46 & 10 & 0.73333333333333 & 9.26666666666667 \tabularnewline
47 & -29 & 0.733333333333334 & -29.7333333333333 \tabularnewline
48 & 17 & 0.73333333333333 & 16.2666666666667 \tabularnewline
49 & 9 & 0.73333333333333 & 8.26666666666667 \tabularnewline
50 & 9 & 0.73333333333333 & 8.26666666666667 \tabularnewline
51 & -10 & 0.73333333333333 & -10.7333333333333 \tabularnewline
52 & -23 & 0.733333333333334 & -23.7333333333333 \tabularnewline
53 & 13 & 0.73333333333333 & 12.2666666666667 \tabularnewline
54 & 13 & 0.73333333333333 & 12.2666666666667 \tabularnewline
55 & -9 & 0.73333333333333 & -9.73333333333333 \tabularnewline
56 & 9 & 0.73333333333333 & 8.26666666666667 \tabularnewline
57 & 5 & 0.733333333333332 & 4.26666666666667 \tabularnewline
58 & 8 & 0.73333333333333 & 7.26666666666667 \tabularnewline
59 & -18 & 0.733333333333334 & -18.7333333333333 \tabularnewline
60 & 7 & 0.73333333333333 & 6.26666666666667 \tabularnewline
61 & 4 & 2.80434782608696 & 1.19565217391304 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25317&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]16[/C][C]2.80434782608697[/C][C]13.1956521739130[/C][/ROW]
[ROW][C]2[/C][C]8[/C][C]2.80434782608696[/C][C]5.19565217391304[/C][/ROW]
[ROW][C]3[/C][C]-10[/C][C]2.80434782608696[/C][C]-12.8043478260870[/C][/ROW]
[ROW][C]4[/C][C]-24[/C][C]2.80434782608696[/C][C]-26.8043478260870[/C][/ROW]
[ROW][C]5[/C][C]-19[/C][C]2.80434782608696[/C][C]-21.8043478260870[/C][/ROW]
[ROW][C]6[/C][C]8[/C][C]2.80434782608696[/C][C]5.19565217391304[/C][/ROW]
[ROW][C]7[/C][C]24[/C][C]2.80434782608696[/C][C]21.1956521739130[/C][/ROW]
[ROW][C]8[/C][C]14[/C][C]2.80434782608696[/C][C]11.1956521739130[/C][/ROW]
[ROW][C]9[/C][C]7[/C][C]2.80434782608696[/C][C]4.19565217391304[/C][/ROW]
[ROW][C]10[/C][C]9[/C][C]2.80434782608696[/C][C]6.19565217391304[/C][/ROW]
[ROW][C]11[/C][C]-26[/C][C]2.80434782608696[/C][C]-28.8043478260870[/C][/ROW]
[ROW][C]12[/C][C]19[/C][C]2.80434782608696[/C][C]16.1956521739130[/C][/ROW]
[ROW][C]13[/C][C]15[/C][C]2.80434782608696[/C][C]12.1956521739130[/C][/ROW]
[ROW][C]14[/C][C]-1[/C][C]2.80434782608696[/C][C]-3.80434782608696[/C][/ROW]
[ROW][C]15[/C][C]-10[/C][C]2.80434782608696[/C][C]-12.8043478260870[/C][/ROW]
[ROW][C]16[/C][C]-21[/C][C]2.80434782608696[/C][C]-23.8043478260870[/C][/ROW]
[ROW][C]17[/C][C]-14[/C][C]2.80434782608696[/C][C]-16.8043478260870[/C][/ROW]
[ROW][C]18[/C][C]-27[/C][C]2.80434782608696[/C][C]-29.8043478260870[/C][/ROW]
[ROW][C]19[/C][C]26[/C][C]2.80434782608696[/C][C]23.1956521739130[/C][/ROW]
[ROW][C]20[/C][C]23[/C][C]2.80434782608696[/C][C]20.1956521739130[/C][/ROW]
[ROW][C]21[/C][C]5[/C][C]2.80434782608696[/C][C]2.19565217391304[/C][/ROW]
[ROW][C]22[/C][C]19[/C][C]2.80434782608696[/C][C]16.1956521739130[/C][/ROW]
[ROW][C]23[/C][C]-19[/C][C]2.80434782608696[/C][C]-21.8043478260870[/C][/ROW]
[ROW][C]24[/C][C]24[/C][C]2.80434782608696[/C][C]21.1956521739130[/C][/ROW]
[ROW][C]25[/C][C]17[/C][C]2.80434782608696[/C][C]14.1956521739130[/C][/ROW]
[ROW][C]26[/C][C]1[/C][C]2.80434782608696[/C][C]-1.80434782608696[/C][/ROW]
[ROW][C]27[/C][C]-9[/C][C]2.80434782608696[/C][C]-11.8043478260870[/C][/ROW]
[ROW][C]28[/C][C]-16[/C][C]2.80434782608696[/C][C]-18.8043478260870[/C][/ROW]
[ROW][C]29[/C][C]-21[/C][C]2.80434782608696[/C][C]-23.8043478260870[/C][/ROW]
[ROW][C]30[/C][C]-14[/C][C]2.80434782608696[/C][C]-16.8043478260870[/C][/ROW]
[ROW][C]31[/C][C]31[/C][C]2.80434782608696[/C][C]28.1956521739130[/C][/ROW]
[ROW][C]32[/C][C]27[/C][C]2.80434782608696[/C][C]24.1956521739130[/C][/ROW]
[ROW][C]33[/C][C]10[/C][C]2.80434782608696[/C][C]7.19565217391304[/C][/ROW]
[ROW][C]34[/C][C]12[/C][C]2.80434782608696[/C][C]9.19565217391304[/C][/ROW]
[ROW][C]35[/C][C]-23[/C][C]2.80434782608696[/C][C]-25.8043478260870[/C][/ROW]
[ROW][C]36[/C][C]13[/C][C]2.80434782608696[/C][C]10.1956521739130[/C][/ROW]
[ROW][C]37[/C][C]26[/C][C]2.80434782608696[/C][C]23.1956521739130[/C][/ROW]
[ROW][C]38[/C][C]-1[/C][C]2.80434782608696[/C][C]-3.80434782608696[/C][/ROW]
[ROW][C]39[/C][C]4[/C][C]2.80434782608696[/C][C]1.19565217391304[/C][/ROW]
[ROW][C]40[/C][C]-16[/C][C]2.80434782608696[/C][C]-18.8043478260870[/C][/ROW]
[ROW][C]41[/C][C]-5[/C][C]2.80434782608696[/C][C]-7.80434782608696[/C][/ROW]
[ROW][C]42[/C][C]9[/C][C]2.80434782608696[/C][C]6.19565217391304[/C][/ROW]
[ROW][C]43[/C][C]23[/C][C]2.80434782608696[/C][C]20.1956521739130[/C][/ROW]
[ROW][C]44[/C][C]9[/C][C]2.80434782608696[/C][C]6.19565217391304[/C][/ROW]
[ROW][C]45[/C][C]2[/C][C]2.80434782608696[/C][C]-0.804347826086957[/C][/ROW]
[ROW][C]46[/C][C]10[/C][C]0.73333333333333[/C][C]9.26666666666667[/C][/ROW]
[ROW][C]47[/C][C]-29[/C][C]0.733333333333334[/C][C]-29.7333333333333[/C][/ROW]
[ROW][C]48[/C][C]17[/C][C]0.73333333333333[/C][C]16.2666666666667[/C][/ROW]
[ROW][C]49[/C][C]9[/C][C]0.73333333333333[/C][C]8.26666666666667[/C][/ROW]
[ROW][C]50[/C][C]9[/C][C]0.73333333333333[/C][C]8.26666666666667[/C][/ROW]
[ROW][C]51[/C][C]-10[/C][C]0.73333333333333[/C][C]-10.7333333333333[/C][/ROW]
[ROW][C]52[/C][C]-23[/C][C]0.733333333333334[/C][C]-23.7333333333333[/C][/ROW]
[ROW][C]53[/C][C]13[/C][C]0.73333333333333[/C][C]12.2666666666667[/C][/ROW]
[ROW][C]54[/C][C]13[/C][C]0.73333333333333[/C][C]12.2666666666667[/C][/ROW]
[ROW][C]55[/C][C]-9[/C][C]0.73333333333333[/C][C]-9.73333333333333[/C][/ROW]
[ROW][C]56[/C][C]9[/C][C]0.73333333333333[/C][C]8.26666666666667[/C][/ROW]
[ROW][C]57[/C][C]5[/C][C]0.733333333333332[/C][C]4.26666666666667[/C][/ROW]
[ROW][C]58[/C][C]8[/C][C]0.73333333333333[/C][C]7.26666666666667[/C][/ROW]
[ROW][C]59[/C][C]-18[/C][C]0.733333333333334[/C][C]-18.7333333333333[/C][/ROW]
[ROW][C]60[/C][C]7[/C][C]0.73333333333333[/C][C]6.26666666666667[/C][/ROW]
[ROW][C]61[/C][C]4[/C][C]2.80434782608696[/C][C]1.19565217391304[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25317&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25317&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
1162.8043478260869713.1956521739130
282.804347826086965.19565217391304
3-102.80434782608696-12.8043478260870
4-242.80434782608696-26.8043478260870
5-192.80434782608696-21.8043478260870
682.804347826086965.19565217391304
7242.8043478260869621.1956521739130
8142.8043478260869611.1956521739130
972.804347826086964.19565217391304
1092.804347826086966.19565217391304
11-262.80434782608696-28.8043478260870
12192.8043478260869616.1956521739130
13152.8043478260869612.1956521739130
14-12.80434782608696-3.80434782608696
15-102.80434782608696-12.8043478260870
16-212.80434782608696-23.8043478260870
17-142.80434782608696-16.8043478260870
18-272.80434782608696-29.8043478260870
19262.8043478260869623.1956521739130
20232.8043478260869620.1956521739130
2152.804347826086962.19565217391304
22192.8043478260869616.1956521739130
23-192.80434782608696-21.8043478260870
24242.8043478260869621.1956521739130
25172.8043478260869614.1956521739130
2612.80434782608696-1.80434782608696
27-92.80434782608696-11.8043478260870
28-162.80434782608696-18.8043478260870
29-212.80434782608696-23.8043478260870
30-142.80434782608696-16.8043478260870
31312.8043478260869628.1956521739130
32272.8043478260869624.1956521739130
33102.804347826086967.19565217391304
34122.804347826086969.19565217391304
35-232.80434782608696-25.8043478260870
36132.8043478260869610.1956521739130
37262.8043478260869623.1956521739130
38-12.80434782608696-3.80434782608696
3942.804347826086961.19565217391304
40-162.80434782608696-18.8043478260870
41-52.80434782608696-7.80434782608696
4292.804347826086966.19565217391304
43232.8043478260869620.1956521739130
4492.804347826086966.19565217391304
4522.80434782608696-0.804347826086957
46100.733333333333339.26666666666667
47-290.733333333333334-29.7333333333333
48170.7333333333333316.2666666666667
4990.733333333333338.26666666666667
5090.733333333333338.26666666666667
51-100.73333333333333-10.7333333333333
52-230.733333333333334-23.7333333333333
53130.7333333333333312.2666666666667
54130.7333333333333312.2666666666667
55-90.73333333333333-9.73333333333333
5690.733333333333338.26666666666667
5750.7333333333333324.26666666666667
5880.733333333333337.26666666666667
59-180.733333333333334-18.7333333333333
6070.733333333333336.26666666666667
6142.804347826086961.19565217391304







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.777686472435250.4446270551294990.222313527564749
60.7033134223482290.5933731553035420.296686577651771
70.7976621493338720.4046757013322550.202337850666128
80.7459366009443860.5081267981112280.254063399055614
90.6486117201056740.7027765597886530.351388279894326
100.5520794679879450.895841064024110.447920532012055
110.7151248025057370.5697503949885260.284875197494263
120.7118637942893980.5762724114212040.288136205710602
130.6686791442469750.662641711506050.331320855753025
140.5838688142866020.8322623714267960.416131185713398
150.542480254238690.915039491522620.45751974576131
160.6136545940102380.7726908119795240.386345405989762
170.5986768680702890.8026462638594220.401323131929711
180.7321602252553960.5356795494892070.267839774744604
190.8045642016016880.3908715967966240.195435798398312
200.8323072319405240.3353855361189530.167692768059476
210.7793813149265520.4412373701468950.220618685073448
220.7758042372185860.4483915255628280.224195762781414
230.8101272091313350.3797455817373310.189872790868665
240.8389302761075080.3221394477849840.161069723892492
250.8243803039431880.3512393921136250.175619696056812
260.7711709819815840.4576580360368320.228829018018416
270.7411182664500640.5177634670998720.258881733549936
280.7591758779308270.4816482441383460.240824122069173
290.824241109383660.3515177812326790.175758890616339
300.8374534897671480.3250930204657050.162546510232852
310.9034572235572290.1930855528855430.0965427764427713
320.9320924294264640.1358151411470720.0679075705735358
330.907963230300290.1840735393994180.092036769699709
340.8825683909112580.2348632181774840.117431609088742
350.9391054485379530.1217891029240940.0608945514620471
360.9200322639009250.159935472198150.079967736099075
370.9449146023395730.1101707953208550.0550853976604274
380.9206941913491380.1586116173017250.0793058086508623
390.8860206607779960.2279586784440070.113979339222004
400.9122545452250450.1754909095499090.0877454547749545
410.8981566253476750.203686749304650.101843374652325
420.856650577871480.2866988442570420.143349422128521
430.8630743663357810.2738512673284370.136925633664219
440.814679770226220.3706404595475610.185320229773781
450.74850883403590.5029823319281990.251491165964099
460.6931843938004640.6136312123990720.306815606199536
470.8725184949205320.2549630101589350.127481505079468
480.880890872923380.2382182541532410.119109127076620
490.8399038586461130.3201922827077740.160096141353887
500.7912246153642380.4175507692715230.208775384635762
510.741800188720970.516399622558060.25819981127903
520.8868051255906060.2263897488187880.113194874409394
530.8544358352655290.2911283294689420.145564164734471
540.8270825726820480.3458348546359030.172917427317952
550.7711049848293110.4577900303413780.228895015170689
560.6556470090475790.6887059819048420.344352990952421

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.77768647243525 & 0.444627055129499 & 0.222313527564749 \tabularnewline
6 & 0.703313422348229 & 0.593373155303542 & 0.296686577651771 \tabularnewline
7 & 0.797662149333872 & 0.404675701332255 & 0.202337850666128 \tabularnewline
8 & 0.745936600944386 & 0.508126798111228 & 0.254063399055614 \tabularnewline
9 & 0.648611720105674 & 0.702776559788653 & 0.351388279894326 \tabularnewline
10 & 0.552079467987945 & 0.89584106402411 & 0.447920532012055 \tabularnewline
11 & 0.715124802505737 & 0.569750394988526 & 0.284875197494263 \tabularnewline
12 & 0.711863794289398 & 0.576272411421204 & 0.288136205710602 \tabularnewline
13 & 0.668679144246975 & 0.66264171150605 & 0.331320855753025 \tabularnewline
14 & 0.583868814286602 & 0.832262371426796 & 0.416131185713398 \tabularnewline
15 & 0.54248025423869 & 0.91503949152262 & 0.45751974576131 \tabularnewline
16 & 0.613654594010238 & 0.772690811979524 & 0.386345405989762 \tabularnewline
17 & 0.598676868070289 & 0.802646263859422 & 0.401323131929711 \tabularnewline
18 & 0.732160225255396 & 0.535679549489207 & 0.267839774744604 \tabularnewline
19 & 0.804564201601688 & 0.390871596796624 & 0.195435798398312 \tabularnewline
20 & 0.832307231940524 & 0.335385536118953 & 0.167692768059476 \tabularnewline
21 & 0.779381314926552 & 0.441237370146895 & 0.220618685073448 \tabularnewline
22 & 0.775804237218586 & 0.448391525562828 & 0.224195762781414 \tabularnewline
23 & 0.810127209131335 & 0.379745581737331 & 0.189872790868665 \tabularnewline
24 & 0.838930276107508 & 0.322139447784984 & 0.161069723892492 \tabularnewline
25 & 0.824380303943188 & 0.351239392113625 & 0.175619696056812 \tabularnewline
26 & 0.771170981981584 & 0.457658036036832 & 0.228829018018416 \tabularnewline
27 & 0.741118266450064 & 0.517763467099872 & 0.258881733549936 \tabularnewline
28 & 0.759175877930827 & 0.481648244138346 & 0.240824122069173 \tabularnewline
29 & 0.82424110938366 & 0.351517781232679 & 0.175758890616339 \tabularnewline
30 & 0.837453489767148 & 0.325093020465705 & 0.162546510232852 \tabularnewline
31 & 0.903457223557229 & 0.193085552885543 & 0.0965427764427713 \tabularnewline
32 & 0.932092429426464 & 0.135815141147072 & 0.0679075705735358 \tabularnewline
33 & 0.90796323030029 & 0.184073539399418 & 0.092036769699709 \tabularnewline
34 & 0.882568390911258 & 0.234863218177484 & 0.117431609088742 \tabularnewline
35 & 0.939105448537953 & 0.121789102924094 & 0.0608945514620471 \tabularnewline
36 & 0.920032263900925 & 0.15993547219815 & 0.079967736099075 \tabularnewline
37 & 0.944914602339573 & 0.110170795320855 & 0.0550853976604274 \tabularnewline
38 & 0.920694191349138 & 0.158611617301725 & 0.0793058086508623 \tabularnewline
39 & 0.886020660777996 & 0.227958678444007 & 0.113979339222004 \tabularnewline
40 & 0.912254545225045 & 0.175490909549909 & 0.0877454547749545 \tabularnewline
41 & 0.898156625347675 & 0.20368674930465 & 0.101843374652325 \tabularnewline
42 & 0.85665057787148 & 0.286698844257042 & 0.143349422128521 \tabularnewline
43 & 0.863074366335781 & 0.273851267328437 & 0.136925633664219 \tabularnewline
44 & 0.81467977022622 & 0.370640459547561 & 0.185320229773781 \tabularnewline
45 & 0.7485088340359 & 0.502982331928199 & 0.251491165964099 \tabularnewline
46 & 0.693184393800464 & 0.613631212399072 & 0.306815606199536 \tabularnewline
47 & 0.872518494920532 & 0.254963010158935 & 0.127481505079468 \tabularnewline
48 & 0.88089087292338 & 0.238218254153241 & 0.119109127076620 \tabularnewline
49 & 0.839903858646113 & 0.320192282707774 & 0.160096141353887 \tabularnewline
50 & 0.791224615364238 & 0.417550769271523 & 0.208775384635762 \tabularnewline
51 & 0.74180018872097 & 0.51639962255806 & 0.25819981127903 \tabularnewline
52 & 0.886805125590606 & 0.226389748818788 & 0.113194874409394 \tabularnewline
53 & 0.854435835265529 & 0.291128329468942 & 0.145564164734471 \tabularnewline
54 & 0.827082572682048 & 0.345834854635903 & 0.172917427317952 \tabularnewline
55 & 0.771104984829311 & 0.457790030341378 & 0.228895015170689 \tabularnewline
56 & 0.655647009047579 & 0.688705981904842 & 0.344352990952421 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25317&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.77768647243525[/C][C]0.444627055129499[/C][C]0.222313527564749[/C][/ROW]
[ROW][C]6[/C][C]0.703313422348229[/C][C]0.593373155303542[/C][C]0.296686577651771[/C][/ROW]
[ROW][C]7[/C][C]0.797662149333872[/C][C]0.404675701332255[/C][C]0.202337850666128[/C][/ROW]
[ROW][C]8[/C][C]0.745936600944386[/C][C]0.508126798111228[/C][C]0.254063399055614[/C][/ROW]
[ROW][C]9[/C][C]0.648611720105674[/C][C]0.702776559788653[/C][C]0.351388279894326[/C][/ROW]
[ROW][C]10[/C][C]0.552079467987945[/C][C]0.89584106402411[/C][C]0.447920532012055[/C][/ROW]
[ROW][C]11[/C][C]0.715124802505737[/C][C]0.569750394988526[/C][C]0.284875197494263[/C][/ROW]
[ROW][C]12[/C][C]0.711863794289398[/C][C]0.576272411421204[/C][C]0.288136205710602[/C][/ROW]
[ROW][C]13[/C][C]0.668679144246975[/C][C]0.66264171150605[/C][C]0.331320855753025[/C][/ROW]
[ROW][C]14[/C][C]0.583868814286602[/C][C]0.832262371426796[/C][C]0.416131185713398[/C][/ROW]
[ROW][C]15[/C][C]0.54248025423869[/C][C]0.91503949152262[/C][C]0.45751974576131[/C][/ROW]
[ROW][C]16[/C][C]0.613654594010238[/C][C]0.772690811979524[/C][C]0.386345405989762[/C][/ROW]
[ROW][C]17[/C][C]0.598676868070289[/C][C]0.802646263859422[/C][C]0.401323131929711[/C][/ROW]
[ROW][C]18[/C][C]0.732160225255396[/C][C]0.535679549489207[/C][C]0.267839774744604[/C][/ROW]
[ROW][C]19[/C][C]0.804564201601688[/C][C]0.390871596796624[/C][C]0.195435798398312[/C][/ROW]
[ROW][C]20[/C][C]0.832307231940524[/C][C]0.335385536118953[/C][C]0.167692768059476[/C][/ROW]
[ROW][C]21[/C][C]0.779381314926552[/C][C]0.441237370146895[/C][C]0.220618685073448[/C][/ROW]
[ROW][C]22[/C][C]0.775804237218586[/C][C]0.448391525562828[/C][C]0.224195762781414[/C][/ROW]
[ROW][C]23[/C][C]0.810127209131335[/C][C]0.379745581737331[/C][C]0.189872790868665[/C][/ROW]
[ROW][C]24[/C][C]0.838930276107508[/C][C]0.322139447784984[/C][C]0.161069723892492[/C][/ROW]
[ROW][C]25[/C][C]0.824380303943188[/C][C]0.351239392113625[/C][C]0.175619696056812[/C][/ROW]
[ROW][C]26[/C][C]0.771170981981584[/C][C]0.457658036036832[/C][C]0.228829018018416[/C][/ROW]
[ROW][C]27[/C][C]0.741118266450064[/C][C]0.517763467099872[/C][C]0.258881733549936[/C][/ROW]
[ROW][C]28[/C][C]0.759175877930827[/C][C]0.481648244138346[/C][C]0.240824122069173[/C][/ROW]
[ROW][C]29[/C][C]0.82424110938366[/C][C]0.351517781232679[/C][C]0.175758890616339[/C][/ROW]
[ROW][C]30[/C][C]0.837453489767148[/C][C]0.325093020465705[/C][C]0.162546510232852[/C][/ROW]
[ROW][C]31[/C][C]0.903457223557229[/C][C]0.193085552885543[/C][C]0.0965427764427713[/C][/ROW]
[ROW][C]32[/C][C]0.932092429426464[/C][C]0.135815141147072[/C][C]0.0679075705735358[/C][/ROW]
[ROW][C]33[/C][C]0.90796323030029[/C][C]0.184073539399418[/C][C]0.092036769699709[/C][/ROW]
[ROW][C]34[/C][C]0.882568390911258[/C][C]0.234863218177484[/C][C]0.117431609088742[/C][/ROW]
[ROW][C]35[/C][C]0.939105448537953[/C][C]0.121789102924094[/C][C]0.0608945514620471[/C][/ROW]
[ROW][C]36[/C][C]0.920032263900925[/C][C]0.15993547219815[/C][C]0.079967736099075[/C][/ROW]
[ROW][C]37[/C][C]0.944914602339573[/C][C]0.110170795320855[/C][C]0.0550853976604274[/C][/ROW]
[ROW][C]38[/C][C]0.920694191349138[/C][C]0.158611617301725[/C][C]0.0793058086508623[/C][/ROW]
[ROW][C]39[/C][C]0.886020660777996[/C][C]0.227958678444007[/C][C]0.113979339222004[/C][/ROW]
[ROW][C]40[/C][C]0.912254545225045[/C][C]0.175490909549909[/C][C]0.0877454547749545[/C][/ROW]
[ROW][C]41[/C][C]0.898156625347675[/C][C]0.20368674930465[/C][C]0.101843374652325[/C][/ROW]
[ROW][C]42[/C][C]0.85665057787148[/C][C]0.286698844257042[/C][C]0.143349422128521[/C][/ROW]
[ROW][C]43[/C][C]0.863074366335781[/C][C]0.273851267328437[/C][C]0.136925633664219[/C][/ROW]
[ROW][C]44[/C][C]0.81467977022622[/C][C]0.370640459547561[/C][C]0.185320229773781[/C][/ROW]
[ROW][C]45[/C][C]0.7485088340359[/C][C]0.502982331928199[/C][C]0.251491165964099[/C][/ROW]
[ROW][C]46[/C][C]0.693184393800464[/C][C]0.613631212399072[/C][C]0.306815606199536[/C][/ROW]
[ROW][C]47[/C][C]0.872518494920532[/C][C]0.254963010158935[/C][C]0.127481505079468[/C][/ROW]
[ROW][C]48[/C][C]0.88089087292338[/C][C]0.238218254153241[/C][C]0.119109127076620[/C][/ROW]
[ROW][C]49[/C][C]0.839903858646113[/C][C]0.320192282707774[/C][C]0.160096141353887[/C][/ROW]
[ROW][C]50[/C][C]0.791224615364238[/C][C]0.417550769271523[/C][C]0.208775384635762[/C][/ROW]
[ROW][C]51[/C][C]0.74180018872097[/C][C]0.51639962255806[/C][C]0.25819981127903[/C][/ROW]
[ROW][C]52[/C][C]0.886805125590606[/C][C]0.226389748818788[/C][C]0.113194874409394[/C][/ROW]
[ROW][C]53[/C][C]0.854435835265529[/C][C]0.291128329468942[/C][C]0.145564164734471[/C][/ROW]
[ROW][C]54[/C][C]0.827082572682048[/C][C]0.345834854635903[/C][C]0.172917427317952[/C][/ROW]
[ROW][C]55[/C][C]0.771104984829311[/C][C]0.457790030341378[/C][C]0.228895015170689[/C][/ROW]
[ROW][C]56[/C][C]0.655647009047579[/C][C]0.688705981904842[/C][C]0.344352990952421[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25317&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25317&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.777686472435250.4446270551294990.222313527564749
60.7033134223482290.5933731553035420.296686577651771
70.7976621493338720.4046757013322550.202337850666128
80.7459366009443860.5081267981112280.254063399055614
90.6486117201056740.7027765597886530.351388279894326
100.5520794679879450.895841064024110.447920532012055
110.7151248025057370.5697503949885260.284875197494263
120.7118637942893980.5762724114212040.288136205710602
130.6686791442469750.662641711506050.331320855753025
140.5838688142866020.8322623714267960.416131185713398
150.542480254238690.915039491522620.45751974576131
160.6136545940102380.7726908119795240.386345405989762
170.5986768680702890.8026462638594220.401323131929711
180.7321602252553960.5356795494892070.267839774744604
190.8045642016016880.3908715967966240.195435798398312
200.8323072319405240.3353855361189530.167692768059476
210.7793813149265520.4412373701468950.220618685073448
220.7758042372185860.4483915255628280.224195762781414
230.8101272091313350.3797455817373310.189872790868665
240.8389302761075080.3221394477849840.161069723892492
250.8243803039431880.3512393921136250.175619696056812
260.7711709819815840.4576580360368320.228829018018416
270.7411182664500640.5177634670998720.258881733549936
280.7591758779308270.4816482441383460.240824122069173
290.824241109383660.3515177812326790.175758890616339
300.8374534897671480.3250930204657050.162546510232852
310.9034572235572290.1930855528855430.0965427764427713
320.9320924294264640.1358151411470720.0679075705735358
330.907963230300290.1840735393994180.092036769699709
340.8825683909112580.2348632181774840.117431609088742
350.9391054485379530.1217891029240940.0608945514620471
360.9200322639009250.159935472198150.079967736099075
370.9449146023395730.1101707953208550.0550853976604274
380.9206941913491380.1586116173017250.0793058086508623
390.8860206607779960.2279586784440070.113979339222004
400.9122545452250450.1754909095499090.0877454547749545
410.8981566253476750.203686749304650.101843374652325
420.856650577871480.2866988442570420.143349422128521
430.8630743663357810.2738512673284370.136925633664219
440.814679770226220.3706404595475610.185320229773781
450.74850883403590.5029823319281990.251491165964099
460.6931843938004640.6136312123990720.306815606199536
470.8725184949205320.2549630101589350.127481505079468
480.880890872923380.2382182541532410.119109127076620
490.8399038586461130.3201922827077740.160096141353887
500.7912246153642380.4175507692715230.208775384635762
510.741800188720970.516399622558060.25819981127903
520.8868051255906060.2263897488187880.113194874409394
530.8544358352655290.2911283294689420.145564164734471
540.8270825726820480.3458348546359030.172917427317952
550.7711049848293110.4577900303413780.228895015170689
560.6556470090475790.6887059819048420.344352990952421







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

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