Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 09:31:50 -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/20/t1258734791oyod5csklij6oo4.htm/, Retrieved Thu, 18 Apr 2024 21:58:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58310, Retrieved Thu, 18 Apr 2024 21:58:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-20 16:31:50] [fc845972e0ebdb725d2fb9537c0c51aa] [Current]
Feedback Forum

Post a new message
Dataseries X:
111.4	0
87.4	0
96.8	0
114.1	0
110.3	0
103.9	0
101.6	0
94.6	0
95.9	0
104.7	0
102.8	0
98.1	0
113.9	0
80.9	0
95.7	0
113.2	0
105.9	0
108.8	0
102.3	0
99	0
100.7	0
115.5	0
100.7	0
109.9	0
114.6	0
85.4	0
100.5	0
114.8	0
116.5	0
112.9	0
102	0
106	0
105.3	0
118.8	0
106.1	0
109.3	0
117.2	0
92.5	0
104.2	0
112.5	0
122.4	0
113.3	0
100	0
110.7	0
112.8	0
109.8	0
117.3	0
109.1	0
115.9	0
96	0
99.8	0
116.8	1
115.7	1
99.4	1
94.3	1
91	1
93.2	1
103.1	1
94.1	1
91.8	1
102.7	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58310&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58310&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 105.300995850622 -8.30497925311204X[t] + 8.69983402489626M1[t] -16.8609958506224M2[t] -5.9009958506224M3[t] + 10.64M4[t] + 10.52M5[t] + 4.02M6[t] -3.59999999999999M7[t] -3.38M8[t] -2.06000000000000M9[t] + 6.74M10[t] + 0.560000000000001M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  105.300995850622 -8.30497925311204X[t] +  8.69983402489626M1[t] -16.8609958506224M2[t] -5.9009958506224M3[t] +  10.64M4[t] +  10.52M5[t] +  4.02M6[t] -3.59999999999999M7[t] -3.38M8[t] -2.06000000000000M9[t] +  6.74M10[t] +  0.560000000000001M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58310&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  105.300995850622 -8.30497925311204X[t] +  8.69983402489626M1[t] -16.8609958506224M2[t] -5.9009958506224M3[t] +  10.64M4[t] +  10.52M5[t] +  4.02M6[t] -3.59999999999999M7[t] -3.38M8[t] -2.06000000000000M9[t] +  6.74M10[t] +  0.560000000000001M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58310&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 105.300995850622 -8.30497925311204X[t] + 8.69983402489626M1[t] -16.8609958506224M2[t] -5.9009958506224M3[t] + 10.64M4[t] + 10.52M5[t] + 4.02M6[t] -3.59999999999999M7[t] -3.38M8[t] -2.06000000000000M9[t] + 6.74M10[t] + 0.560000000000001M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)105.3009958506222.42429343.435700
X-8.304979253112041.889219-4.3966.1e-053e-05
M18.699834024896263.2430072.68260.0099890.004994
M2-16.86099585062243.407584-4.94811e-055e-06
M3-5.90099585062243.407584-1.73170.0897460.044873
M410.643.3865713.14180.0028750.001437
M510.523.3865713.10640.0031770.001588
M64.023.3865711.1870.2410530.120526
M7-3.599999999999993.386571-1.0630.2930910.146545
M8-3.383.386571-0.99810.3232550.161628
M9-2.060000000000003.386571-0.60830.5458660.272933
M106.743.3865711.99020.0522790.02614
M110.5600000000000013.3865710.16540.8693560.434678

\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) & 105.300995850622 & 2.424293 & 43.4357 & 0 & 0 \tabularnewline
X & -8.30497925311204 & 1.889219 & -4.396 & 6.1e-05 & 3e-05 \tabularnewline
M1 & 8.69983402489626 & 3.243007 & 2.6826 & 0.009989 & 0.004994 \tabularnewline
M2 & -16.8609958506224 & 3.407584 & -4.9481 & 1e-05 & 5e-06 \tabularnewline
M3 & -5.9009958506224 & 3.407584 & -1.7317 & 0.089746 & 0.044873 \tabularnewline
M4 & 10.64 & 3.386571 & 3.1418 & 0.002875 & 0.001437 \tabularnewline
M5 & 10.52 & 3.386571 & 3.1064 & 0.003177 & 0.001588 \tabularnewline
M6 & 4.02 & 3.386571 & 1.187 & 0.241053 & 0.120526 \tabularnewline
M7 & -3.59999999999999 & 3.386571 & -1.063 & 0.293091 & 0.146545 \tabularnewline
M8 & -3.38 & 3.386571 & -0.9981 & 0.323255 & 0.161628 \tabularnewline
M9 & -2.06000000000000 & 3.386571 & -0.6083 & 0.545866 & 0.272933 \tabularnewline
M10 & 6.74 & 3.386571 & 1.9902 & 0.052279 & 0.02614 \tabularnewline
M11 & 0.560000000000001 & 3.386571 & 0.1654 & 0.869356 & 0.434678 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58310&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]105.300995850622[/C][C]2.424293[/C][C]43.4357[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-8.30497925311204[/C][C]1.889219[/C][C]-4.396[/C][C]6.1e-05[/C][C]3e-05[/C][/ROW]
[ROW][C]M1[/C][C]8.69983402489626[/C][C]3.243007[/C][C]2.6826[/C][C]0.009989[/C][C]0.004994[/C][/ROW]
[ROW][C]M2[/C][C]-16.8609958506224[/C][C]3.407584[/C][C]-4.9481[/C][C]1e-05[/C][C]5e-06[/C][/ROW]
[ROW][C]M3[/C][C]-5.9009958506224[/C][C]3.407584[/C][C]-1.7317[/C][C]0.089746[/C][C]0.044873[/C][/ROW]
[ROW][C]M4[/C][C]10.64[/C][C]3.386571[/C][C]3.1418[/C][C]0.002875[/C][C]0.001437[/C][/ROW]
[ROW][C]M5[/C][C]10.52[/C][C]3.386571[/C][C]3.1064[/C][C]0.003177[/C][C]0.001588[/C][/ROW]
[ROW][C]M6[/C][C]4.02[/C][C]3.386571[/C][C]1.187[/C][C]0.241053[/C][C]0.120526[/C][/ROW]
[ROW][C]M7[/C][C]-3.59999999999999[/C][C]3.386571[/C][C]-1.063[/C][C]0.293091[/C][C]0.146545[/C][/ROW]
[ROW][C]M8[/C][C]-3.38[/C][C]3.386571[/C][C]-0.9981[/C][C]0.323255[/C][C]0.161628[/C][/ROW]
[ROW][C]M9[/C][C]-2.06000000000000[/C][C]3.386571[/C][C]-0.6083[/C][C]0.545866[/C][C]0.272933[/C][/ROW]
[ROW][C]M10[/C][C]6.74[/C][C]3.386571[/C][C]1.9902[/C][C]0.052279[/C][C]0.02614[/C][/ROW]
[ROW][C]M11[/C][C]0.560000000000001[/C][C]3.386571[/C][C]0.1654[/C][C]0.869356[/C][C]0.434678[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58310&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58310&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)105.3009958506222.42429343.435700
X-8.304979253112041.889219-4.3966.1e-053e-05
M18.699834024896263.2430072.68260.0099890.004994
M2-16.86099585062243.407584-4.94811e-055e-06
M3-5.90099585062243.407584-1.73170.0897460.044873
M410.643.3865713.14180.0028750.001437
M510.523.3865713.10640.0031770.001588
M64.023.3865711.1870.2410530.120526
M7-3.599999999999993.386571-1.0630.2930910.146545
M8-3.383.386571-0.99810.3232550.161628
M9-2.060000000000003.386571-0.60830.5458660.272933
M106.743.3865711.99020.0522790.02614
M110.5600000000000013.3865710.16540.8693560.434678







Multiple Linear Regression - Regression Statistics
Multiple R0.855759430330213
R-squared0.73232420259909
Adjusted R-squared0.665405253248862
F-TEST (value)10.9434503934961
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value4.93353691233267e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.35463934521169
Sum Squared Residuals1376.26380082988

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.855759430330213 \tabularnewline
R-squared & 0.73232420259909 \tabularnewline
Adjusted R-squared & 0.665405253248862 \tabularnewline
F-TEST (value) & 10.9434503934961 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 4.93353691233267e-10 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.35463934521169 \tabularnewline
Sum Squared Residuals & 1376.26380082988 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58310&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.855759430330213[/C][/ROW]
[ROW][C]R-squared[/C][C]0.73232420259909[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.665405253248862[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.9434503934961[/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.93353691233267e-10[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.35463934521169[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1376.26380082988[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58310&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58310&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.855759430330213
R-squared0.73232420259909
Adjusted R-squared0.665405253248862
F-TEST (value)10.9434503934961
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value4.93353691233267e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.35463934521169
Sum Squared Residuals1376.26380082988







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1111.4114.000829875519-2.60082987551872
287.488.44-1.03999999999997
396.899.4-2.60000000000000
4114.1115.940995850622-1.84099585062243
5110.3115.820995850622-5.52099585062241
6103.9109.320995850622-5.4209958506224
7101.6101.700995850622-0.100995850622399
894.6101.920995850622-7.32099585062241
995.9103.240995850622-7.3409958506224
10104.7112.040995850622-7.3409958506224
11102.8105.860995850622-3.06099585062241
1298.1105.300995850622-7.20099585062241
13113.9114.000829875519-0.100829875518659
1480.988.44-7.54
1595.799.4-3.7
16113.2115.940995850622-2.74099585062240
17105.9115.820995850622-9.9209958506224
18108.8109.320995850622-0.52099585062241
19102.3101.7009958506220.599004149377588
2099101.920995850622-2.9209958506224
21100.7103.240995850622-2.54099585062241
22115.5112.0409958506223.45900414937759
23100.7105.860995850622-5.1609958506224
24109.9105.3009958506224.59900414937760
25114.6114.0008298755190.59917012448133
2685.488.44-3.04000000000001
27100.599.41.1
28114.8115.940995850622-1.14099585062240
29116.5115.8209958506220.679004149377588
30112.9109.3209958506223.5790041493776
31102101.7009958506220.299004149377590
32106101.9209958506224.0790041493776
33105.3103.2409958506222.05900414937759
34118.8112.0409958506226.75900414937759
35106.1105.8609958506220.239004149377590
36109.3105.3009958506223.9990041493776
37117.2114.0008298755193.19917012448134
3892.588.444.05999999999999
39104.299.44.8
40112.5115.940995850622-3.4409958506224
41122.4115.8209958506226.5790041493776
42113.3109.3209958506223.97900414937759
43100101.700995850622-1.70099585062241
44110.7101.9209958506228.7790041493776
45112.8103.2409958506229.55900414937759
46109.8112.040995850622-2.24099585062241
47117.3105.86099585062211.4390041493776
48109.1105.3009958506223.79900414937759
49115.9114.0008298755191.89917012448134
509688.447.55999999999999
5199.899.40.399999999999997
52116.8107.6360165975109.16398340248963
53115.7107.5160165975108.18398340248962
5499.4101.016016597510-1.61601659751037
5594.393.39601659751040.903983402489621
569193.6160165975104-2.61601659751037
5793.294.9360165975104-1.73601659751037
58103.1103.736016597510-0.636016597510378
5994.197.5560165975104-3.45601659751038
6091.896.9960165975104-5.19601659751037
61102.7105.695850622407-2.99585062240663

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 111.4 & 114.000829875519 & -2.60082987551872 \tabularnewline
2 & 87.4 & 88.44 & -1.03999999999997 \tabularnewline
3 & 96.8 & 99.4 & -2.60000000000000 \tabularnewline
4 & 114.1 & 115.940995850622 & -1.84099585062243 \tabularnewline
5 & 110.3 & 115.820995850622 & -5.52099585062241 \tabularnewline
6 & 103.9 & 109.320995850622 & -5.4209958506224 \tabularnewline
7 & 101.6 & 101.700995850622 & -0.100995850622399 \tabularnewline
8 & 94.6 & 101.920995850622 & -7.32099585062241 \tabularnewline
9 & 95.9 & 103.240995850622 & -7.3409958506224 \tabularnewline
10 & 104.7 & 112.040995850622 & -7.3409958506224 \tabularnewline
11 & 102.8 & 105.860995850622 & -3.06099585062241 \tabularnewline
12 & 98.1 & 105.300995850622 & -7.20099585062241 \tabularnewline
13 & 113.9 & 114.000829875519 & -0.100829875518659 \tabularnewline
14 & 80.9 & 88.44 & -7.54 \tabularnewline
15 & 95.7 & 99.4 & -3.7 \tabularnewline
16 & 113.2 & 115.940995850622 & -2.74099585062240 \tabularnewline
17 & 105.9 & 115.820995850622 & -9.9209958506224 \tabularnewline
18 & 108.8 & 109.320995850622 & -0.52099585062241 \tabularnewline
19 & 102.3 & 101.700995850622 & 0.599004149377588 \tabularnewline
20 & 99 & 101.920995850622 & -2.9209958506224 \tabularnewline
21 & 100.7 & 103.240995850622 & -2.54099585062241 \tabularnewline
22 & 115.5 & 112.040995850622 & 3.45900414937759 \tabularnewline
23 & 100.7 & 105.860995850622 & -5.1609958506224 \tabularnewline
24 & 109.9 & 105.300995850622 & 4.59900414937760 \tabularnewline
25 & 114.6 & 114.000829875519 & 0.59917012448133 \tabularnewline
26 & 85.4 & 88.44 & -3.04000000000001 \tabularnewline
27 & 100.5 & 99.4 & 1.1 \tabularnewline
28 & 114.8 & 115.940995850622 & -1.14099585062240 \tabularnewline
29 & 116.5 & 115.820995850622 & 0.679004149377588 \tabularnewline
30 & 112.9 & 109.320995850622 & 3.5790041493776 \tabularnewline
31 & 102 & 101.700995850622 & 0.299004149377590 \tabularnewline
32 & 106 & 101.920995850622 & 4.0790041493776 \tabularnewline
33 & 105.3 & 103.240995850622 & 2.05900414937759 \tabularnewline
34 & 118.8 & 112.040995850622 & 6.75900414937759 \tabularnewline
35 & 106.1 & 105.860995850622 & 0.239004149377590 \tabularnewline
36 & 109.3 & 105.300995850622 & 3.9990041493776 \tabularnewline
37 & 117.2 & 114.000829875519 & 3.19917012448134 \tabularnewline
38 & 92.5 & 88.44 & 4.05999999999999 \tabularnewline
39 & 104.2 & 99.4 & 4.8 \tabularnewline
40 & 112.5 & 115.940995850622 & -3.4409958506224 \tabularnewline
41 & 122.4 & 115.820995850622 & 6.5790041493776 \tabularnewline
42 & 113.3 & 109.320995850622 & 3.97900414937759 \tabularnewline
43 & 100 & 101.700995850622 & -1.70099585062241 \tabularnewline
44 & 110.7 & 101.920995850622 & 8.7790041493776 \tabularnewline
45 & 112.8 & 103.240995850622 & 9.55900414937759 \tabularnewline
46 & 109.8 & 112.040995850622 & -2.24099585062241 \tabularnewline
47 & 117.3 & 105.860995850622 & 11.4390041493776 \tabularnewline
48 & 109.1 & 105.300995850622 & 3.79900414937759 \tabularnewline
49 & 115.9 & 114.000829875519 & 1.89917012448134 \tabularnewline
50 & 96 & 88.44 & 7.55999999999999 \tabularnewline
51 & 99.8 & 99.4 & 0.399999999999997 \tabularnewline
52 & 116.8 & 107.636016597510 & 9.16398340248963 \tabularnewline
53 & 115.7 & 107.516016597510 & 8.18398340248962 \tabularnewline
54 & 99.4 & 101.016016597510 & -1.61601659751037 \tabularnewline
55 & 94.3 & 93.3960165975104 & 0.903983402489621 \tabularnewline
56 & 91 & 93.6160165975104 & -2.61601659751037 \tabularnewline
57 & 93.2 & 94.9360165975104 & -1.73601659751037 \tabularnewline
58 & 103.1 & 103.736016597510 & -0.636016597510378 \tabularnewline
59 & 94.1 & 97.5560165975104 & -3.45601659751038 \tabularnewline
60 & 91.8 & 96.9960165975104 & -5.19601659751037 \tabularnewline
61 & 102.7 & 105.695850622407 & -2.99585062240663 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58310&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]111.4[/C][C]114.000829875519[/C][C]-2.60082987551872[/C][/ROW]
[ROW][C]2[/C][C]87.4[/C][C]88.44[/C][C]-1.03999999999997[/C][/ROW]
[ROW][C]3[/C][C]96.8[/C][C]99.4[/C][C]-2.60000000000000[/C][/ROW]
[ROW][C]4[/C][C]114.1[/C][C]115.940995850622[/C][C]-1.84099585062243[/C][/ROW]
[ROW][C]5[/C][C]110.3[/C][C]115.820995850622[/C][C]-5.52099585062241[/C][/ROW]
[ROW][C]6[/C][C]103.9[/C][C]109.320995850622[/C][C]-5.4209958506224[/C][/ROW]
[ROW][C]7[/C][C]101.6[/C][C]101.700995850622[/C][C]-0.100995850622399[/C][/ROW]
[ROW][C]8[/C][C]94.6[/C][C]101.920995850622[/C][C]-7.32099585062241[/C][/ROW]
[ROW][C]9[/C][C]95.9[/C][C]103.240995850622[/C][C]-7.3409958506224[/C][/ROW]
[ROW][C]10[/C][C]104.7[/C][C]112.040995850622[/C][C]-7.3409958506224[/C][/ROW]
[ROW][C]11[/C][C]102.8[/C][C]105.860995850622[/C][C]-3.06099585062241[/C][/ROW]
[ROW][C]12[/C][C]98.1[/C][C]105.300995850622[/C][C]-7.20099585062241[/C][/ROW]
[ROW][C]13[/C][C]113.9[/C][C]114.000829875519[/C][C]-0.100829875518659[/C][/ROW]
[ROW][C]14[/C][C]80.9[/C][C]88.44[/C][C]-7.54[/C][/ROW]
[ROW][C]15[/C][C]95.7[/C][C]99.4[/C][C]-3.7[/C][/ROW]
[ROW][C]16[/C][C]113.2[/C][C]115.940995850622[/C][C]-2.74099585062240[/C][/ROW]
[ROW][C]17[/C][C]105.9[/C][C]115.820995850622[/C][C]-9.9209958506224[/C][/ROW]
[ROW][C]18[/C][C]108.8[/C][C]109.320995850622[/C][C]-0.52099585062241[/C][/ROW]
[ROW][C]19[/C][C]102.3[/C][C]101.700995850622[/C][C]0.599004149377588[/C][/ROW]
[ROW][C]20[/C][C]99[/C][C]101.920995850622[/C][C]-2.9209958506224[/C][/ROW]
[ROW][C]21[/C][C]100.7[/C][C]103.240995850622[/C][C]-2.54099585062241[/C][/ROW]
[ROW][C]22[/C][C]115.5[/C][C]112.040995850622[/C][C]3.45900414937759[/C][/ROW]
[ROW][C]23[/C][C]100.7[/C][C]105.860995850622[/C][C]-5.1609958506224[/C][/ROW]
[ROW][C]24[/C][C]109.9[/C][C]105.300995850622[/C][C]4.59900414937760[/C][/ROW]
[ROW][C]25[/C][C]114.6[/C][C]114.000829875519[/C][C]0.59917012448133[/C][/ROW]
[ROW][C]26[/C][C]85.4[/C][C]88.44[/C][C]-3.04000000000001[/C][/ROW]
[ROW][C]27[/C][C]100.5[/C][C]99.4[/C][C]1.1[/C][/ROW]
[ROW][C]28[/C][C]114.8[/C][C]115.940995850622[/C][C]-1.14099585062240[/C][/ROW]
[ROW][C]29[/C][C]116.5[/C][C]115.820995850622[/C][C]0.679004149377588[/C][/ROW]
[ROW][C]30[/C][C]112.9[/C][C]109.320995850622[/C][C]3.5790041493776[/C][/ROW]
[ROW][C]31[/C][C]102[/C][C]101.700995850622[/C][C]0.299004149377590[/C][/ROW]
[ROW][C]32[/C][C]106[/C][C]101.920995850622[/C][C]4.0790041493776[/C][/ROW]
[ROW][C]33[/C][C]105.3[/C][C]103.240995850622[/C][C]2.05900414937759[/C][/ROW]
[ROW][C]34[/C][C]118.8[/C][C]112.040995850622[/C][C]6.75900414937759[/C][/ROW]
[ROW][C]35[/C][C]106.1[/C][C]105.860995850622[/C][C]0.239004149377590[/C][/ROW]
[ROW][C]36[/C][C]109.3[/C][C]105.300995850622[/C][C]3.9990041493776[/C][/ROW]
[ROW][C]37[/C][C]117.2[/C][C]114.000829875519[/C][C]3.19917012448134[/C][/ROW]
[ROW][C]38[/C][C]92.5[/C][C]88.44[/C][C]4.05999999999999[/C][/ROW]
[ROW][C]39[/C][C]104.2[/C][C]99.4[/C][C]4.8[/C][/ROW]
[ROW][C]40[/C][C]112.5[/C][C]115.940995850622[/C][C]-3.4409958506224[/C][/ROW]
[ROW][C]41[/C][C]122.4[/C][C]115.820995850622[/C][C]6.5790041493776[/C][/ROW]
[ROW][C]42[/C][C]113.3[/C][C]109.320995850622[/C][C]3.97900414937759[/C][/ROW]
[ROW][C]43[/C][C]100[/C][C]101.700995850622[/C][C]-1.70099585062241[/C][/ROW]
[ROW][C]44[/C][C]110.7[/C][C]101.920995850622[/C][C]8.7790041493776[/C][/ROW]
[ROW][C]45[/C][C]112.8[/C][C]103.240995850622[/C][C]9.55900414937759[/C][/ROW]
[ROW][C]46[/C][C]109.8[/C][C]112.040995850622[/C][C]-2.24099585062241[/C][/ROW]
[ROW][C]47[/C][C]117.3[/C][C]105.860995850622[/C][C]11.4390041493776[/C][/ROW]
[ROW][C]48[/C][C]109.1[/C][C]105.300995850622[/C][C]3.79900414937759[/C][/ROW]
[ROW][C]49[/C][C]115.9[/C][C]114.000829875519[/C][C]1.89917012448134[/C][/ROW]
[ROW][C]50[/C][C]96[/C][C]88.44[/C][C]7.55999999999999[/C][/ROW]
[ROW][C]51[/C][C]99.8[/C][C]99.4[/C][C]0.399999999999997[/C][/ROW]
[ROW][C]52[/C][C]116.8[/C][C]107.636016597510[/C][C]9.16398340248963[/C][/ROW]
[ROW][C]53[/C][C]115.7[/C][C]107.516016597510[/C][C]8.18398340248962[/C][/ROW]
[ROW][C]54[/C][C]99.4[/C][C]101.016016597510[/C][C]-1.61601659751037[/C][/ROW]
[ROW][C]55[/C][C]94.3[/C][C]93.3960165975104[/C][C]0.903983402489621[/C][/ROW]
[ROW][C]56[/C][C]91[/C][C]93.6160165975104[/C][C]-2.61601659751037[/C][/ROW]
[ROW][C]57[/C][C]93.2[/C][C]94.9360165975104[/C][C]-1.73601659751037[/C][/ROW]
[ROW][C]58[/C][C]103.1[/C][C]103.736016597510[/C][C]-0.636016597510378[/C][/ROW]
[ROW][C]59[/C][C]94.1[/C][C]97.5560165975104[/C][C]-3.45601659751038[/C][/ROW]
[ROW][C]60[/C][C]91.8[/C][C]96.9960165975104[/C][C]-5.19601659751037[/C][/ROW]
[ROW][C]61[/C][C]102.7[/C][C]105.695850622407[/C][C]-2.99585062240663[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58310&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58310&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
1111.4114.000829875519-2.60082987551872
287.488.44-1.03999999999997
396.899.4-2.60000000000000
4114.1115.940995850622-1.84099585062243
5110.3115.820995850622-5.52099585062241
6103.9109.320995850622-5.4209958506224
7101.6101.700995850622-0.100995850622399
894.6101.920995850622-7.32099585062241
995.9103.240995850622-7.3409958506224
10104.7112.040995850622-7.3409958506224
11102.8105.860995850622-3.06099585062241
1298.1105.300995850622-7.20099585062241
13113.9114.000829875519-0.100829875518659
1480.988.44-7.54
1595.799.4-3.7
16113.2115.940995850622-2.74099585062240
17105.9115.820995850622-9.9209958506224
18108.8109.320995850622-0.52099585062241
19102.3101.7009958506220.599004149377588
2099101.920995850622-2.9209958506224
21100.7103.240995850622-2.54099585062241
22115.5112.0409958506223.45900414937759
23100.7105.860995850622-5.1609958506224
24109.9105.3009958506224.59900414937760
25114.6114.0008298755190.59917012448133
2685.488.44-3.04000000000001
27100.599.41.1
28114.8115.940995850622-1.14099585062240
29116.5115.8209958506220.679004149377588
30112.9109.3209958506223.5790041493776
31102101.7009958506220.299004149377590
32106101.9209958506224.0790041493776
33105.3103.2409958506222.05900414937759
34118.8112.0409958506226.75900414937759
35106.1105.8609958506220.239004149377590
36109.3105.3009958506223.9990041493776
37117.2114.0008298755193.19917012448134
3892.588.444.05999999999999
39104.299.44.8
40112.5115.940995850622-3.4409958506224
41122.4115.8209958506226.5790041493776
42113.3109.3209958506223.97900414937759
43100101.700995850622-1.70099585062241
44110.7101.9209958506228.7790041493776
45112.8103.2409958506229.55900414937759
46109.8112.040995850622-2.24099585062241
47117.3105.86099585062211.4390041493776
48109.1105.3009958506223.79900414937759
49115.9114.0008298755191.89917012448134
509688.447.55999999999999
5199.899.40.399999999999997
52116.8107.6360165975109.16398340248963
53115.7107.5160165975108.18398340248962
5499.4101.016016597510-1.61601659751037
5594.393.39601659751040.903983402489621
569193.6160165975104-2.61601659751037
5793.294.9360165975104-1.73601659751037
58103.1103.736016597510-0.636016597510378
5994.197.5560165975104-3.45601659751038
6091.896.9960165975104-5.19601659751037
61102.7105.695850622407-2.99585062240663







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1850064069147850.3700128138295690.814993593085215
170.1950924613909200.3901849227818410.80490753860908
180.1720381575082240.3440763150164490.827961842491776
190.09221685554237610.1844337110847520.907783144457624
200.08454758980511510.1690951796102300.915452410194885
210.08400938974146790.1680187794829360.915990610258532
220.2314466097642440.4628932195284880.768553390235756
230.2075758296458870.4151516592917740.792424170354113
240.3828688761202260.7657377522404530.617131123879774
250.2957887741514010.5915775483028020.704211225848599
260.278599358302530.557198716605060.72140064169747
270.2343924513511870.4687849027023750.765607548648813
280.1898380473779910.3796760947559830.810161952622009
290.3077943311857890.6155886623715770.692205668814211
300.2958932442583410.5917864885166830.704106755741658
310.2187480270740130.4374960541480250.781251972925987
320.2567184446612320.5134368893224640.743281555338768
330.2542115398826280.5084230797652560.745788460117372
340.3042720393011980.6085440786023950.695727960698802
350.2822982018994280.5645964037988570.717701798100572
360.2366602635747390.4733205271494780.763339736425261
370.1808488587420640.3616977174841280.819151141257936
380.1713704197503680.3427408395007370.828629580249632
390.1485578957464870.2971157914929750.851442104253513
400.4436620122197230.8873240244394460.556337987780277
410.5611352721182020.8777294557635960.438864727881798
420.4506766688847330.9013533377694650.549323331115267
430.5804452842848460.8391094314303070.419554715715154
440.5230904384922510.9538191230154970.476909561507749
450.4596034212680210.9192068425360420.540396578731979

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.185006406914785 & 0.370012813829569 & 0.814993593085215 \tabularnewline
17 & 0.195092461390920 & 0.390184922781841 & 0.80490753860908 \tabularnewline
18 & 0.172038157508224 & 0.344076315016449 & 0.827961842491776 \tabularnewline
19 & 0.0922168555423761 & 0.184433711084752 & 0.907783144457624 \tabularnewline
20 & 0.0845475898051151 & 0.169095179610230 & 0.915452410194885 \tabularnewline
21 & 0.0840093897414679 & 0.168018779482936 & 0.915990610258532 \tabularnewline
22 & 0.231446609764244 & 0.462893219528488 & 0.768553390235756 \tabularnewline
23 & 0.207575829645887 & 0.415151659291774 & 0.792424170354113 \tabularnewline
24 & 0.382868876120226 & 0.765737752240453 & 0.617131123879774 \tabularnewline
25 & 0.295788774151401 & 0.591577548302802 & 0.704211225848599 \tabularnewline
26 & 0.27859935830253 & 0.55719871660506 & 0.72140064169747 \tabularnewline
27 & 0.234392451351187 & 0.468784902702375 & 0.765607548648813 \tabularnewline
28 & 0.189838047377991 & 0.379676094755983 & 0.810161952622009 \tabularnewline
29 & 0.307794331185789 & 0.615588662371577 & 0.692205668814211 \tabularnewline
30 & 0.295893244258341 & 0.591786488516683 & 0.704106755741658 \tabularnewline
31 & 0.218748027074013 & 0.437496054148025 & 0.781251972925987 \tabularnewline
32 & 0.256718444661232 & 0.513436889322464 & 0.743281555338768 \tabularnewline
33 & 0.254211539882628 & 0.508423079765256 & 0.745788460117372 \tabularnewline
34 & 0.304272039301198 & 0.608544078602395 & 0.695727960698802 \tabularnewline
35 & 0.282298201899428 & 0.564596403798857 & 0.717701798100572 \tabularnewline
36 & 0.236660263574739 & 0.473320527149478 & 0.763339736425261 \tabularnewline
37 & 0.180848858742064 & 0.361697717484128 & 0.819151141257936 \tabularnewline
38 & 0.171370419750368 & 0.342740839500737 & 0.828629580249632 \tabularnewline
39 & 0.148557895746487 & 0.297115791492975 & 0.851442104253513 \tabularnewline
40 & 0.443662012219723 & 0.887324024439446 & 0.556337987780277 \tabularnewline
41 & 0.561135272118202 & 0.877729455763596 & 0.438864727881798 \tabularnewline
42 & 0.450676668884733 & 0.901353337769465 & 0.549323331115267 \tabularnewline
43 & 0.580445284284846 & 0.839109431430307 & 0.419554715715154 \tabularnewline
44 & 0.523090438492251 & 0.953819123015497 & 0.476909561507749 \tabularnewline
45 & 0.459603421268021 & 0.919206842536042 & 0.540396578731979 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58310&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.185006406914785[/C][C]0.370012813829569[/C][C]0.814993593085215[/C][/ROW]
[ROW][C]17[/C][C]0.195092461390920[/C][C]0.390184922781841[/C][C]0.80490753860908[/C][/ROW]
[ROW][C]18[/C][C]0.172038157508224[/C][C]0.344076315016449[/C][C]0.827961842491776[/C][/ROW]
[ROW][C]19[/C][C]0.0922168555423761[/C][C]0.184433711084752[/C][C]0.907783144457624[/C][/ROW]
[ROW][C]20[/C][C]0.0845475898051151[/C][C]0.169095179610230[/C][C]0.915452410194885[/C][/ROW]
[ROW][C]21[/C][C]0.0840093897414679[/C][C]0.168018779482936[/C][C]0.915990610258532[/C][/ROW]
[ROW][C]22[/C][C]0.231446609764244[/C][C]0.462893219528488[/C][C]0.768553390235756[/C][/ROW]
[ROW][C]23[/C][C]0.207575829645887[/C][C]0.415151659291774[/C][C]0.792424170354113[/C][/ROW]
[ROW][C]24[/C][C]0.382868876120226[/C][C]0.765737752240453[/C][C]0.617131123879774[/C][/ROW]
[ROW][C]25[/C][C]0.295788774151401[/C][C]0.591577548302802[/C][C]0.704211225848599[/C][/ROW]
[ROW][C]26[/C][C]0.27859935830253[/C][C]0.55719871660506[/C][C]0.72140064169747[/C][/ROW]
[ROW][C]27[/C][C]0.234392451351187[/C][C]0.468784902702375[/C][C]0.765607548648813[/C][/ROW]
[ROW][C]28[/C][C]0.189838047377991[/C][C]0.379676094755983[/C][C]0.810161952622009[/C][/ROW]
[ROW][C]29[/C][C]0.307794331185789[/C][C]0.615588662371577[/C][C]0.692205668814211[/C][/ROW]
[ROW][C]30[/C][C]0.295893244258341[/C][C]0.591786488516683[/C][C]0.704106755741658[/C][/ROW]
[ROW][C]31[/C][C]0.218748027074013[/C][C]0.437496054148025[/C][C]0.781251972925987[/C][/ROW]
[ROW][C]32[/C][C]0.256718444661232[/C][C]0.513436889322464[/C][C]0.743281555338768[/C][/ROW]
[ROW][C]33[/C][C]0.254211539882628[/C][C]0.508423079765256[/C][C]0.745788460117372[/C][/ROW]
[ROW][C]34[/C][C]0.304272039301198[/C][C]0.608544078602395[/C][C]0.695727960698802[/C][/ROW]
[ROW][C]35[/C][C]0.282298201899428[/C][C]0.564596403798857[/C][C]0.717701798100572[/C][/ROW]
[ROW][C]36[/C][C]0.236660263574739[/C][C]0.473320527149478[/C][C]0.763339736425261[/C][/ROW]
[ROW][C]37[/C][C]0.180848858742064[/C][C]0.361697717484128[/C][C]0.819151141257936[/C][/ROW]
[ROW][C]38[/C][C]0.171370419750368[/C][C]0.342740839500737[/C][C]0.828629580249632[/C][/ROW]
[ROW][C]39[/C][C]0.148557895746487[/C][C]0.297115791492975[/C][C]0.851442104253513[/C][/ROW]
[ROW][C]40[/C][C]0.443662012219723[/C][C]0.887324024439446[/C][C]0.556337987780277[/C][/ROW]
[ROW][C]41[/C][C]0.561135272118202[/C][C]0.877729455763596[/C][C]0.438864727881798[/C][/ROW]
[ROW][C]42[/C][C]0.450676668884733[/C][C]0.901353337769465[/C][C]0.549323331115267[/C][/ROW]
[ROW][C]43[/C][C]0.580445284284846[/C][C]0.839109431430307[/C][C]0.419554715715154[/C][/ROW]
[ROW][C]44[/C][C]0.523090438492251[/C][C]0.953819123015497[/C][C]0.476909561507749[/C][/ROW]
[ROW][C]45[/C][C]0.459603421268021[/C][C]0.919206842536042[/C][C]0.540396578731979[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58310&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58310&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.1850064069147850.3700128138295690.814993593085215
170.1950924613909200.3901849227818410.80490753860908
180.1720381575082240.3440763150164490.827961842491776
190.09221685554237610.1844337110847520.907783144457624
200.08454758980511510.1690951796102300.915452410194885
210.08400938974146790.1680187794829360.915990610258532
220.2314466097642440.4628932195284880.768553390235756
230.2075758296458870.4151516592917740.792424170354113
240.3828688761202260.7657377522404530.617131123879774
250.2957887741514010.5915775483028020.704211225848599
260.278599358302530.557198716605060.72140064169747
270.2343924513511870.4687849027023750.765607548648813
280.1898380473779910.3796760947559830.810161952622009
290.3077943311857890.6155886623715770.692205668814211
300.2958932442583410.5917864885166830.704106755741658
310.2187480270740130.4374960541480250.781251972925987
320.2567184446612320.5134368893224640.743281555338768
330.2542115398826280.5084230797652560.745788460117372
340.3042720393011980.6085440786023950.695727960698802
350.2822982018994280.5645964037988570.717701798100572
360.2366602635747390.4733205271494780.763339736425261
370.1808488587420640.3616977174841280.819151141257936
380.1713704197503680.3427408395007370.828629580249632
390.1485578957464870.2971157914929750.851442104253513
400.4436620122197230.8873240244394460.556337987780277
410.5611352721182020.8777294557635960.438864727881798
420.4506766688847330.9013533377694650.549323331115267
430.5804452842848460.8391094314303070.419554715715154
440.5230904384922510.9538191230154970.476909561507749
450.4596034212680210.9192068425360420.540396578731979







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58310&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 level00OK
5% type I error level00OK
10% type I error level00OK



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