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 computationWed, 18 Nov 2009 08:35:27 -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/18/t12585588668zyd4dnt4zhxgjz.htm/, Retrieved Sun, 05 May 2024 17:33:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57482, Retrieved Sun, 05 May 2024 17:33:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact142
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [multiplelineairre...] [2009-11-18 15:20:48] [a9a33b1951d9ae87ed6d7d9055d41c93]
- R PD    [Multiple Regression] [Multiplelineairre...] [2009-11-18 15:35:27] [66ffaa9e54a90d3ae4874684602d24e9] [Current]
Feedback Forum

Post a new message
Dataseries X:
17823.2	0
17872	0
17420.4	0
16704.4	0
15991.2	0
16583.6	0
19123.5	0
17838.7	0
17209.4	0
18586.5	0
16258.1	0
15141.6	0
19202.1	0
17746.5	0
19090.1	0
18040.3	0
17515.5	0
17751.8	0
21072.4	0
17170	0
19439.5	0
19795.4	0
17574.9	0
16165.4	0
19464.6	0
19932.1	0
19961.2	0
17343.4	0
18924.2	0
18574.1	0
21350.6	0
18594.6	0
19823.1	0
20844.4	0
19640.2	0
17735.4	0
19813.6	0
22160	0
20664.3	0
17877.4	0
20906.5	0
21164.1	0
21374.4	0
22952.3	0
21343.5	0
23899.3	0
22392.9	0
18274.1	0
22786.7	0
22321.5	0
17842.2	1
16373.5	1
15993.8	1
16446.1	1
17729	1
16643	1
16196.7	1
18252.1	1
17570.4	1
15836.8	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=57482&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=57482&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57482&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
uitvoer[t] = + 19144.7 -2256.34dummy[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
uitvoer[t] =  +  19144.7 -2256.34dummy[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57482&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]uitvoer[t] =  +  19144.7 -2256.34dummy[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57482&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57482&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
uitvoer[t] = + 19144.7 -2256.34dummy[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)19144.7269.72284970.979200
dummy-2256.34660.683352-3.41520.001170.000585

\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) & 19144.7 & 269.722849 & 70.9792 & 0 & 0 \tabularnewline
dummy & -2256.34 & 660.683352 & -3.4152 & 0.00117 & 0.000585 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57482&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]19144.7[/C][C]269.722849[/C][C]70.9792[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]dummy[/C][C]-2256.34[/C][C]660.683352[/C][C]-3.4152[/C][C]0.00117[/C][C]0.000585[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57482&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57482&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)19144.7269.72284970.979200
dummy-2256.34660.683352-3.41520.001170.000585







Multiple Linear Regression - Regression Statistics
Multiple R0.409174990530932
R-squared0.167424172875988
Adjusted R-squared0.153069417235919
F-TEST (value)11.6633244810276
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.00116971635339957
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1907.22855547718
Sum Squared Residuals210976204.244000

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.409174990530932 \tabularnewline
R-squared & 0.167424172875988 \tabularnewline
Adjusted R-squared & 0.153069417235919 \tabularnewline
F-TEST (value) & 11.6633244810276 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0.00116971635339957 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1907.22855547718 \tabularnewline
Sum Squared Residuals & 210976204.244000 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57482&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.409174990530932[/C][/ROW]
[ROW][C]R-squared[/C][C]0.167424172875988[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.153069417235919[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]11.6633244810276[/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.00116971635339957[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1907.22855547718[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]210976204.244000[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57482&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57482&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.409174990530932
R-squared0.167424172875988
Adjusted R-squared0.153069417235919
F-TEST (value)11.6633244810276
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.00116971635339957
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1907.22855547718
Sum Squared Residuals210976204.244000







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
117823.219144.6999999999-1321.49999999994
21787219144.7-1272.70000000000
317420.419144.7-1724.3
416704.419144.7-2440.3
515991.219144.7-3153.5
616583.619144.7-2561.1
719123.519144.7-21.2000000000010
817838.719144.7-1306
917209.419144.7-1935.3
1018586.519144.7-558.200000000001
1116258.119144.7-2886.6
1215141.619144.7-4003.1
1319202.119144.757.3999999999975
1417746.519144.7-1398.2
1519090.119144.7-54.6000000000025
1618040.319144.7-1104.40000000000
1717515.519144.7-1629.2
1817751.819144.7-1392.90000000000
1921072.419144.71927.7
201717019144.7-1974.7
2119439.519144.7294.799999999999
2219795.419144.7650.7
2317574.919144.7-1569.8
2416165.419144.7-2979.3
2519464.619144.7319.899999999997
2619932.119144.7787.399999999997
2719961.219144.7816.5
2817343.419144.7-1801.3
2918924.219144.7-220.500000000000
3018574.119144.7-570.600000000003
3121350.619144.72205.9
3218594.619144.7-550.100000000003
3319823.119144.7678.399999999997
3420844.419144.71699.7
3519640.219144.7495.5
3617735.419144.7-1409.3
3719813.619144.7668.899999999997
382216019144.73015.3
3920664.319144.71519.60000000000
4017877.419144.7-1267.3
4120906.519144.71761.8
4221164.119144.72019.40000000000
4321374.419144.72229.7
4422952.319144.73807.6
4521343.519144.72198.8
4623899.319144.74754.6
4722392.919144.73248.2
4818274.119144.7-870.600000000003
4922786.719144.73642
5022321.519144.73176.8
5117842.216888.36953.840000000001
5216373.516888.36-514.86
5315993.816888.36-894.56
5416446.116888.36-442.260000000001
551772916888.36840.64
561664316888.36-245.360000000000
5716196.716888.36-691.659999999999
5818252.116888.361363.74
5917570.416888.36682.040000000002
6015836.816888.36-1051.56

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 17823.2 & 19144.6999999999 & -1321.49999999994 \tabularnewline
2 & 17872 & 19144.7 & -1272.70000000000 \tabularnewline
3 & 17420.4 & 19144.7 & -1724.3 \tabularnewline
4 & 16704.4 & 19144.7 & -2440.3 \tabularnewline
5 & 15991.2 & 19144.7 & -3153.5 \tabularnewline
6 & 16583.6 & 19144.7 & -2561.1 \tabularnewline
7 & 19123.5 & 19144.7 & -21.2000000000010 \tabularnewline
8 & 17838.7 & 19144.7 & -1306 \tabularnewline
9 & 17209.4 & 19144.7 & -1935.3 \tabularnewline
10 & 18586.5 & 19144.7 & -558.200000000001 \tabularnewline
11 & 16258.1 & 19144.7 & -2886.6 \tabularnewline
12 & 15141.6 & 19144.7 & -4003.1 \tabularnewline
13 & 19202.1 & 19144.7 & 57.3999999999975 \tabularnewline
14 & 17746.5 & 19144.7 & -1398.2 \tabularnewline
15 & 19090.1 & 19144.7 & -54.6000000000025 \tabularnewline
16 & 18040.3 & 19144.7 & -1104.40000000000 \tabularnewline
17 & 17515.5 & 19144.7 & -1629.2 \tabularnewline
18 & 17751.8 & 19144.7 & -1392.90000000000 \tabularnewline
19 & 21072.4 & 19144.7 & 1927.7 \tabularnewline
20 & 17170 & 19144.7 & -1974.7 \tabularnewline
21 & 19439.5 & 19144.7 & 294.799999999999 \tabularnewline
22 & 19795.4 & 19144.7 & 650.7 \tabularnewline
23 & 17574.9 & 19144.7 & -1569.8 \tabularnewline
24 & 16165.4 & 19144.7 & -2979.3 \tabularnewline
25 & 19464.6 & 19144.7 & 319.899999999997 \tabularnewline
26 & 19932.1 & 19144.7 & 787.399999999997 \tabularnewline
27 & 19961.2 & 19144.7 & 816.5 \tabularnewline
28 & 17343.4 & 19144.7 & -1801.3 \tabularnewline
29 & 18924.2 & 19144.7 & -220.500000000000 \tabularnewline
30 & 18574.1 & 19144.7 & -570.600000000003 \tabularnewline
31 & 21350.6 & 19144.7 & 2205.9 \tabularnewline
32 & 18594.6 & 19144.7 & -550.100000000003 \tabularnewline
33 & 19823.1 & 19144.7 & 678.399999999997 \tabularnewline
34 & 20844.4 & 19144.7 & 1699.7 \tabularnewline
35 & 19640.2 & 19144.7 & 495.5 \tabularnewline
36 & 17735.4 & 19144.7 & -1409.3 \tabularnewline
37 & 19813.6 & 19144.7 & 668.899999999997 \tabularnewline
38 & 22160 & 19144.7 & 3015.3 \tabularnewline
39 & 20664.3 & 19144.7 & 1519.60000000000 \tabularnewline
40 & 17877.4 & 19144.7 & -1267.3 \tabularnewline
41 & 20906.5 & 19144.7 & 1761.8 \tabularnewline
42 & 21164.1 & 19144.7 & 2019.40000000000 \tabularnewline
43 & 21374.4 & 19144.7 & 2229.7 \tabularnewline
44 & 22952.3 & 19144.7 & 3807.6 \tabularnewline
45 & 21343.5 & 19144.7 & 2198.8 \tabularnewline
46 & 23899.3 & 19144.7 & 4754.6 \tabularnewline
47 & 22392.9 & 19144.7 & 3248.2 \tabularnewline
48 & 18274.1 & 19144.7 & -870.600000000003 \tabularnewline
49 & 22786.7 & 19144.7 & 3642 \tabularnewline
50 & 22321.5 & 19144.7 & 3176.8 \tabularnewline
51 & 17842.2 & 16888.36 & 953.840000000001 \tabularnewline
52 & 16373.5 & 16888.36 & -514.86 \tabularnewline
53 & 15993.8 & 16888.36 & -894.56 \tabularnewline
54 & 16446.1 & 16888.36 & -442.260000000001 \tabularnewline
55 & 17729 & 16888.36 & 840.64 \tabularnewline
56 & 16643 & 16888.36 & -245.360000000000 \tabularnewline
57 & 16196.7 & 16888.36 & -691.659999999999 \tabularnewline
58 & 18252.1 & 16888.36 & 1363.74 \tabularnewline
59 & 17570.4 & 16888.36 & 682.040000000002 \tabularnewline
60 & 15836.8 & 16888.36 & -1051.56 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57482&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]17823.2[/C][C]19144.6999999999[/C][C]-1321.49999999994[/C][/ROW]
[ROW][C]2[/C][C]17872[/C][C]19144.7[/C][C]-1272.70000000000[/C][/ROW]
[ROW][C]3[/C][C]17420.4[/C][C]19144.7[/C][C]-1724.3[/C][/ROW]
[ROW][C]4[/C][C]16704.4[/C][C]19144.7[/C][C]-2440.3[/C][/ROW]
[ROW][C]5[/C][C]15991.2[/C][C]19144.7[/C][C]-3153.5[/C][/ROW]
[ROW][C]6[/C][C]16583.6[/C][C]19144.7[/C][C]-2561.1[/C][/ROW]
[ROW][C]7[/C][C]19123.5[/C][C]19144.7[/C][C]-21.2000000000010[/C][/ROW]
[ROW][C]8[/C][C]17838.7[/C][C]19144.7[/C][C]-1306[/C][/ROW]
[ROW][C]9[/C][C]17209.4[/C][C]19144.7[/C][C]-1935.3[/C][/ROW]
[ROW][C]10[/C][C]18586.5[/C][C]19144.7[/C][C]-558.200000000001[/C][/ROW]
[ROW][C]11[/C][C]16258.1[/C][C]19144.7[/C][C]-2886.6[/C][/ROW]
[ROW][C]12[/C][C]15141.6[/C][C]19144.7[/C][C]-4003.1[/C][/ROW]
[ROW][C]13[/C][C]19202.1[/C][C]19144.7[/C][C]57.3999999999975[/C][/ROW]
[ROW][C]14[/C][C]17746.5[/C][C]19144.7[/C][C]-1398.2[/C][/ROW]
[ROW][C]15[/C][C]19090.1[/C][C]19144.7[/C][C]-54.6000000000025[/C][/ROW]
[ROW][C]16[/C][C]18040.3[/C][C]19144.7[/C][C]-1104.40000000000[/C][/ROW]
[ROW][C]17[/C][C]17515.5[/C][C]19144.7[/C][C]-1629.2[/C][/ROW]
[ROW][C]18[/C][C]17751.8[/C][C]19144.7[/C][C]-1392.90000000000[/C][/ROW]
[ROW][C]19[/C][C]21072.4[/C][C]19144.7[/C][C]1927.7[/C][/ROW]
[ROW][C]20[/C][C]17170[/C][C]19144.7[/C][C]-1974.7[/C][/ROW]
[ROW][C]21[/C][C]19439.5[/C][C]19144.7[/C][C]294.799999999999[/C][/ROW]
[ROW][C]22[/C][C]19795.4[/C][C]19144.7[/C][C]650.7[/C][/ROW]
[ROW][C]23[/C][C]17574.9[/C][C]19144.7[/C][C]-1569.8[/C][/ROW]
[ROW][C]24[/C][C]16165.4[/C][C]19144.7[/C][C]-2979.3[/C][/ROW]
[ROW][C]25[/C][C]19464.6[/C][C]19144.7[/C][C]319.899999999997[/C][/ROW]
[ROW][C]26[/C][C]19932.1[/C][C]19144.7[/C][C]787.399999999997[/C][/ROW]
[ROW][C]27[/C][C]19961.2[/C][C]19144.7[/C][C]816.5[/C][/ROW]
[ROW][C]28[/C][C]17343.4[/C][C]19144.7[/C][C]-1801.3[/C][/ROW]
[ROW][C]29[/C][C]18924.2[/C][C]19144.7[/C][C]-220.500000000000[/C][/ROW]
[ROW][C]30[/C][C]18574.1[/C][C]19144.7[/C][C]-570.600000000003[/C][/ROW]
[ROW][C]31[/C][C]21350.6[/C][C]19144.7[/C][C]2205.9[/C][/ROW]
[ROW][C]32[/C][C]18594.6[/C][C]19144.7[/C][C]-550.100000000003[/C][/ROW]
[ROW][C]33[/C][C]19823.1[/C][C]19144.7[/C][C]678.399999999997[/C][/ROW]
[ROW][C]34[/C][C]20844.4[/C][C]19144.7[/C][C]1699.7[/C][/ROW]
[ROW][C]35[/C][C]19640.2[/C][C]19144.7[/C][C]495.5[/C][/ROW]
[ROW][C]36[/C][C]17735.4[/C][C]19144.7[/C][C]-1409.3[/C][/ROW]
[ROW][C]37[/C][C]19813.6[/C][C]19144.7[/C][C]668.899999999997[/C][/ROW]
[ROW][C]38[/C][C]22160[/C][C]19144.7[/C][C]3015.3[/C][/ROW]
[ROW][C]39[/C][C]20664.3[/C][C]19144.7[/C][C]1519.60000000000[/C][/ROW]
[ROW][C]40[/C][C]17877.4[/C][C]19144.7[/C][C]-1267.3[/C][/ROW]
[ROW][C]41[/C][C]20906.5[/C][C]19144.7[/C][C]1761.8[/C][/ROW]
[ROW][C]42[/C][C]21164.1[/C][C]19144.7[/C][C]2019.40000000000[/C][/ROW]
[ROW][C]43[/C][C]21374.4[/C][C]19144.7[/C][C]2229.7[/C][/ROW]
[ROW][C]44[/C][C]22952.3[/C][C]19144.7[/C][C]3807.6[/C][/ROW]
[ROW][C]45[/C][C]21343.5[/C][C]19144.7[/C][C]2198.8[/C][/ROW]
[ROW][C]46[/C][C]23899.3[/C][C]19144.7[/C][C]4754.6[/C][/ROW]
[ROW][C]47[/C][C]22392.9[/C][C]19144.7[/C][C]3248.2[/C][/ROW]
[ROW][C]48[/C][C]18274.1[/C][C]19144.7[/C][C]-870.600000000003[/C][/ROW]
[ROW][C]49[/C][C]22786.7[/C][C]19144.7[/C][C]3642[/C][/ROW]
[ROW][C]50[/C][C]22321.5[/C][C]19144.7[/C][C]3176.8[/C][/ROW]
[ROW][C]51[/C][C]17842.2[/C][C]16888.36[/C][C]953.840000000001[/C][/ROW]
[ROW][C]52[/C][C]16373.5[/C][C]16888.36[/C][C]-514.86[/C][/ROW]
[ROW][C]53[/C][C]15993.8[/C][C]16888.36[/C][C]-894.56[/C][/ROW]
[ROW][C]54[/C][C]16446.1[/C][C]16888.36[/C][C]-442.260000000001[/C][/ROW]
[ROW][C]55[/C][C]17729[/C][C]16888.36[/C][C]840.64[/C][/ROW]
[ROW][C]56[/C][C]16643[/C][C]16888.36[/C][C]-245.360000000000[/C][/ROW]
[ROW][C]57[/C][C]16196.7[/C][C]16888.36[/C][C]-691.659999999999[/C][/ROW]
[ROW][C]58[/C][C]18252.1[/C][C]16888.36[/C][C]1363.74[/C][/ROW]
[ROW][C]59[/C][C]17570.4[/C][C]16888.36[/C][C]682.040000000002[/C][/ROW]
[ROW][C]60[/C][C]15836.8[/C][C]16888.36[/C][C]-1051.56[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57482&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57482&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
117823.219144.6999999999-1321.49999999994
21787219144.7-1272.70000000000
317420.419144.7-1724.3
416704.419144.7-2440.3
515991.219144.7-3153.5
616583.619144.7-2561.1
719123.519144.7-21.2000000000010
817838.719144.7-1306
917209.419144.7-1935.3
1018586.519144.7-558.200000000001
1116258.119144.7-2886.6
1215141.619144.7-4003.1
1319202.119144.757.3999999999975
1417746.519144.7-1398.2
1519090.119144.7-54.6000000000025
1618040.319144.7-1104.40000000000
1717515.519144.7-1629.2
1817751.819144.7-1392.90000000000
1921072.419144.71927.7
201717019144.7-1974.7
2119439.519144.7294.799999999999
2219795.419144.7650.7
2317574.919144.7-1569.8
2416165.419144.7-2979.3
2519464.619144.7319.899999999997
2619932.119144.7787.399999999997
2719961.219144.7816.5
2817343.419144.7-1801.3
2918924.219144.7-220.500000000000
3018574.119144.7-570.600000000003
3121350.619144.72205.9
3218594.619144.7-550.100000000003
3319823.119144.7678.399999999997
3420844.419144.71699.7
3519640.219144.7495.5
3617735.419144.7-1409.3
3719813.619144.7668.899999999997
382216019144.73015.3
3920664.319144.71519.60000000000
4017877.419144.7-1267.3
4120906.519144.71761.8
4221164.119144.72019.40000000000
4321374.419144.72229.7
4422952.319144.73807.6
4521343.519144.72198.8
4623899.319144.74754.6
4722392.919144.73248.2
4818274.119144.7-870.600000000003
4922786.719144.73642
5022321.519144.73176.8
5117842.216888.36953.840000000001
5216373.516888.36-514.86
5315993.816888.36-894.56
5416446.116888.36-442.260000000001
551772916888.36840.64
561664316888.36-245.360000000000
5716196.716888.36-691.659999999999
5818252.116888.361363.74
5917570.416888.36682.040000000002
6015836.816888.36-1051.56







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1355526125316270.2711052250632540.864447387468373
60.06750978759493130.1350195751898630.932490212405069
70.1339162359012510.2678324718025010.86608376409875
80.07499989874988780.1499997974997760.925000101250112
90.03970393491618560.07940786983237110.960296065083814
100.03158864334550390.06317728669100780.968411356654496
110.03249438521422940.06498877042845880.96750561478577
120.1000075866186150.2000151732372290.899992413381385
130.1265148902270560.2530297804541120.873485109772944
140.09184996759449540.1836999351889910.908150032405505
150.09597203920187850.1919440784037570.904027960798122
160.07072395848520930.1414479169704190.92927604151479
170.05335099194692330.1067019838938470.946649008053077
180.03974592591106190.07949185182212370.960254074088938
190.1601400693436060.3202801386872120.839859930656394
200.1539566318126640.3079132636253290.846043368187336
210.1521706885141680.3043413770283370.847829311485832
220.1610121600486870.3220243200973740.838987839951313
230.1509018116752630.3018036233505270.849098188324737
240.2709043255768940.5418086511537890.729095674423106
250.2651009242035540.5302018484071080.734899075796446
260.2761847137497370.5523694274994730.723815286250263
270.2793767590652280.5587535181304560.720623240934772
280.3380820373935490.6761640747870970.661917962606451
290.3222554330004300.6445108660008590.67774456699957
300.3235514720949520.6471029441899040.676448527905048
310.4309224854335850.861844970867170.569077514566415
320.44063237657070.88126475314140.5593676234293
330.4267273618454830.8534547236909650.573272638154517
340.4471435987104690.8942871974209380.552856401289531
350.4271093806666560.8542187613333130.572890619333344
360.5887480907481140.8225038185037720.411251909251886
370.5909599689383010.8180800621233990.409040031061699
380.6820908974447450.635818205110510.317909102555255
390.6624567464782980.6750865070434040.337543253521702
400.8741645548381580.2516708903236850.125835445161842
410.8687229703883520.2625540592232960.131277029611648
420.85961930250310.2807613949938010.140380697496901
430.8465342373945670.3069315252108660.153465762605433
440.8789186052873230.2421627894253540.121081394712677
450.8527180888865220.2945638222269550.147281911113478
460.934891425965830.1302171480683410.0651085740341706
470.9304625951983470.1390748096033060.0695374048016532
480.9970896203470970.005820759305805140.00291037965290257
490.9948273597206570.01034528055868540.00517264027934268
500.9892871537730060.02142569245398760.0107128462269938
510.9839746224647610.03205075507047720.0160253775352386
520.9651864376555940.06962712468881260.0348135623444063
530.9430364558390950.1139270883218100.0569635441609052
540.8854507390888690.2290985218222610.114549260911131
550.797405971040890.405188057918220.20259402895911

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.135552612531627 & 0.271105225063254 & 0.864447387468373 \tabularnewline
6 & 0.0675097875949313 & 0.135019575189863 & 0.932490212405069 \tabularnewline
7 & 0.133916235901251 & 0.267832471802501 & 0.86608376409875 \tabularnewline
8 & 0.0749998987498878 & 0.149999797499776 & 0.925000101250112 \tabularnewline
9 & 0.0397039349161856 & 0.0794078698323711 & 0.960296065083814 \tabularnewline
10 & 0.0315886433455039 & 0.0631772866910078 & 0.968411356654496 \tabularnewline
11 & 0.0324943852142294 & 0.0649887704284588 & 0.96750561478577 \tabularnewline
12 & 0.100007586618615 & 0.200015173237229 & 0.899992413381385 \tabularnewline
13 & 0.126514890227056 & 0.253029780454112 & 0.873485109772944 \tabularnewline
14 & 0.0918499675944954 & 0.183699935188991 & 0.908150032405505 \tabularnewline
15 & 0.0959720392018785 & 0.191944078403757 & 0.904027960798122 \tabularnewline
16 & 0.0707239584852093 & 0.141447916970419 & 0.92927604151479 \tabularnewline
17 & 0.0533509919469233 & 0.106701983893847 & 0.946649008053077 \tabularnewline
18 & 0.0397459259110619 & 0.0794918518221237 & 0.960254074088938 \tabularnewline
19 & 0.160140069343606 & 0.320280138687212 & 0.839859930656394 \tabularnewline
20 & 0.153956631812664 & 0.307913263625329 & 0.846043368187336 \tabularnewline
21 & 0.152170688514168 & 0.304341377028337 & 0.847829311485832 \tabularnewline
22 & 0.161012160048687 & 0.322024320097374 & 0.838987839951313 \tabularnewline
23 & 0.150901811675263 & 0.301803623350527 & 0.849098188324737 \tabularnewline
24 & 0.270904325576894 & 0.541808651153789 & 0.729095674423106 \tabularnewline
25 & 0.265100924203554 & 0.530201848407108 & 0.734899075796446 \tabularnewline
26 & 0.276184713749737 & 0.552369427499473 & 0.723815286250263 \tabularnewline
27 & 0.279376759065228 & 0.558753518130456 & 0.720623240934772 \tabularnewline
28 & 0.338082037393549 & 0.676164074787097 & 0.661917962606451 \tabularnewline
29 & 0.322255433000430 & 0.644510866000859 & 0.67774456699957 \tabularnewline
30 & 0.323551472094952 & 0.647102944189904 & 0.676448527905048 \tabularnewline
31 & 0.430922485433585 & 0.86184497086717 & 0.569077514566415 \tabularnewline
32 & 0.4406323765707 & 0.8812647531414 & 0.5593676234293 \tabularnewline
33 & 0.426727361845483 & 0.853454723690965 & 0.573272638154517 \tabularnewline
34 & 0.447143598710469 & 0.894287197420938 & 0.552856401289531 \tabularnewline
35 & 0.427109380666656 & 0.854218761333313 & 0.572890619333344 \tabularnewline
36 & 0.588748090748114 & 0.822503818503772 & 0.411251909251886 \tabularnewline
37 & 0.590959968938301 & 0.818080062123399 & 0.409040031061699 \tabularnewline
38 & 0.682090897444745 & 0.63581820511051 & 0.317909102555255 \tabularnewline
39 & 0.662456746478298 & 0.675086507043404 & 0.337543253521702 \tabularnewline
40 & 0.874164554838158 & 0.251670890323685 & 0.125835445161842 \tabularnewline
41 & 0.868722970388352 & 0.262554059223296 & 0.131277029611648 \tabularnewline
42 & 0.8596193025031 & 0.280761394993801 & 0.140380697496901 \tabularnewline
43 & 0.846534237394567 & 0.306931525210866 & 0.153465762605433 \tabularnewline
44 & 0.878918605287323 & 0.242162789425354 & 0.121081394712677 \tabularnewline
45 & 0.852718088886522 & 0.294563822226955 & 0.147281911113478 \tabularnewline
46 & 0.93489142596583 & 0.130217148068341 & 0.0651085740341706 \tabularnewline
47 & 0.930462595198347 & 0.139074809603306 & 0.0695374048016532 \tabularnewline
48 & 0.997089620347097 & 0.00582075930580514 & 0.00291037965290257 \tabularnewline
49 & 0.994827359720657 & 0.0103452805586854 & 0.00517264027934268 \tabularnewline
50 & 0.989287153773006 & 0.0214256924539876 & 0.0107128462269938 \tabularnewline
51 & 0.983974622464761 & 0.0320507550704772 & 0.0160253775352386 \tabularnewline
52 & 0.965186437655594 & 0.0696271246888126 & 0.0348135623444063 \tabularnewline
53 & 0.943036455839095 & 0.113927088321810 & 0.0569635441609052 \tabularnewline
54 & 0.885450739088869 & 0.229098521822261 & 0.114549260911131 \tabularnewline
55 & 0.79740597104089 & 0.40518805791822 & 0.20259402895911 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57482&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.135552612531627[/C][C]0.271105225063254[/C][C]0.864447387468373[/C][/ROW]
[ROW][C]6[/C][C]0.0675097875949313[/C][C]0.135019575189863[/C][C]0.932490212405069[/C][/ROW]
[ROW][C]7[/C][C]0.133916235901251[/C][C]0.267832471802501[/C][C]0.86608376409875[/C][/ROW]
[ROW][C]8[/C][C]0.0749998987498878[/C][C]0.149999797499776[/C][C]0.925000101250112[/C][/ROW]
[ROW][C]9[/C][C]0.0397039349161856[/C][C]0.0794078698323711[/C][C]0.960296065083814[/C][/ROW]
[ROW][C]10[/C][C]0.0315886433455039[/C][C]0.0631772866910078[/C][C]0.968411356654496[/C][/ROW]
[ROW][C]11[/C][C]0.0324943852142294[/C][C]0.0649887704284588[/C][C]0.96750561478577[/C][/ROW]
[ROW][C]12[/C][C]0.100007586618615[/C][C]0.200015173237229[/C][C]0.899992413381385[/C][/ROW]
[ROW][C]13[/C][C]0.126514890227056[/C][C]0.253029780454112[/C][C]0.873485109772944[/C][/ROW]
[ROW][C]14[/C][C]0.0918499675944954[/C][C]0.183699935188991[/C][C]0.908150032405505[/C][/ROW]
[ROW][C]15[/C][C]0.0959720392018785[/C][C]0.191944078403757[/C][C]0.904027960798122[/C][/ROW]
[ROW][C]16[/C][C]0.0707239584852093[/C][C]0.141447916970419[/C][C]0.92927604151479[/C][/ROW]
[ROW][C]17[/C][C]0.0533509919469233[/C][C]0.106701983893847[/C][C]0.946649008053077[/C][/ROW]
[ROW][C]18[/C][C]0.0397459259110619[/C][C]0.0794918518221237[/C][C]0.960254074088938[/C][/ROW]
[ROW][C]19[/C][C]0.160140069343606[/C][C]0.320280138687212[/C][C]0.839859930656394[/C][/ROW]
[ROW][C]20[/C][C]0.153956631812664[/C][C]0.307913263625329[/C][C]0.846043368187336[/C][/ROW]
[ROW][C]21[/C][C]0.152170688514168[/C][C]0.304341377028337[/C][C]0.847829311485832[/C][/ROW]
[ROW][C]22[/C][C]0.161012160048687[/C][C]0.322024320097374[/C][C]0.838987839951313[/C][/ROW]
[ROW][C]23[/C][C]0.150901811675263[/C][C]0.301803623350527[/C][C]0.849098188324737[/C][/ROW]
[ROW][C]24[/C][C]0.270904325576894[/C][C]0.541808651153789[/C][C]0.729095674423106[/C][/ROW]
[ROW][C]25[/C][C]0.265100924203554[/C][C]0.530201848407108[/C][C]0.734899075796446[/C][/ROW]
[ROW][C]26[/C][C]0.276184713749737[/C][C]0.552369427499473[/C][C]0.723815286250263[/C][/ROW]
[ROW][C]27[/C][C]0.279376759065228[/C][C]0.558753518130456[/C][C]0.720623240934772[/C][/ROW]
[ROW][C]28[/C][C]0.338082037393549[/C][C]0.676164074787097[/C][C]0.661917962606451[/C][/ROW]
[ROW][C]29[/C][C]0.322255433000430[/C][C]0.644510866000859[/C][C]0.67774456699957[/C][/ROW]
[ROW][C]30[/C][C]0.323551472094952[/C][C]0.647102944189904[/C][C]0.676448527905048[/C][/ROW]
[ROW][C]31[/C][C]0.430922485433585[/C][C]0.86184497086717[/C][C]0.569077514566415[/C][/ROW]
[ROW][C]32[/C][C]0.4406323765707[/C][C]0.8812647531414[/C][C]0.5593676234293[/C][/ROW]
[ROW][C]33[/C][C]0.426727361845483[/C][C]0.853454723690965[/C][C]0.573272638154517[/C][/ROW]
[ROW][C]34[/C][C]0.447143598710469[/C][C]0.894287197420938[/C][C]0.552856401289531[/C][/ROW]
[ROW][C]35[/C][C]0.427109380666656[/C][C]0.854218761333313[/C][C]0.572890619333344[/C][/ROW]
[ROW][C]36[/C][C]0.588748090748114[/C][C]0.822503818503772[/C][C]0.411251909251886[/C][/ROW]
[ROW][C]37[/C][C]0.590959968938301[/C][C]0.818080062123399[/C][C]0.409040031061699[/C][/ROW]
[ROW][C]38[/C][C]0.682090897444745[/C][C]0.63581820511051[/C][C]0.317909102555255[/C][/ROW]
[ROW][C]39[/C][C]0.662456746478298[/C][C]0.675086507043404[/C][C]0.337543253521702[/C][/ROW]
[ROW][C]40[/C][C]0.874164554838158[/C][C]0.251670890323685[/C][C]0.125835445161842[/C][/ROW]
[ROW][C]41[/C][C]0.868722970388352[/C][C]0.262554059223296[/C][C]0.131277029611648[/C][/ROW]
[ROW][C]42[/C][C]0.8596193025031[/C][C]0.280761394993801[/C][C]0.140380697496901[/C][/ROW]
[ROW][C]43[/C][C]0.846534237394567[/C][C]0.306931525210866[/C][C]0.153465762605433[/C][/ROW]
[ROW][C]44[/C][C]0.878918605287323[/C][C]0.242162789425354[/C][C]0.121081394712677[/C][/ROW]
[ROW][C]45[/C][C]0.852718088886522[/C][C]0.294563822226955[/C][C]0.147281911113478[/C][/ROW]
[ROW][C]46[/C][C]0.93489142596583[/C][C]0.130217148068341[/C][C]0.0651085740341706[/C][/ROW]
[ROW][C]47[/C][C]0.930462595198347[/C][C]0.139074809603306[/C][C]0.0695374048016532[/C][/ROW]
[ROW][C]48[/C][C]0.997089620347097[/C][C]0.00582075930580514[/C][C]0.00291037965290257[/C][/ROW]
[ROW][C]49[/C][C]0.994827359720657[/C][C]0.0103452805586854[/C][C]0.00517264027934268[/C][/ROW]
[ROW][C]50[/C][C]0.989287153773006[/C][C]0.0214256924539876[/C][C]0.0107128462269938[/C][/ROW]
[ROW][C]51[/C][C]0.983974622464761[/C][C]0.0320507550704772[/C][C]0.0160253775352386[/C][/ROW]
[ROW][C]52[/C][C]0.965186437655594[/C][C]0.0696271246888126[/C][C]0.0348135623444063[/C][/ROW]
[ROW][C]53[/C][C]0.943036455839095[/C][C]0.113927088321810[/C][C]0.0569635441609052[/C][/ROW]
[ROW][C]54[/C][C]0.885450739088869[/C][C]0.229098521822261[/C][C]0.114549260911131[/C][/ROW]
[ROW][C]55[/C][C]0.79740597104089[/C][C]0.40518805791822[/C][C]0.20259402895911[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57482&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57482&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.1355526125316270.2711052250632540.864447387468373
60.06750978759493130.1350195751898630.932490212405069
70.1339162359012510.2678324718025010.86608376409875
80.07499989874988780.1499997974997760.925000101250112
90.03970393491618560.07940786983237110.960296065083814
100.03158864334550390.06317728669100780.968411356654496
110.03249438521422940.06498877042845880.96750561478577
120.1000075866186150.2000151732372290.899992413381385
130.1265148902270560.2530297804541120.873485109772944
140.09184996759449540.1836999351889910.908150032405505
150.09597203920187850.1919440784037570.904027960798122
160.07072395848520930.1414479169704190.92927604151479
170.05335099194692330.1067019838938470.946649008053077
180.03974592591106190.07949185182212370.960254074088938
190.1601400693436060.3202801386872120.839859930656394
200.1539566318126640.3079132636253290.846043368187336
210.1521706885141680.3043413770283370.847829311485832
220.1610121600486870.3220243200973740.838987839951313
230.1509018116752630.3018036233505270.849098188324737
240.2709043255768940.5418086511537890.729095674423106
250.2651009242035540.5302018484071080.734899075796446
260.2761847137497370.5523694274994730.723815286250263
270.2793767590652280.5587535181304560.720623240934772
280.3380820373935490.6761640747870970.661917962606451
290.3222554330004300.6445108660008590.67774456699957
300.3235514720949520.6471029441899040.676448527905048
310.4309224854335850.861844970867170.569077514566415
320.44063237657070.88126475314140.5593676234293
330.4267273618454830.8534547236909650.573272638154517
340.4471435987104690.8942871974209380.552856401289531
350.4271093806666560.8542187613333130.572890619333344
360.5887480907481140.8225038185037720.411251909251886
370.5909599689383010.8180800621233990.409040031061699
380.6820908974447450.635818205110510.317909102555255
390.6624567464782980.6750865070434040.337543253521702
400.8741645548381580.2516708903236850.125835445161842
410.8687229703883520.2625540592232960.131277029611648
420.85961930250310.2807613949938010.140380697496901
430.8465342373945670.3069315252108660.153465762605433
440.8789186052873230.2421627894253540.121081394712677
450.8527180888865220.2945638222269550.147281911113478
460.934891425965830.1302171480683410.0651085740341706
470.9304625951983470.1390748096033060.0695374048016532
480.9970896203470970.005820759305805140.00291037965290257
490.9948273597206570.01034528055868540.00517264027934268
500.9892871537730060.02142569245398760.0107128462269938
510.9839746224647610.03205075507047720.0160253775352386
520.9651864376555940.06962712468881260.0348135623444063
530.9430364558390950.1139270883218100.0569635441609052
540.8854507390888690.2290985218222610.114549260911131
550.797405971040890.405188057918220.20259402895911







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0196078431372549NOK
5% type I error level40.0784313725490196NOK
10% type I error level90.176470588235294NOK

\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 & 1 & 0.0196078431372549 & NOK \tabularnewline
5% type I error level & 4 & 0.0784313725490196 & NOK \tabularnewline
10% type I error level & 9 & 0.176470588235294 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57482&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]1[/C][C]0.0196078431372549[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]4[/C][C]0.0784313725490196[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]9[/C][C]0.176470588235294[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57482&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57482&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 level10.0196078431372549NOK
5% type I error level40.0784313725490196NOK
10% type I error level90.176470588235294NOK



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