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, 19 Nov 2009 09:18:59 -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/Nov/19/t1258647577stpo86r503zybfl.htm/, Retrieved Fri, 26 Apr 2024 20:49:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57803, Retrieved Fri, 26 Apr 2024 20:49:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact149
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 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [SHWWS7model1b] [2009-11-19 16:18:59] [db49399df1e4a3dbe31268849cebfd7f] [Current]
Feedback Forum

Post a new message
Dataseries X:
25,60	 0
23,70	 0
22,00	 0
21,30	 0
20,70	 0
20,40	 0
20,30	 0
20,40	 0
19,80	 0
19,50	 0
23,10	 0
23,50	 0
23,50	 0
22,90	 0
21,90	 0
21,50	 0
20,50	 0
20,20	 0
19,40	 0
19,20	 0
18,80	 0
18,80	 0
22,60	 0
23,30	 0
23,00	 0
21,40	 0
19,90	 0
18,80	 0
18,60	 0
18,40	 0 
18,60	 0
19,90	 0
19,20	 0
18,40	 0
21,10	 0
20,50	 0
19,10	 0
18,10	 0
17,00	 0
17,10	 0
17,40	 1
16,80	 1
15,30	 1
14,30	 1
13,40	 1
15,30	 1
22,10	 1
23,70	 1
22,20	 1
19,50	 1
16,60	 1 
17,30	 1
19,80	 1
21,20	 1
21,50	 1
20,60	 1
19,10	 1
19,60	 1
23,50	 1
24,00	 1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 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 & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57803&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]3 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=57803&T=0

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 20.55 -1.39000000000000X[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  20.55 -1.39000000000000X[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57803&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  20.55 -1.39000000000000X[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57803&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57803&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] = + 20.55 -1.39000000000000X[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)20.550.39056152.616600
X-1.390000000000000.676472-2.05480.0444140.022207

\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) & 20.55 & 0.390561 & 52.6166 & 0 & 0 \tabularnewline
X & -1.39000000000000 & 0.676472 & -2.0548 & 0.044414 & 0.022207 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57803&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]20.55[/C][C]0.390561[/C][C]52.6166[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-1.39000000000000[/C][C]0.676472[/C][C]-2.0548[/C][C]0.044414[/C][C]0.022207[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57803&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57803&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)20.550.39056152.616600
X-1.390000000000000.676472-2.05480.0444140.022207







Multiple Linear Regression - Regression Statistics
Multiple R0.260491074856844
R-squared0.0678556000800737
Adjusted R-squared0.0517841449090405
F-TEST (value)4.22211923923198
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.0444142895959601
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.47012494448749
Sum Squared Residuals353.888000000001

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.260491074856844 \tabularnewline
R-squared & 0.0678556000800737 \tabularnewline
Adjusted R-squared & 0.0517841449090405 \tabularnewline
F-TEST (value) & 4.22211923923198 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0.0444142895959601 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 2.47012494448749 \tabularnewline
Sum Squared Residuals & 353.888000000001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57803&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.260491074856844[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0678556000800737[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0517841449090405[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]4.22211923923198[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]0.0444142895959601[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]2.47012494448749[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]353.888000000001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57803&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57803&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.260491074856844
R-squared0.0678556000800737
Adjusted R-squared0.0517841449090405
F-TEST (value)4.22211923923198
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.0444142895959601
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.47012494448749
Sum Squared Residuals353.888000000001







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
125.620.54999999999995.05000000000007
223.720.553.15000000000000
32220.551.45
421.320.550.75
520.720.550.149999999999998
620.420.55-0.150000000000003
720.320.55-0.250000000000001
820.420.55-0.150000000000003
919.820.55-0.750000000000001
1019.520.55-1.05000000000000
1123.120.552.55
1223.520.552.95
1323.520.552.95
1422.920.552.35000000000000
1521.920.551.35000000000000
1621.520.550.949999999999999
1720.520.55-0.0500000000000013
1820.220.55-0.350000000000002
1919.420.55-1.15000000000000
2019.220.55-1.35000000000000
2118.820.55-1.75
2218.820.55-1.75
2322.620.552.05
2423.320.552.75
252320.552.45
2621.420.550.849999999999997
2719.920.55-0.650000000000003
2818.820.55-1.75
2918.620.55-1.95
3018.420.55-2.15000000000000
3118.620.55-1.95
3219.920.55-0.650000000000003
3319.220.55-1.35000000000000
3418.420.55-2.15000000000000
3521.120.550.55
3620.520.55-0.0500000000000013
3719.120.55-1.45
3818.120.55-2.45
391720.55-3.55
4017.120.55-3.45
4117.419.16-1.76
4216.819.16-2.36
4315.319.16-3.86
4414.319.16-4.86
4513.419.16-5.76
4615.319.16-3.86
4722.119.162.94
4823.719.164.54
4922.219.163.04
5019.519.160.34
5116.619.16-2.56
5217.319.16-1.86
5319.819.160.640000000000001
5421.219.162.04
5521.519.162.34
5620.619.161.44
5719.119.16-0.0599999999999986
5819.619.160.440000000000001
5923.519.164.34
602419.164.84

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 25.6 & 20.5499999999999 & 5.05000000000007 \tabularnewline
2 & 23.7 & 20.55 & 3.15000000000000 \tabularnewline
3 & 22 & 20.55 & 1.45 \tabularnewline
4 & 21.3 & 20.55 & 0.75 \tabularnewline
5 & 20.7 & 20.55 & 0.149999999999998 \tabularnewline
6 & 20.4 & 20.55 & -0.150000000000003 \tabularnewline
7 & 20.3 & 20.55 & -0.250000000000001 \tabularnewline
8 & 20.4 & 20.55 & -0.150000000000003 \tabularnewline
9 & 19.8 & 20.55 & -0.750000000000001 \tabularnewline
10 & 19.5 & 20.55 & -1.05000000000000 \tabularnewline
11 & 23.1 & 20.55 & 2.55 \tabularnewline
12 & 23.5 & 20.55 & 2.95 \tabularnewline
13 & 23.5 & 20.55 & 2.95 \tabularnewline
14 & 22.9 & 20.55 & 2.35000000000000 \tabularnewline
15 & 21.9 & 20.55 & 1.35000000000000 \tabularnewline
16 & 21.5 & 20.55 & 0.949999999999999 \tabularnewline
17 & 20.5 & 20.55 & -0.0500000000000013 \tabularnewline
18 & 20.2 & 20.55 & -0.350000000000002 \tabularnewline
19 & 19.4 & 20.55 & -1.15000000000000 \tabularnewline
20 & 19.2 & 20.55 & -1.35000000000000 \tabularnewline
21 & 18.8 & 20.55 & -1.75 \tabularnewline
22 & 18.8 & 20.55 & -1.75 \tabularnewline
23 & 22.6 & 20.55 & 2.05 \tabularnewline
24 & 23.3 & 20.55 & 2.75 \tabularnewline
25 & 23 & 20.55 & 2.45 \tabularnewline
26 & 21.4 & 20.55 & 0.849999999999997 \tabularnewline
27 & 19.9 & 20.55 & -0.650000000000003 \tabularnewline
28 & 18.8 & 20.55 & -1.75 \tabularnewline
29 & 18.6 & 20.55 & -1.95 \tabularnewline
30 & 18.4 & 20.55 & -2.15000000000000 \tabularnewline
31 & 18.6 & 20.55 & -1.95 \tabularnewline
32 & 19.9 & 20.55 & -0.650000000000003 \tabularnewline
33 & 19.2 & 20.55 & -1.35000000000000 \tabularnewline
34 & 18.4 & 20.55 & -2.15000000000000 \tabularnewline
35 & 21.1 & 20.55 & 0.55 \tabularnewline
36 & 20.5 & 20.55 & -0.0500000000000013 \tabularnewline
37 & 19.1 & 20.55 & -1.45 \tabularnewline
38 & 18.1 & 20.55 & -2.45 \tabularnewline
39 & 17 & 20.55 & -3.55 \tabularnewline
40 & 17.1 & 20.55 & -3.45 \tabularnewline
41 & 17.4 & 19.16 & -1.76 \tabularnewline
42 & 16.8 & 19.16 & -2.36 \tabularnewline
43 & 15.3 & 19.16 & -3.86 \tabularnewline
44 & 14.3 & 19.16 & -4.86 \tabularnewline
45 & 13.4 & 19.16 & -5.76 \tabularnewline
46 & 15.3 & 19.16 & -3.86 \tabularnewline
47 & 22.1 & 19.16 & 2.94 \tabularnewline
48 & 23.7 & 19.16 & 4.54 \tabularnewline
49 & 22.2 & 19.16 & 3.04 \tabularnewline
50 & 19.5 & 19.16 & 0.34 \tabularnewline
51 & 16.6 & 19.16 & -2.56 \tabularnewline
52 & 17.3 & 19.16 & -1.86 \tabularnewline
53 & 19.8 & 19.16 & 0.640000000000001 \tabularnewline
54 & 21.2 & 19.16 & 2.04 \tabularnewline
55 & 21.5 & 19.16 & 2.34 \tabularnewline
56 & 20.6 & 19.16 & 1.44 \tabularnewline
57 & 19.1 & 19.16 & -0.0599999999999986 \tabularnewline
58 & 19.6 & 19.16 & 0.440000000000001 \tabularnewline
59 & 23.5 & 19.16 & 4.34 \tabularnewline
60 & 24 & 19.16 & 4.84 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57803&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]25.6[/C][C]20.5499999999999[/C][C]5.05000000000007[/C][/ROW]
[ROW][C]2[/C][C]23.7[/C][C]20.55[/C][C]3.15000000000000[/C][/ROW]
[ROW][C]3[/C][C]22[/C][C]20.55[/C][C]1.45[/C][/ROW]
[ROW][C]4[/C][C]21.3[/C][C]20.55[/C][C]0.75[/C][/ROW]
[ROW][C]5[/C][C]20.7[/C][C]20.55[/C][C]0.149999999999998[/C][/ROW]
[ROW][C]6[/C][C]20.4[/C][C]20.55[/C][C]-0.150000000000003[/C][/ROW]
[ROW][C]7[/C][C]20.3[/C][C]20.55[/C][C]-0.250000000000001[/C][/ROW]
[ROW][C]8[/C][C]20.4[/C][C]20.55[/C][C]-0.150000000000003[/C][/ROW]
[ROW][C]9[/C][C]19.8[/C][C]20.55[/C][C]-0.750000000000001[/C][/ROW]
[ROW][C]10[/C][C]19.5[/C][C]20.55[/C][C]-1.05000000000000[/C][/ROW]
[ROW][C]11[/C][C]23.1[/C][C]20.55[/C][C]2.55[/C][/ROW]
[ROW][C]12[/C][C]23.5[/C][C]20.55[/C][C]2.95[/C][/ROW]
[ROW][C]13[/C][C]23.5[/C][C]20.55[/C][C]2.95[/C][/ROW]
[ROW][C]14[/C][C]22.9[/C][C]20.55[/C][C]2.35000000000000[/C][/ROW]
[ROW][C]15[/C][C]21.9[/C][C]20.55[/C][C]1.35000000000000[/C][/ROW]
[ROW][C]16[/C][C]21.5[/C][C]20.55[/C][C]0.949999999999999[/C][/ROW]
[ROW][C]17[/C][C]20.5[/C][C]20.55[/C][C]-0.0500000000000013[/C][/ROW]
[ROW][C]18[/C][C]20.2[/C][C]20.55[/C][C]-0.350000000000002[/C][/ROW]
[ROW][C]19[/C][C]19.4[/C][C]20.55[/C][C]-1.15000000000000[/C][/ROW]
[ROW][C]20[/C][C]19.2[/C][C]20.55[/C][C]-1.35000000000000[/C][/ROW]
[ROW][C]21[/C][C]18.8[/C][C]20.55[/C][C]-1.75[/C][/ROW]
[ROW][C]22[/C][C]18.8[/C][C]20.55[/C][C]-1.75[/C][/ROW]
[ROW][C]23[/C][C]22.6[/C][C]20.55[/C][C]2.05[/C][/ROW]
[ROW][C]24[/C][C]23.3[/C][C]20.55[/C][C]2.75[/C][/ROW]
[ROW][C]25[/C][C]23[/C][C]20.55[/C][C]2.45[/C][/ROW]
[ROW][C]26[/C][C]21.4[/C][C]20.55[/C][C]0.849999999999997[/C][/ROW]
[ROW][C]27[/C][C]19.9[/C][C]20.55[/C][C]-0.650000000000003[/C][/ROW]
[ROW][C]28[/C][C]18.8[/C][C]20.55[/C][C]-1.75[/C][/ROW]
[ROW][C]29[/C][C]18.6[/C][C]20.55[/C][C]-1.95[/C][/ROW]
[ROW][C]30[/C][C]18.4[/C][C]20.55[/C][C]-2.15000000000000[/C][/ROW]
[ROW][C]31[/C][C]18.6[/C][C]20.55[/C][C]-1.95[/C][/ROW]
[ROW][C]32[/C][C]19.9[/C][C]20.55[/C][C]-0.650000000000003[/C][/ROW]
[ROW][C]33[/C][C]19.2[/C][C]20.55[/C][C]-1.35000000000000[/C][/ROW]
[ROW][C]34[/C][C]18.4[/C][C]20.55[/C][C]-2.15000000000000[/C][/ROW]
[ROW][C]35[/C][C]21.1[/C][C]20.55[/C][C]0.55[/C][/ROW]
[ROW][C]36[/C][C]20.5[/C][C]20.55[/C][C]-0.0500000000000013[/C][/ROW]
[ROW][C]37[/C][C]19.1[/C][C]20.55[/C][C]-1.45[/C][/ROW]
[ROW][C]38[/C][C]18.1[/C][C]20.55[/C][C]-2.45[/C][/ROW]
[ROW][C]39[/C][C]17[/C][C]20.55[/C][C]-3.55[/C][/ROW]
[ROW][C]40[/C][C]17.1[/C][C]20.55[/C][C]-3.45[/C][/ROW]
[ROW][C]41[/C][C]17.4[/C][C]19.16[/C][C]-1.76[/C][/ROW]
[ROW][C]42[/C][C]16.8[/C][C]19.16[/C][C]-2.36[/C][/ROW]
[ROW][C]43[/C][C]15.3[/C][C]19.16[/C][C]-3.86[/C][/ROW]
[ROW][C]44[/C][C]14.3[/C][C]19.16[/C][C]-4.86[/C][/ROW]
[ROW][C]45[/C][C]13.4[/C][C]19.16[/C][C]-5.76[/C][/ROW]
[ROW][C]46[/C][C]15.3[/C][C]19.16[/C][C]-3.86[/C][/ROW]
[ROW][C]47[/C][C]22.1[/C][C]19.16[/C][C]2.94[/C][/ROW]
[ROW][C]48[/C][C]23.7[/C][C]19.16[/C][C]4.54[/C][/ROW]
[ROW][C]49[/C][C]22.2[/C][C]19.16[/C][C]3.04[/C][/ROW]
[ROW][C]50[/C][C]19.5[/C][C]19.16[/C][C]0.34[/C][/ROW]
[ROW][C]51[/C][C]16.6[/C][C]19.16[/C][C]-2.56[/C][/ROW]
[ROW][C]52[/C][C]17.3[/C][C]19.16[/C][C]-1.86[/C][/ROW]
[ROW][C]53[/C][C]19.8[/C][C]19.16[/C][C]0.640000000000001[/C][/ROW]
[ROW][C]54[/C][C]21.2[/C][C]19.16[/C][C]2.04[/C][/ROW]
[ROW][C]55[/C][C]21.5[/C][C]19.16[/C][C]2.34[/C][/ROW]
[ROW][C]56[/C][C]20.6[/C][C]19.16[/C][C]1.44[/C][/ROW]
[ROW][C]57[/C][C]19.1[/C][C]19.16[/C][C]-0.0599999999999986[/C][/ROW]
[ROW][C]58[/C][C]19.6[/C][C]19.16[/C][C]0.440000000000001[/C][/ROW]
[ROW][C]59[/C][C]23.5[/C][C]19.16[/C][C]4.34[/C][/ROW]
[ROW][C]60[/C][C]24[/C][C]19.16[/C][C]4.84[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57803&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57803&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
125.620.54999999999995.05000000000007
223.720.553.15000000000000
32220.551.45
421.320.550.75
520.720.550.149999999999998
620.420.55-0.150000000000003
720.320.55-0.250000000000001
820.420.55-0.150000000000003
919.820.55-0.750000000000001
1019.520.55-1.05000000000000
1123.120.552.55
1223.520.552.95
1323.520.552.95
1422.920.552.35000000000000
1521.920.551.35000000000000
1621.520.550.949999999999999
1720.520.55-0.0500000000000013
1820.220.55-0.350000000000002
1919.420.55-1.15000000000000
2019.220.55-1.35000000000000
2118.820.55-1.75
2218.820.55-1.75
2322.620.552.05
2423.320.552.75
252320.552.45
2621.420.550.849999999999997
2719.920.55-0.650000000000003
2818.820.55-1.75
2918.620.55-1.95
3018.420.55-2.15000000000000
3118.620.55-1.95
3219.920.55-0.650000000000003
3319.220.55-1.35000000000000
3418.420.55-2.15000000000000
3521.120.550.55
3620.520.55-0.0500000000000013
3719.120.55-1.45
3818.120.55-2.45
391720.55-3.55
4017.120.55-3.45
4117.419.16-1.76
4216.819.16-2.36
4315.319.16-3.86
4414.319.16-4.86
4513.419.16-5.76
4615.319.16-3.86
4722.119.162.94
4823.719.164.54
4922.219.163.04
5019.519.160.34
5116.619.16-2.56
5217.319.16-1.86
5319.819.160.640000000000001
5421.219.162.04
5521.519.162.34
5620.619.161.44
5719.119.16-0.0599999999999986
5819.619.160.440000000000001
5923.519.164.34
602419.164.84







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.5505506323814110.8988987352371780.449449367618589
60.4916209406801110.9832418813602230.508379059319889
70.4215637039909610.8431274079819220.578436296009039
80.3380951167928780.6761902335857560.661904883207122
90.2924521493258450.5849042986516910.707547850674155
100.2583128129596110.5166256259192220.741687187040389
110.2238963598032900.4477927196065790.77610364019671
120.2121765317856460.4243530635712930.787823468214354
130.1987046024028460.3974092048056920.801295397597154
140.1614099286631440.3228198573262880.838590071336856
150.1147287686616190.2294575373232390.88527123133838
160.07918357628208560.1583671525641710.920816423717914
170.05952699092517390.1190539818503480.940473009074826
180.04653074199017750.0930614839803550.953469258009823
190.04526554817622380.09053109635244760.954734451823776
200.04455158976262460.08910317952524920.955448410237375
210.04794506818793750.0958901363758750.952054931812063
220.04810204658015340.09620409316030680.951897953419847
230.04144008640093750.0828801728018750.958559913599063
240.04716464187399810.09432928374799620.952835358126002
250.0499610993667540.0999221987335080.950038900633246
260.03748348533878620.07496697067757240.962516514661214
270.02883704320683620.05767408641367250.971162956793164
280.02815385933740760.05630771867481520.971846140662592
290.02784126077454750.0556825215490950.972158739225452
300.02789467153436260.05578934306872530.972105328465637
310.02503168034882060.05006336069764120.97496831965118
320.01735946037778240.03471892075556480.982640539622218
330.01282551454343310.02565102908686620.987174485456567
340.01116589672025480.02233179344050950.988834103279745
350.008210842399543920.01642168479908780.991789157600456
360.005913751125707930.01182750225141590.994086248874292
370.004412075891210280.008824151782420560.99558792410879
380.00394603904830170.00789207809660340.996053960951698
390.004762919869135380.009525839738270760.995237080130865
400.004990773601632840.009981547203265680.995009226398367
410.003149317533271000.006298635066542000.996850682466729
420.002233199562137060.004466399124274130.997766800437863
430.002927959631166110.005855919262332220.997072040368834
440.008043587083212730.01608717416642550.991956412916787
450.05960463898336840.1192092779667370.940395361016632
460.1689808767664660.3379617535329320.831019123233534
470.2542012428608690.5084024857217390.74579875713913
480.4505094807453050.901018961490610.549490519254695
490.4620152146371050.924030429274210.537984785362895
500.371982050494350.74396410098870.62801794950565
510.5128910163954640.9742179672090710.487108983604536
520.6706071594406370.6587856811187270.329392840559363
530.5982768870411720.8034462259176560.401723112958828
540.4659400985047390.9318801970094790.534059901495261
550.3216291649763220.6432583299526450.678370835023678

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.550550632381411 & 0.898898735237178 & 0.449449367618589 \tabularnewline
6 & 0.491620940680111 & 0.983241881360223 & 0.508379059319889 \tabularnewline
7 & 0.421563703990961 & 0.843127407981922 & 0.578436296009039 \tabularnewline
8 & 0.338095116792878 & 0.676190233585756 & 0.661904883207122 \tabularnewline
9 & 0.292452149325845 & 0.584904298651691 & 0.707547850674155 \tabularnewline
10 & 0.258312812959611 & 0.516625625919222 & 0.741687187040389 \tabularnewline
11 & 0.223896359803290 & 0.447792719606579 & 0.77610364019671 \tabularnewline
12 & 0.212176531785646 & 0.424353063571293 & 0.787823468214354 \tabularnewline
13 & 0.198704602402846 & 0.397409204805692 & 0.801295397597154 \tabularnewline
14 & 0.161409928663144 & 0.322819857326288 & 0.838590071336856 \tabularnewline
15 & 0.114728768661619 & 0.229457537323239 & 0.88527123133838 \tabularnewline
16 & 0.0791835762820856 & 0.158367152564171 & 0.920816423717914 \tabularnewline
17 & 0.0595269909251739 & 0.119053981850348 & 0.940473009074826 \tabularnewline
18 & 0.0465307419901775 & 0.093061483980355 & 0.953469258009823 \tabularnewline
19 & 0.0452655481762238 & 0.0905310963524476 & 0.954734451823776 \tabularnewline
20 & 0.0445515897626246 & 0.0891031795252492 & 0.955448410237375 \tabularnewline
21 & 0.0479450681879375 & 0.095890136375875 & 0.952054931812063 \tabularnewline
22 & 0.0481020465801534 & 0.0962040931603068 & 0.951897953419847 \tabularnewline
23 & 0.0414400864009375 & 0.082880172801875 & 0.958559913599063 \tabularnewline
24 & 0.0471646418739981 & 0.0943292837479962 & 0.952835358126002 \tabularnewline
25 & 0.049961099366754 & 0.099922198733508 & 0.950038900633246 \tabularnewline
26 & 0.0374834853387862 & 0.0749669706775724 & 0.962516514661214 \tabularnewline
27 & 0.0288370432068362 & 0.0576740864136725 & 0.971162956793164 \tabularnewline
28 & 0.0281538593374076 & 0.0563077186748152 & 0.971846140662592 \tabularnewline
29 & 0.0278412607745475 & 0.055682521549095 & 0.972158739225452 \tabularnewline
30 & 0.0278946715343626 & 0.0557893430687253 & 0.972105328465637 \tabularnewline
31 & 0.0250316803488206 & 0.0500633606976412 & 0.97496831965118 \tabularnewline
32 & 0.0173594603777824 & 0.0347189207555648 & 0.982640539622218 \tabularnewline
33 & 0.0128255145434331 & 0.0256510290868662 & 0.987174485456567 \tabularnewline
34 & 0.0111658967202548 & 0.0223317934405095 & 0.988834103279745 \tabularnewline
35 & 0.00821084239954392 & 0.0164216847990878 & 0.991789157600456 \tabularnewline
36 & 0.00591375112570793 & 0.0118275022514159 & 0.994086248874292 \tabularnewline
37 & 0.00441207589121028 & 0.00882415178242056 & 0.99558792410879 \tabularnewline
38 & 0.0039460390483017 & 0.0078920780966034 & 0.996053960951698 \tabularnewline
39 & 0.00476291986913538 & 0.00952583973827076 & 0.995237080130865 \tabularnewline
40 & 0.00499077360163284 & 0.00998154720326568 & 0.995009226398367 \tabularnewline
41 & 0.00314931753327100 & 0.00629863506654200 & 0.996850682466729 \tabularnewline
42 & 0.00223319956213706 & 0.00446639912427413 & 0.997766800437863 \tabularnewline
43 & 0.00292795963116611 & 0.00585591926233222 & 0.997072040368834 \tabularnewline
44 & 0.00804358708321273 & 0.0160871741664255 & 0.991956412916787 \tabularnewline
45 & 0.0596046389833684 & 0.119209277966737 & 0.940395361016632 \tabularnewline
46 & 0.168980876766466 & 0.337961753532932 & 0.831019123233534 \tabularnewline
47 & 0.254201242860869 & 0.508402485721739 & 0.74579875713913 \tabularnewline
48 & 0.450509480745305 & 0.90101896149061 & 0.549490519254695 \tabularnewline
49 & 0.462015214637105 & 0.92403042927421 & 0.537984785362895 \tabularnewline
50 & 0.37198205049435 & 0.7439641009887 & 0.62801794950565 \tabularnewline
51 & 0.512891016395464 & 0.974217967209071 & 0.487108983604536 \tabularnewline
52 & 0.670607159440637 & 0.658785681118727 & 0.329392840559363 \tabularnewline
53 & 0.598276887041172 & 0.803446225917656 & 0.401723112958828 \tabularnewline
54 & 0.465940098504739 & 0.931880197009479 & 0.534059901495261 \tabularnewline
55 & 0.321629164976322 & 0.643258329952645 & 0.678370835023678 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57803&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.550550632381411[/C][C]0.898898735237178[/C][C]0.449449367618589[/C][/ROW]
[ROW][C]6[/C][C]0.491620940680111[/C][C]0.983241881360223[/C][C]0.508379059319889[/C][/ROW]
[ROW][C]7[/C][C]0.421563703990961[/C][C]0.843127407981922[/C][C]0.578436296009039[/C][/ROW]
[ROW][C]8[/C][C]0.338095116792878[/C][C]0.676190233585756[/C][C]0.661904883207122[/C][/ROW]
[ROW][C]9[/C][C]0.292452149325845[/C][C]0.584904298651691[/C][C]0.707547850674155[/C][/ROW]
[ROW][C]10[/C][C]0.258312812959611[/C][C]0.516625625919222[/C][C]0.741687187040389[/C][/ROW]
[ROW][C]11[/C][C]0.223896359803290[/C][C]0.447792719606579[/C][C]0.77610364019671[/C][/ROW]
[ROW][C]12[/C][C]0.212176531785646[/C][C]0.424353063571293[/C][C]0.787823468214354[/C][/ROW]
[ROW][C]13[/C][C]0.198704602402846[/C][C]0.397409204805692[/C][C]0.801295397597154[/C][/ROW]
[ROW][C]14[/C][C]0.161409928663144[/C][C]0.322819857326288[/C][C]0.838590071336856[/C][/ROW]
[ROW][C]15[/C][C]0.114728768661619[/C][C]0.229457537323239[/C][C]0.88527123133838[/C][/ROW]
[ROW][C]16[/C][C]0.0791835762820856[/C][C]0.158367152564171[/C][C]0.920816423717914[/C][/ROW]
[ROW][C]17[/C][C]0.0595269909251739[/C][C]0.119053981850348[/C][C]0.940473009074826[/C][/ROW]
[ROW][C]18[/C][C]0.0465307419901775[/C][C]0.093061483980355[/C][C]0.953469258009823[/C][/ROW]
[ROW][C]19[/C][C]0.0452655481762238[/C][C]0.0905310963524476[/C][C]0.954734451823776[/C][/ROW]
[ROW][C]20[/C][C]0.0445515897626246[/C][C]0.0891031795252492[/C][C]0.955448410237375[/C][/ROW]
[ROW][C]21[/C][C]0.0479450681879375[/C][C]0.095890136375875[/C][C]0.952054931812063[/C][/ROW]
[ROW][C]22[/C][C]0.0481020465801534[/C][C]0.0962040931603068[/C][C]0.951897953419847[/C][/ROW]
[ROW][C]23[/C][C]0.0414400864009375[/C][C]0.082880172801875[/C][C]0.958559913599063[/C][/ROW]
[ROW][C]24[/C][C]0.0471646418739981[/C][C]0.0943292837479962[/C][C]0.952835358126002[/C][/ROW]
[ROW][C]25[/C][C]0.049961099366754[/C][C]0.099922198733508[/C][C]0.950038900633246[/C][/ROW]
[ROW][C]26[/C][C]0.0374834853387862[/C][C]0.0749669706775724[/C][C]0.962516514661214[/C][/ROW]
[ROW][C]27[/C][C]0.0288370432068362[/C][C]0.0576740864136725[/C][C]0.971162956793164[/C][/ROW]
[ROW][C]28[/C][C]0.0281538593374076[/C][C]0.0563077186748152[/C][C]0.971846140662592[/C][/ROW]
[ROW][C]29[/C][C]0.0278412607745475[/C][C]0.055682521549095[/C][C]0.972158739225452[/C][/ROW]
[ROW][C]30[/C][C]0.0278946715343626[/C][C]0.0557893430687253[/C][C]0.972105328465637[/C][/ROW]
[ROW][C]31[/C][C]0.0250316803488206[/C][C]0.0500633606976412[/C][C]0.97496831965118[/C][/ROW]
[ROW][C]32[/C][C]0.0173594603777824[/C][C]0.0347189207555648[/C][C]0.982640539622218[/C][/ROW]
[ROW][C]33[/C][C]0.0128255145434331[/C][C]0.0256510290868662[/C][C]0.987174485456567[/C][/ROW]
[ROW][C]34[/C][C]0.0111658967202548[/C][C]0.0223317934405095[/C][C]0.988834103279745[/C][/ROW]
[ROW][C]35[/C][C]0.00821084239954392[/C][C]0.0164216847990878[/C][C]0.991789157600456[/C][/ROW]
[ROW][C]36[/C][C]0.00591375112570793[/C][C]0.0118275022514159[/C][C]0.994086248874292[/C][/ROW]
[ROW][C]37[/C][C]0.00441207589121028[/C][C]0.00882415178242056[/C][C]0.99558792410879[/C][/ROW]
[ROW][C]38[/C][C]0.0039460390483017[/C][C]0.0078920780966034[/C][C]0.996053960951698[/C][/ROW]
[ROW][C]39[/C][C]0.00476291986913538[/C][C]0.00952583973827076[/C][C]0.995237080130865[/C][/ROW]
[ROW][C]40[/C][C]0.00499077360163284[/C][C]0.00998154720326568[/C][C]0.995009226398367[/C][/ROW]
[ROW][C]41[/C][C]0.00314931753327100[/C][C]0.00629863506654200[/C][C]0.996850682466729[/C][/ROW]
[ROW][C]42[/C][C]0.00223319956213706[/C][C]0.00446639912427413[/C][C]0.997766800437863[/C][/ROW]
[ROW][C]43[/C][C]0.00292795963116611[/C][C]0.00585591926233222[/C][C]0.997072040368834[/C][/ROW]
[ROW][C]44[/C][C]0.00804358708321273[/C][C]0.0160871741664255[/C][C]0.991956412916787[/C][/ROW]
[ROW][C]45[/C][C]0.0596046389833684[/C][C]0.119209277966737[/C][C]0.940395361016632[/C][/ROW]
[ROW][C]46[/C][C]0.168980876766466[/C][C]0.337961753532932[/C][C]0.831019123233534[/C][/ROW]
[ROW][C]47[/C][C]0.254201242860869[/C][C]0.508402485721739[/C][C]0.74579875713913[/C][/ROW]
[ROW][C]48[/C][C]0.450509480745305[/C][C]0.90101896149061[/C][C]0.549490519254695[/C][/ROW]
[ROW][C]49[/C][C]0.462015214637105[/C][C]0.92403042927421[/C][C]0.537984785362895[/C][/ROW]
[ROW][C]50[/C][C]0.37198205049435[/C][C]0.7439641009887[/C][C]0.62801794950565[/C][/ROW]
[ROW][C]51[/C][C]0.512891016395464[/C][C]0.974217967209071[/C][C]0.487108983604536[/C][/ROW]
[ROW][C]52[/C][C]0.670607159440637[/C][C]0.658785681118727[/C][C]0.329392840559363[/C][/ROW]
[ROW][C]53[/C][C]0.598276887041172[/C][C]0.803446225917656[/C][C]0.401723112958828[/C][/ROW]
[ROW][C]54[/C][C]0.465940098504739[/C][C]0.931880197009479[/C][C]0.534059901495261[/C][/ROW]
[ROW][C]55[/C][C]0.321629164976322[/C][C]0.643258329952645[/C][C]0.678370835023678[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57803&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57803&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.5505506323814110.8988987352371780.449449367618589
60.4916209406801110.9832418813602230.508379059319889
70.4215637039909610.8431274079819220.578436296009039
80.3380951167928780.6761902335857560.661904883207122
90.2924521493258450.5849042986516910.707547850674155
100.2583128129596110.5166256259192220.741687187040389
110.2238963598032900.4477927196065790.77610364019671
120.2121765317856460.4243530635712930.787823468214354
130.1987046024028460.3974092048056920.801295397597154
140.1614099286631440.3228198573262880.838590071336856
150.1147287686616190.2294575373232390.88527123133838
160.07918357628208560.1583671525641710.920816423717914
170.05952699092517390.1190539818503480.940473009074826
180.04653074199017750.0930614839803550.953469258009823
190.04526554817622380.09053109635244760.954734451823776
200.04455158976262460.08910317952524920.955448410237375
210.04794506818793750.0958901363758750.952054931812063
220.04810204658015340.09620409316030680.951897953419847
230.04144008640093750.0828801728018750.958559913599063
240.04716464187399810.09432928374799620.952835358126002
250.0499610993667540.0999221987335080.950038900633246
260.03748348533878620.07496697067757240.962516514661214
270.02883704320683620.05767408641367250.971162956793164
280.02815385933740760.05630771867481520.971846140662592
290.02784126077454750.0556825215490950.972158739225452
300.02789467153436260.05578934306872530.972105328465637
310.02503168034882060.05006336069764120.97496831965118
320.01735946037778240.03471892075556480.982640539622218
330.01282551454343310.02565102908686620.987174485456567
340.01116589672025480.02233179344050950.988834103279745
350.008210842399543920.01642168479908780.991789157600456
360.005913751125707930.01182750225141590.994086248874292
370.004412075891210280.008824151782420560.99558792410879
380.00394603904830170.00789207809660340.996053960951698
390.004762919869135380.009525839738270760.995237080130865
400.004990773601632840.009981547203265680.995009226398367
410.003149317533271000.006298635066542000.996850682466729
420.002233199562137060.004466399124274130.997766800437863
430.002927959631166110.005855919262332220.997072040368834
440.008043587083212730.01608717416642550.991956412916787
450.05960463898336840.1192092779667370.940395361016632
460.1689808767664660.3379617535329320.831019123233534
470.2542012428608690.5084024857217390.74579875713913
480.4505094807453050.901018961490610.549490519254695
490.4620152146371050.924030429274210.537984785362895
500.371982050494350.74396410098870.62801794950565
510.5128910163954640.9742179672090710.487108983604536
520.6706071594406370.6587856811187270.329392840559363
530.5982768870411720.8034462259176560.401723112958828
540.4659400985047390.9318801970094790.534059901495261
550.3216291649763220.6432583299526450.678370835023678







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level70.137254901960784NOK
5% type I error level130.254901960784314NOK
10% type I error level270.529411764705882NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57803&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 level70.137254901960784NOK
5% type I error level130.254901960784314NOK
10% type I error level270.529411764705882NOK



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