Page 1 of 2

VECM with mixed stationary and non-stationary series

Posted: Mon Apr 15, 2019 5:02 pm
by ateeb
@MCVARDODRAWS is a procedure for doing the draws (only) in a Monte Carlo analysis of a VAR. This leaves the graphing and other analysis to other procedures (particularly @MCGraphIRF). By default, @MCVARDODRAWS does a Cholesky factorization, though it can easily be adapted to other situations by using the FFUNCTION option to provide a function to compute an alternative factorization. A specific alternative for the Blanchard-Quah model is @BQDODRAWS.

How does this procedure handles the error correction term? or does it consider it to be one of the determinstic terms in the model when you place it in the set of deterministic variables?

Regards,

VECM with mixed stationary and non-stationary series

Posted: Mon Apr 15, 2019 5:22 pm
by TomDoan
See MONTEVECM.RPF. As long as you let RATS handle the accounting for the error correction terms, the stock @MCVARDODRAWS works.

VECM with mixed stationary and non-stationary series

Posted: Tue Apr 16, 2019 10:40 am
by ateeb
I read that and understand that when we use ect term, the estimate instruction does the differencing itself but i have a question:

in my VECM model:

SYSTEM(MODEL=PK1MODEL)
VARIABLES Diffdebt DiffM1 DiffCPI logLSM r
LAGS 1
DET Constant lagresid du
END(SYSTEM)
ESTIMATE 2003:07 2018:09

there are 3 variables that are cointegrated i.e. logdebt, logM1 and logCPI however LogLSM and r are not cointegrated. Also LogLSM and r are stationary. LogLsm (industrial production) in logs and r (interest rates) in levels.

So the ECT.rpf which is an example of montevecm - states that

"
@johmle(lags=6,det=rc,cv=cvector)
# ftbs3 ftb12 fcm7
equation(coeffs=cvector) ecteq *
# ftbs3 ftb12 fcm7 constant



This sets up the VECM based upon that:

system(model=ectmodel)
variables ftbs3 ftb12 fcm7
lags 1 to 6
ect ecteq
end(system)

and this estimates it:

estimate

The number of estimated coefficients per equation is 16: 5 each on the lagged differences for each of the three variables, plus the one coefficient on the lagged error correction term. You don't have to create a separate series for the error correction, nor do you have to difference the data yourself⎯that's all done internally by the ESTIMATE instruction."

so this means if i write my model like:

equation(coeffs=cvector) lagresid *
# logdebt logM1 logCPI constant

SYSTEM(MODEL=PK1MODEL)
VARIABLES logdebt logM1 logCPI logLSM r
LAGS 1
DET Constant lagresid du
END(SYSTEM)
ESTIMATE 2003:07 2018:09

then it will be correct to use error instruction and the model will treat logdebt, logM1 and logCPI as I(1) and difference them but not LogLSM and r?

VECM with mixed stationary and non-stationary series

Posted: Tue Apr 16, 2019 12:16 pm
by TomDoan
Are you saying the log of industrial production is stationary? (r is also usually treated as I(1)).

However, assuming that those are indeed stationary, the usual way to include those in a VECM is to add an error correction term for each which is the lagged level of the stationary variable. As you have that written, you'll have to do a lot of extra work since IMPULSE and ERRORS have no idea what the relationship is between the "diff" variables and their levels and between the levels and the "lagresid"---setting up a system using ECT gives you both.

VECM with mixed stationary and non-stationary series

Posted: Tue Apr 16, 2019 12:45 pm
by ateeb
Let me explain may be you can guide me better than.

The original variables are
Log of debt (NS)
Log of M1(NS)
Log of CPI (NS)
Log of IP (S)
Interest rate, r (S)

Specifying VAR in 1st difference will be miss specification error as Log of debt, log of M1 and log of CPI can have cointegration! Right?

Then if i use engle-granger procedure on pages 218-222 on programming manual that does not have stationary variables so they do not face this problem in the example.

So how would i setup my model VECM with logdebt logcpi and logm1 as non stationary and logLSM (log of IP) and r as stationary?

I ask this because @mcvardodraws would be inappropriaye for getting the standard errors? So can u help me how to setup this?

VECM with mixed stationary and non-stationary series

Posted: Tue Apr 16, 2019 1:09 pm
by TomDoan
In what country is log IP stationary? A series can be non-stationary but not part of a cointegrating relationship with other variables in the system.

VECM with mixed stationary and non-stationary series

Posted: Tue Apr 16, 2019 3:01 pm
by ateeb
If i write the country it will like revealing my question of interest, therefore that i can share in an email. Furthermore, my sample and variables are already visible. I did not understand a series can be non stationary and still part of a cointegrating relationship, I know it is a LR relationship among non stationary variables already. I am more stuck with how to specify the system with both stationary variables and cointegrating vector in there. Also how to get standard errors for such a system so that i can plot IRFs and get VDCs.

VECM with mixed stationary and non-stationary series

Posted: Tue Apr 16, 2019 3:12 pm
by TomDoan
There's no reason that you can't have a set of non-stationary series, some of which are cointegrated, some of which aren't---that's the same thing as the cointegrating vector having a zero coefficient on the series not involved.

VECM with mixed stationary and non-stationary series

Posted: Tue Apr 16, 2019 3:31 pm
by ateeb
The logLSM ( log of Industrial Production) is stationary and interest rate (r) also. So when i setup my System, should i use diff of Debt, M1 and CPI which are non stationary and levels of LSM and r or there will be another way of handling these together in a VECM model specification ... thats my question.

VECM with mixed stationary and non-stationary series

Posted: Tue Apr 16, 2019 3:46 pm
by TomDoan
No. You let the program take care of everything. You put the five variables in as themselves (no differences), you do three error correction terms; one of which is your cointegrating relation, the other two are just

equation lsmect lsm
#
equation rect r
#

VECM with mixed stationary and non-stationary series

Posted: Tue Apr 16, 2019 6:28 pm
by ateeb
There is only 1 cointegrating vector among the non stationary variables i.e. logdebt, logM1 and logCPI ... so should i put in all variables in logs and then put the error correction equation in the deterministic part as the example specifies?

Also once i do that the @McVARdodraws will be able to correctly give me the standard errors and the errors commands would be giving me the correctly calculated standard errors?

This is what my advisor is concerned about and i also am, right now i am trying to learn more of how to code in RATs, following manuals.

Thanks for your reply. Waiting for your reply on the question above.

Regards,

VECM with mixed stationary and non-stationary series

Posted: Tue Apr 16, 2019 9:32 pm
by TomDoan
If you want to include the two stationary variables as endogenous variables, you have to set it up as I indicated. A stationary variable is (in effect) "cointegrated" with itself. Read the User's Guide more carefully. Note that (30) can always be written in the form (31) regardless of whether the series are I(1), I(0), or any combination.

The model as you've written it is fine for estimation, but it doesn't have the proper dynamic links that are required for forecasting/impulse response analysis. That's what the Error correction form for the system provides.

VECM with mixed stationary and non-stationary series

Posted: Wed Apr 17, 2019 1:55 pm
by ateeb
TomDoan wrote:No. You let the program take care of everything. You put the five variables in as themselves (no differences), you do three error correction terms; one of which is your cointegrating relation, the other two are just

equation lsmect lsm
#
equation rect r
#

In the reply above, the equations u mentioned have no supplementary info, so this would keep the coeff zero as u explained?

VECM with mixed stationary and non-stationary series

Posted: Wed Apr 17, 2019 2:00 pm
by TomDoan
They both have dependent variables, so it's 1.0xLSM for the first and 1.0xR for the second, with no other variables involved in either.

VECM with mixed stationary and non-stationary series

Posted: Wed Apr 17, 2019 5:57 pm
by ateeb
got it so after running it with 3 equations I can use @McVARdodraws and errors instruction for generating standard errors and they will be correct?

Right?

Regards,