Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 06:44:44 -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/t12587247125sa1zilqi8kxeu1.htm/, Retrieved Wed, 24 Apr 2024 05:47:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58154, Retrieved Wed, 24 Apr 2024 05:47:02 +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 13:44:44] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

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




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 115.812666666667 -3.83166666666665X[t] -17.1863333333334M1[t] -27.5663333333333M2[t] -2.18633333333331M3[t] -11.4063333333333M4[t] -10.8463333333333M5[t] -4.66633333333331M6[t] -12.7M7[t] -14.02M8[t] -14.2400000000000M9[t] -6.61999999999998M10[t] -0.119999999999988M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  115.812666666667 -3.83166666666665X[t] -17.1863333333334M1[t] -27.5663333333333M2[t] -2.18633333333331M3[t] -11.4063333333333M4[t] -10.8463333333333M5[t] -4.66633333333331M6[t] -12.7M7[t] -14.02M8[t] -14.2400000000000M9[t] -6.61999999999998M10[t] -0.119999999999988M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58154&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  115.812666666667 -3.83166666666665X[t] -17.1863333333334M1[t] -27.5663333333333M2[t] -2.18633333333331M3[t] -11.4063333333333M4[t] -10.8463333333333M5[t] -4.66633333333331M6[t] -12.7M7[t] -14.02M8[t] -14.2400000000000M9[t] -6.61999999999998M10[t] -0.119999999999988M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58154&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58154&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] = + 115.812666666667 -3.83166666666665X[t] -17.1863333333334M1[t] -27.5663333333333M2[t] -2.18633333333331M3[t] -11.4063333333333M4[t] -10.8463333333333M5[t] -4.66633333333331M6[t] -12.7M7[t] -14.02M8[t] -14.2400000000000M9[t] -6.61999999999998M10[t] -0.119999999999988M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)115.8126666666672.91206439.7700
X-3.831666666666651.82004-2.10530.040640.02032
M1-17.18633333333344.004088-4.29228.8e-054.4e-05
M2-27.56633333333334.004088-6.884500
M3-2.186333333333314.004088-0.5460.5876310.293816
M4-11.40633333333334.004088-2.84870.0064950.003247
M5-10.84633333333334.004088-2.70880.009390.004695
M6-4.666333333333314.004088-1.16540.2497410.12487
M7-12.73.987508-3.18490.0025710.001285
M8-14.023.987508-3.5160.0009820.000491
M9-14.24000000000003.987508-3.57120.0008330.000416
M10-6.619999999999983.987508-1.66020.1035360.051768
M11-0.1199999999999883.987508-0.03010.976120.48806

\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) & 115.812666666667 & 2.912064 & 39.77 & 0 & 0 \tabularnewline
X & -3.83166666666665 & 1.82004 & -2.1053 & 0.04064 & 0.02032 \tabularnewline
M1 & -17.1863333333334 & 4.004088 & -4.2922 & 8.8e-05 & 4.4e-05 \tabularnewline
M2 & -27.5663333333333 & 4.004088 & -6.8845 & 0 & 0 \tabularnewline
M3 & -2.18633333333331 & 4.004088 & -0.546 & 0.587631 & 0.293816 \tabularnewline
M4 & -11.4063333333333 & 4.004088 & -2.8487 & 0.006495 & 0.003247 \tabularnewline
M5 & -10.8463333333333 & 4.004088 & -2.7088 & 0.00939 & 0.004695 \tabularnewline
M6 & -4.66633333333331 & 4.004088 & -1.1654 & 0.249741 & 0.12487 \tabularnewline
M7 & -12.7 & 3.987508 & -3.1849 & 0.002571 & 0.001285 \tabularnewline
M8 & -14.02 & 3.987508 & -3.516 & 0.000982 & 0.000491 \tabularnewline
M9 & -14.2400000000000 & 3.987508 & -3.5712 & 0.000833 & 0.000416 \tabularnewline
M10 & -6.61999999999998 & 3.987508 & -1.6602 & 0.103536 & 0.051768 \tabularnewline
M11 & -0.119999999999988 & 3.987508 & -0.0301 & 0.97612 & 0.48806 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58154&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]115.812666666667[/C][C]2.912064[/C][C]39.77[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-3.83166666666665[/C][C]1.82004[/C][C]-2.1053[/C][C]0.04064[/C][C]0.02032[/C][/ROW]
[ROW][C]M1[/C][C]-17.1863333333334[/C][C]4.004088[/C][C]-4.2922[/C][C]8.8e-05[/C][C]4.4e-05[/C][/ROW]
[ROW][C]M2[/C][C]-27.5663333333333[/C][C]4.004088[/C][C]-6.8845[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]-2.18633333333331[/C][C]4.004088[/C][C]-0.546[/C][C]0.587631[/C][C]0.293816[/C][/ROW]
[ROW][C]M4[/C][C]-11.4063333333333[/C][C]4.004088[/C][C]-2.8487[/C][C]0.006495[/C][C]0.003247[/C][/ROW]
[ROW][C]M5[/C][C]-10.8463333333333[/C][C]4.004088[/C][C]-2.7088[/C][C]0.00939[/C][C]0.004695[/C][/ROW]
[ROW][C]M6[/C][C]-4.66633333333331[/C][C]4.004088[/C][C]-1.1654[/C][C]0.249741[/C][C]0.12487[/C][/ROW]
[ROW][C]M7[/C][C]-12.7[/C][C]3.987508[/C][C]-3.1849[/C][C]0.002571[/C][C]0.001285[/C][/ROW]
[ROW][C]M8[/C][C]-14.02[/C][C]3.987508[/C][C]-3.516[/C][C]0.000982[/C][C]0.000491[/C][/ROW]
[ROW][C]M9[/C][C]-14.2400000000000[/C][C]3.987508[/C][C]-3.5712[/C][C]0.000833[/C][C]0.000416[/C][/ROW]
[ROW][C]M10[/C][C]-6.61999999999998[/C][C]3.987508[/C][C]-1.6602[/C][C]0.103536[/C][C]0.051768[/C][/ROW]
[ROW][C]M11[/C][C]-0.119999999999988[/C][C]3.987508[/C][C]-0.0301[/C][C]0.97612[/C][C]0.48806[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58154&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58154&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)115.8126666666672.91206439.7700
X-3.831666666666651.82004-2.10530.040640.02032
M1-17.18633333333344.004088-4.29228.8e-054.4e-05
M2-27.56633333333334.004088-6.884500
M3-2.186333333333314.004088-0.5460.5876310.293816
M4-11.40633333333334.004088-2.84870.0064950.003247
M5-10.84633333333334.004088-2.70880.009390.004695
M6-4.666333333333314.004088-1.16540.2497410.12487
M7-12.73.987508-3.18490.0025710.001285
M8-14.023.987508-3.5160.0009820.000491
M9-14.24000000000003.987508-3.57120.0008330.000416
M10-6.619999999999983.987508-1.66020.1035360.051768
M11-0.1199999999999883.987508-0.03010.976120.48806







Multiple Linear Regression - Regression Statistics
Multiple R0.811312278579426
R-squared0.65822761337374
Adjusted R-squared0.57096657849044
F-TEST (value)7.54320200595867
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value1.64426027238207e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.304803921001
Sum Squared Residuals1868.27596666667

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.811312278579426 \tabularnewline
R-squared & 0.65822761337374 \tabularnewline
Adjusted R-squared & 0.57096657849044 \tabularnewline
F-TEST (value) & 7.54320200595867 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 1.64426027238207e-07 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 6.304803921001 \tabularnewline
Sum Squared Residuals & 1868.27596666667 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58154&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.811312278579426[/C][/ROW]
[ROW][C]R-squared[/C][C]0.65822761337374[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.57096657849044[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]7.54320200595867[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]1.64426027238207e-07[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]6.304803921001[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1868.27596666667[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58154&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58154&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.811312278579426
R-squared0.65822761337374
Adjusted R-squared0.57096657849044
F-TEST (value)7.54320200595867
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value1.64426027238207e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.304803921001
Sum Squared Residuals1868.27596666667







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
189.198.6263333333336-9.52633333333364
282.688.2463333333334-5.64633333333336
3102.7113.626333333333-10.9263333333333
491.8104.406333333333-12.6063333333333
594.1104.966333333333-10.8663333333333
6103.1111.146333333333-8.04633333333332
793.2103.112666666667-9.9126666666667
891101.792666666667-10.7926666666667
994.3101.572666666667-7.27266666666665
1099.4109.192666666667-9.79266666666665
11115.7115.6926666666670.00733333333333253
12116.8115.8126666666670.987333333333348
1399.898.62633333333331.17366666666674
149688.24633333333337.75366666666667
15115.9113.6263333333332.27366666666667
16109.1104.4063333333334.69366666666667
17117.3104.96633333333312.3336666666667
18109.8111.146333333333-1.34633333333333
19112.8103.1126666666679.68733333333334
20110.7101.7926666666678.90733333333335
21100101.572666666667-1.57266666666666
22113.3109.1926666666674.10733333333333
23122.4115.6926666666676.70733333333335
24112.5115.812666666667-3.31266666666665
25104.298.62633333333335.57366666666674
2692.588.24633333333334.25366666666667
27117.2113.6263333333333.57366666666667
28109.3104.4063333333334.89366666666667
29106.1104.9663333333331.13366666666666
30118.8111.1463333333337.65366666666666
31105.3103.1126666666672.18733333333334
32106101.7926666666674.20733333333334
33102101.5726666666670.427333333333337
34112.9109.1926666666673.70733333333334
35116.5115.6926666666670.807333333333338
36114.8115.812666666667-1.01266666666665
37100.598.62633333333331.87366666666674
3885.488.2463333333333-2.84633333333332
39114.6113.6263333333330.973666666666658
40109.9104.4063333333335.49366666666668
41100.7104.966333333333-4.26633333333333
42115.5111.1463333333334.35366666666667
43100.799.2811.41900000000000
449997.9611.039
45102.397.7414.55899999999999
46108.8105.3613.43899999999999
47105.9111.861-5.961
48113.2111.9811.21900000000001
4995.794.79466666666660.9053333333334
5080.984.4146666666667-3.51466666666666
51113.9109.7946666666674.10533333333333
5298.1100.574666666667-2.47466666666668
53102.8101.1346666666671.66533333333333
54104.7107.314666666667-2.61466666666667
5595.999.281-3.38100000000000
5694.697.961-3.36100000000001
57101.697.7413.85899999999999
58103.9105.361-1.46100000000000
59110.3111.861-1.56100000000001
60114.1111.9812.119

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 89.1 & 98.6263333333336 & -9.52633333333364 \tabularnewline
2 & 82.6 & 88.2463333333334 & -5.64633333333336 \tabularnewline
3 & 102.7 & 113.626333333333 & -10.9263333333333 \tabularnewline
4 & 91.8 & 104.406333333333 & -12.6063333333333 \tabularnewline
5 & 94.1 & 104.966333333333 & -10.8663333333333 \tabularnewline
6 & 103.1 & 111.146333333333 & -8.04633333333332 \tabularnewline
7 & 93.2 & 103.112666666667 & -9.9126666666667 \tabularnewline
8 & 91 & 101.792666666667 & -10.7926666666667 \tabularnewline
9 & 94.3 & 101.572666666667 & -7.27266666666665 \tabularnewline
10 & 99.4 & 109.192666666667 & -9.79266666666665 \tabularnewline
11 & 115.7 & 115.692666666667 & 0.00733333333333253 \tabularnewline
12 & 116.8 & 115.812666666667 & 0.987333333333348 \tabularnewline
13 & 99.8 & 98.6263333333333 & 1.17366666666674 \tabularnewline
14 & 96 & 88.2463333333333 & 7.75366666666667 \tabularnewline
15 & 115.9 & 113.626333333333 & 2.27366666666667 \tabularnewline
16 & 109.1 & 104.406333333333 & 4.69366666666667 \tabularnewline
17 & 117.3 & 104.966333333333 & 12.3336666666667 \tabularnewline
18 & 109.8 & 111.146333333333 & -1.34633333333333 \tabularnewline
19 & 112.8 & 103.112666666667 & 9.68733333333334 \tabularnewline
20 & 110.7 & 101.792666666667 & 8.90733333333335 \tabularnewline
21 & 100 & 101.572666666667 & -1.57266666666666 \tabularnewline
22 & 113.3 & 109.192666666667 & 4.10733333333333 \tabularnewline
23 & 122.4 & 115.692666666667 & 6.70733333333335 \tabularnewline
24 & 112.5 & 115.812666666667 & -3.31266666666665 \tabularnewline
25 & 104.2 & 98.6263333333333 & 5.57366666666674 \tabularnewline
26 & 92.5 & 88.2463333333333 & 4.25366666666667 \tabularnewline
27 & 117.2 & 113.626333333333 & 3.57366666666667 \tabularnewline
28 & 109.3 & 104.406333333333 & 4.89366666666667 \tabularnewline
29 & 106.1 & 104.966333333333 & 1.13366666666666 \tabularnewline
30 & 118.8 & 111.146333333333 & 7.65366666666666 \tabularnewline
31 & 105.3 & 103.112666666667 & 2.18733333333334 \tabularnewline
32 & 106 & 101.792666666667 & 4.20733333333334 \tabularnewline
33 & 102 & 101.572666666667 & 0.427333333333337 \tabularnewline
34 & 112.9 & 109.192666666667 & 3.70733333333334 \tabularnewline
35 & 116.5 & 115.692666666667 & 0.807333333333338 \tabularnewline
36 & 114.8 & 115.812666666667 & -1.01266666666665 \tabularnewline
37 & 100.5 & 98.6263333333333 & 1.87366666666674 \tabularnewline
38 & 85.4 & 88.2463333333333 & -2.84633333333332 \tabularnewline
39 & 114.6 & 113.626333333333 & 0.973666666666658 \tabularnewline
40 & 109.9 & 104.406333333333 & 5.49366666666668 \tabularnewline
41 & 100.7 & 104.966333333333 & -4.26633333333333 \tabularnewline
42 & 115.5 & 111.146333333333 & 4.35366666666667 \tabularnewline
43 & 100.7 & 99.281 & 1.41900000000000 \tabularnewline
44 & 99 & 97.961 & 1.039 \tabularnewline
45 & 102.3 & 97.741 & 4.55899999999999 \tabularnewline
46 & 108.8 & 105.361 & 3.43899999999999 \tabularnewline
47 & 105.9 & 111.861 & -5.961 \tabularnewline
48 & 113.2 & 111.981 & 1.21900000000001 \tabularnewline
49 & 95.7 & 94.7946666666666 & 0.9053333333334 \tabularnewline
50 & 80.9 & 84.4146666666667 & -3.51466666666666 \tabularnewline
51 & 113.9 & 109.794666666667 & 4.10533333333333 \tabularnewline
52 & 98.1 & 100.574666666667 & -2.47466666666668 \tabularnewline
53 & 102.8 & 101.134666666667 & 1.66533333333333 \tabularnewline
54 & 104.7 & 107.314666666667 & -2.61466666666667 \tabularnewline
55 & 95.9 & 99.281 & -3.38100000000000 \tabularnewline
56 & 94.6 & 97.961 & -3.36100000000001 \tabularnewline
57 & 101.6 & 97.741 & 3.85899999999999 \tabularnewline
58 & 103.9 & 105.361 & -1.46100000000000 \tabularnewline
59 & 110.3 & 111.861 & -1.56100000000001 \tabularnewline
60 & 114.1 & 111.981 & 2.119 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58154&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]89.1[/C][C]98.6263333333336[/C][C]-9.52633333333364[/C][/ROW]
[ROW][C]2[/C][C]82.6[/C][C]88.2463333333334[/C][C]-5.64633333333336[/C][/ROW]
[ROW][C]3[/C][C]102.7[/C][C]113.626333333333[/C][C]-10.9263333333333[/C][/ROW]
[ROW][C]4[/C][C]91.8[/C][C]104.406333333333[/C][C]-12.6063333333333[/C][/ROW]
[ROW][C]5[/C][C]94.1[/C][C]104.966333333333[/C][C]-10.8663333333333[/C][/ROW]
[ROW][C]6[/C][C]103.1[/C][C]111.146333333333[/C][C]-8.04633333333332[/C][/ROW]
[ROW][C]7[/C][C]93.2[/C][C]103.112666666667[/C][C]-9.9126666666667[/C][/ROW]
[ROW][C]8[/C][C]91[/C][C]101.792666666667[/C][C]-10.7926666666667[/C][/ROW]
[ROW][C]9[/C][C]94.3[/C][C]101.572666666667[/C][C]-7.27266666666665[/C][/ROW]
[ROW][C]10[/C][C]99.4[/C][C]109.192666666667[/C][C]-9.79266666666665[/C][/ROW]
[ROW][C]11[/C][C]115.7[/C][C]115.692666666667[/C][C]0.00733333333333253[/C][/ROW]
[ROW][C]12[/C][C]116.8[/C][C]115.812666666667[/C][C]0.987333333333348[/C][/ROW]
[ROW][C]13[/C][C]99.8[/C][C]98.6263333333333[/C][C]1.17366666666674[/C][/ROW]
[ROW][C]14[/C][C]96[/C][C]88.2463333333333[/C][C]7.75366666666667[/C][/ROW]
[ROW][C]15[/C][C]115.9[/C][C]113.626333333333[/C][C]2.27366666666667[/C][/ROW]
[ROW][C]16[/C][C]109.1[/C][C]104.406333333333[/C][C]4.69366666666667[/C][/ROW]
[ROW][C]17[/C][C]117.3[/C][C]104.966333333333[/C][C]12.3336666666667[/C][/ROW]
[ROW][C]18[/C][C]109.8[/C][C]111.146333333333[/C][C]-1.34633333333333[/C][/ROW]
[ROW][C]19[/C][C]112.8[/C][C]103.112666666667[/C][C]9.68733333333334[/C][/ROW]
[ROW][C]20[/C][C]110.7[/C][C]101.792666666667[/C][C]8.90733333333335[/C][/ROW]
[ROW][C]21[/C][C]100[/C][C]101.572666666667[/C][C]-1.57266666666666[/C][/ROW]
[ROW][C]22[/C][C]113.3[/C][C]109.192666666667[/C][C]4.10733333333333[/C][/ROW]
[ROW][C]23[/C][C]122.4[/C][C]115.692666666667[/C][C]6.70733333333335[/C][/ROW]
[ROW][C]24[/C][C]112.5[/C][C]115.812666666667[/C][C]-3.31266666666665[/C][/ROW]
[ROW][C]25[/C][C]104.2[/C][C]98.6263333333333[/C][C]5.57366666666674[/C][/ROW]
[ROW][C]26[/C][C]92.5[/C][C]88.2463333333333[/C][C]4.25366666666667[/C][/ROW]
[ROW][C]27[/C][C]117.2[/C][C]113.626333333333[/C][C]3.57366666666667[/C][/ROW]
[ROW][C]28[/C][C]109.3[/C][C]104.406333333333[/C][C]4.89366666666667[/C][/ROW]
[ROW][C]29[/C][C]106.1[/C][C]104.966333333333[/C][C]1.13366666666666[/C][/ROW]
[ROW][C]30[/C][C]118.8[/C][C]111.146333333333[/C][C]7.65366666666666[/C][/ROW]
[ROW][C]31[/C][C]105.3[/C][C]103.112666666667[/C][C]2.18733333333334[/C][/ROW]
[ROW][C]32[/C][C]106[/C][C]101.792666666667[/C][C]4.20733333333334[/C][/ROW]
[ROW][C]33[/C][C]102[/C][C]101.572666666667[/C][C]0.427333333333337[/C][/ROW]
[ROW][C]34[/C][C]112.9[/C][C]109.192666666667[/C][C]3.70733333333334[/C][/ROW]
[ROW][C]35[/C][C]116.5[/C][C]115.692666666667[/C][C]0.807333333333338[/C][/ROW]
[ROW][C]36[/C][C]114.8[/C][C]115.812666666667[/C][C]-1.01266666666665[/C][/ROW]
[ROW][C]37[/C][C]100.5[/C][C]98.6263333333333[/C][C]1.87366666666674[/C][/ROW]
[ROW][C]38[/C][C]85.4[/C][C]88.2463333333333[/C][C]-2.84633333333332[/C][/ROW]
[ROW][C]39[/C][C]114.6[/C][C]113.626333333333[/C][C]0.973666666666658[/C][/ROW]
[ROW][C]40[/C][C]109.9[/C][C]104.406333333333[/C][C]5.49366666666668[/C][/ROW]
[ROW][C]41[/C][C]100.7[/C][C]104.966333333333[/C][C]-4.26633333333333[/C][/ROW]
[ROW][C]42[/C][C]115.5[/C][C]111.146333333333[/C][C]4.35366666666667[/C][/ROW]
[ROW][C]43[/C][C]100.7[/C][C]99.281[/C][C]1.41900000000000[/C][/ROW]
[ROW][C]44[/C][C]99[/C][C]97.961[/C][C]1.039[/C][/ROW]
[ROW][C]45[/C][C]102.3[/C][C]97.741[/C][C]4.55899999999999[/C][/ROW]
[ROW][C]46[/C][C]108.8[/C][C]105.361[/C][C]3.43899999999999[/C][/ROW]
[ROW][C]47[/C][C]105.9[/C][C]111.861[/C][C]-5.961[/C][/ROW]
[ROW][C]48[/C][C]113.2[/C][C]111.981[/C][C]1.21900000000001[/C][/ROW]
[ROW][C]49[/C][C]95.7[/C][C]94.7946666666666[/C][C]0.9053333333334[/C][/ROW]
[ROW][C]50[/C][C]80.9[/C][C]84.4146666666667[/C][C]-3.51466666666666[/C][/ROW]
[ROW][C]51[/C][C]113.9[/C][C]109.794666666667[/C][C]4.10533333333333[/C][/ROW]
[ROW][C]52[/C][C]98.1[/C][C]100.574666666667[/C][C]-2.47466666666668[/C][/ROW]
[ROW][C]53[/C][C]102.8[/C][C]101.134666666667[/C][C]1.66533333333333[/C][/ROW]
[ROW][C]54[/C][C]104.7[/C][C]107.314666666667[/C][C]-2.61466666666667[/C][/ROW]
[ROW][C]55[/C][C]95.9[/C][C]99.281[/C][C]-3.38100000000000[/C][/ROW]
[ROW][C]56[/C][C]94.6[/C][C]97.961[/C][C]-3.36100000000001[/C][/ROW]
[ROW][C]57[/C][C]101.6[/C][C]97.741[/C][C]3.85899999999999[/C][/ROW]
[ROW][C]58[/C][C]103.9[/C][C]105.361[/C][C]-1.46100000000000[/C][/ROW]
[ROW][C]59[/C][C]110.3[/C][C]111.861[/C][C]-1.56100000000001[/C][/ROW]
[ROW][C]60[/C][C]114.1[/C][C]111.981[/C][C]2.119[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58154&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58154&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
189.198.6263333333336-9.52633333333364
282.688.2463333333334-5.64633333333336
3102.7113.626333333333-10.9263333333333
491.8104.406333333333-12.6063333333333
594.1104.966333333333-10.8663333333333
6103.1111.146333333333-8.04633333333332
793.2103.112666666667-9.9126666666667
891101.792666666667-10.7926666666667
994.3101.572666666667-7.27266666666665
1099.4109.192666666667-9.79266666666665
11115.7115.6926666666670.00733333333333253
12116.8115.8126666666670.987333333333348
1399.898.62633333333331.17366666666674
149688.24633333333337.75366666666667
15115.9113.6263333333332.27366666666667
16109.1104.4063333333334.69366666666667
17117.3104.96633333333312.3336666666667
18109.8111.146333333333-1.34633333333333
19112.8103.1126666666679.68733333333334
20110.7101.7926666666678.90733333333335
21100101.572666666667-1.57266666666666
22113.3109.1926666666674.10733333333333
23122.4115.6926666666676.70733333333335
24112.5115.812666666667-3.31266666666665
25104.298.62633333333335.57366666666674
2692.588.24633333333334.25366666666667
27117.2113.6263333333333.57366666666667
28109.3104.4063333333334.89366666666667
29106.1104.9663333333331.13366666666666
30118.8111.1463333333337.65366666666666
31105.3103.1126666666672.18733333333334
32106101.7926666666674.20733333333334
33102101.5726666666670.427333333333337
34112.9109.1926666666673.70733333333334
35116.5115.6926666666670.807333333333338
36114.8115.812666666667-1.01266666666665
37100.598.62633333333331.87366666666674
3885.488.2463333333333-2.84633333333332
39114.6113.6263333333330.973666666666658
40109.9104.4063333333335.49366666666668
41100.7104.966333333333-4.26633333333333
42115.5111.1463333333334.35366666666667
43100.799.2811.41900000000000
449997.9611.039
45102.397.7414.55899999999999
46108.8105.3613.43899999999999
47105.9111.861-5.961
48113.2111.9811.21900000000001
4995.794.79466666666660.9053333333334
5080.984.4146666666667-3.51466666666666
51113.9109.7946666666674.10533333333333
5298.1100.574666666667-2.47466666666668
53102.8101.1346666666671.66533333333333
54104.7107.314666666667-2.61466666666667
5595.999.281-3.38100000000000
5694.697.961-3.36100000000001
57101.697.7413.85899999999999
58103.9105.361-1.46100000000000
59110.3111.861-1.56100000000001
60114.1111.9812.119







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.9993308904176450.001338219164710280.000669109582355139
170.9999911790606371.76418787261995e-058.82093936309973e-06
180.9999841738162343.16523675313990e-051.58261837656995e-05
190.9999979297705244.14045895124979e-062.07022947562489e-06
200.999999562135248.75729520232136e-074.37864760116068e-07
210.9999993805078441.23898431105226e-066.19492155526131e-07
220.9999989911956082.01760878505582e-061.00880439252791e-06
230.9999992613633031.47727339359401e-067.38636696797005e-07
240.9999989453487272.10930254524740e-061.05465127262370e-06
250.999998146512173.70697566005665e-061.85348783002833e-06
260.9999979819895654.03602086975625e-062.01801043487812e-06
270.9999947327188761.05345622479231e-055.26728112396157e-06
280.9999891895183152.16209633701641e-051.08104816850820e-05
290.999968205423796.35891524215774e-053.17945762107887e-05
300.9999767655235954.64689528108197e-052.32344764054098e-05
310.9999352168900540.0001295662198926156.47831099463074e-05
320.9998907877666420.0002184244667168670.000109212233358433
330.9998385028322840.0003229943354311810.000161497167715590
340.9995985911003630.0008028177992743990.000401408899637199
350.9992190986123740.001561802775251990.000780901387625996
360.9984468770279910.003106245944017180.00155312297200859
370.995982210415980.008035579168037960.00401778958401898
380.9905451207951460.01890975840970860.0094548792048543
390.9853829561227560.02923408775448800.0146170438772440
400.9815144078347710.03697118433045890.0184855921652294
410.9922628759272020.01547424814559590.00773712407279793
420.9771783553418850.04564328931622970.0228216446581149
430.9632199176484810.07356016470303770.0367800823515189
440.9348842459119710.1302315081760580.065115754088029

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.999330890417645 & 0.00133821916471028 & 0.000669109582355139 \tabularnewline
17 & 0.999991179060637 & 1.76418787261995e-05 & 8.82093936309973e-06 \tabularnewline
18 & 0.999984173816234 & 3.16523675313990e-05 & 1.58261837656995e-05 \tabularnewline
19 & 0.999997929770524 & 4.14045895124979e-06 & 2.07022947562489e-06 \tabularnewline
20 & 0.99999956213524 & 8.75729520232136e-07 & 4.37864760116068e-07 \tabularnewline
21 & 0.999999380507844 & 1.23898431105226e-06 & 6.19492155526131e-07 \tabularnewline
22 & 0.999998991195608 & 2.01760878505582e-06 & 1.00880439252791e-06 \tabularnewline
23 & 0.999999261363303 & 1.47727339359401e-06 & 7.38636696797005e-07 \tabularnewline
24 & 0.999998945348727 & 2.10930254524740e-06 & 1.05465127262370e-06 \tabularnewline
25 & 0.99999814651217 & 3.70697566005665e-06 & 1.85348783002833e-06 \tabularnewline
26 & 0.999997981989565 & 4.03602086975625e-06 & 2.01801043487812e-06 \tabularnewline
27 & 0.999994732718876 & 1.05345622479231e-05 & 5.26728112396157e-06 \tabularnewline
28 & 0.999989189518315 & 2.16209633701641e-05 & 1.08104816850820e-05 \tabularnewline
29 & 0.99996820542379 & 6.35891524215774e-05 & 3.17945762107887e-05 \tabularnewline
30 & 0.999976765523595 & 4.64689528108197e-05 & 2.32344764054098e-05 \tabularnewline
31 & 0.999935216890054 & 0.000129566219892615 & 6.47831099463074e-05 \tabularnewline
32 & 0.999890787766642 & 0.000218424466716867 & 0.000109212233358433 \tabularnewline
33 & 0.999838502832284 & 0.000322994335431181 & 0.000161497167715590 \tabularnewline
34 & 0.999598591100363 & 0.000802817799274399 & 0.000401408899637199 \tabularnewline
35 & 0.999219098612374 & 0.00156180277525199 & 0.000780901387625996 \tabularnewline
36 & 0.998446877027991 & 0.00310624594401718 & 0.00155312297200859 \tabularnewline
37 & 0.99598221041598 & 0.00803557916803796 & 0.00401778958401898 \tabularnewline
38 & 0.990545120795146 & 0.0189097584097086 & 0.0094548792048543 \tabularnewline
39 & 0.985382956122756 & 0.0292340877544880 & 0.0146170438772440 \tabularnewline
40 & 0.981514407834771 & 0.0369711843304589 & 0.0184855921652294 \tabularnewline
41 & 0.992262875927202 & 0.0154742481455959 & 0.00773712407279793 \tabularnewline
42 & 0.977178355341885 & 0.0456432893162297 & 0.0228216446581149 \tabularnewline
43 & 0.963219917648481 & 0.0735601647030377 & 0.0367800823515189 \tabularnewline
44 & 0.934884245911971 & 0.130231508176058 & 0.065115754088029 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58154&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.999330890417645[/C][C]0.00133821916471028[/C][C]0.000669109582355139[/C][/ROW]
[ROW][C]17[/C][C]0.999991179060637[/C][C]1.76418787261995e-05[/C][C]8.82093936309973e-06[/C][/ROW]
[ROW][C]18[/C][C]0.999984173816234[/C][C]3.16523675313990e-05[/C][C]1.58261837656995e-05[/C][/ROW]
[ROW][C]19[/C][C]0.999997929770524[/C][C]4.14045895124979e-06[/C][C]2.07022947562489e-06[/C][/ROW]
[ROW][C]20[/C][C]0.99999956213524[/C][C]8.75729520232136e-07[/C][C]4.37864760116068e-07[/C][/ROW]
[ROW][C]21[/C][C]0.999999380507844[/C][C]1.23898431105226e-06[/C][C]6.19492155526131e-07[/C][/ROW]
[ROW][C]22[/C][C]0.999998991195608[/C][C]2.01760878505582e-06[/C][C]1.00880439252791e-06[/C][/ROW]
[ROW][C]23[/C][C]0.999999261363303[/C][C]1.47727339359401e-06[/C][C]7.38636696797005e-07[/C][/ROW]
[ROW][C]24[/C][C]0.999998945348727[/C][C]2.10930254524740e-06[/C][C]1.05465127262370e-06[/C][/ROW]
[ROW][C]25[/C][C]0.99999814651217[/C][C]3.70697566005665e-06[/C][C]1.85348783002833e-06[/C][/ROW]
[ROW][C]26[/C][C]0.999997981989565[/C][C]4.03602086975625e-06[/C][C]2.01801043487812e-06[/C][/ROW]
[ROW][C]27[/C][C]0.999994732718876[/C][C]1.05345622479231e-05[/C][C]5.26728112396157e-06[/C][/ROW]
[ROW][C]28[/C][C]0.999989189518315[/C][C]2.16209633701641e-05[/C][C]1.08104816850820e-05[/C][/ROW]
[ROW][C]29[/C][C]0.99996820542379[/C][C]6.35891524215774e-05[/C][C]3.17945762107887e-05[/C][/ROW]
[ROW][C]30[/C][C]0.999976765523595[/C][C]4.64689528108197e-05[/C][C]2.32344764054098e-05[/C][/ROW]
[ROW][C]31[/C][C]0.999935216890054[/C][C]0.000129566219892615[/C][C]6.47831099463074e-05[/C][/ROW]
[ROW][C]32[/C][C]0.999890787766642[/C][C]0.000218424466716867[/C][C]0.000109212233358433[/C][/ROW]
[ROW][C]33[/C][C]0.999838502832284[/C][C]0.000322994335431181[/C][C]0.000161497167715590[/C][/ROW]
[ROW][C]34[/C][C]0.999598591100363[/C][C]0.000802817799274399[/C][C]0.000401408899637199[/C][/ROW]
[ROW][C]35[/C][C]0.999219098612374[/C][C]0.00156180277525199[/C][C]0.000780901387625996[/C][/ROW]
[ROW][C]36[/C][C]0.998446877027991[/C][C]0.00310624594401718[/C][C]0.00155312297200859[/C][/ROW]
[ROW][C]37[/C][C]0.99598221041598[/C][C]0.00803557916803796[/C][C]0.00401778958401898[/C][/ROW]
[ROW][C]38[/C][C]0.990545120795146[/C][C]0.0189097584097086[/C][C]0.0094548792048543[/C][/ROW]
[ROW][C]39[/C][C]0.985382956122756[/C][C]0.0292340877544880[/C][C]0.0146170438772440[/C][/ROW]
[ROW][C]40[/C][C]0.981514407834771[/C][C]0.0369711843304589[/C][C]0.0184855921652294[/C][/ROW]
[ROW][C]41[/C][C]0.992262875927202[/C][C]0.0154742481455959[/C][C]0.00773712407279793[/C][/ROW]
[ROW][C]42[/C][C]0.977178355341885[/C][C]0.0456432893162297[/C][C]0.0228216446581149[/C][/ROW]
[ROW][C]43[/C][C]0.963219917648481[/C][C]0.0735601647030377[/C][C]0.0367800823515189[/C][/ROW]
[ROW][C]44[/C][C]0.934884245911971[/C][C]0.130231508176058[/C][C]0.065115754088029[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58154&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58154&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.9993308904176450.001338219164710280.000669109582355139
170.9999911790606371.76418787261995e-058.82093936309973e-06
180.9999841738162343.16523675313990e-051.58261837656995e-05
190.9999979297705244.14045895124979e-062.07022947562489e-06
200.999999562135248.75729520232136e-074.37864760116068e-07
210.9999993805078441.23898431105226e-066.19492155526131e-07
220.9999989911956082.01760878505582e-061.00880439252791e-06
230.9999992613633031.47727339359401e-067.38636696797005e-07
240.9999989453487272.10930254524740e-061.05465127262370e-06
250.999998146512173.70697566005665e-061.85348783002833e-06
260.9999979819895654.03602086975625e-062.01801043487812e-06
270.9999947327188761.05345622479231e-055.26728112396157e-06
280.9999891895183152.16209633701641e-051.08104816850820e-05
290.999968205423796.35891524215774e-053.17945762107887e-05
300.9999767655235954.64689528108197e-052.32344764054098e-05
310.9999352168900540.0001295662198926156.47831099463074e-05
320.9998907877666420.0002184244667168670.000109212233358433
330.9998385028322840.0003229943354311810.000161497167715590
340.9995985911003630.0008028177992743990.000401408899637199
350.9992190986123740.001561802775251990.000780901387625996
360.9984468770279910.003106245944017180.00155312297200859
370.995982210415980.008035579168037960.00401778958401898
380.9905451207951460.01890975840970860.0094548792048543
390.9853829561227560.02923408775448800.0146170438772440
400.9815144078347710.03697118433045890.0184855921652294
410.9922628759272020.01547424814559590.00773712407279793
420.9771783553418850.04564328931622970.0228216446581149
430.9632199176484810.07356016470303770.0367800823515189
440.9348842459119710.1302315081760580.065115754088029







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level220.758620689655172NOK
5% type I error level270.93103448275862NOK
10% type I error level280.96551724137931NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58154&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 level220.758620689655172NOK
5% type I error level270.93103448275862NOK
10% type I error level280.96551724137931NOK



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