sebelum
melakukan
estimasi
times
2,
49) =
.8027005
. bgodfrey
Breusch-Godfrey LM test for autocorrelation
--------------------------------------------------------------------------lags(p) |
chi2
df
Prob > chi2
-------------+------------------------------------------------------------1
|
18.472
1
0.0000
--------------------------------------------------------------------------H0: no serial correlation
. predict u1, resid
. reg u1 L.u1
Source |
SS
df
MS
-------------+-----------------------------Model |
150.91704
1
150.91704
Residual | 285.198412
46 6.19996547
-------------+-----------------------------Total | 436.115452
47 9.27905217
Number of obs
F( 1,
46)
Prob > F
R-squared
Adj R-squared
Root MSE
=
=
=
=
=
=
48
24.34
0.0000
0.3460
0.3318
2.49
-----------------------------------------------------------------------------u1 |
Coef.
Std. Err.
t
P>|t|
[95% Conf. Interval]
-------------+---------------------------------------------------------------u1 |
akbarsuwardi@gmail.com || http://www.scribd.com/akbar_suwardi ||
L1. |
.5729695
.1161334
4.93
0.000
.3392052
.8067338
|
_cons | -.1133967
.359404
-0.32
0.754
-.8368393
.610046
------------------------------------------------------------------------------
(ii)
2,
48) =
1.769648
Number of obs
F( 1,
45)
Prob > F
R-squared
Adj R-squared
Root MSE
=
47
=
0.08
= 0.7752
= 0.0018
= -0.0204
= 2.0593
-----------------------------------------------------------------------------u2 |
Coef.
Std. Err.
t
P>|t|
[95% Conf. Interval]
-------------+---------------------------------------------------------------u2 |
L1. | -.0355928
.1238908
-0.29
0.775
-.2851216
.213936
|
_cons |
.1941655
.3003839
0.65
0.521
-.4108387
.7991698
------------------------------------------------------------------------------
2,
48) =
1.849401
. bgodfrey
akbarsuwardi@gmail.com || http://www.scribd.com/akbar_suwardi ||
Number of obs
F( 1,
45)
Prob > F
R-squared
Adj R-squared
Root MSE
=
47
=
0.05
= 0.8313
= 0.0010
= -0.0212
=
2.165
-----------------------------------------------------------------------------u3 |
Coef.
Std. Err.
t
P>|t|
[95% Conf. Interval]
-------------+---------------------------------------------------------------u3 |
L1. | -.0283512
.1322822
-0.21
0.831
-.2947812
.2380788
|
_cons |
.1585139
.3157922
0.50
0.618
-.4775242
.794552
------------------------------------------------------------------------------
Bandingkan hasil pengujian dari ketiga model di atas, dan beri analisis
anda tentang persamaan dan/atau perbedaan hasil pengujian di atas.
. quietly reg inf unem
. estimates store inf
. quietly reg cinf unem
. estimates store cinf
. quietly reg cinf cunem
. estimates store cinf2
. estimates table inf cinf cinf2 , stat(N r2 r2_a aic bic)
stfmt(%7.4g) star(0.1 0.05 0.01)
b(%7.4f)
----------------------------------------------------Variable |
inf
cinf
cinf2
-------------+--------------------------------------unem | 0.4676
-0.5426**
cunem |
-0.8422**
_cons | 1.4236
3.0306**
-0.0782
-------------+--------------------------------------N |
49
48
48
r2 | .05272
.1078
.135
r2_a | .03257
.0884
.1162
aic |
252.9
224.2
222.7
bic |
256.6
228
226.5
----------------------------------------------------legend: * p<.1; ** p<.05; *** p<.01
Number of obs
48
Number of obs
48
Number of obs
48
akbarsuwardi@gmail.com || http://www.scribd.com/akbar_suwardi ||
Statistic
Value
Value
Value
-----------------------------------------------------------------------------Z(t)
-3.846
-4.168
-3.508
-3.185
-----------------------------------------------------------------------------MacKinnon approximate p-value for Z(t) = 0.0144
-----------------------------------------------------------------------------D.error
|
Coef.
Std. Err.
t
P>|t|
[95% Conf. Interval]
-------------+---------------------------------------------------------------error |
L1. | -.4539094
.1180233
-3.85
0.000
-.6916206
-.2161982
_trend |
.0304812
.026365
1.16
0.254
-.0226207
.0835831
_cons | -.8596548
.7381616
-1.16
0.250
-2.346388
.627079
-----------------------------------------------------------------------------. * kesimpulannya: tidak spurious regression atau nenilkik kointergarsi karen
nilai error stasioner
SOAL B
Gunakan data Okun.dta
. use http://fmwww.bc.edu/ec-p/data/wooldridge/okun.dta
. *Lakukan set time data terlebih dahulu sebelum melakukan estimasi times
series
. tsset year
time variable: year, 1959 to 2005
delta: 1 unit
(4)
pcrgdp cunem
Source |
SS
df
MS
-------------+-----------------------------Model | 131.353664
1 131.353664
Residual | 53.5559029
44 1.21717961
-------------+-----------------------------Total | 184.909567
45 4.10910148
Number of obs
F( 1,
44)
Prob > F
R-squared
Adj R-squared
Root MSE
=
=
=
=
=
=
46
107.92
0.0000
0.7104
0.7038
1.1033
-----------------------------------------------------------------------------pcrgdp |
Coef.
Std. Err.
t
P>|t|
[95% Conf. Interval]
-------------+---------------------------------------------------------------cunem | -1.890915
.1820239
-10.39
0.000
-2.25776
-1.52407
_cons |
3.344427
.1626743
20.56
0.000
3.016578
3.672275
------------------------------------------------------------------------------
pcrgdp cunem
akbarsuwardi@gmail.com || http://www.scribd.com/akbar_suwardi ||
. dwstat
Durbin-Watson d-statistic(
2,
46) =
1.856618
. bgodfrey
Breusch-Godfrey LM test for autocorrelation
--------------------------------------------------------------------------lags(p) |
chi2
df
Prob > chi2
-------------+------------------------------------------------------------1
|
0.193
1
0.6601
--------------------------------------------------------------------------H0: no serial correlation
. predict error, resid
(1 missing value generated)
. reg error L.error
Source |
SS
df
MS
-------------+-----------------------------Model | .177626827
1 .177626827
Residual | 52.6493732
43 1.22440403
-------------+-----------------------------Total |
52.827
44 1.20061364
Number of obs
F( 1,
43)
Prob > F
R-squared
Adj R-squared
Root MSE
=
45
=
0.15
= 0.7052
= 0.0034
= -0.0198
= 1.1065
-----------------------------------------------------------------------------error |
Coef.
Std. Err.
t
P>|t|
[95% Conf. Interval]
-------------+---------------------------------------------------------------error |
L1. |
.0580417
.1523871
0.38
0.705
-.2492761
.3653595
|
_cons |
.0176032
.1649796
0.11
0.916
-.31511
.3503163
------------------------------------------------------------------------------
Number of obs
F( 1,
44)
Prob > F
R-squared
Adj R-squared
Root MSE
=
=
=
=
=
=
46
4.27
0.0447
0.0885
0.0678
1.326
-----------------------------------------------------------------------------error2 |
Coef.
Std. Err.
t
P>|t|
[95% Conf. Interval]
-------------+---------------------------------------------------------------cunem |
.4521206
.2187773
2.07
0.045
.0112039
.8930373
_cons |
1.16819
.1955208
5.97
0.000
.774144
1.562237
-----------------------------------------------------------------------------. quietly reg pcrgdp cunem
akbarsuwardi@gmail.com || http://www.scribd.com/akbar_suwardi ||
. hettest
Breusch-Pagan / Cook-Weisberg test for heteroskedasticity
Ho: Constant variance
Variables: fitted values of pcrgdp
chi2(1)
Prob > chi2
=
=
2.77
0.0960
Number of obs
F( 1,
44)
Prob > F
R-squared
Adj R-squared
Root MSE
=
=
=
=
=
=
46
53.77
0.0000
0.5500
0.5398
1.6872
-----------------------------------------------------------------------------pcrgdp |
Coef.
Std. Err.
t
P>|t|
[95% Conf. Interval]
-------------+---------------------------------------------------------------cunem | -1.740022
.2372842
-7.33
0.000
-2.218237
-1.261807
_cons |
3.334796
.2588378
12.88
0.000
2.813143
3.856449
-----------------------------------------------------------------------------. hettest
Breusch-Pagan / Cook-Weisberg test for heteroskedasticity
Ho: Constant variance
Variables: fitted values of pcrgdp
chi2(1)
Prob > chi2
=
=
0.08
0.7808
akbarsuwardi@gmail.com || http://www.scribd.com/akbar_suwardi ||