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:47:29 -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/t1261669701o3t1u6mj3iyfhi9.htm/, Retrieved Mon, 06 May 2024 11:30:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70668, Retrieved Mon, 06 May 2024 11:30:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact89
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [dummy variabele m...] [2009-12-24 15:47:29] [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 time5 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 & 5 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70668&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]5 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=70668&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70668&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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 8.9974956521739 + 0.888869565217389X[t] -0.346211594202904M1[t] -0.505849275362318M2[t] -0.325486956521738M3[t] -0.00512463768115932M4[t] + 0.0752376811594204M5[t] -0.00440000000000004M6[t] -0.164037681159420M7[t] -0.383675362318840M8[t] -0.443313043478261M9[t] + 0.217049275362319M10[t] + 0.297411594202898M11[t] -0.0403623188405796t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  8.9974956521739 +  0.888869565217389X[t] -0.346211594202904M1[t] -0.505849275362318M2[t] -0.325486956521738M3[t] -0.00512463768115932M4[t] +  0.0752376811594204M5[t] -0.00440000000000004M6[t] -0.164037681159420M7[t] -0.383675362318840M8[t] -0.443313043478261M9[t] +  0.217049275362319M10[t] +  0.297411594202898M11[t] -0.0403623188405796t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70668&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  8.9974956521739 +  0.888869565217389X[t] -0.346211594202904M1[t] -0.505849275362318M2[t] -0.325486956521738M3[t] -0.00512463768115932M4[t] +  0.0752376811594204M5[t] -0.00440000000000004M6[t] -0.164037681159420M7[t] -0.383675362318840M8[t] -0.443313043478261M9[t] +  0.217049275362319M10[t] +  0.297411594202898M11[t] -0.0403623188405796t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70668&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70668&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.9974956521739 + 0.888869565217389X[t] -0.346211594202904M1[t] -0.505849275362318M2[t] -0.325486956521738M3[t] -0.00512463768115932M4[t] + 0.0752376811594204M5[t] -0.00440000000000004M6[t] -0.164037681159420M7[t] -0.383675362318840M8[t] -0.443313043478261M9[t] + 0.217049275362319M10[t] + 0.297411594202898M11[t] -0.0403623188405796t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.99749565217390.22734939.575600
X0.8888695652173890.1943564.57343.6e-051.8e-05
M1-0.3462115942029040.271424-1.27550.2085230.104262
M2-0.5058492753623180.271062-1.86620.0683990.0342
M3-0.3254869565217380.270779-1.2020.23550.11775
M4-0.005124637681159320.270577-0.01890.9849710.492486
M50.07523768115942040.2704560.27820.7821150.391057
M6-0.004400000000000040.270416-0.01630.9870880.493544
M7-0.1640376811594200.270456-0.60650.547150.273575
M8-0.3836753623188400.270577-1.4180.1629330.081467
M9-0.4433130434782610.270779-1.63720.1084180.054209
M100.2170492753623190.2710620.80070.42740.2137
M110.2974115942028980.2714241.09570.2788950.139447
t-0.04036231884057960.004675-8.632800

\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.9974956521739 & 0.227349 & 39.5756 & 0 & 0 \tabularnewline
X & 0.888869565217389 & 0.194356 & 4.5734 & 3.6e-05 & 1.8e-05 \tabularnewline
M1 & -0.346211594202904 & 0.271424 & -1.2755 & 0.208523 & 0.104262 \tabularnewline
M2 & -0.505849275362318 & 0.271062 & -1.8662 & 0.068399 & 0.0342 \tabularnewline
M3 & -0.325486956521738 & 0.270779 & -1.202 & 0.2355 & 0.11775 \tabularnewline
M4 & -0.00512463768115932 & 0.270577 & -0.0189 & 0.984971 & 0.492486 \tabularnewline
M5 & 0.0752376811594204 & 0.270456 & 0.2782 & 0.782115 & 0.391057 \tabularnewline
M6 & -0.00440000000000004 & 0.270416 & -0.0163 & 0.987088 & 0.493544 \tabularnewline
M7 & -0.164037681159420 & 0.270456 & -0.6065 & 0.54715 & 0.273575 \tabularnewline
M8 & -0.383675362318840 & 0.270577 & -1.418 & 0.162933 & 0.081467 \tabularnewline
M9 & -0.443313043478261 & 0.270779 & -1.6372 & 0.108418 & 0.054209 \tabularnewline
M10 & 0.217049275362319 & 0.271062 & 0.8007 & 0.4274 & 0.2137 \tabularnewline
M11 & 0.297411594202898 & 0.271424 & 1.0957 & 0.278895 & 0.139447 \tabularnewline
t & -0.0403623188405796 & 0.004675 & -8.6328 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70668&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.9974956521739[/C][C]0.227349[/C][C]39.5756[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.888869565217389[/C][C]0.194356[/C][C]4.5734[/C][C]3.6e-05[/C][C]1.8e-05[/C][/ROW]
[ROW][C]M1[/C][C]-0.346211594202904[/C][C]0.271424[/C][C]-1.2755[/C][C]0.208523[/C][C]0.104262[/C][/ROW]
[ROW][C]M2[/C][C]-0.505849275362318[/C][C]0.271062[/C][C]-1.8662[/C][C]0.068399[/C][C]0.0342[/C][/ROW]
[ROW][C]M3[/C][C]-0.325486956521738[/C][C]0.270779[/C][C]-1.202[/C][C]0.2355[/C][C]0.11775[/C][/ROW]
[ROW][C]M4[/C][C]-0.00512463768115932[/C][C]0.270577[/C][C]-0.0189[/C][C]0.984971[/C][C]0.492486[/C][/ROW]
[ROW][C]M5[/C][C]0.0752376811594204[/C][C]0.270456[/C][C]0.2782[/C][C]0.782115[/C][C]0.391057[/C][/ROW]
[ROW][C]M6[/C][C]-0.00440000000000004[/C][C]0.270416[/C][C]-0.0163[/C][C]0.987088[/C][C]0.493544[/C][/ROW]
[ROW][C]M7[/C][C]-0.164037681159420[/C][C]0.270456[/C][C]-0.6065[/C][C]0.54715[/C][C]0.273575[/C][/ROW]
[ROW][C]M8[/C][C]-0.383675362318840[/C][C]0.270577[/C][C]-1.418[/C][C]0.162933[/C][C]0.081467[/C][/ROW]
[ROW][C]M9[/C][C]-0.443313043478261[/C][C]0.270779[/C][C]-1.6372[/C][C]0.108418[/C][C]0.054209[/C][/ROW]
[ROW][C]M10[/C][C]0.217049275362319[/C][C]0.271062[/C][C]0.8007[/C][C]0.4274[/C][C]0.2137[/C][/ROW]
[ROW][C]M11[/C][C]0.297411594202898[/C][C]0.271424[/C][C]1.0957[/C][C]0.278895[/C][C]0.139447[/C][/ROW]
[ROW][C]t[/C][C]-0.0403623188405796[/C][C]0.004675[/C][C]-8.6328[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70668&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70668&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.99749565217390.22734939.575600
X0.8888695652173890.1943564.57343.6e-051.8e-05
M1-0.3462115942029040.271424-1.27550.2085230.104262
M2-0.5058492753623180.271062-1.86620.0683990.0342
M3-0.3254869565217380.270779-1.2020.23550.11775
M4-0.005124637681159320.270577-0.01890.9849710.492486
M50.07523768115942040.2704560.27820.7821150.391057
M6-0.004400000000000040.270416-0.01630.9870880.493544
M7-0.1640376811594200.270456-0.60650.547150.273575
M8-0.3836753623188400.270577-1.4180.1629330.081467
M9-0.4433130434782610.270779-1.63720.1084180.054209
M100.2170492753623190.2710620.80070.42740.2137
M110.2974115942028980.2714241.09570.2788950.139447
t-0.04036231884057960.004675-8.632800







Multiple Linear Regression - Regression Statistics
Multiple R0.822035461648252
R-squared0.675742300207254
Adjusted R-squared0.584104254613652
F-TEST (value)7.37403657869405
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.60430240536691e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.425442813902998
Sum Squared Residuals8.32607304347826

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.822035461648252 \tabularnewline
R-squared & 0.675742300207254 \tabularnewline
Adjusted R-squared & 0.584104254613652 \tabularnewline
F-TEST (value) & 7.37403657869405 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.60430240536691e-07 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.425442813902998 \tabularnewline
Sum Squared Residuals & 8.32607304347826 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70668&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.822035461648252[/C][/ROW]
[ROW][C]R-squared[/C][C]0.675742300207254[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.584104254613652[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]7.37403657869405[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]1.60430240536691e-07[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.425442813902998[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8.32607304347826[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70668&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70668&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.822035461648252
R-squared0.675742300207254
Adjusted R-squared0.584104254613652
F-TEST (value)7.37403657869405
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.60430240536691e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.425442813902998
Sum Squared Residuals8.32607304347826







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.78.610921739130460.08907826086954
28.28.41092173913043-0.210921739130433
38.38.55092173913043-0.250921739130433
48.58.83092173913043-0.330921739130433
58.68.87092173913043-0.270921739130434
68.58.75092173913043-0.250921739130433
78.28.55092173913043-0.350921739130434
88.18.29092173913043-0.190921739130433
97.98.19092173913043-0.290921739130433
108.68.81092173913043-0.210921739130433
118.78.85092173913043-0.150921739130434
128.78.513147826086960.186852173913044
138.58.126573913043470.373426086956529
148.47.926573913043480.473426086956522
158.58.066573913043480.433426086956522
168.78.346573913043480.353426086956522
178.78.386573913043480.313426086956522
188.68.266573913043480.333426086956522
198.58.066573913043480.433426086956522
208.37.806573913043480.493426086956523
2187.706573913043480.293426086956522
228.28.32657391304348-0.126573913043478
238.18.36657391304348-0.266573913043478
248.18.02880.0712000000000003
2587.642226086956520.357773913043484
267.97.442226086956520.457773913043478
277.97.582226086956520.317773913043478
2887.862226086956520.137773913043478
2987.902226086956520.0977739130434783
307.97.782226086956520.117773913043479
3187.582226086956520.417773913043478
327.77.322226086956520.377773913043478
337.27.22222608695652-0.0222260869565221
347.57.84222608695652-0.342226086956522
357.37.88222608695652-0.582226086956522
3677.54445217391304-0.544452173913044
3777.15787826086956-0.15787826086956
3876.957878260869570.0421217391304335
397.27.097878260869570.102121739130433
407.37.37787826086957-0.0778782608695662
417.17.41787826086957-0.317878260869566
426.87.29787826086957-0.497878260869567
436.47.09787826086957-0.697878260869566
446.16.83787826086957-0.737878260869567
456.56.73787826086957-0.237878260869567
467.77.357878260869570.342121739130434
477.97.397878260869570.502121739130434
487.57.94897391304348-0.448973913043478
496.97.5624-0.662399999999994
506.67.3624-0.762400000000001
516.97.5024-0.602400000000001
527.77.7824-0.0824
5387.82240.177600000000000
5487.70240.297599999999999
557.77.50240.197600000000000
567.37.24240.0575999999999992
577.47.14240.257600000000000
588.17.76240.337599999999999
598.37.80240.4976
608.27.464626086956520.735373913043477

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.7 & 8.61092173913046 & 0.08907826086954 \tabularnewline
2 & 8.2 & 8.41092173913043 & -0.210921739130433 \tabularnewline
3 & 8.3 & 8.55092173913043 & -0.250921739130433 \tabularnewline
4 & 8.5 & 8.83092173913043 & -0.330921739130433 \tabularnewline
5 & 8.6 & 8.87092173913043 & -0.270921739130434 \tabularnewline
6 & 8.5 & 8.75092173913043 & -0.250921739130433 \tabularnewline
7 & 8.2 & 8.55092173913043 & -0.350921739130434 \tabularnewline
8 & 8.1 & 8.29092173913043 & -0.190921739130433 \tabularnewline
9 & 7.9 & 8.19092173913043 & -0.290921739130433 \tabularnewline
10 & 8.6 & 8.81092173913043 & -0.210921739130433 \tabularnewline
11 & 8.7 & 8.85092173913043 & -0.150921739130434 \tabularnewline
12 & 8.7 & 8.51314782608696 & 0.186852173913044 \tabularnewline
13 & 8.5 & 8.12657391304347 & 0.373426086956529 \tabularnewline
14 & 8.4 & 7.92657391304348 & 0.473426086956522 \tabularnewline
15 & 8.5 & 8.06657391304348 & 0.433426086956522 \tabularnewline
16 & 8.7 & 8.34657391304348 & 0.353426086956522 \tabularnewline
17 & 8.7 & 8.38657391304348 & 0.313426086956522 \tabularnewline
18 & 8.6 & 8.26657391304348 & 0.333426086956522 \tabularnewline
19 & 8.5 & 8.06657391304348 & 0.433426086956522 \tabularnewline
20 & 8.3 & 7.80657391304348 & 0.493426086956523 \tabularnewline
21 & 8 & 7.70657391304348 & 0.293426086956522 \tabularnewline
22 & 8.2 & 8.32657391304348 & -0.126573913043478 \tabularnewline
23 & 8.1 & 8.36657391304348 & -0.266573913043478 \tabularnewline
24 & 8.1 & 8.0288 & 0.0712000000000003 \tabularnewline
25 & 8 & 7.64222608695652 & 0.357773913043484 \tabularnewline
26 & 7.9 & 7.44222608695652 & 0.457773913043478 \tabularnewline
27 & 7.9 & 7.58222608695652 & 0.317773913043478 \tabularnewline
28 & 8 & 7.86222608695652 & 0.137773913043478 \tabularnewline
29 & 8 & 7.90222608695652 & 0.0977739130434783 \tabularnewline
30 & 7.9 & 7.78222608695652 & 0.117773913043479 \tabularnewline
31 & 8 & 7.58222608695652 & 0.417773913043478 \tabularnewline
32 & 7.7 & 7.32222608695652 & 0.377773913043478 \tabularnewline
33 & 7.2 & 7.22222608695652 & -0.0222260869565221 \tabularnewline
34 & 7.5 & 7.84222608695652 & -0.342226086956522 \tabularnewline
35 & 7.3 & 7.88222608695652 & -0.582226086956522 \tabularnewline
36 & 7 & 7.54445217391304 & -0.544452173913044 \tabularnewline
37 & 7 & 7.15787826086956 & -0.15787826086956 \tabularnewline
38 & 7 & 6.95787826086957 & 0.0421217391304335 \tabularnewline
39 & 7.2 & 7.09787826086957 & 0.102121739130433 \tabularnewline
40 & 7.3 & 7.37787826086957 & -0.0778782608695662 \tabularnewline
41 & 7.1 & 7.41787826086957 & -0.317878260869566 \tabularnewline
42 & 6.8 & 7.29787826086957 & -0.497878260869567 \tabularnewline
43 & 6.4 & 7.09787826086957 & -0.697878260869566 \tabularnewline
44 & 6.1 & 6.83787826086957 & -0.737878260869567 \tabularnewline
45 & 6.5 & 6.73787826086957 & -0.237878260869567 \tabularnewline
46 & 7.7 & 7.35787826086957 & 0.342121739130434 \tabularnewline
47 & 7.9 & 7.39787826086957 & 0.502121739130434 \tabularnewline
48 & 7.5 & 7.94897391304348 & -0.448973913043478 \tabularnewline
49 & 6.9 & 7.5624 & -0.662399999999994 \tabularnewline
50 & 6.6 & 7.3624 & -0.762400000000001 \tabularnewline
51 & 6.9 & 7.5024 & -0.602400000000001 \tabularnewline
52 & 7.7 & 7.7824 & -0.0824 \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.0575999999999992 \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.46462608695652 & 0.735373913043477 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70668&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]8.61092173913046[/C][C]0.08907826086954[/C][/ROW]
[ROW][C]2[/C][C]8.2[/C][C]8.41092173913043[/C][C]-0.210921739130433[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.55092173913043[/C][C]-0.250921739130433[/C][/ROW]
[ROW][C]4[/C][C]8.5[/C][C]8.83092173913043[/C][C]-0.330921739130433[/C][/ROW]
[ROW][C]5[/C][C]8.6[/C][C]8.87092173913043[/C][C]-0.270921739130434[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.75092173913043[/C][C]-0.250921739130433[/C][/ROW]
[ROW][C]7[/C][C]8.2[/C][C]8.55092173913043[/C][C]-0.350921739130434[/C][/ROW]
[ROW][C]8[/C][C]8.1[/C][C]8.29092173913043[/C][C]-0.190921739130433[/C][/ROW]
[ROW][C]9[/C][C]7.9[/C][C]8.19092173913043[/C][C]-0.290921739130433[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.81092173913043[/C][C]-0.210921739130433[/C][/ROW]
[ROW][C]11[/C][C]8.7[/C][C]8.85092173913043[/C][C]-0.150921739130434[/C][/ROW]
[ROW][C]12[/C][C]8.7[/C][C]8.51314782608696[/C][C]0.186852173913044[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]8.12657391304347[/C][C]0.373426086956529[/C][/ROW]
[ROW][C]14[/C][C]8.4[/C][C]7.92657391304348[/C][C]0.473426086956522[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.06657391304348[/C][C]0.433426086956522[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.34657391304348[/C][C]0.353426086956522[/C][/ROW]
[ROW][C]17[/C][C]8.7[/C][C]8.38657391304348[/C][C]0.313426086956522[/C][/ROW]
[ROW][C]18[/C][C]8.6[/C][C]8.26657391304348[/C][C]0.333426086956522[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.06657391304348[/C][C]0.433426086956522[/C][/ROW]
[ROW][C]20[/C][C]8.3[/C][C]7.80657391304348[/C][C]0.493426086956523[/C][/ROW]
[ROW][C]21[/C][C]8[/C][C]7.70657391304348[/C][C]0.293426086956522[/C][/ROW]
[ROW][C]22[/C][C]8.2[/C][C]8.32657391304348[/C][C]-0.126573913043478[/C][/ROW]
[ROW][C]23[/C][C]8.1[/C][C]8.36657391304348[/C][C]-0.266573913043478[/C][/ROW]
[ROW][C]24[/C][C]8.1[/C][C]8.0288[/C][C]0.0712000000000003[/C][/ROW]
[ROW][C]25[/C][C]8[/C][C]7.64222608695652[/C][C]0.357773913043484[/C][/ROW]
[ROW][C]26[/C][C]7.9[/C][C]7.44222608695652[/C][C]0.457773913043478[/C][/ROW]
[ROW][C]27[/C][C]7.9[/C][C]7.58222608695652[/C][C]0.317773913043478[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]7.86222608695652[/C][C]0.137773913043478[/C][/ROW]
[ROW][C]29[/C][C]8[/C][C]7.90222608695652[/C][C]0.0977739130434783[/C][/ROW]
[ROW][C]30[/C][C]7.9[/C][C]7.78222608695652[/C][C]0.117773913043479[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.58222608695652[/C][C]0.417773913043478[/C][/ROW]
[ROW][C]32[/C][C]7.7[/C][C]7.32222608695652[/C][C]0.377773913043478[/C][/ROW]
[ROW][C]33[/C][C]7.2[/C][C]7.22222608695652[/C][C]-0.0222260869565221[/C][/ROW]
[ROW][C]34[/C][C]7.5[/C][C]7.84222608695652[/C][C]-0.342226086956522[/C][/ROW]
[ROW][C]35[/C][C]7.3[/C][C]7.88222608695652[/C][C]-0.582226086956522[/C][/ROW]
[ROW][C]36[/C][C]7[/C][C]7.54445217391304[/C][C]-0.544452173913044[/C][/ROW]
[ROW][C]37[/C][C]7[/C][C]7.15787826086956[/C][C]-0.15787826086956[/C][/ROW]
[ROW][C]38[/C][C]7[/C][C]6.95787826086957[/C][C]0.0421217391304335[/C][/ROW]
[ROW][C]39[/C][C]7.2[/C][C]7.09787826086957[/C][C]0.102121739130433[/C][/ROW]
[ROW][C]40[/C][C]7.3[/C][C]7.37787826086957[/C][C]-0.0778782608695662[/C][/ROW]
[ROW][C]41[/C][C]7.1[/C][C]7.41787826086957[/C][C]-0.317878260869566[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]7.29787826086957[/C][C]-0.497878260869567[/C][/ROW]
[ROW][C]43[/C][C]6.4[/C][C]7.09787826086957[/C][C]-0.697878260869566[/C][/ROW]
[ROW][C]44[/C][C]6.1[/C][C]6.83787826086957[/C][C]-0.737878260869567[/C][/ROW]
[ROW][C]45[/C][C]6.5[/C][C]6.73787826086957[/C][C]-0.237878260869567[/C][/ROW]
[ROW][C]46[/C][C]7.7[/C][C]7.35787826086957[/C][C]0.342121739130434[/C][/ROW]
[ROW][C]47[/C][C]7.9[/C][C]7.39787826086957[/C][C]0.502121739130434[/C][/ROW]
[ROW][C]48[/C][C]7.5[/C][C]7.94897391304348[/C][C]-0.448973913043478[/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.602400000000001[/C][/ROW]
[ROW][C]52[/C][C]7.7[/C][C]7.7824[/C][C]-0.0824[/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.0575999999999992[/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.46462608695652[/C][C]0.735373913043477[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70668&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70668&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.78.610921739130460.08907826086954
28.28.41092173913043-0.210921739130433
38.38.55092173913043-0.250921739130433
48.58.83092173913043-0.330921739130433
58.68.87092173913043-0.270921739130434
68.58.75092173913043-0.250921739130433
78.28.55092173913043-0.350921739130434
88.18.29092173913043-0.190921739130433
97.98.19092173913043-0.290921739130433
108.68.81092173913043-0.210921739130433
118.78.85092173913043-0.150921739130434
128.78.513147826086960.186852173913044
138.58.126573913043470.373426086956529
148.47.926573913043480.473426086956522
158.58.066573913043480.433426086956522
168.78.346573913043480.353426086956522
178.78.386573913043480.313426086956522
188.68.266573913043480.333426086956522
198.58.066573913043480.433426086956522
208.37.806573913043480.493426086956523
2187.706573913043480.293426086956522
228.28.32657391304348-0.126573913043478
238.18.36657391304348-0.266573913043478
248.18.02880.0712000000000003
2587.642226086956520.357773913043484
267.97.442226086956520.457773913043478
277.97.582226086956520.317773913043478
2887.862226086956520.137773913043478
2987.902226086956520.0977739130434783
307.97.782226086956520.117773913043479
3187.582226086956520.417773913043478
327.77.322226086956520.377773913043478
337.27.22222608695652-0.0222260869565221
347.57.84222608695652-0.342226086956522
357.37.88222608695652-0.582226086956522
3677.54445217391304-0.544452173913044
3777.15787826086956-0.15787826086956
3876.957878260869570.0421217391304335
397.27.097878260869570.102121739130433
407.37.37787826086957-0.0778782608695662
417.17.41787826086957-0.317878260869566
426.87.29787826086957-0.497878260869567
436.47.09787826086957-0.697878260869566
446.16.83787826086957-0.737878260869567
456.56.73787826086957-0.237878260869567
467.77.357878260869570.342121739130434
477.97.397878260869570.502121739130434
487.57.94897391304348-0.448973913043478
496.97.5624-0.662399999999994
506.67.3624-0.762400000000001
516.97.5024-0.602400000000001
527.77.7824-0.0824
5387.82240.177600000000000
5487.70240.297599999999999
557.77.50240.197600000000000
567.37.24240.0575999999999992
577.47.14240.257600000000000
588.17.76240.337599999999999
598.37.80240.4976
608.27.464626086956520.735373913043477







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.03608393405103550.0721678681020710.963916065948965
180.00864258129898750.0172851625979750.991357418701013
190.003424028400153070.006848056800306130.996575971599847
200.0008811325338905710.001762265067781140.99911886746611
210.0001903402363804680.0003806804727609370.99980965976362
220.001329820090443880.002659640180887750.998670179909556
230.006605527001578440.01321105400315690.993394472998422
240.009999206149430960.01999841229886190.99000079385057
250.01430343759210060.02860687518420120.9856965624079
260.01132835523675100.02265671047350200.98867164476325
270.008980799366697550.01796159873339510.991019200633303
280.006712817923729330.01342563584745870.99328718207627
290.005022614781703880.01004522956340780.994977385218296
300.003670360267339560.007340720534679110.99632963973266
310.004338260906767630.008676521813535260.995661739093232
320.01603841846688540.03207683693377090.983961581533115
330.03271201276289130.06542402552578250.967287987237109
340.03964576222118850.0792915244423770.960354237778811
350.05099549321037260.1019909864207450.949004506789627
360.0903225612665440.1806451225330880.909677438733456
370.1339448622736230.2678897245472450.866055137726377
380.2826770841240840.5653541682481690.717322915875916
390.6385889053421350.7228221893157290.361411094657865
400.649856913157270.700286173685460.35014308684273
410.5407768427758940.9184463144482110.459223157224106
420.505504917867330.988990164265340.49449508213267
430.5985651073532170.8028697852935660.401434892646783

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0360839340510355 & 0.072167868102071 & 0.963916065948965 \tabularnewline
18 & 0.0086425812989875 & 0.017285162597975 & 0.991357418701013 \tabularnewline
19 & 0.00342402840015307 & 0.00684805680030613 & 0.996575971599847 \tabularnewline
20 & 0.000881132533890571 & 0.00176226506778114 & 0.99911886746611 \tabularnewline
21 & 0.000190340236380468 & 0.000380680472760937 & 0.99980965976362 \tabularnewline
22 & 0.00132982009044388 & 0.00265964018088775 & 0.998670179909556 \tabularnewline
23 & 0.00660552700157844 & 0.0132110540031569 & 0.993394472998422 \tabularnewline
24 & 0.00999920614943096 & 0.0199984122988619 & 0.99000079385057 \tabularnewline
25 & 0.0143034375921006 & 0.0286068751842012 & 0.9856965624079 \tabularnewline
26 & 0.0113283552367510 & 0.0226567104735020 & 0.98867164476325 \tabularnewline
27 & 0.00898079936669755 & 0.0179615987333951 & 0.991019200633303 \tabularnewline
28 & 0.00671281792372933 & 0.0134256358474587 & 0.99328718207627 \tabularnewline
29 & 0.00502261478170388 & 0.0100452295634078 & 0.994977385218296 \tabularnewline
30 & 0.00367036026733956 & 0.00734072053467911 & 0.99632963973266 \tabularnewline
31 & 0.00433826090676763 & 0.00867652181353526 & 0.995661739093232 \tabularnewline
32 & 0.0160384184668854 & 0.0320768369337709 & 0.983961581533115 \tabularnewline
33 & 0.0327120127628913 & 0.0654240255257825 & 0.967287987237109 \tabularnewline
34 & 0.0396457622211885 & 0.079291524442377 & 0.960354237778811 \tabularnewline
35 & 0.0509954932103726 & 0.101990986420745 & 0.949004506789627 \tabularnewline
36 & 0.090322561266544 & 0.180645122533088 & 0.909677438733456 \tabularnewline
37 & 0.133944862273623 & 0.267889724547245 & 0.866055137726377 \tabularnewline
38 & 0.282677084124084 & 0.565354168248169 & 0.717322915875916 \tabularnewline
39 & 0.638588905342135 & 0.722822189315729 & 0.361411094657865 \tabularnewline
40 & 0.64985691315727 & 0.70028617368546 & 0.35014308684273 \tabularnewline
41 & 0.540776842775894 & 0.918446314448211 & 0.459223157224106 \tabularnewline
42 & 0.50550491786733 & 0.98899016426534 & 0.49449508213267 \tabularnewline
43 & 0.598565107353217 & 0.802869785293566 & 0.401434892646783 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70668&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]17[/C][C]0.0360839340510355[/C][C]0.072167868102071[/C][C]0.963916065948965[/C][/ROW]
[ROW][C]18[/C][C]0.0086425812989875[/C][C]0.017285162597975[/C][C]0.991357418701013[/C][/ROW]
[ROW][C]19[/C][C]0.00342402840015307[/C][C]0.00684805680030613[/C][C]0.996575971599847[/C][/ROW]
[ROW][C]20[/C][C]0.000881132533890571[/C][C]0.00176226506778114[/C][C]0.99911886746611[/C][/ROW]
[ROW][C]21[/C][C]0.000190340236380468[/C][C]0.000380680472760937[/C][C]0.99980965976362[/C][/ROW]
[ROW][C]22[/C][C]0.00132982009044388[/C][C]0.00265964018088775[/C][C]0.998670179909556[/C][/ROW]
[ROW][C]23[/C][C]0.00660552700157844[/C][C]0.0132110540031569[/C][C]0.993394472998422[/C][/ROW]
[ROW][C]24[/C][C]0.00999920614943096[/C][C]0.0199984122988619[/C][C]0.99000079385057[/C][/ROW]
[ROW][C]25[/C][C]0.0143034375921006[/C][C]0.0286068751842012[/C][C]0.9856965624079[/C][/ROW]
[ROW][C]26[/C][C]0.0113283552367510[/C][C]0.0226567104735020[/C][C]0.98867164476325[/C][/ROW]
[ROW][C]27[/C][C]0.00898079936669755[/C][C]0.0179615987333951[/C][C]0.991019200633303[/C][/ROW]
[ROW][C]28[/C][C]0.00671281792372933[/C][C]0.0134256358474587[/C][C]0.99328718207627[/C][/ROW]
[ROW][C]29[/C][C]0.00502261478170388[/C][C]0.0100452295634078[/C][C]0.994977385218296[/C][/ROW]
[ROW][C]30[/C][C]0.00367036026733956[/C][C]0.00734072053467911[/C][C]0.99632963973266[/C][/ROW]
[ROW][C]31[/C][C]0.00433826090676763[/C][C]0.00867652181353526[/C][C]0.995661739093232[/C][/ROW]
[ROW][C]32[/C][C]0.0160384184668854[/C][C]0.0320768369337709[/C][C]0.983961581533115[/C][/ROW]
[ROW][C]33[/C][C]0.0327120127628913[/C][C]0.0654240255257825[/C][C]0.967287987237109[/C][/ROW]
[ROW][C]34[/C][C]0.0396457622211885[/C][C]0.079291524442377[/C][C]0.960354237778811[/C][/ROW]
[ROW][C]35[/C][C]0.0509954932103726[/C][C]0.101990986420745[/C][C]0.949004506789627[/C][/ROW]
[ROW][C]36[/C][C]0.090322561266544[/C][C]0.180645122533088[/C][C]0.909677438733456[/C][/ROW]
[ROW][C]37[/C][C]0.133944862273623[/C][C]0.267889724547245[/C][C]0.866055137726377[/C][/ROW]
[ROW][C]38[/C][C]0.282677084124084[/C][C]0.565354168248169[/C][C]0.717322915875916[/C][/ROW]
[ROW][C]39[/C][C]0.638588905342135[/C][C]0.722822189315729[/C][C]0.361411094657865[/C][/ROW]
[ROW][C]40[/C][C]0.64985691315727[/C][C]0.70028617368546[/C][C]0.35014308684273[/C][/ROW]
[ROW][C]41[/C][C]0.540776842775894[/C][C]0.918446314448211[/C][C]0.459223157224106[/C][/ROW]
[ROW][C]42[/C][C]0.50550491786733[/C][C]0.98899016426534[/C][C]0.49449508213267[/C][/ROW]
[ROW][C]43[/C][C]0.598565107353217[/C][C]0.802869785293566[/C][C]0.401434892646783[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70668&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70668&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
170.03608393405103550.0721678681020710.963916065948965
180.00864258129898750.0172851625979750.991357418701013
190.003424028400153070.006848056800306130.996575971599847
200.0008811325338905710.001762265067781140.99911886746611
210.0001903402363804680.0003806804727609370.99980965976362
220.001329820090443880.002659640180887750.998670179909556
230.006605527001578440.01321105400315690.993394472998422
240.009999206149430960.01999841229886190.99000079385057
250.01430343759210060.02860687518420120.9856965624079
260.01132835523675100.02265671047350200.98867164476325
270.008980799366697550.01796159873339510.991019200633303
280.006712817923729330.01342563584745870.99328718207627
290.005022614781703880.01004522956340780.994977385218296
300.003670360267339560.007340720534679110.99632963973266
310.004338260906767630.008676521813535260.995661739093232
320.01603841846688540.03207683693377090.983961581533115
330.03271201276289130.06542402552578250.967287987237109
340.03964576222118850.0792915244423770.960354237778811
350.05099549321037260.1019909864207450.949004506789627
360.0903225612665440.1806451225330880.909677438733456
370.1339448622736230.2678897245472450.866055137726377
380.2826770841240840.5653541682481690.717322915875916
390.6385889053421350.7228221893157290.361411094657865
400.649856913157270.700286173685460.35014308684273
410.5407768427758940.9184463144482110.459223157224106
420.505504917867330.988990164265340.49449508213267
430.5985651073532170.8028697852935660.401434892646783







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level60.222222222222222NOK
5% type I error level150.555555555555556NOK
10% type I error level180.666666666666667NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70668&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 level60.222222222222222NOK
5% type I error level150.555555555555556NOK
10% type I error level180.666666666666667NOK



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