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 computationFri, 24 Dec 2010 10:19:14 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/24/t1293185880kucvcih4i9xe346.htm/, Retrieved Tue, 30 Apr 2024 06:00:27 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=114703, Retrieved Tue, 30 Apr 2024 06:00:27 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact177
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] [] [2009-11-19 16:13:55] [2f674a53c3d7aaa1bcf80e66074d3c9b]
-   PD      [Multiple Regression] [] [2009-12-15 14:33:24] [2f674a53c3d7aaa1bcf80e66074d3c9b]
-   PD          [Multiple Regression] [paper] [2010-12-24 10:19:14] [5d6b44265a1bea1cb58a5907cde468a5] [Current]
Feedback Forum

Post a new message
Dataseries X:
25	0
29	0
28	0
25	0
26	0
24	0
28	0
28	0
28	0
28	0
32	0
31	0
22	0
29	0
31	0
29	0
32	0
32	0
31	0
29	0
28	0
28	0
29	0
22	0
26	0
24	0
27	0
27	0
23	0
21	0
19	0
17	0
19	1
21	1
13	1
8	1
5	1
10	1
6	1
6	1
8	1
11	1
12	1
13	1
19	1
19	1
18	1
20	1
15	1
15	1
15	1
17	1
22	1
17	1
21	1
23	1
26	1
26	1
28	1
30	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114703&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'RServer@AstonUniversity' @ vre.aston.ac.uk







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 26.8125 -10.2767857142857X[t] + e[t]

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

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

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







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

\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) & 26.8125 & 0.958694 & 27.9677 & 0 & 0 \tabularnewline
X & -10.2767857142857 & 1.403385 & -7.3229 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114703&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]26.8125[/C][C]0.958694[/C][C]27.9677[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-10.2767857142857[/C][C]1.403385[/C][C]-7.3229[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114703&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114703&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)26.81250.95869427.967700
X-10.27678571428571.403385-7.322900







Multiple Linear Regression - Regression Statistics
Multiple R0.693108686292623
R-squared0.480399651014285
Adjusted R-squared0.471441024307635
F-TEST (value)53.6242514332772
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value8.403331364093e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.42319298637691
Sum Squared Residuals1705.83928571429

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.693108686292623 \tabularnewline
R-squared & 0.480399651014285 \tabularnewline
Adjusted R-squared & 0.471441024307635 \tabularnewline
F-TEST (value) & 53.6242514332772 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 8.403331364093e-10 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.42319298637691 \tabularnewline
Sum Squared Residuals & 1705.83928571429 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114703&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.693108686292623[/C][/ROW]
[ROW][C]R-squared[/C][C]0.480399651014285[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.471441024307635[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]53.6242514332772[/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]8.403331364093e-10[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.42319298637691[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1705.83928571429[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114703&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114703&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.693108686292623
R-squared0.480399651014285
Adjusted R-squared0.471441024307635
F-TEST (value)53.6242514332772
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value8.403331364093e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.42319298637691
Sum Squared Residuals1705.83928571429







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12526.8125-1.81250000000003
22926.81252.18750000000001
32826.81251.1875
42526.8125-1.8125
52626.8125-0.812499999999999
62426.8125-2.8125
72826.81251.1875
82826.81251.1875
92826.81251.1875
102826.81251.1875
113226.81255.1875
123126.81254.1875
132226.8125-4.8125
142926.81252.1875
153126.81254.1875
162926.81252.1875
173226.81255.1875
183226.81255.1875
193126.81254.1875
202926.81252.1875
212826.81251.1875
222826.81251.1875
232926.81252.1875
242226.8125-4.8125
252626.8125-0.812499999999999
262426.8125-2.8125
272726.81250.187500000000001
282726.81250.187500000000001
292326.8125-3.8125
302126.8125-5.8125
311926.8125-7.8125
321726.8125-9.8125
331916.53571428571432.46428571428571
342116.53571428571434.46428571428571
351316.5357142857143-3.53571428571429
36816.5357142857143-8.53571428571429
37516.5357142857143-11.5357142857143
381016.5357142857143-6.53571428571429
39616.5357142857143-10.5357142857143
40616.5357142857143-10.5357142857143
41816.5357142857143-8.53571428571429
421116.5357142857143-5.53571428571429
431216.5357142857143-4.53571428571429
441316.5357142857143-3.53571428571429
451916.53571428571432.46428571428571
461916.53571428571432.46428571428571
471816.53571428571431.46428571428571
482016.53571428571433.46428571428571
491516.5357142857143-1.53571428571429
501516.5357142857143-1.53571428571429
511516.5357142857143-1.53571428571429
521716.53571428571430.464285714285714
532216.53571428571435.46428571428571
541716.53571428571430.464285714285714
552116.53571428571434.46428571428571
562316.53571428571436.46428571428571
572616.53571428571439.46428571428571
582616.53571428571439.46428571428571
592816.535714285714311.4642857142857
603016.535714285714313.4642857142857

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 25 & 26.8125 & -1.81250000000003 \tabularnewline
2 & 29 & 26.8125 & 2.18750000000001 \tabularnewline
3 & 28 & 26.8125 & 1.1875 \tabularnewline
4 & 25 & 26.8125 & -1.8125 \tabularnewline
5 & 26 & 26.8125 & -0.812499999999999 \tabularnewline
6 & 24 & 26.8125 & -2.8125 \tabularnewline
7 & 28 & 26.8125 & 1.1875 \tabularnewline
8 & 28 & 26.8125 & 1.1875 \tabularnewline
9 & 28 & 26.8125 & 1.1875 \tabularnewline
10 & 28 & 26.8125 & 1.1875 \tabularnewline
11 & 32 & 26.8125 & 5.1875 \tabularnewline
12 & 31 & 26.8125 & 4.1875 \tabularnewline
13 & 22 & 26.8125 & -4.8125 \tabularnewline
14 & 29 & 26.8125 & 2.1875 \tabularnewline
15 & 31 & 26.8125 & 4.1875 \tabularnewline
16 & 29 & 26.8125 & 2.1875 \tabularnewline
17 & 32 & 26.8125 & 5.1875 \tabularnewline
18 & 32 & 26.8125 & 5.1875 \tabularnewline
19 & 31 & 26.8125 & 4.1875 \tabularnewline
20 & 29 & 26.8125 & 2.1875 \tabularnewline
21 & 28 & 26.8125 & 1.1875 \tabularnewline
22 & 28 & 26.8125 & 1.1875 \tabularnewline
23 & 29 & 26.8125 & 2.1875 \tabularnewline
24 & 22 & 26.8125 & -4.8125 \tabularnewline
25 & 26 & 26.8125 & -0.812499999999999 \tabularnewline
26 & 24 & 26.8125 & -2.8125 \tabularnewline
27 & 27 & 26.8125 & 0.187500000000001 \tabularnewline
28 & 27 & 26.8125 & 0.187500000000001 \tabularnewline
29 & 23 & 26.8125 & -3.8125 \tabularnewline
30 & 21 & 26.8125 & -5.8125 \tabularnewline
31 & 19 & 26.8125 & -7.8125 \tabularnewline
32 & 17 & 26.8125 & -9.8125 \tabularnewline
33 & 19 & 16.5357142857143 & 2.46428571428571 \tabularnewline
34 & 21 & 16.5357142857143 & 4.46428571428571 \tabularnewline
35 & 13 & 16.5357142857143 & -3.53571428571429 \tabularnewline
36 & 8 & 16.5357142857143 & -8.53571428571429 \tabularnewline
37 & 5 & 16.5357142857143 & -11.5357142857143 \tabularnewline
38 & 10 & 16.5357142857143 & -6.53571428571429 \tabularnewline
39 & 6 & 16.5357142857143 & -10.5357142857143 \tabularnewline
40 & 6 & 16.5357142857143 & -10.5357142857143 \tabularnewline
41 & 8 & 16.5357142857143 & -8.53571428571429 \tabularnewline
42 & 11 & 16.5357142857143 & -5.53571428571429 \tabularnewline
43 & 12 & 16.5357142857143 & -4.53571428571429 \tabularnewline
44 & 13 & 16.5357142857143 & -3.53571428571429 \tabularnewline
45 & 19 & 16.5357142857143 & 2.46428571428571 \tabularnewline
46 & 19 & 16.5357142857143 & 2.46428571428571 \tabularnewline
47 & 18 & 16.5357142857143 & 1.46428571428571 \tabularnewline
48 & 20 & 16.5357142857143 & 3.46428571428571 \tabularnewline
49 & 15 & 16.5357142857143 & -1.53571428571429 \tabularnewline
50 & 15 & 16.5357142857143 & -1.53571428571429 \tabularnewline
51 & 15 & 16.5357142857143 & -1.53571428571429 \tabularnewline
52 & 17 & 16.5357142857143 & 0.464285714285714 \tabularnewline
53 & 22 & 16.5357142857143 & 5.46428571428571 \tabularnewline
54 & 17 & 16.5357142857143 & 0.464285714285714 \tabularnewline
55 & 21 & 16.5357142857143 & 4.46428571428571 \tabularnewline
56 & 23 & 16.5357142857143 & 6.46428571428571 \tabularnewline
57 & 26 & 16.5357142857143 & 9.46428571428571 \tabularnewline
58 & 26 & 16.5357142857143 & 9.46428571428571 \tabularnewline
59 & 28 & 16.5357142857143 & 11.4642857142857 \tabularnewline
60 & 30 & 16.5357142857143 & 13.4642857142857 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114703&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[/C][C]26.8125[/C][C]-1.81250000000003[/C][/ROW]
[ROW][C]2[/C][C]29[/C][C]26.8125[/C][C]2.18750000000001[/C][/ROW]
[ROW][C]3[/C][C]28[/C][C]26.8125[/C][C]1.1875[/C][/ROW]
[ROW][C]4[/C][C]25[/C][C]26.8125[/C][C]-1.8125[/C][/ROW]
[ROW][C]5[/C][C]26[/C][C]26.8125[/C][C]-0.812499999999999[/C][/ROW]
[ROW][C]6[/C][C]24[/C][C]26.8125[/C][C]-2.8125[/C][/ROW]
[ROW][C]7[/C][C]28[/C][C]26.8125[/C][C]1.1875[/C][/ROW]
[ROW][C]8[/C][C]28[/C][C]26.8125[/C][C]1.1875[/C][/ROW]
[ROW][C]9[/C][C]28[/C][C]26.8125[/C][C]1.1875[/C][/ROW]
[ROW][C]10[/C][C]28[/C][C]26.8125[/C][C]1.1875[/C][/ROW]
[ROW][C]11[/C][C]32[/C][C]26.8125[/C][C]5.1875[/C][/ROW]
[ROW][C]12[/C][C]31[/C][C]26.8125[/C][C]4.1875[/C][/ROW]
[ROW][C]13[/C][C]22[/C][C]26.8125[/C][C]-4.8125[/C][/ROW]
[ROW][C]14[/C][C]29[/C][C]26.8125[/C][C]2.1875[/C][/ROW]
[ROW][C]15[/C][C]31[/C][C]26.8125[/C][C]4.1875[/C][/ROW]
[ROW][C]16[/C][C]29[/C][C]26.8125[/C][C]2.1875[/C][/ROW]
[ROW][C]17[/C][C]32[/C][C]26.8125[/C][C]5.1875[/C][/ROW]
[ROW][C]18[/C][C]32[/C][C]26.8125[/C][C]5.1875[/C][/ROW]
[ROW][C]19[/C][C]31[/C][C]26.8125[/C][C]4.1875[/C][/ROW]
[ROW][C]20[/C][C]29[/C][C]26.8125[/C][C]2.1875[/C][/ROW]
[ROW][C]21[/C][C]28[/C][C]26.8125[/C][C]1.1875[/C][/ROW]
[ROW][C]22[/C][C]28[/C][C]26.8125[/C][C]1.1875[/C][/ROW]
[ROW][C]23[/C][C]29[/C][C]26.8125[/C][C]2.1875[/C][/ROW]
[ROW][C]24[/C][C]22[/C][C]26.8125[/C][C]-4.8125[/C][/ROW]
[ROW][C]25[/C][C]26[/C][C]26.8125[/C][C]-0.812499999999999[/C][/ROW]
[ROW][C]26[/C][C]24[/C][C]26.8125[/C][C]-2.8125[/C][/ROW]
[ROW][C]27[/C][C]27[/C][C]26.8125[/C][C]0.187500000000001[/C][/ROW]
[ROW][C]28[/C][C]27[/C][C]26.8125[/C][C]0.187500000000001[/C][/ROW]
[ROW][C]29[/C][C]23[/C][C]26.8125[/C][C]-3.8125[/C][/ROW]
[ROW][C]30[/C][C]21[/C][C]26.8125[/C][C]-5.8125[/C][/ROW]
[ROW][C]31[/C][C]19[/C][C]26.8125[/C][C]-7.8125[/C][/ROW]
[ROW][C]32[/C][C]17[/C][C]26.8125[/C][C]-9.8125[/C][/ROW]
[ROW][C]33[/C][C]19[/C][C]16.5357142857143[/C][C]2.46428571428571[/C][/ROW]
[ROW][C]34[/C][C]21[/C][C]16.5357142857143[/C][C]4.46428571428571[/C][/ROW]
[ROW][C]35[/C][C]13[/C][C]16.5357142857143[/C][C]-3.53571428571429[/C][/ROW]
[ROW][C]36[/C][C]8[/C][C]16.5357142857143[/C][C]-8.53571428571429[/C][/ROW]
[ROW][C]37[/C][C]5[/C][C]16.5357142857143[/C][C]-11.5357142857143[/C][/ROW]
[ROW][C]38[/C][C]10[/C][C]16.5357142857143[/C][C]-6.53571428571429[/C][/ROW]
[ROW][C]39[/C][C]6[/C][C]16.5357142857143[/C][C]-10.5357142857143[/C][/ROW]
[ROW][C]40[/C][C]6[/C][C]16.5357142857143[/C][C]-10.5357142857143[/C][/ROW]
[ROW][C]41[/C][C]8[/C][C]16.5357142857143[/C][C]-8.53571428571429[/C][/ROW]
[ROW][C]42[/C][C]11[/C][C]16.5357142857143[/C][C]-5.53571428571429[/C][/ROW]
[ROW][C]43[/C][C]12[/C][C]16.5357142857143[/C][C]-4.53571428571429[/C][/ROW]
[ROW][C]44[/C][C]13[/C][C]16.5357142857143[/C][C]-3.53571428571429[/C][/ROW]
[ROW][C]45[/C][C]19[/C][C]16.5357142857143[/C][C]2.46428571428571[/C][/ROW]
[ROW][C]46[/C][C]19[/C][C]16.5357142857143[/C][C]2.46428571428571[/C][/ROW]
[ROW][C]47[/C][C]18[/C][C]16.5357142857143[/C][C]1.46428571428571[/C][/ROW]
[ROW][C]48[/C][C]20[/C][C]16.5357142857143[/C][C]3.46428571428571[/C][/ROW]
[ROW][C]49[/C][C]15[/C][C]16.5357142857143[/C][C]-1.53571428571429[/C][/ROW]
[ROW][C]50[/C][C]15[/C][C]16.5357142857143[/C][C]-1.53571428571429[/C][/ROW]
[ROW][C]51[/C][C]15[/C][C]16.5357142857143[/C][C]-1.53571428571429[/C][/ROW]
[ROW][C]52[/C][C]17[/C][C]16.5357142857143[/C][C]0.464285714285714[/C][/ROW]
[ROW][C]53[/C][C]22[/C][C]16.5357142857143[/C][C]5.46428571428571[/C][/ROW]
[ROW][C]54[/C][C]17[/C][C]16.5357142857143[/C][C]0.464285714285714[/C][/ROW]
[ROW][C]55[/C][C]21[/C][C]16.5357142857143[/C][C]4.46428571428571[/C][/ROW]
[ROW][C]56[/C][C]23[/C][C]16.5357142857143[/C][C]6.46428571428571[/C][/ROW]
[ROW][C]57[/C][C]26[/C][C]16.5357142857143[/C][C]9.46428571428571[/C][/ROW]
[ROW][C]58[/C][C]26[/C][C]16.5357142857143[/C][C]9.46428571428571[/C][/ROW]
[ROW][C]59[/C][C]28[/C][C]16.5357142857143[/C][C]11.4642857142857[/C][/ROW]
[ROW][C]60[/C][C]30[/C][C]16.5357142857143[/C][C]13.4642857142857[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114703&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114703&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
12526.8125-1.81250000000003
22926.81252.18750000000001
32826.81251.1875
42526.8125-1.8125
52626.8125-0.812499999999999
62426.8125-2.8125
72826.81251.1875
82826.81251.1875
92826.81251.1875
102826.81251.1875
113226.81255.1875
123126.81254.1875
132226.8125-4.8125
142926.81252.1875
153126.81254.1875
162926.81252.1875
173226.81255.1875
183226.81255.1875
193126.81254.1875
202926.81252.1875
212826.81251.1875
222826.81251.1875
232926.81252.1875
242226.8125-4.8125
252626.8125-0.812499999999999
262426.8125-2.8125
272726.81250.187500000000001
282726.81250.187500000000001
292326.8125-3.8125
302126.8125-5.8125
311926.8125-7.8125
321726.8125-9.8125
331916.53571428571432.46428571428571
342116.53571428571434.46428571428571
351316.5357142857143-3.53571428571429
36816.5357142857143-8.53571428571429
37516.5357142857143-11.5357142857143
381016.5357142857143-6.53571428571429
39616.5357142857143-10.5357142857143
40616.5357142857143-10.5357142857143
41816.5357142857143-8.53571428571429
421116.5357142857143-5.53571428571429
431216.5357142857143-4.53571428571429
441316.5357142857143-3.53571428571429
451916.53571428571432.46428571428571
461916.53571428571432.46428571428571
471816.53571428571431.46428571428571
482016.53571428571433.46428571428571
491516.5357142857143-1.53571428571429
501516.5357142857143-1.53571428571429
511516.5357142857143-1.53571428571429
521716.53571428571430.464285714285714
532216.53571428571435.46428571428571
541716.53571428571430.464285714285714
552116.53571428571434.46428571428571
562316.53571428571436.46428571428571
572616.53571428571439.46428571428571
582616.53571428571439.46428571428571
592816.535714285714311.4642857142857
603016.535714285714313.4642857142857







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.0630054158960320.1260108317920640.936994584103968
60.0357609149011830.07152182980236610.964239085098817
70.01557576205292610.03115152410585220.984424237947074
80.006242080198896120.01248416039779220.993757919801104
90.002326237290687130.004652474581374260.997673762709313
100.0008120556233074340.001624111246614870.999187944376693
110.00301517037552940.006030340751058810.99698482962447
120.002843787745568890.005687575491137780.997156212254431
130.006401020340556520.0128020406811130.993598979659443
140.003305333219049370.006610666438098740.99669466678095
150.002807885170483320.005615770340966650.997192114829517
160.001376414682375270.002752829364750530.998623585317625
170.001578476304143470.003156952608286940.998421523695857
180.001653131922879550.003306263845759090.99834686807712
190.001214272851014390.002428545702028770.998785727148986
200.000613822975757240.001227645951514480.999386177024243
210.0002912188276021330.0005824376552042670.999708781172398
220.0001368641098476510.0002737282196953020.999863135890152
236.99821977393661e-050.0001399643954787320.99993001780226
240.0001821607524446970.0003643215048893940.999817839247555
250.0001006758837562730.0002013517675125450.999899324116244
268.40566353535033e-050.0001681132707070070.999915943364647
274.39044309983566e-058.78088619967132e-050.999956095569002
282.49016488668296e-054.98032977336593e-050.999975098351133
292.922088835233e-055.844177670466e-050.999970779111648
306.42600279423556e-050.0001285200558847110.999935739972058
310.0002301555065370210.0004603110130740420.999769844493463
320.001034444802577620.002068889605155240.998965555197422
330.0005518665668939750.001103733133787950.999448133433106
340.0003332368904206680.0006664737808413370.99966676310958
350.0003405027899099680.0006810055798199360.99965949721009
360.00101469964792110.00202939929584220.998985300352079
370.005148980033266870.01029796006653370.994851019966733
380.004958293775701530.009916587551403060.995041706224298
390.01367171199713050.02734342399426110.98632828800287
400.04033334043536330.08066668087072660.959666659564637
410.0818963833654690.1637927667309380.918103616634531
420.1101488543975260.2202977087950530.889851145602474
430.1448988218104870.2897976436209740.855101178189513
440.1861437199723730.3722874399447470.813856280027627
450.1830362555147080.3660725110294160.816963744485292
460.168882913225150.33776582645030.83111708677485
470.1492737746824690.2985475493649390.85072622531753
480.1279708837662550.2559417675325090.872029116233745
490.142608496437230.2852169928744610.85739150356277
500.1822753561537140.3645507123074280.817724643846286
510.2839960074142850.5679920148285690.716003992585715
520.3802914068932060.7605828137864120.619708593106794
530.3259230990084890.6518461980169790.67407690099151
540.6072332279820290.7855335440359420.392766772017971
550.7166467660374040.5667064679251920.283353233962596

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.063005415896032 & 0.126010831792064 & 0.936994584103968 \tabularnewline
6 & 0.035760914901183 & 0.0715218298023661 & 0.964239085098817 \tabularnewline
7 & 0.0155757620529261 & 0.0311515241058522 & 0.984424237947074 \tabularnewline
8 & 0.00624208019889612 & 0.0124841603977922 & 0.993757919801104 \tabularnewline
9 & 0.00232623729068713 & 0.00465247458137426 & 0.997673762709313 \tabularnewline
10 & 0.000812055623307434 & 0.00162411124661487 & 0.999187944376693 \tabularnewline
11 & 0.0030151703755294 & 0.00603034075105881 & 0.99698482962447 \tabularnewline
12 & 0.00284378774556889 & 0.00568757549113778 & 0.997156212254431 \tabularnewline
13 & 0.00640102034055652 & 0.012802040681113 & 0.993598979659443 \tabularnewline
14 & 0.00330533321904937 & 0.00661066643809874 & 0.99669466678095 \tabularnewline
15 & 0.00280788517048332 & 0.00561577034096665 & 0.997192114829517 \tabularnewline
16 & 0.00137641468237527 & 0.00275282936475053 & 0.998623585317625 \tabularnewline
17 & 0.00157847630414347 & 0.00315695260828694 & 0.998421523695857 \tabularnewline
18 & 0.00165313192287955 & 0.00330626384575909 & 0.99834686807712 \tabularnewline
19 & 0.00121427285101439 & 0.00242854570202877 & 0.998785727148986 \tabularnewline
20 & 0.00061382297575724 & 0.00122764595151448 & 0.999386177024243 \tabularnewline
21 & 0.000291218827602133 & 0.000582437655204267 & 0.999708781172398 \tabularnewline
22 & 0.000136864109847651 & 0.000273728219695302 & 0.999863135890152 \tabularnewline
23 & 6.99821977393661e-05 & 0.000139964395478732 & 0.99993001780226 \tabularnewline
24 & 0.000182160752444697 & 0.000364321504889394 & 0.999817839247555 \tabularnewline
25 & 0.000100675883756273 & 0.000201351767512545 & 0.999899324116244 \tabularnewline
26 & 8.40566353535033e-05 & 0.000168113270707007 & 0.999915943364647 \tabularnewline
27 & 4.39044309983566e-05 & 8.78088619967132e-05 & 0.999956095569002 \tabularnewline
28 & 2.49016488668296e-05 & 4.98032977336593e-05 & 0.999975098351133 \tabularnewline
29 & 2.922088835233e-05 & 5.844177670466e-05 & 0.999970779111648 \tabularnewline
30 & 6.42600279423556e-05 & 0.000128520055884711 & 0.999935739972058 \tabularnewline
31 & 0.000230155506537021 & 0.000460311013074042 & 0.999769844493463 \tabularnewline
32 & 0.00103444480257762 & 0.00206888960515524 & 0.998965555197422 \tabularnewline
33 & 0.000551866566893975 & 0.00110373313378795 & 0.999448133433106 \tabularnewline
34 & 0.000333236890420668 & 0.000666473780841337 & 0.99966676310958 \tabularnewline
35 & 0.000340502789909968 & 0.000681005579819936 & 0.99965949721009 \tabularnewline
36 & 0.0010146996479211 & 0.0020293992958422 & 0.998985300352079 \tabularnewline
37 & 0.00514898003326687 & 0.0102979600665337 & 0.994851019966733 \tabularnewline
38 & 0.00495829377570153 & 0.00991658755140306 & 0.995041706224298 \tabularnewline
39 & 0.0136717119971305 & 0.0273434239942611 & 0.98632828800287 \tabularnewline
40 & 0.0403333404353633 & 0.0806666808707266 & 0.959666659564637 \tabularnewline
41 & 0.081896383365469 & 0.163792766730938 & 0.918103616634531 \tabularnewline
42 & 0.110148854397526 & 0.220297708795053 & 0.889851145602474 \tabularnewline
43 & 0.144898821810487 & 0.289797643620974 & 0.855101178189513 \tabularnewline
44 & 0.186143719972373 & 0.372287439944747 & 0.813856280027627 \tabularnewline
45 & 0.183036255514708 & 0.366072511029416 & 0.816963744485292 \tabularnewline
46 & 0.16888291322515 & 0.3377658264503 & 0.83111708677485 \tabularnewline
47 & 0.149273774682469 & 0.298547549364939 & 0.85072622531753 \tabularnewline
48 & 0.127970883766255 & 0.255941767532509 & 0.872029116233745 \tabularnewline
49 & 0.14260849643723 & 0.285216992874461 & 0.85739150356277 \tabularnewline
50 & 0.182275356153714 & 0.364550712307428 & 0.817724643846286 \tabularnewline
51 & 0.283996007414285 & 0.567992014828569 & 0.716003992585715 \tabularnewline
52 & 0.380291406893206 & 0.760582813786412 & 0.619708593106794 \tabularnewline
53 & 0.325923099008489 & 0.651846198016979 & 0.67407690099151 \tabularnewline
54 & 0.607233227982029 & 0.785533544035942 & 0.392766772017971 \tabularnewline
55 & 0.716646766037404 & 0.566706467925192 & 0.283353233962596 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114703&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.063005415896032[/C][C]0.126010831792064[/C][C]0.936994584103968[/C][/ROW]
[ROW][C]6[/C][C]0.035760914901183[/C][C]0.0715218298023661[/C][C]0.964239085098817[/C][/ROW]
[ROW][C]7[/C][C]0.0155757620529261[/C][C]0.0311515241058522[/C][C]0.984424237947074[/C][/ROW]
[ROW][C]8[/C][C]0.00624208019889612[/C][C]0.0124841603977922[/C][C]0.993757919801104[/C][/ROW]
[ROW][C]9[/C][C]0.00232623729068713[/C][C]0.00465247458137426[/C][C]0.997673762709313[/C][/ROW]
[ROW][C]10[/C][C]0.000812055623307434[/C][C]0.00162411124661487[/C][C]0.999187944376693[/C][/ROW]
[ROW][C]11[/C][C]0.0030151703755294[/C][C]0.00603034075105881[/C][C]0.99698482962447[/C][/ROW]
[ROW][C]12[/C][C]0.00284378774556889[/C][C]0.00568757549113778[/C][C]0.997156212254431[/C][/ROW]
[ROW][C]13[/C][C]0.00640102034055652[/C][C]0.012802040681113[/C][C]0.993598979659443[/C][/ROW]
[ROW][C]14[/C][C]0.00330533321904937[/C][C]0.00661066643809874[/C][C]0.99669466678095[/C][/ROW]
[ROW][C]15[/C][C]0.00280788517048332[/C][C]0.00561577034096665[/C][C]0.997192114829517[/C][/ROW]
[ROW][C]16[/C][C]0.00137641468237527[/C][C]0.00275282936475053[/C][C]0.998623585317625[/C][/ROW]
[ROW][C]17[/C][C]0.00157847630414347[/C][C]0.00315695260828694[/C][C]0.998421523695857[/C][/ROW]
[ROW][C]18[/C][C]0.00165313192287955[/C][C]0.00330626384575909[/C][C]0.99834686807712[/C][/ROW]
[ROW][C]19[/C][C]0.00121427285101439[/C][C]0.00242854570202877[/C][C]0.998785727148986[/C][/ROW]
[ROW][C]20[/C][C]0.00061382297575724[/C][C]0.00122764595151448[/C][C]0.999386177024243[/C][/ROW]
[ROW][C]21[/C][C]0.000291218827602133[/C][C]0.000582437655204267[/C][C]0.999708781172398[/C][/ROW]
[ROW][C]22[/C][C]0.000136864109847651[/C][C]0.000273728219695302[/C][C]0.999863135890152[/C][/ROW]
[ROW][C]23[/C][C]6.99821977393661e-05[/C][C]0.000139964395478732[/C][C]0.99993001780226[/C][/ROW]
[ROW][C]24[/C][C]0.000182160752444697[/C][C]0.000364321504889394[/C][C]0.999817839247555[/C][/ROW]
[ROW][C]25[/C][C]0.000100675883756273[/C][C]0.000201351767512545[/C][C]0.999899324116244[/C][/ROW]
[ROW][C]26[/C][C]8.40566353535033e-05[/C][C]0.000168113270707007[/C][C]0.999915943364647[/C][/ROW]
[ROW][C]27[/C][C]4.39044309983566e-05[/C][C]8.78088619967132e-05[/C][C]0.999956095569002[/C][/ROW]
[ROW][C]28[/C][C]2.49016488668296e-05[/C][C]4.98032977336593e-05[/C][C]0.999975098351133[/C][/ROW]
[ROW][C]29[/C][C]2.922088835233e-05[/C][C]5.844177670466e-05[/C][C]0.999970779111648[/C][/ROW]
[ROW][C]30[/C][C]6.42600279423556e-05[/C][C]0.000128520055884711[/C][C]0.999935739972058[/C][/ROW]
[ROW][C]31[/C][C]0.000230155506537021[/C][C]0.000460311013074042[/C][C]0.999769844493463[/C][/ROW]
[ROW][C]32[/C][C]0.00103444480257762[/C][C]0.00206888960515524[/C][C]0.998965555197422[/C][/ROW]
[ROW][C]33[/C][C]0.000551866566893975[/C][C]0.00110373313378795[/C][C]0.999448133433106[/C][/ROW]
[ROW][C]34[/C][C]0.000333236890420668[/C][C]0.000666473780841337[/C][C]0.99966676310958[/C][/ROW]
[ROW][C]35[/C][C]0.000340502789909968[/C][C]0.000681005579819936[/C][C]0.99965949721009[/C][/ROW]
[ROW][C]36[/C][C]0.0010146996479211[/C][C]0.0020293992958422[/C][C]0.998985300352079[/C][/ROW]
[ROW][C]37[/C][C]0.00514898003326687[/C][C]0.0102979600665337[/C][C]0.994851019966733[/C][/ROW]
[ROW][C]38[/C][C]0.00495829377570153[/C][C]0.00991658755140306[/C][C]0.995041706224298[/C][/ROW]
[ROW][C]39[/C][C]0.0136717119971305[/C][C]0.0273434239942611[/C][C]0.98632828800287[/C][/ROW]
[ROW][C]40[/C][C]0.0403333404353633[/C][C]0.0806666808707266[/C][C]0.959666659564637[/C][/ROW]
[ROW][C]41[/C][C]0.081896383365469[/C][C]0.163792766730938[/C][C]0.918103616634531[/C][/ROW]
[ROW][C]42[/C][C]0.110148854397526[/C][C]0.220297708795053[/C][C]0.889851145602474[/C][/ROW]
[ROW][C]43[/C][C]0.144898821810487[/C][C]0.289797643620974[/C][C]0.855101178189513[/C][/ROW]
[ROW][C]44[/C][C]0.186143719972373[/C][C]0.372287439944747[/C][C]0.813856280027627[/C][/ROW]
[ROW][C]45[/C][C]0.183036255514708[/C][C]0.366072511029416[/C][C]0.816963744485292[/C][/ROW]
[ROW][C]46[/C][C]0.16888291322515[/C][C]0.3377658264503[/C][C]0.83111708677485[/C][/ROW]
[ROW][C]47[/C][C]0.149273774682469[/C][C]0.298547549364939[/C][C]0.85072622531753[/C][/ROW]
[ROW][C]48[/C][C]0.127970883766255[/C][C]0.255941767532509[/C][C]0.872029116233745[/C][/ROW]
[ROW][C]49[/C][C]0.14260849643723[/C][C]0.285216992874461[/C][C]0.85739150356277[/C][/ROW]
[ROW][C]50[/C][C]0.182275356153714[/C][C]0.364550712307428[/C][C]0.817724643846286[/C][/ROW]
[ROW][C]51[/C][C]0.283996007414285[/C][C]0.567992014828569[/C][C]0.716003992585715[/C][/ROW]
[ROW][C]52[/C][C]0.380291406893206[/C][C]0.760582813786412[/C][C]0.619708593106794[/C][/ROW]
[ROW][C]53[/C][C]0.325923099008489[/C][C]0.651846198016979[/C][C]0.67407690099151[/C][/ROW]
[ROW][C]54[/C][C]0.607233227982029[/C][C]0.785533544035942[/C][C]0.392766772017971[/C][/ROW]
[ROW][C]55[/C][C]0.716646766037404[/C][C]0.566706467925192[/C][C]0.283353233962596[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114703&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114703&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.0630054158960320.1260108317920640.936994584103968
60.0357609149011830.07152182980236610.964239085098817
70.01557576205292610.03115152410585220.984424237947074
80.006242080198896120.01248416039779220.993757919801104
90.002326237290687130.004652474581374260.997673762709313
100.0008120556233074340.001624111246614870.999187944376693
110.00301517037552940.006030340751058810.99698482962447
120.002843787745568890.005687575491137780.997156212254431
130.006401020340556520.0128020406811130.993598979659443
140.003305333219049370.006610666438098740.99669466678095
150.002807885170483320.005615770340966650.997192114829517
160.001376414682375270.002752829364750530.998623585317625
170.001578476304143470.003156952608286940.998421523695857
180.001653131922879550.003306263845759090.99834686807712
190.001214272851014390.002428545702028770.998785727148986
200.000613822975757240.001227645951514480.999386177024243
210.0002912188276021330.0005824376552042670.999708781172398
220.0001368641098476510.0002737282196953020.999863135890152
236.99821977393661e-050.0001399643954787320.99993001780226
240.0001821607524446970.0003643215048893940.999817839247555
250.0001006758837562730.0002013517675125450.999899324116244
268.40566353535033e-050.0001681132707070070.999915943364647
274.39044309983566e-058.78088619967132e-050.999956095569002
282.49016488668296e-054.98032977336593e-050.999975098351133
292.922088835233e-055.844177670466e-050.999970779111648
306.42600279423556e-050.0001285200558847110.999935739972058
310.0002301555065370210.0004603110130740420.999769844493463
320.001034444802577620.002068889605155240.998965555197422
330.0005518665668939750.001103733133787950.999448133433106
340.0003332368904206680.0006664737808413370.99966676310958
350.0003405027899099680.0006810055798199360.99965949721009
360.00101469964792110.00202939929584220.998985300352079
370.005148980033266870.01029796006653370.994851019966733
380.004958293775701530.009916587551403060.995041706224298
390.01367171199713050.02734342399426110.98632828800287
400.04033334043536330.08066668087072660.959666659564637
410.0818963833654690.1637927667309380.918103616634531
420.1101488543975260.2202977087950530.889851145602474
430.1448988218104870.2897976436209740.855101178189513
440.1861437199723730.3722874399447470.813856280027627
450.1830362555147080.3660725110294160.816963744485292
460.168882913225150.33776582645030.83111708677485
470.1492737746824690.2985475493649390.85072622531753
480.1279708837662550.2559417675325090.872029116233745
490.142608496437230.2852169928744610.85739150356277
500.1822753561537140.3645507123074280.817724643846286
510.2839960074142850.5679920148285690.716003992585715
520.3802914068932060.7605828137864120.619708593106794
530.3259230990084890.6518461980169790.67407690099151
540.6072332279820290.7855335440359420.392766772017971
550.7166467660374040.5667064679251920.283353233962596







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level280.549019607843137NOK
5% type I error level330.647058823529412NOK
10% type I error level350.686274509803922NOK

\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 & 28 & 0.549019607843137 & NOK \tabularnewline
5% type I error level & 33 & 0.647058823529412 & NOK \tabularnewline
10% type I error level & 35 & 0.686274509803922 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114703&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]28[/C][C]0.549019607843137[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]33[/C][C]0.647058823529412[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]35[/C][C]0.686274509803922[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114703&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114703&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 level280.549019607843137NOK
5% type I error level330.647058823529412NOK
10% type I error level350.686274509803922NOK



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