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 computationThu, 24 Dec 2009 08:44:40 -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/2009/Dec/24/t1261669536kyphqoi0c56lz0s.htm/, Retrieved Mon, 06 May 2024 20:24:50 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70667, Retrieved Mon, 06 May 2024 20:24:50 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact91
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [dummy variabele m...] [2009-12-24 15:44:40] [454b2df2fae01897bad5ff38ed3cc924] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,7	0
8,2	0
8,3	0
8,5	0
8,6	0
8,5	0
8,2	0
8,1	0
7,9	0
8,6	0
8,7	0
8,7	0
8,5	0
8,4	0
8,5	0
8,7	0
8,7	0
8,6	0
8,5	0
8,3	0
8	0
8,2	0
8,1	0
8,1	0
8	0
7,9	0
7,9	0
8	0
8	0
7,9	0
8	0
7,7	0
7,2	0
7,5	0
7,3	0
7	0
7	0
7	0
7,2	0
7,3	0
7,1	0
6,8	0
6,4	0
6,1	0
6,5	0
7,7	0
7,9	0
7,5	1
6,9	1
6,6	1
6,9	1
7,7	1
8	1
8	1
7,7	1
7,3	1
7,4	1
8,1	1
8,3	1
8,2	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=70667&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=70667&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70667&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
Y[t] = + 8.0288 -0.321999999999999X[t] -0.144400000000006M1[t] -0.344399999999999M2[t] -0.204399999999999M3[t] + 0.0756000000000006M4[t] + 0.115600000000000M5[t] -0.00439999999999969M6[t] -0.204399999999999M7[t] -0.464399999999999M8[t] -0.564399999999999M9[t] + 0.0556000000000004M10[t] + 0.0956000000000006M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  8.0288 -0.321999999999999X[t] -0.144400000000006M1[t] -0.344399999999999M2[t] -0.204399999999999M3[t] +  0.0756000000000006M4[t] +  0.115600000000000M5[t] -0.00439999999999969M6[t] -0.204399999999999M7[t] -0.464399999999999M8[t] -0.564399999999999M9[t] +  0.0556000000000004M10[t] +  0.0956000000000006M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70667&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  8.0288 -0.321999999999999X[t] -0.144400000000006M1[t] -0.344399999999999M2[t] -0.204399999999999M3[t] +  0.0756000000000006M4[t] +  0.115600000000000M5[t] -0.00439999999999969M6[t] -0.204399999999999M7[t] -0.464399999999999M8[t] -0.564399999999999M9[t] +  0.0556000000000004M10[t] +  0.0956000000000006M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70667&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70667&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
Y[t] = + 8.0288 -0.321999999999999X[t] -0.144400000000006M1[t] -0.344399999999999M2[t] -0.204399999999999M3[t] + 0.0756000000000006M4[t] + 0.115600000000000M5[t] -0.00439999999999969M6[t] -0.204399999999999M7[t] -0.464399999999999M8[t] -0.564399999999999M9[t] + 0.0556000000000004M10[t] + 0.0956000000000006M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.02880.31663425.356700
X-0.3219999999999990.215442-1.49460.1417030.070851
M1-0.1444000000000060.433033-0.33350.7402690.370134
M2-0.3443999999999990.433033-0.79530.4304250.215213
M3-0.2043999999999990.433033-0.4720.6390970.319549
M40.07560000000000060.4330330.17460.8621580.431079
M50.1156000000000000.4330330.2670.7906720.395336
M6-0.004399999999999690.433033-0.01020.9919360.495968
M7-0.2043999999999990.433033-0.4720.6390970.319549
M8-0.4643999999999990.433033-1.07240.2890.1445
M9-0.5643999999999990.433033-1.30340.1987990.099399
M100.05560000000000040.4330330.12840.8983830.449191
M110.09560000000000060.4330330.22080.8262290.413115

\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) & 8.0288 & 0.316634 & 25.3567 & 0 & 0 \tabularnewline
X & -0.321999999999999 & 0.215442 & -1.4946 & 0.141703 & 0.070851 \tabularnewline
M1 & -0.144400000000006 & 0.433033 & -0.3335 & 0.740269 & 0.370134 \tabularnewline
M2 & -0.344399999999999 & 0.433033 & -0.7953 & 0.430425 & 0.215213 \tabularnewline
M3 & -0.204399999999999 & 0.433033 & -0.472 & 0.639097 & 0.319549 \tabularnewline
M4 & 0.0756000000000006 & 0.433033 & 0.1746 & 0.862158 & 0.431079 \tabularnewline
M5 & 0.115600000000000 & 0.433033 & 0.267 & 0.790672 & 0.395336 \tabularnewline
M6 & -0.00439999999999969 & 0.433033 & -0.0102 & 0.991936 & 0.495968 \tabularnewline
M7 & -0.204399999999999 & 0.433033 & -0.472 & 0.639097 & 0.319549 \tabularnewline
M8 & -0.464399999999999 & 0.433033 & -1.0724 & 0.289 & 0.1445 \tabularnewline
M9 & -0.564399999999999 & 0.433033 & -1.3034 & 0.198799 & 0.099399 \tabularnewline
M10 & 0.0556000000000004 & 0.433033 & 0.1284 & 0.898383 & 0.449191 \tabularnewline
M11 & 0.0956000000000006 & 0.433033 & 0.2208 & 0.826229 & 0.413115 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70667&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]8.0288[/C][C]0.316634[/C][C]25.3567[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.321999999999999[/C][C]0.215442[/C][C]-1.4946[/C][C]0.141703[/C][C]0.070851[/C][/ROW]
[ROW][C]M1[/C][C]-0.144400000000006[/C][C]0.433033[/C][C]-0.3335[/C][C]0.740269[/C][C]0.370134[/C][/ROW]
[ROW][C]M2[/C][C]-0.344399999999999[/C][C]0.433033[/C][C]-0.7953[/C][C]0.430425[/C][C]0.215213[/C][/ROW]
[ROW][C]M3[/C][C]-0.204399999999999[/C][C]0.433033[/C][C]-0.472[/C][C]0.639097[/C][C]0.319549[/C][/ROW]
[ROW][C]M4[/C][C]0.0756000000000006[/C][C]0.433033[/C][C]0.1746[/C][C]0.862158[/C][C]0.431079[/C][/ROW]
[ROW][C]M5[/C][C]0.115600000000000[/C][C]0.433033[/C][C]0.267[/C][C]0.790672[/C][C]0.395336[/C][/ROW]
[ROW][C]M6[/C][C]-0.00439999999999969[/C][C]0.433033[/C][C]-0.0102[/C][C]0.991936[/C][C]0.495968[/C][/ROW]
[ROW][C]M7[/C][C]-0.204399999999999[/C][C]0.433033[/C][C]-0.472[/C][C]0.639097[/C][C]0.319549[/C][/ROW]
[ROW][C]M8[/C][C]-0.464399999999999[/C][C]0.433033[/C][C]-1.0724[/C][C]0.289[/C][C]0.1445[/C][/ROW]
[ROW][C]M9[/C][C]-0.564399999999999[/C][C]0.433033[/C][C]-1.3034[/C][C]0.198799[/C][C]0.099399[/C][/ROW]
[ROW][C]M10[/C][C]0.0556000000000004[/C][C]0.433033[/C][C]0.1284[/C][C]0.898383[/C][C]0.449191[/C][/ROW]
[ROW][C]M11[/C][C]0.0956000000000006[/C][C]0.433033[/C][C]0.2208[/C][C]0.826229[/C][C]0.413115[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70667&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70667&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)8.02880.31663425.356700
X-0.3219999999999990.215442-1.49460.1417030.070851
M1-0.1444000000000060.433033-0.33350.7402690.370134
M2-0.3443999999999990.433033-0.79530.4304250.215213
M3-0.2043999999999990.433033-0.4720.6390970.319549
M40.07560000000000060.4330330.17460.8621580.431079
M50.1156000000000000.4330330.2670.7906720.395336
M6-0.004399999999999690.433033-0.01020.9919360.495968
M7-0.2043999999999990.433033-0.4720.6390970.319549
M8-0.4643999999999990.433033-1.07240.2890.1445
M9-0.5643999999999990.433033-1.30340.1987990.099399
M100.05560000000000040.4330330.12840.8983830.449191
M110.09560000000000060.4330330.22080.8262290.413115







Multiple Linear Regression - Regression Statistics
Multiple R0.387829572007958
R-squared0.150411776923876
Adjusted R-squared-0.066504365138113
F-TEST (value)0.693409791885807
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.749314651603673
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.68128726718289
Sum Squared Residuals21.8151599999999

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.387829572007958 \tabularnewline
R-squared & 0.150411776923876 \tabularnewline
Adjusted R-squared & -0.066504365138113 \tabularnewline
F-TEST (value) & 0.693409791885807 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.749314651603673 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.68128726718289 \tabularnewline
Sum Squared Residuals & 21.8151599999999 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70667&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.387829572007958[/C][/ROW]
[ROW][C]R-squared[/C][C]0.150411776923876[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.066504365138113[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.693409791885807[/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]0.749314651603673[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.68128726718289[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]21.8151599999999[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70667&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70667&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.387829572007958
R-squared0.150411776923876
Adjusted R-squared-0.066504365138113
F-TEST (value)0.693409791885807
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.749314651603673
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.68128726718289
Sum Squared Residuals21.8151599999999







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.77.884400000000030.815599999999974
28.27.68440.5156
38.37.82440.4756
48.58.10440.395600000000000
58.68.14440.4556
68.58.02440.4756
78.27.82440.375599999999999
88.17.56440.5356
97.97.46440.435600000000000
108.68.08440.5156
118.78.12440.575599999999999
128.78.02880.6712
138.57.88440.615600000000007
148.47.68440.7156
158.57.82440.6756
168.78.10440.5956
178.78.14440.5556
188.68.02440.5756
198.57.82440.6756
208.37.56440.7356
2187.46440.5356
228.28.08440.115600000000000
238.18.1244-0.0244000000000003
248.18.02880.0712000000000006
2587.88440.115600000000007
267.97.68440.2156
277.97.82440.0756000000000002
2888.1044-0.1044
2988.1444-0.144400000000000
307.98.0244-0.124399999999999
3187.82440.175600
327.77.56440.135600000000000
337.27.4644-0.2644
347.58.0844-0.5844
357.38.1244-0.8244
3678.0288-1.02880000000000
3777.8844-0.884399999999993
3877.6844-0.6844
397.27.8244-0.6244
407.38.1044-0.8044
417.18.1444-1.0444
426.88.0244-1.2244
436.47.8244-1.4244
446.17.5644-1.4644
456.57.4644-0.9644
467.78.0844-0.384399999999999
477.98.1244-0.224400000000000
487.57.7068-0.2068
496.97.5624-0.662399999999994
506.67.3624-0.762400000000001
516.97.5024-0.6024
527.77.7824-0.0824000000000005
5387.82240.177600000000000
5487.70240.297599999999999
557.77.50240.197600000000000
567.37.24240.0575999999999991
577.47.14240.257600000000000
588.17.76240.337599999999999
598.37.80240.4976
608.27.70680.493199999999999

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.7 & 7.88440000000003 & 0.815599999999974 \tabularnewline
2 & 8.2 & 7.6844 & 0.5156 \tabularnewline
3 & 8.3 & 7.8244 & 0.4756 \tabularnewline
4 & 8.5 & 8.1044 & 0.395600000000000 \tabularnewline
5 & 8.6 & 8.1444 & 0.4556 \tabularnewline
6 & 8.5 & 8.0244 & 0.4756 \tabularnewline
7 & 8.2 & 7.8244 & 0.375599999999999 \tabularnewline
8 & 8.1 & 7.5644 & 0.5356 \tabularnewline
9 & 7.9 & 7.4644 & 0.435600000000000 \tabularnewline
10 & 8.6 & 8.0844 & 0.5156 \tabularnewline
11 & 8.7 & 8.1244 & 0.575599999999999 \tabularnewline
12 & 8.7 & 8.0288 & 0.6712 \tabularnewline
13 & 8.5 & 7.8844 & 0.615600000000007 \tabularnewline
14 & 8.4 & 7.6844 & 0.7156 \tabularnewline
15 & 8.5 & 7.8244 & 0.6756 \tabularnewline
16 & 8.7 & 8.1044 & 0.5956 \tabularnewline
17 & 8.7 & 8.1444 & 0.5556 \tabularnewline
18 & 8.6 & 8.0244 & 0.5756 \tabularnewline
19 & 8.5 & 7.8244 & 0.6756 \tabularnewline
20 & 8.3 & 7.5644 & 0.7356 \tabularnewline
21 & 8 & 7.4644 & 0.5356 \tabularnewline
22 & 8.2 & 8.0844 & 0.115600000000000 \tabularnewline
23 & 8.1 & 8.1244 & -0.0244000000000003 \tabularnewline
24 & 8.1 & 8.0288 & 0.0712000000000006 \tabularnewline
25 & 8 & 7.8844 & 0.115600000000007 \tabularnewline
26 & 7.9 & 7.6844 & 0.2156 \tabularnewline
27 & 7.9 & 7.8244 & 0.0756000000000002 \tabularnewline
28 & 8 & 8.1044 & -0.1044 \tabularnewline
29 & 8 & 8.1444 & -0.144400000000000 \tabularnewline
30 & 7.9 & 8.0244 & -0.124399999999999 \tabularnewline
31 & 8 & 7.8244 & 0.175600 \tabularnewline
32 & 7.7 & 7.5644 & 0.135600000000000 \tabularnewline
33 & 7.2 & 7.4644 & -0.2644 \tabularnewline
34 & 7.5 & 8.0844 & -0.5844 \tabularnewline
35 & 7.3 & 8.1244 & -0.8244 \tabularnewline
36 & 7 & 8.0288 & -1.02880000000000 \tabularnewline
37 & 7 & 7.8844 & -0.884399999999993 \tabularnewline
38 & 7 & 7.6844 & -0.6844 \tabularnewline
39 & 7.2 & 7.8244 & -0.6244 \tabularnewline
40 & 7.3 & 8.1044 & -0.8044 \tabularnewline
41 & 7.1 & 8.1444 & -1.0444 \tabularnewline
42 & 6.8 & 8.0244 & -1.2244 \tabularnewline
43 & 6.4 & 7.8244 & -1.4244 \tabularnewline
44 & 6.1 & 7.5644 & -1.4644 \tabularnewline
45 & 6.5 & 7.4644 & -0.9644 \tabularnewline
46 & 7.7 & 8.0844 & -0.384399999999999 \tabularnewline
47 & 7.9 & 8.1244 & -0.224400000000000 \tabularnewline
48 & 7.5 & 7.7068 & -0.2068 \tabularnewline
49 & 6.9 & 7.5624 & -0.662399999999994 \tabularnewline
50 & 6.6 & 7.3624 & -0.762400000000001 \tabularnewline
51 & 6.9 & 7.5024 & -0.6024 \tabularnewline
52 & 7.7 & 7.7824 & -0.0824000000000005 \tabularnewline
53 & 8 & 7.8224 & 0.177600000000000 \tabularnewline
54 & 8 & 7.7024 & 0.297599999999999 \tabularnewline
55 & 7.7 & 7.5024 & 0.197600000000000 \tabularnewline
56 & 7.3 & 7.2424 & 0.0575999999999991 \tabularnewline
57 & 7.4 & 7.1424 & 0.257600000000000 \tabularnewline
58 & 8.1 & 7.7624 & 0.337599999999999 \tabularnewline
59 & 8.3 & 7.8024 & 0.4976 \tabularnewline
60 & 8.2 & 7.7068 & 0.493199999999999 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70667&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]8.7[/C][C]7.88440000000003[/C][C]0.815599999999974[/C][/ROW]
[ROW][C]2[/C][C]8.2[/C][C]7.6844[/C][C]0.5156[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]7.8244[/C][C]0.4756[/C][/ROW]
[ROW][C]4[/C][C]8.5[/C][C]8.1044[/C][C]0.395600000000000[/C][/ROW]
[ROW][C]5[/C][C]8.6[/C][C]8.1444[/C][C]0.4556[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.0244[/C][C]0.4756[/C][/ROW]
[ROW][C]7[/C][C]8.2[/C][C]7.8244[/C][C]0.375599999999999[/C][/ROW]
[ROW][C]8[/C][C]8.1[/C][C]7.5644[/C][C]0.5356[/C][/ROW]
[ROW][C]9[/C][C]7.9[/C][C]7.4644[/C][C]0.435600000000000[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.0844[/C][C]0.5156[/C][/ROW]
[ROW][C]11[/C][C]8.7[/C][C]8.1244[/C][C]0.575599999999999[/C][/ROW]
[ROW][C]12[/C][C]8.7[/C][C]8.0288[/C][C]0.6712[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]7.8844[/C][C]0.615600000000007[/C][/ROW]
[ROW][C]14[/C][C]8.4[/C][C]7.6844[/C][C]0.7156[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]7.8244[/C][C]0.6756[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.1044[/C][C]0.5956[/C][/ROW]
[ROW][C]17[/C][C]8.7[/C][C]8.1444[/C][C]0.5556[/C][/ROW]
[ROW][C]18[/C][C]8.6[/C][C]8.0244[/C][C]0.5756[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]7.8244[/C][C]0.6756[/C][/ROW]
[ROW][C]20[/C][C]8.3[/C][C]7.5644[/C][C]0.7356[/C][/ROW]
[ROW][C]21[/C][C]8[/C][C]7.4644[/C][C]0.5356[/C][/ROW]
[ROW][C]22[/C][C]8.2[/C][C]8.0844[/C][C]0.115600000000000[/C][/ROW]
[ROW][C]23[/C][C]8.1[/C][C]8.1244[/C][C]-0.0244000000000003[/C][/ROW]
[ROW][C]24[/C][C]8.1[/C][C]8.0288[/C][C]0.0712000000000006[/C][/ROW]
[ROW][C]25[/C][C]8[/C][C]7.8844[/C][C]0.115600000000007[/C][/ROW]
[ROW][C]26[/C][C]7.9[/C][C]7.6844[/C][C]0.2156[/C][/ROW]
[ROW][C]27[/C][C]7.9[/C][C]7.8244[/C][C]0.0756000000000002[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]8.1044[/C][C]-0.1044[/C][/ROW]
[ROW][C]29[/C][C]8[/C][C]8.1444[/C][C]-0.144400000000000[/C][/ROW]
[ROW][C]30[/C][C]7.9[/C][C]8.0244[/C][C]-0.124399999999999[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.8244[/C][C]0.175600[/C][/ROW]
[ROW][C]32[/C][C]7.7[/C][C]7.5644[/C][C]0.135600000000000[/C][/ROW]
[ROW][C]33[/C][C]7.2[/C][C]7.4644[/C][C]-0.2644[/C][/ROW]
[ROW][C]34[/C][C]7.5[/C][C]8.0844[/C][C]-0.5844[/C][/ROW]
[ROW][C]35[/C][C]7.3[/C][C]8.1244[/C][C]-0.8244[/C][/ROW]
[ROW][C]36[/C][C]7[/C][C]8.0288[/C][C]-1.02880000000000[/C][/ROW]
[ROW][C]37[/C][C]7[/C][C]7.8844[/C][C]-0.884399999999993[/C][/ROW]
[ROW][C]38[/C][C]7[/C][C]7.6844[/C][C]-0.6844[/C][/ROW]
[ROW][C]39[/C][C]7.2[/C][C]7.8244[/C][C]-0.6244[/C][/ROW]
[ROW][C]40[/C][C]7.3[/C][C]8.1044[/C][C]-0.8044[/C][/ROW]
[ROW][C]41[/C][C]7.1[/C][C]8.1444[/C][C]-1.0444[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]8.0244[/C][C]-1.2244[/C][/ROW]
[ROW][C]43[/C][C]6.4[/C][C]7.8244[/C][C]-1.4244[/C][/ROW]
[ROW][C]44[/C][C]6.1[/C][C]7.5644[/C][C]-1.4644[/C][/ROW]
[ROW][C]45[/C][C]6.5[/C][C]7.4644[/C][C]-0.9644[/C][/ROW]
[ROW][C]46[/C][C]7.7[/C][C]8.0844[/C][C]-0.384399999999999[/C][/ROW]
[ROW][C]47[/C][C]7.9[/C][C]8.1244[/C][C]-0.224400000000000[/C][/ROW]
[ROW][C]48[/C][C]7.5[/C][C]7.7068[/C][C]-0.2068[/C][/ROW]
[ROW][C]49[/C][C]6.9[/C][C]7.5624[/C][C]-0.662399999999994[/C][/ROW]
[ROW][C]50[/C][C]6.6[/C][C]7.3624[/C][C]-0.762400000000001[/C][/ROW]
[ROW][C]51[/C][C]6.9[/C][C]7.5024[/C][C]-0.6024[/C][/ROW]
[ROW][C]52[/C][C]7.7[/C][C]7.7824[/C][C]-0.0824000000000005[/C][/ROW]
[ROW][C]53[/C][C]8[/C][C]7.8224[/C][C]0.177600000000000[/C][/ROW]
[ROW][C]54[/C][C]8[/C][C]7.7024[/C][C]0.297599999999999[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.5024[/C][C]0.197600000000000[/C][/ROW]
[ROW][C]56[/C][C]7.3[/C][C]7.2424[/C][C]0.0575999999999991[/C][/ROW]
[ROW][C]57[/C][C]7.4[/C][C]7.1424[/C][C]0.257600000000000[/C][/ROW]
[ROW][C]58[/C][C]8.1[/C][C]7.7624[/C][C]0.337599999999999[/C][/ROW]
[ROW][C]59[/C][C]8.3[/C][C]7.8024[/C][C]0.4976[/C][/ROW]
[ROW][C]60[/C][C]8.2[/C][C]7.7068[/C][C]0.493199999999999[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70667&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70667&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
18.77.884400000000030.815599999999974
28.27.68440.5156
38.37.82440.4756
48.58.10440.395600000000000
58.68.14440.4556
68.58.02440.4756
78.27.82440.375599999999999
88.17.56440.5356
97.97.46440.435600000000000
108.68.08440.5156
118.78.12440.575599999999999
128.78.02880.6712
138.57.88440.615600000000007
148.47.68440.7156
158.57.82440.6756
168.78.10440.5956
178.78.14440.5556
188.68.02440.5756
198.57.82440.6756
208.37.56440.7356
2187.46440.5356
228.28.08440.115600000000000
238.18.1244-0.0244000000000003
248.18.02880.0712000000000006
2587.88440.115600000000007
267.97.68440.2156
277.97.82440.0756000000000002
2888.1044-0.1044
2988.1444-0.144400000000000
307.98.0244-0.124399999999999
3187.82440.175600
327.77.56440.135600000000000
337.27.4644-0.2644
347.58.0844-0.5844
357.38.1244-0.8244
3678.0288-1.02880000000000
3777.8844-0.884399999999993
3877.6844-0.6844
397.27.8244-0.6244
407.38.1044-0.8044
417.18.1444-1.0444
426.88.0244-1.2244
436.47.8244-1.4244
446.17.5644-1.4644
456.57.4644-0.9644
467.78.0844-0.384399999999999
477.98.1244-0.224400000000000
487.57.7068-0.2068
496.97.5624-0.662399999999994
506.67.3624-0.762400000000001
516.97.5024-0.6024
527.77.7824-0.0824000000000005
5387.82240.177600000000000
5487.70240.297599999999999
557.77.50240.197600000000000
567.37.24240.0575999999999991
577.47.14240.257600000000000
588.17.76240.337599999999999
598.37.80240.4976
608.27.70680.493199999999999







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.02051884682010010.04103769364020030.9794811531799
170.005062188566714960.01012437713342990.994937811433285
180.001268093258325660.002536186516651310.998731906741674
190.000938632509151970.001877265018303940.999061367490848
200.0004690610506038170.0009381221012076330.999530938949396
210.0001593236622587630.0003186473245175260.99984067633774
220.0002049729152160140.0004099458304320280.999795027084784
230.0006547813712721770.001309562742544350.999345218628728
240.001289525825313700.002579051650627400.998710474174686
250.003975286516712410.007950573033424810.996024713483288
260.006064874928339970.01212974985667990.99393512507166
270.01036679169000970.02073358338001940.98963320830999
280.01662210922240310.03324421844480620.983377890777597
290.02649230719317260.05298461438634520.973507692806827
300.04037814660807270.08075629321614530.959621853391927
310.07216591390910550.1443318278182110.927834086090894
320.200480932609750.40096186521950.79951906739025
330.2731261195064740.5462522390129480.726873880493526
340.3219792426624750.643958485324950.678020757337525
350.4562232587949960.9124465175899910.543776741205004
360.590777505277190.818444989445620.40922249472281
370.7270028062621140.5459943874757720.272997193737886
380.8688749937140350.2622500125719310.131125006285965
390.9606355047141380.07872899057172360.0393644952858618
400.959135375619090.08172924876181810.0408646243809090
410.937033284228190.1259334315436200.0629667157718102
420.918189469020910.1636210619581810.0818105309790905
430.9139027496796750.172194500640650.086097250320325
440.9020892256759670.1958215486480670.0979107743240333

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0205188468201001 & 0.0410376936402003 & 0.9794811531799 \tabularnewline
17 & 0.00506218856671496 & 0.0101243771334299 & 0.994937811433285 \tabularnewline
18 & 0.00126809325832566 & 0.00253618651665131 & 0.998731906741674 \tabularnewline
19 & 0.00093863250915197 & 0.00187726501830394 & 0.999061367490848 \tabularnewline
20 & 0.000469061050603817 & 0.000938122101207633 & 0.999530938949396 \tabularnewline
21 & 0.000159323662258763 & 0.000318647324517526 & 0.99984067633774 \tabularnewline
22 & 0.000204972915216014 & 0.000409945830432028 & 0.999795027084784 \tabularnewline
23 & 0.000654781371272177 & 0.00130956274254435 & 0.999345218628728 \tabularnewline
24 & 0.00128952582531370 & 0.00257905165062740 & 0.998710474174686 \tabularnewline
25 & 0.00397528651671241 & 0.00795057303342481 & 0.996024713483288 \tabularnewline
26 & 0.00606487492833997 & 0.0121297498566799 & 0.99393512507166 \tabularnewline
27 & 0.0103667916900097 & 0.0207335833800194 & 0.98963320830999 \tabularnewline
28 & 0.0166221092224031 & 0.0332442184448062 & 0.983377890777597 \tabularnewline
29 & 0.0264923071931726 & 0.0529846143863452 & 0.973507692806827 \tabularnewline
30 & 0.0403781466080727 & 0.0807562932161453 & 0.959621853391927 \tabularnewline
31 & 0.0721659139091055 & 0.144331827818211 & 0.927834086090894 \tabularnewline
32 & 0.20048093260975 & 0.4009618652195 & 0.79951906739025 \tabularnewline
33 & 0.273126119506474 & 0.546252239012948 & 0.726873880493526 \tabularnewline
34 & 0.321979242662475 & 0.64395848532495 & 0.678020757337525 \tabularnewline
35 & 0.456223258794996 & 0.912446517589991 & 0.543776741205004 \tabularnewline
36 & 0.59077750527719 & 0.81844498944562 & 0.40922249472281 \tabularnewline
37 & 0.727002806262114 & 0.545994387475772 & 0.272997193737886 \tabularnewline
38 & 0.868874993714035 & 0.262250012571931 & 0.131125006285965 \tabularnewline
39 & 0.960635504714138 & 0.0787289905717236 & 0.0393644952858618 \tabularnewline
40 & 0.95913537561909 & 0.0817292487618181 & 0.0408646243809090 \tabularnewline
41 & 0.93703328422819 & 0.125933431543620 & 0.0629667157718102 \tabularnewline
42 & 0.91818946902091 & 0.163621061958181 & 0.0818105309790905 \tabularnewline
43 & 0.913902749679675 & 0.17219450064065 & 0.086097250320325 \tabularnewline
44 & 0.902089225675967 & 0.195821548648067 & 0.0979107743240333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70667&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.0205188468201001[/C][C]0.0410376936402003[/C][C]0.9794811531799[/C][/ROW]
[ROW][C]17[/C][C]0.00506218856671496[/C][C]0.0101243771334299[/C][C]0.994937811433285[/C][/ROW]
[ROW][C]18[/C][C]0.00126809325832566[/C][C]0.00253618651665131[/C][C]0.998731906741674[/C][/ROW]
[ROW][C]19[/C][C]0.00093863250915197[/C][C]0.00187726501830394[/C][C]0.999061367490848[/C][/ROW]
[ROW][C]20[/C][C]0.000469061050603817[/C][C]0.000938122101207633[/C][C]0.999530938949396[/C][/ROW]
[ROW][C]21[/C][C]0.000159323662258763[/C][C]0.000318647324517526[/C][C]0.99984067633774[/C][/ROW]
[ROW][C]22[/C][C]0.000204972915216014[/C][C]0.000409945830432028[/C][C]0.999795027084784[/C][/ROW]
[ROW][C]23[/C][C]0.000654781371272177[/C][C]0.00130956274254435[/C][C]0.999345218628728[/C][/ROW]
[ROW][C]24[/C][C]0.00128952582531370[/C][C]0.00257905165062740[/C][C]0.998710474174686[/C][/ROW]
[ROW][C]25[/C][C]0.00397528651671241[/C][C]0.00795057303342481[/C][C]0.996024713483288[/C][/ROW]
[ROW][C]26[/C][C]0.00606487492833997[/C][C]0.0121297498566799[/C][C]0.99393512507166[/C][/ROW]
[ROW][C]27[/C][C]0.0103667916900097[/C][C]0.0207335833800194[/C][C]0.98963320830999[/C][/ROW]
[ROW][C]28[/C][C]0.0166221092224031[/C][C]0.0332442184448062[/C][C]0.983377890777597[/C][/ROW]
[ROW][C]29[/C][C]0.0264923071931726[/C][C]0.0529846143863452[/C][C]0.973507692806827[/C][/ROW]
[ROW][C]30[/C][C]0.0403781466080727[/C][C]0.0807562932161453[/C][C]0.959621853391927[/C][/ROW]
[ROW][C]31[/C][C]0.0721659139091055[/C][C]0.144331827818211[/C][C]0.927834086090894[/C][/ROW]
[ROW][C]32[/C][C]0.20048093260975[/C][C]0.4009618652195[/C][C]0.79951906739025[/C][/ROW]
[ROW][C]33[/C][C]0.273126119506474[/C][C]0.546252239012948[/C][C]0.726873880493526[/C][/ROW]
[ROW][C]34[/C][C]0.321979242662475[/C][C]0.64395848532495[/C][C]0.678020757337525[/C][/ROW]
[ROW][C]35[/C][C]0.456223258794996[/C][C]0.912446517589991[/C][C]0.543776741205004[/C][/ROW]
[ROW][C]36[/C][C]0.59077750527719[/C][C]0.81844498944562[/C][C]0.40922249472281[/C][/ROW]
[ROW][C]37[/C][C]0.727002806262114[/C][C]0.545994387475772[/C][C]0.272997193737886[/C][/ROW]
[ROW][C]38[/C][C]0.868874993714035[/C][C]0.262250012571931[/C][C]0.131125006285965[/C][/ROW]
[ROW][C]39[/C][C]0.960635504714138[/C][C]0.0787289905717236[/C][C]0.0393644952858618[/C][/ROW]
[ROW][C]40[/C][C]0.95913537561909[/C][C]0.0817292487618181[/C][C]0.0408646243809090[/C][/ROW]
[ROW][C]41[/C][C]0.93703328422819[/C][C]0.125933431543620[/C][C]0.0629667157718102[/C][/ROW]
[ROW][C]42[/C][C]0.91818946902091[/C][C]0.163621061958181[/C][C]0.0818105309790905[/C][/ROW]
[ROW][C]43[/C][C]0.913902749679675[/C][C]0.17219450064065[/C][C]0.086097250320325[/C][/ROW]
[ROW][C]44[/C][C]0.902089225675967[/C][C]0.195821548648067[/C][C]0.0979107743240333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70667&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70667&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
160.02051884682010010.04103769364020030.9794811531799
170.005062188566714960.01012437713342990.994937811433285
180.001268093258325660.002536186516651310.998731906741674
190.000938632509151970.001877265018303940.999061367490848
200.0004690610506038170.0009381221012076330.999530938949396
210.0001593236622587630.0003186473245175260.99984067633774
220.0002049729152160140.0004099458304320280.999795027084784
230.0006547813712721770.001309562742544350.999345218628728
240.001289525825313700.002579051650627400.998710474174686
250.003975286516712410.007950573033424810.996024713483288
260.006064874928339970.01212974985667990.99393512507166
270.01036679169000970.02073358338001940.98963320830999
280.01662210922240310.03324421844480620.983377890777597
290.02649230719317260.05298461438634520.973507692806827
300.04037814660807270.08075629321614530.959621853391927
310.07216591390910550.1443318278182110.927834086090894
320.200480932609750.40096186521950.79951906739025
330.2731261195064740.5462522390129480.726873880493526
340.3219792426624750.643958485324950.678020757337525
350.4562232587949960.9124465175899910.543776741205004
360.590777505277190.818444989445620.40922249472281
370.7270028062621140.5459943874757720.272997193737886
380.8688749937140350.2622500125719310.131125006285965
390.9606355047141380.07872899057172360.0393644952858618
400.959135375619090.08172924876181810.0408646243809090
410.937033284228190.1259334315436200.0629667157718102
420.918189469020910.1636210619581810.0818105309790905
430.9139027496796750.172194500640650.086097250320325
440.9020892256759670.1958215486480670.0979107743240333







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.275862068965517NOK
5% type I error level130.448275862068966NOK
10% type I error level170.586206896551724NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70667&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 level80.275862068965517NOK
5% type I error level130.448275862068966NOK
10% type I error level170.586206896551724NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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')
}