Hi everyone,
I'm currently doing a cointegration analysis using the engle-granger 2-step approach. My procedure is the following:
1. I check the data and their first differences for unit roots by computing an ADF-test
2. I run a regression to investigate the long run relationship
3. I check the residuals of the regression for unit roots
All data are in logs. rear_24 stands for the real exchange rate, bip_oecd1985 is a proxy for foreign income and total_x_waren denotes goods exports.
1. All time series are I(1), because the first differences are stationary.
2. reg log_x_waren log_reer_24 log_bip_oecd1985 trend
Source | SS df MS Number of obs = 104
-------------+------------------------------ F( 3, 100) = 2233.95
Model | 12.0035111 3 4.00117037 Prob > F = 0.0000
Residual | .17910708 100 .001791071 R-squared = 0.9853
-------------+------------------------------ Adj R-squared = 0.9849
Total | 12.1826182 103 .118277846 Root MSE = .04232
----------------------------------------------------------------------------------
log_x_waren | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-----------------+----------------------------------------------------------------
log_reer_24 | -.8411077 .0984973 -8.54 0.000 -1.036523 -.6456919
log_bip_oecd1985 | .4311957 .1929797 2.23 0.028 .0483294 .814062
trend | .0089758 .0012597 7.13 0.000 .0064765 .011475
_cons | 11.47612 1.13355 10.12 0.000 9.227189 13.72505
3. dfuller ehat
Dickey-Fuller test for unit root Number of obs = 103
---------- Interpolated Dickey-Fuller ---------
Test 1% Critical 5% Critical 10% Critical
Statistic Value Value Value
------------------------------------------------------------------------------
Z(t) -2.983 -3.509 -2.890 -2.580
------------------------------------------------------------------------------
MacKinnon approximate p-value for Z(t) = 0.0365
Based on this output, I assume that my time series are cointegrated.
The problem is now, that if I use the egranger command instead of doing it manually, I get quite different results as you can see below.
egranger log_x_waren log_reer_40 log_bip_oecd1985, reg
Engle-Granger test for cointegration N (1st step) = 104
N (test) = 103
------------------------------------------------------------------------------
Test 1% Critical 5% Critical 10% Critical
Statistic Value Value Value
------------------------------------------------------------------------------
Z(t) -1.701 -4.437 -3.825 -3.513
Critical values from MacKinnon (1990, 2010)
------------------------------------------------------------------------------
Engle-Granger 1st-step regression
----------------------------------------------------------------------------------
log_x_waren | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-----------------+----------------------------------------------------------------
log_reer_40 | -.6329995 .1056635 -5.99 0.000 -.8426075 -.4233915
log_bip_oecd1985 | 1.788129 .026119 68.46 0.000 1.736316 1.839942
_cons | 4.249327 .4709358 9.02 0.000 3.315117 5.183537
----------------------------------------------------------------------------------
Engle-Granger test regression
------------------------------------------------------------------------------
D._egresid | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
_egresid |
L1. | -.0733352 .0431151 -1.70 0.092 -.1588538 .0121834
------------------------------------------------------------------------------
Could anyone explain how this can happen? Did I do something wrong in the procedure or is one of the stata commands not correct?
If more information is needed just let me know.
Any help would be highly appreciated.
Kind regards
Dona
I'm currently doing a cointegration analysis using the engle-granger 2-step approach. My procedure is the following:
1. I check the data and their first differences for unit roots by computing an ADF-test
2. I run a regression to investigate the long run relationship
3. I check the residuals of the regression for unit roots
All data are in logs. rear_24 stands for the real exchange rate, bip_oecd1985 is a proxy for foreign income and total_x_waren denotes goods exports.
1. All time series are I(1), because the first differences are stationary.
2. reg log_x_waren log_reer_24 log_bip_oecd1985 trend
Source | SS df MS Number of obs = 104
-------------+------------------------------ F( 3, 100) = 2233.95
Model | 12.0035111 3 4.00117037 Prob > F = 0.0000
Residual | .17910708 100 .001791071 R-squared = 0.9853
-------------+------------------------------ Adj R-squared = 0.9849
Total | 12.1826182 103 .118277846 Root MSE = .04232
----------------------------------------------------------------------------------
log_x_waren | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-----------------+----------------------------------------------------------------
log_reer_24 | -.8411077 .0984973 -8.54 0.000 -1.036523 -.6456919
log_bip_oecd1985 | .4311957 .1929797 2.23 0.028 .0483294 .814062
trend | .0089758 .0012597 7.13 0.000 .0064765 .011475
_cons | 11.47612 1.13355 10.12 0.000 9.227189 13.72505
3. dfuller ehat
Dickey-Fuller test for unit root Number of obs = 103
---------- Interpolated Dickey-Fuller ---------
Test 1% Critical 5% Critical 10% Critical
Statistic Value Value Value
------------------------------------------------------------------------------
Z(t) -2.983 -3.509 -2.890 -2.580
------------------------------------------------------------------------------
MacKinnon approximate p-value for Z(t) = 0.0365
Based on this output, I assume that my time series are cointegrated.
The problem is now, that if I use the egranger command instead of doing it manually, I get quite different results as you can see below.
egranger log_x_waren log_reer_40 log_bip_oecd1985, reg
Engle-Granger test for cointegration N (1st step) = 104
N (test) = 103
------------------------------------------------------------------------------
Test 1% Critical 5% Critical 10% Critical
Statistic Value Value Value
------------------------------------------------------------------------------
Z(t) -1.701 -4.437 -3.825 -3.513
Critical values from MacKinnon (1990, 2010)
------------------------------------------------------------------------------
Engle-Granger 1st-step regression
----------------------------------------------------------------------------------
log_x_waren | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-----------------+----------------------------------------------------------------
log_reer_40 | -.6329995 .1056635 -5.99 0.000 -.8426075 -.4233915
log_bip_oecd1985 | 1.788129 .026119 68.46 0.000 1.736316 1.839942
_cons | 4.249327 .4709358 9.02 0.000 3.315117 5.183537
----------------------------------------------------------------------------------
Engle-Granger test regression
------------------------------------------------------------------------------
D._egresid | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
_egresid |
L1. | -.0733352 .0431151 -1.70 0.092 -.1588538 .0121834
------------------------------------------------------------------------------
Could anyone explain how this can happen? Did I do something wrong in the procedure or is one of the stata commands not correct?
If more information is needed just let me know.
Any help would be highly appreciated.
Kind regards
Dona
Comment