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 computationMon, 20 Dec 2010 20:15: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/20/t1292876313no81pmkl0dnlaw9.htm/, Retrieved Sat, 04 May 2024 02:26:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=113113, Retrieved Sat, 04 May 2024 02:26:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact136
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [HPC Retail Sales] [2008-03-08 13:40:54] [1c0f2c85e8a48e42648374b3bcceca26]
-  MPD  [Multiple Regression] [] [2010-12-09 19:56:23] [897115520fe7b6114489bc0eeed64548]
-    D      [Multiple Regression] [] [2010-12-20 20:15:14] [6ca9362bade14820cda7467b7288bbb3] [Current]
Feedback Forum

Post a new message
Dataseries X:
313737
312276
309391
302950
300316
304035
333476
337698
335932
323931
313927
314485
313218
309664
302963
298989
298423
301631
329765
335083
327616
309119
295916
291413
291542
284678
276475
272566
264981
263290
296806
303598
286994
276427
266424
267153
268381
262522
255542
253158
243803
250741
280445
285257
270976
261076
255603
260376
263903
264291
263276
262572
256167
264221
293860
300713
287224
275902
271115
277509
279681




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

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







Multiple Linear Regression - Estimated Regression Equation
HPC[t] = + 320655.670588235 + 880.29019607827M1[t] -6186.68627450981M2[t] -10274.9176470588M3[t] -12688.7490196078M4[t] -16929.1803921569M5[t] -11815.0117647059M6[t] + 19340.3568627451M7[t] + 26008.3254901961M8[t] + 16355.4941176471M9[t] + 4966.66274509804M10[t] -2658.76862745098M11[t] -1068.56862745098t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
HPC[t] =  +  320655.670588235 +  880.29019607827M1[t] -6186.68627450981M2[t] -10274.9176470588M3[t] -12688.7490196078M4[t] -16929.1803921569M5[t] -11815.0117647059M6[t] +  19340.3568627451M7[t] +  26008.3254901961M8[t] +  16355.4941176471M9[t] +  4966.66274509804M10[t] -2658.76862745098M11[t] -1068.56862745098t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113113&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]HPC[t] =  +  320655.670588235 +  880.29019607827M1[t] -6186.68627450981M2[t] -10274.9176470588M3[t] -12688.7490196078M4[t] -16929.1803921569M5[t] -11815.0117647059M6[t] +  19340.3568627451M7[t] +  26008.3254901961M8[t] +  16355.4941176471M9[t] +  4966.66274509804M10[t] -2658.76862745098M11[t] -1068.56862745098t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113113&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113113&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
HPC[t] = + 320655.670588235 + 880.29019607827M1[t] -6186.68627450981M2[t] -10274.9176470588M3[t] -12688.7490196078M4[t] -16929.1803921569M5[t] -11815.0117647059M6[t] + 19340.3568627451M7[t] + 26008.3254901961M8[t] + 16355.4941176471M9[t] + 4966.66274509804M10[t] -2658.76862745098M11[t] -1068.56862745098t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)320655.6705882356373.9570450.307200
M1880.290196078277433.5334140.11840.9062280.453114
M2-6186.686274509817802.279801-0.79290.4317190.215859
M3-10274.91764705887792.316204-1.31860.1935610.096781
M4-12688.74901960787783.390596-1.63020.1095980.054799
M5-16929.18039215697775.50655-2.17720.034410.017205
M6-11815.01176470597768.667239-1.52090.1348570.067429
M719340.35686274517762.8754222.49140.0162340.008117
M826008.32549019617758.1334483.35240.001570.000785
M916355.49411764717754.443242.10920.0401710.020086
M104966.662745098047751.8063020.64070.5247580.262379
M11-2658.768627450987750.223709-0.34310.7330540.366527
t-1068.5686274509890.431209-11.816400

\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) & 320655.670588235 & 6373.95704 & 50.3072 & 0 & 0 \tabularnewline
M1 & 880.29019607827 & 7433.533414 & 0.1184 & 0.906228 & 0.453114 \tabularnewline
M2 & -6186.68627450981 & 7802.279801 & -0.7929 & 0.431719 & 0.215859 \tabularnewline
M3 & -10274.9176470588 & 7792.316204 & -1.3186 & 0.193561 & 0.096781 \tabularnewline
M4 & -12688.7490196078 & 7783.390596 & -1.6302 & 0.109598 & 0.054799 \tabularnewline
M5 & -16929.1803921569 & 7775.50655 & -2.1772 & 0.03441 & 0.017205 \tabularnewline
M6 & -11815.0117647059 & 7768.667239 & -1.5209 & 0.134857 & 0.067429 \tabularnewline
M7 & 19340.3568627451 & 7762.875422 & 2.4914 & 0.016234 & 0.008117 \tabularnewline
M8 & 26008.3254901961 & 7758.133448 & 3.3524 & 0.00157 & 0.000785 \tabularnewline
M9 & 16355.4941176471 & 7754.44324 & 2.1092 & 0.040171 & 0.020086 \tabularnewline
M10 & 4966.66274509804 & 7751.806302 & 0.6407 & 0.524758 & 0.262379 \tabularnewline
M11 & -2658.76862745098 & 7750.223709 & -0.3431 & 0.733054 & 0.366527 \tabularnewline
t & -1068.56862745098 & 90.431209 & -11.8164 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113113&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]320655.670588235[/C][C]6373.95704[/C][C]50.3072[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]880.29019607827[/C][C]7433.533414[/C][C]0.1184[/C][C]0.906228[/C][C]0.453114[/C][/ROW]
[ROW][C]M2[/C][C]-6186.68627450981[/C][C]7802.279801[/C][C]-0.7929[/C][C]0.431719[/C][C]0.215859[/C][/ROW]
[ROW][C]M3[/C][C]-10274.9176470588[/C][C]7792.316204[/C][C]-1.3186[/C][C]0.193561[/C][C]0.096781[/C][/ROW]
[ROW][C]M4[/C][C]-12688.7490196078[/C][C]7783.390596[/C][C]-1.6302[/C][C]0.109598[/C][C]0.054799[/C][/ROW]
[ROW][C]M5[/C][C]-16929.1803921569[/C][C]7775.50655[/C][C]-2.1772[/C][C]0.03441[/C][C]0.017205[/C][/ROW]
[ROW][C]M6[/C][C]-11815.0117647059[/C][C]7768.667239[/C][C]-1.5209[/C][C]0.134857[/C][C]0.067429[/C][/ROW]
[ROW][C]M7[/C][C]19340.3568627451[/C][C]7762.875422[/C][C]2.4914[/C][C]0.016234[/C][C]0.008117[/C][/ROW]
[ROW][C]M8[/C][C]26008.3254901961[/C][C]7758.133448[/C][C]3.3524[/C][C]0.00157[/C][C]0.000785[/C][/ROW]
[ROW][C]M9[/C][C]16355.4941176471[/C][C]7754.44324[/C][C]2.1092[/C][C]0.040171[/C][C]0.020086[/C][/ROW]
[ROW][C]M10[/C][C]4966.66274509804[/C][C]7751.806302[/C][C]0.6407[/C][C]0.524758[/C][C]0.262379[/C][/ROW]
[ROW][C]M11[/C][C]-2658.76862745098[/C][C]7750.223709[/C][C]-0.3431[/C][C]0.733054[/C][C]0.366527[/C][/ROW]
[ROW][C]t[/C][C]-1068.56862745098[/C][C]90.431209[/C][C]-11.8164[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113113&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113113&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)320655.6705882356373.9570450.307200
M1880.290196078277433.5334140.11840.9062280.453114
M2-6186.686274509817802.279801-0.79290.4317190.215859
M3-10274.91764705887792.316204-1.31860.1935610.096781
M4-12688.74901960787783.390596-1.63020.1095980.054799
M5-16929.18039215697775.50655-2.17720.034410.017205
M6-11815.01176470597768.667239-1.52090.1348570.067429
M719340.35686274517762.8754222.49140.0162340.008117
M826008.32549019617758.1334483.35240.001570.000785
M916355.49411764717754.443242.10920.0401710.020086
M104966.662745098047751.8063020.64070.5247580.262379
M11-2658.768627450987750.223709-0.34310.7330540.366527
t-1068.5686274509890.431209-11.816400







Multiple Linear Regression - Regression Statistics
Multiple R0.896894324127192
R-squared0.804419428651573
Adjusted R-squared0.755524285814467
F-TEST (value)16.4519292096453
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value4.12336831345783e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12253.3454343963
Sum Squared Residuals7206934768.06276

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.896894324127192 \tabularnewline
R-squared & 0.804419428651573 \tabularnewline
Adjusted R-squared & 0.755524285814467 \tabularnewline
F-TEST (value) & 16.4519292096453 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 4.12336831345783e-13 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 12253.3454343963 \tabularnewline
Sum Squared Residuals & 7206934768.06276 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113113&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.896894324127192[/C][/ROW]
[ROW][C]R-squared[/C][C]0.804419428651573[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.755524285814467[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]16.4519292096453[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]4.12336831345783e-13[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]12253.3454343963[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]7206934768.06276[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113113&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113113&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.896894324127192
R-squared0.804419428651573
Adjusted R-squared0.755524285814467
F-TEST (value)16.4519292096453
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value4.12336831345783e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12253.3454343963
Sum Squared Residuals7206934768.06276







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1313737320467.392156864-6730.39215686355
2312276312331.847058824-55.8470588235415
3309391307175.0470588242215.95294117650
4302950303692.647058823-742.64705882347
5300316298383.6470588231932.35294117654
6304035302429.2470588231605.75294117655
7333476332516.047058823959.952941176511
8337698338115.447058823-417.447058823474
9335932327394.0470588238537.95294117654
10323931314936.6470588238994.3529411765
11313927306242.6470588237684.35294117651
12314485307832.8470588246652.15294117651
13313218307644.5686274515573.43137254917
14309664299509.02352941210154.9764705883
15302963294352.2235294128610.77647058825
16298989290869.8235294128119.17647058825
17298423285560.82352941212862.1764705882
18301631289606.42352941212024.5764705882
19329765319693.22352941210071.7764705883
20335083325292.6235294129790.37647058825
21327616314571.22352941213044.7764705882
22309119302113.8235294127005.17647058825
23295916293419.8235294122496.17647058826
24291413295010.023529412-3597.02352941175
25291542294821.745098039-3279.74509803902
26284678286686.2-2008.19999999999
27276475281529.4-5054.40000000000
28272566278047-5481.00000000002
29264981272738-7757.00000000001
30263290276783.6-13493.6
31296806306870.4-10064.4
32303598312469.8-8871.8
33286994301748.4-14754.4
34276427289291-12864
35266424280597-14173
36267153282187.2-15034.2
37268381281998.921568627-13617.9215686273
38262522273863.376470588-11341.3764705882
39255542268706.576470588-13164.5764705883
40253158265224.176470588-12066.1764705883
41243803259915.176470588-16112.1764705883
42250741263960.776470588-13219.7764705883
43280445294047.576470588-13602.5764705883
44285257299646.976470588-14389.9764705883
45270976288925.576470588-17949.5764705883
46261076276468.176470588-15392.1764705882
47255603267774.176470588-12171.1764705882
48260376269364.376470588-8988.37647058826
49263903269176.098039216-5273.09803921553
50264291261040.5529411763250.4470588235
51263276255883.7529411767392.2470588235
52262572252401.35294117710170.6470588235
53256167247092.3529411779074.64705882349
54264221251137.95294117713083.0470588235
55293860281224.75294117712635.2470588235
56300713286824.15294117613888.8470588235
57287224276102.75294117711121.2470588235
58275902263645.35294117712256.6470588235
59271115254951.35294117716163.6470588235
60277509256541.55294117720967.4470588235
61279681256353.27450980423327.7254901962

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 313737 & 320467.392156864 & -6730.39215686355 \tabularnewline
2 & 312276 & 312331.847058824 & -55.8470588235415 \tabularnewline
3 & 309391 & 307175.047058824 & 2215.95294117650 \tabularnewline
4 & 302950 & 303692.647058823 & -742.64705882347 \tabularnewline
5 & 300316 & 298383.647058823 & 1932.35294117654 \tabularnewline
6 & 304035 & 302429.247058823 & 1605.75294117655 \tabularnewline
7 & 333476 & 332516.047058823 & 959.952941176511 \tabularnewline
8 & 337698 & 338115.447058823 & -417.447058823474 \tabularnewline
9 & 335932 & 327394.047058823 & 8537.95294117654 \tabularnewline
10 & 323931 & 314936.647058823 & 8994.3529411765 \tabularnewline
11 & 313927 & 306242.647058823 & 7684.35294117651 \tabularnewline
12 & 314485 & 307832.847058824 & 6652.15294117651 \tabularnewline
13 & 313218 & 307644.568627451 & 5573.43137254917 \tabularnewline
14 & 309664 & 299509.023529412 & 10154.9764705883 \tabularnewline
15 & 302963 & 294352.223529412 & 8610.77647058825 \tabularnewline
16 & 298989 & 290869.823529412 & 8119.17647058825 \tabularnewline
17 & 298423 & 285560.823529412 & 12862.1764705882 \tabularnewline
18 & 301631 & 289606.423529412 & 12024.5764705882 \tabularnewline
19 & 329765 & 319693.223529412 & 10071.7764705883 \tabularnewline
20 & 335083 & 325292.623529412 & 9790.37647058825 \tabularnewline
21 & 327616 & 314571.223529412 & 13044.7764705882 \tabularnewline
22 & 309119 & 302113.823529412 & 7005.17647058825 \tabularnewline
23 & 295916 & 293419.823529412 & 2496.17647058826 \tabularnewline
24 & 291413 & 295010.023529412 & -3597.02352941175 \tabularnewline
25 & 291542 & 294821.745098039 & -3279.74509803902 \tabularnewline
26 & 284678 & 286686.2 & -2008.19999999999 \tabularnewline
27 & 276475 & 281529.4 & -5054.40000000000 \tabularnewline
28 & 272566 & 278047 & -5481.00000000002 \tabularnewline
29 & 264981 & 272738 & -7757.00000000001 \tabularnewline
30 & 263290 & 276783.6 & -13493.6 \tabularnewline
31 & 296806 & 306870.4 & -10064.4 \tabularnewline
32 & 303598 & 312469.8 & -8871.8 \tabularnewline
33 & 286994 & 301748.4 & -14754.4 \tabularnewline
34 & 276427 & 289291 & -12864 \tabularnewline
35 & 266424 & 280597 & -14173 \tabularnewline
36 & 267153 & 282187.2 & -15034.2 \tabularnewline
37 & 268381 & 281998.921568627 & -13617.9215686273 \tabularnewline
38 & 262522 & 273863.376470588 & -11341.3764705882 \tabularnewline
39 & 255542 & 268706.576470588 & -13164.5764705883 \tabularnewline
40 & 253158 & 265224.176470588 & -12066.1764705883 \tabularnewline
41 & 243803 & 259915.176470588 & -16112.1764705883 \tabularnewline
42 & 250741 & 263960.776470588 & -13219.7764705883 \tabularnewline
43 & 280445 & 294047.576470588 & -13602.5764705883 \tabularnewline
44 & 285257 & 299646.976470588 & -14389.9764705883 \tabularnewline
45 & 270976 & 288925.576470588 & -17949.5764705883 \tabularnewline
46 & 261076 & 276468.176470588 & -15392.1764705882 \tabularnewline
47 & 255603 & 267774.176470588 & -12171.1764705882 \tabularnewline
48 & 260376 & 269364.376470588 & -8988.37647058826 \tabularnewline
49 & 263903 & 269176.098039216 & -5273.09803921553 \tabularnewline
50 & 264291 & 261040.552941176 & 3250.4470588235 \tabularnewline
51 & 263276 & 255883.752941176 & 7392.2470588235 \tabularnewline
52 & 262572 & 252401.352941177 & 10170.6470588235 \tabularnewline
53 & 256167 & 247092.352941177 & 9074.64705882349 \tabularnewline
54 & 264221 & 251137.952941177 & 13083.0470588235 \tabularnewline
55 & 293860 & 281224.752941177 & 12635.2470588235 \tabularnewline
56 & 300713 & 286824.152941176 & 13888.8470588235 \tabularnewline
57 & 287224 & 276102.752941177 & 11121.2470588235 \tabularnewline
58 & 275902 & 263645.352941177 & 12256.6470588235 \tabularnewline
59 & 271115 & 254951.352941177 & 16163.6470588235 \tabularnewline
60 & 277509 & 256541.552941177 & 20967.4470588235 \tabularnewline
61 & 279681 & 256353.274509804 & 23327.7254901962 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113113&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]313737[/C][C]320467.392156864[/C][C]-6730.39215686355[/C][/ROW]
[ROW][C]2[/C][C]312276[/C][C]312331.847058824[/C][C]-55.8470588235415[/C][/ROW]
[ROW][C]3[/C][C]309391[/C][C]307175.047058824[/C][C]2215.95294117650[/C][/ROW]
[ROW][C]4[/C][C]302950[/C][C]303692.647058823[/C][C]-742.64705882347[/C][/ROW]
[ROW][C]5[/C][C]300316[/C][C]298383.647058823[/C][C]1932.35294117654[/C][/ROW]
[ROW][C]6[/C][C]304035[/C][C]302429.247058823[/C][C]1605.75294117655[/C][/ROW]
[ROW][C]7[/C][C]333476[/C][C]332516.047058823[/C][C]959.952941176511[/C][/ROW]
[ROW][C]8[/C][C]337698[/C][C]338115.447058823[/C][C]-417.447058823474[/C][/ROW]
[ROW][C]9[/C][C]335932[/C][C]327394.047058823[/C][C]8537.95294117654[/C][/ROW]
[ROW][C]10[/C][C]323931[/C][C]314936.647058823[/C][C]8994.3529411765[/C][/ROW]
[ROW][C]11[/C][C]313927[/C][C]306242.647058823[/C][C]7684.35294117651[/C][/ROW]
[ROW][C]12[/C][C]314485[/C][C]307832.847058824[/C][C]6652.15294117651[/C][/ROW]
[ROW][C]13[/C][C]313218[/C][C]307644.568627451[/C][C]5573.43137254917[/C][/ROW]
[ROW][C]14[/C][C]309664[/C][C]299509.023529412[/C][C]10154.9764705883[/C][/ROW]
[ROW][C]15[/C][C]302963[/C][C]294352.223529412[/C][C]8610.77647058825[/C][/ROW]
[ROW][C]16[/C][C]298989[/C][C]290869.823529412[/C][C]8119.17647058825[/C][/ROW]
[ROW][C]17[/C][C]298423[/C][C]285560.823529412[/C][C]12862.1764705882[/C][/ROW]
[ROW][C]18[/C][C]301631[/C][C]289606.423529412[/C][C]12024.5764705882[/C][/ROW]
[ROW][C]19[/C][C]329765[/C][C]319693.223529412[/C][C]10071.7764705883[/C][/ROW]
[ROW][C]20[/C][C]335083[/C][C]325292.623529412[/C][C]9790.37647058825[/C][/ROW]
[ROW][C]21[/C][C]327616[/C][C]314571.223529412[/C][C]13044.7764705882[/C][/ROW]
[ROW][C]22[/C][C]309119[/C][C]302113.823529412[/C][C]7005.17647058825[/C][/ROW]
[ROW][C]23[/C][C]295916[/C][C]293419.823529412[/C][C]2496.17647058826[/C][/ROW]
[ROW][C]24[/C][C]291413[/C][C]295010.023529412[/C][C]-3597.02352941175[/C][/ROW]
[ROW][C]25[/C][C]291542[/C][C]294821.745098039[/C][C]-3279.74509803902[/C][/ROW]
[ROW][C]26[/C][C]284678[/C][C]286686.2[/C][C]-2008.19999999999[/C][/ROW]
[ROW][C]27[/C][C]276475[/C][C]281529.4[/C][C]-5054.40000000000[/C][/ROW]
[ROW][C]28[/C][C]272566[/C][C]278047[/C][C]-5481.00000000002[/C][/ROW]
[ROW][C]29[/C][C]264981[/C][C]272738[/C][C]-7757.00000000001[/C][/ROW]
[ROW][C]30[/C][C]263290[/C][C]276783.6[/C][C]-13493.6[/C][/ROW]
[ROW][C]31[/C][C]296806[/C][C]306870.4[/C][C]-10064.4[/C][/ROW]
[ROW][C]32[/C][C]303598[/C][C]312469.8[/C][C]-8871.8[/C][/ROW]
[ROW][C]33[/C][C]286994[/C][C]301748.4[/C][C]-14754.4[/C][/ROW]
[ROW][C]34[/C][C]276427[/C][C]289291[/C][C]-12864[/C][/ROW]
[ROW][C]35[/C][C]266424[/C][C]280597[/C][C]-14173[/C][/ROW]
[ROW][C]36[/C][C]267153[/C][C]282187.2[/C][C]-15034.2[/C][/ROW]
[ROW][C]37[/C][C]268381[/C][C]281998.921568627[/C][C]-13617.9215686273[/C][/ROW]
[ROW][C]38[/C][C]262522[/C][C]273863.376470588[/C][C]-11341.3764705882[/C][/ROW]
[ROW][C]39[/C][C]255542[/C][C]268706.576470588[/C][C]-13164.5764705883[/C][/ROW]
[ROW][C]40[/C][C]253158[/C][C]265224.176470588[/C][C]-12066.1764705883[/C][/ROW]
[ROW][C]41[/C][C]243803[/C][C]259915.176470588[/C][C]-16112.1764705883[/C][/ROW]
[ROW][C]42[/C][C]250741[/C][C]263960.776470588[/C][C]-13219.7764705883[/C][/ROW]
[ROW][C]43[/C][C]280445[/C][C]294047.576470588[/C][C]-13602.5764705883[/C][/ROW]
[ROW][C]44[/C][C]285257[/C][C]299646.976470588[/C][C]-14389.9764705883[/C][/ROW]
[ROW][C]45[/C][C]270976[/C][C]288925.576470588[/C][C]-17949.5764705883[/C][/ROW]
[ROW][C]46[/C][C]261076[/C][C]276468.176470588[/C][C]-15392.1764705882[/C][/ROW]
[ROW][C]47[/C][C]255603[/C][C]267774.176470588[/C][C]-12171.1764705882[/C][/ROW]
[ROW][C]48[/C][C]260376[/C][C]269364.376470588[/C][C]-8988.37647058826[/C][/ROW]
[ROW][C]49[/C][C]263903[/C][C]269176.098039216[/C][C]-5273.09803921553[/C][/ROW]
[ROW][C]50[/C][C]264291[/C][C]261040.552941176[/C][C]3250.4470588235[/C][/ROW]
[ROW][C]51[/C][C]263276[/C][C]255883.752941176[/C][C]7392.2470588235[/C][/ROW]
[ROW][C]52[/C][C]262572[/C][C]252401.352941177[/C][C]10170.6470588235[/C][/ROW]
[ROW][C]53[/C][C]256167[/C][C]247092.352941177[/C][C]9074.64705882349[/C][/ROW]
[ROW][C]54[/C][C]264221[/C][C]251137.952941177[/C][C]13083.0470588235[/C][/ROW]
[ROW][C]55[/C][C]293860[/C][C]281224.752941177[/C][C]12635.2470588235[/C][/ROW]
[ROW][C]56[/C][C]300713[/C][C]286824.152941176[/C][C]13888.8470588235[/C][/ROW]
[ROW][C]57[/C][C]287224[/C][C]276102.752941177[/C][C]11121.2470588235[/C][/ROW]
[ROW][C]58[/C][C]275902[/C][C]263645.352941177[/C][C]12256.6470588235[/C][/ROW]
[ROW][C]59[/C][C]271115[/C][C]254951.352941177[/C][C]16163.6470588235[/C][/ROW]
[ROW][C]60[/C][C]277509[/C][C]256541.552941177[/C][C]20967.4470588235[/C][/ROW]
[ROW][C]61[/C][C]279681[/C][C]256353.274509804[/C][C]23327.7254901962[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113113&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113113&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
1313737320467.392156864-6730.39215686355
2312276312331.847058824-55.8470588235415
3309391307175.0470588242215.95294117650
4302950303692.647058823-742.64705882347
5300316298383.6470588231932.35294117654
6304035302429.2470588231605.75294117655
7333476332516.047058823959.952941176511
8337698338115.447058823-417.447058823474
9335932327394.0470588238537.95294117654
10323931314936.6470588238994.3529411765
11313927306242.6470588237684.35294117651
12314485307832.8470588246652.15294117651
13313218307644.5686274515573.43137254917
14309664299509.02352941210154.9764705883
15302963294352.2235294128610.77647058825
16298989290869.8235294128119.17647058825
17298423285560.82352941212862.1764705882
18301631289606.42352941212024.5764705882
19329765319693.22352941210071.7764705883
20335083325292.6235294129790.37647058825
21327616314571.22352941213044.7764705882
22309119302113.8235294127005.17647058825
23295916293419.8235294122496.17647058826
24291413295010.023529412-3597.02352941175
25291542294821.745098039-3279.74509803902
26284678286686.2-2008.19999999999
27276475281529.4-5054.40000000000
28272566278047-5481.00000000002
29264981272738-7757.00000000001
30263290276783.6-13493.6
31296806306870.4-10064.4
32303598312469.8-8871.8
33286994301748.4-14754.4
34276427289291-12864
35266424280597-14173
36267153282187.2-15034.2
37268381281998.921568627-13617.9215686273
38262522273863.376470588-11341.3764705882
39255542268706.576470588-13164.5764705883
40253158265224.176470588-12066.1764705883
41243803259915.176470588-16112.1764705883
42250741263960.776470588-13219.7764705883
43280445294047.576470588-13602.5764705883
44285257299646.976470588-14389.9764705883
45270976288925.576470588-17949.5764705883
46261076276468.176470588-15392.1764705882
47255603267774.176470588-12171.1764705882
48260376269364.376470588-8988.37647058826
49263903269176.098039216-5273.09803921553
50264291261040.5529411763250.4470588235
51263276255883.7529411767392.2470588235
52262572252401.35294117710170.6470588235
53256167247092.3529411779074.64705882349
54264221251137.95294117713083.0470588235
55293860281224.75294117712635.2470588235
56300713286824.15294117613888.8470588235
57287224276102.75294117711121.2470588235
58275902263645.35294117712256.6470588235
59271115254951.35294117716163.6470588235
60277509256541.55294117720967.4470588235
61279681256353.27450980423327.7254901962







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.002851324373146960.005702648746293910.997148675626853
170.0003983676386229280.0007967352772458550.999601632361377
184.97111211197424e-059.94222422394848e-050.99995028887888
196.23242510916713e-061.24648502183343e-050.99999376757489
207.89719101441688e-071.57943820288338e-060.999999210280899
213.36005310066386e-066.72010620132772e-060.9999966399469
220.0001964308590640140.0003928617181280290.999803569140936
230.00210432054602620.00420864109205240.997895679453974
240.01535494227423790.03070988454847570.984645057725762
250.02422183232994330.04844366465988660.975778167670057
260.05389406031885210.1077881206377040.946105939681148
270.1068362229112870.2136724458225750.893163777088713
280.1425096265836670.2850192531673340.857490373416333
290.2668833427216320.5337666854432640.733116657278368
300.3914685103065290.7829370206130580.608531489693471
310.4617088298042530.9234176596085070.538291170195747
320.5568741295206430.8862517409587150.443125870479357
330.7646725933646210.4706548132707580.235327406635379
340.9051121351415360.1897757297169280.0948878648584642
350.9657244227741290.06855115445174180.0342755772258709
360.9871190472467580.02576190550648360.0128809527532418
370.9990632460275230.001873507944953260.00093675397247663
380.9999571420621878.57158756251123e-054.28579378125561e-05
390.9999876644583882.46710832243331e-051.23355416121666e-05
400.9999979672317324.06553653670542e-062.03276826835271e-06
410.999997289118765.42176247957969e-062.71088123978985e-06
420.999991659947231.66801055386310e-058.34005276931552e-06
430.9999923546796351.52906407299399e-057.64532036496995e-06
440.9999025230217140.0001949539565718629.74769782859308e-05
450.9988630053084180.002273989383163200.00113699469158160

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.00285132437314696 & 0.00570264874629391 & 0.997148675626853 \tabularnewline
17 & 0.000398367638622928 & 0.000796735277245855 & 0.999601632361377 \tabularnewline
18 & 4.97111211197424e-05 & 9.94222422394848e-05 & 0.99995028887888 \tabularnewline
19 & 6.23242510916713e-06 & 1.24648502183343e-05 & 0.99999376757489 \tabularnewline
20 & 7.89719101441688e-07 & 1.57943820288338e-06 & 0.999999210280899 \tabularnewline
21 & 3.36005310066386e-06 & 6.72010620132772e-06 & 0.9999966399469 \tabularnewline
22 & 0.000196430859064014 & 0.000392861718128029 & 0.999803569140936 \tabularnewline
23 & 0.0021043205460262 & 0.0042086410920524 & 0.997895679453974 \tabularnewline
24 & 0.0153549422742379 & 0.0307098845484757 & 0.984645057725762 \tabularnewline
25 & 0.0242218323299433 & 0.0484436646598866 & 0.975778167670057 \tabularnewline
26 & 0.0538940603188521 & 0.107788120637704 & 0.946105939681148 \tabularnewline
27 & 0.106836222911287 & 0.213672445822575 & 0.893163777088713 \tabularnewline
28 & 0.142509626583667 & 0.285019253167334 & 0.857490373416333 \tabularnewline
29 & 0.266883342721632 & 0.533766685443264 & 0.733116657278368 \tabularnewline
30 & 0.391468510306529 & 0.782937020613058 & 0.608531489693471 \tabularnewline
31 & 0.461708829804253 & 0.923417659608507 & 0.538291170195747 \tabularnewline
32 & 0.556874129520643 & 0.886251740958715 & 0.443125870479357 \tabularnewline
33 & 0.764672593364621 & 0.470654813270758 & 0.235327406635379 \tabularnewline
34 & 0.905112135141536 & 0.189775729716928 & 0.0948878648584642 \tabularnewline
35 & 0.965724422774129 & 0.0685511544517418 & 0.0342755772258709 \tabularnewline
36 & 0.987119047246758 & 0.0257619055064836 & 0.0128809527532418 \tabularnewline
37 & 0.999063246027523 & 0.00187350794495326 & 0.00093675397247663 \tabularnewline
38 & 0.999957142062187 & 8.57158756251123e-05 & 4.28579378125561e-05 \tabularnewline
39 & 0.999987664458388 & 2.46710832243331e-05 & 1.23355416121666e-05 \tabularnewline
40 & 0.999997967231732 & 4.06553653670542e-06 & 2.03276826835271e-06 \tabularnewline
41 & 0.99999728911876 & 5.42176247957969e-06 & 2.71088123978985e-06 \tabularnewline
42 & 0.99999165994723 & 1.66801055386310e-05 & 8.34005276931552e-06 \tabularnewline
43 & 0.999992354679635 & 1.52906407299399e-05 & 7.64532036496995e-06 \tabularnewline
44 & 0.999902523021714 & 0.000194953956571862 & 9.74769782859308e-05 \tabularnewline
45 & 0.998863005308418 & 0.00227398938316320 & 0.00113699469158160 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=113113&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.00285132437314696[/C][C]0.00570264874629391[/C][C]0.997148675626853[/C][/ROW]
[ROW][C]17[/C][C]0.000398367638622928[/C][C]0.000796735277245855[/C][C]0.999601632361377[/C][/ROW]
[ROW][C]18[/C][C]4.97111211197424e-05[/C][C]9.94222422394848e-05[/C][C]0.99995028887888[/C][/ROW]
[ROW][C]19[/C][C]6.23242510916713e-06[/C][C]1.24648502183343e-05[/C][C]0.99999376757489[/C][/ROW]
[ROW][C]20[/C][C]7.89719101441688e-07[/C][C]1.57943820288338e-06[/C][C]0.999999210280899[/C][/ROW]
[ROW][C]21[/C][C]3.36005310066386e-06[/C][C]6.72010620132772e-06[/C][C]0.9999966399469[/C][/ROW]
[ROW][C]22[/C][C]0.000196430859064014[/C][C]0.000392861718128029[/C][C]0.999803569140936[/C][/ROW]
[ROW][C]23[/C][C]0.0021043205460262[/C][C]0.0042086410920524[/C][C]0.997895679453974[/C][/ROW]
[ROW][C]24[/C][C]0.0153549422742379[/C][C]0.0307098845484757[/C][C]0.984645057725762[/C][/ROW]
[ROW][C]25[/C][C]0.0242218323299433[/C][C]0.0484436646598866[/C][C]0.975778167670057[/C][/ROW]
[ROW][C]26[/C][C]0.0538940603188521[/C][C]0.107788120637704[/C][C]0.946105939681148[/C][/ROW]
[ROW][C]27[/C][C]0.106836222911287[/C][C]0.213672445822575[/C][C]0.893163777088713[/C][/ROW]
[ROW][C]28[/C][C]0.142509626583667[/C][C]0.285019253167334[/C][C]0.857490373416333[/C][/ROW]
[ROW][C]29[/C][C]0.266883342721632[/C][C]0.533766685443264[/C][C]0.733116657278368[/C][/ROW]
[ROW][C]30[/C][C]0.391468510306529[/C][C]0.782937020613058[/C][C]0.608531489693471[/C][/ROW]
[ROW][C]31[/C][C]0.461708829804253[/C][C]0.923417659608507[/C][C]0.538291170195747[/C][/ROW]
[ROW][C]32[/C][C]0.556874129520643[/C][C]0.886251740958715[/C][C]0.443125870479357[/C][/ROW]
[ROW][C]33[/C][C]0.764672593364621[/C][C]0.470654813270758[/C][C]0.235327406635379[/C][/ROW]
[ROW][C]34[/C][C]0.905112135141536[/C][C]0.189775729716928[/C][C]0.0948878648584642[/C][/ROW]
[ROW][C]35[/C][C]0.965724422774129[/C][C]0.0685511544517418[/C][C]0.0342755772258709[/C][/ROW]
[ROW][C]36[/C][C]0.987119047246758[/C][C]0.0257619055064836[/C][C]0.0128809527532418[/C][/ROW]
[ROW][C]37[/C][C]0.999063246027523[/C][C]0.00187350794495326[/C][C]0.00093675397247663[/C][/ROW]
[ROW][C]38[/C][C]0.999957142062187[/C][C]8.57158756251123e-05[/C][C]4.28579378125561e-05[/C][/ROW]
[ROW][C]39[/C][C]0.999987664458388[/C][C]2.46710832243331e-05[/C][C]1.23355416121666e-05[/C][/ROW]
[ROW][C]40[/C][C]0.999997967231732[/C][C]4.06553653670542e-06[/C][C]2.03276826835271e-06[/C][/ROW]
[ROW][C]41[/C][C]0.99999728911876[/C][C]5.42176247957969e-06[/C][C]2.71088123978985e-06[/C][/ROW]
[ROW][C]42[/C][C]0.99999165994723[/C][C]1.66801055386310e-05[/C][C]8.34005276931552e-06[/C][/ROW]
[ROW][C]43[/C][C]0.999992354679635[/C][C]1.52906407299399e-05[/C][C]7.64532036496995e-06[/C][/ROW]
[ROW][C]44[/C][C]0.999902523021714[/C][C]0.000194953956571862[/C][C]9.74769782859308e-05[/C][/ROW]
[ROW][C]45[/C][C]0.998863005308418[/C][C]0.00227398938316320[/C][C]0.00113699469158160[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=113113&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113113&T=5

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.002851324373146960.005702648746293910.997148675626853
170.0003983676386229280.0007967352772458550.999601632361377
184.97111211197424e-059.94222422394848e-050.99995028887888
196.23242510916713e-061.24648502183343e-050.99999376757489
207.89719101441688e-071.57943820288338e-060.999999210280899
213.36005310066386e-066.72010620132772e-060.9999966399469
220.0001964308590640140.0003928617181280290.999803569140936
230.00210432054602620.00420864109205240.997895679453974
240.01535494227423790.03070988454847570.984645057725762
250.02422183232994330.04844366465988660.975778167670057
260.05389406031885210.1077881206377040.946105939681148
270.1068362229112870.2136724458225750.893163777088713
280.1425096265836670.2850192531673340.857490373416333
290.2668833427216320.5337666854432640.733116657278368
300.3914685103065290.7829370206130580.608531489693471
310.4617088298042530.9234176596085070.538291170195747
320.5568741295206430.8862517409587150.443125870479357
330.7646725933646210.4706548132707580.235327406635379
340.9051121351415360.1897757297169280.0948878648584642
350.9657244227741290.06855115445174180.0342755772258709
360.9871190472467580.02576190550648360.0128809527532418
370.9990632460275230.001873507944953260.00093675397247663
380.9999571420621878.57158756251123e-054.28579378125561e-05
390.9999876644583882.46710832243331e-051.23355416121666e-05
400.9999979672317324.06553653670542e-062.03276826835271e-06
410.999997289118765.42176247957969e-062.71088123978985e-06
420.999991659947231.66801055386310e-058.34005276931552e-06
430.9999923546796351.52906407299399e-057.64532036496995e-06
440.9999025230217140.0001949539565718629.74769782859308e-05
450.9988630053084180.002273989383163200.00113699469158160







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level170.566666666666667NOK
5% type I error level200.666666666666667NOK
10% type I error level210.7NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=113113&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 level170.566666666666667NOK
5% type I error level200.666666666666667NOK
10% type I error level210.7NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}