I estimated the following model and found three cointegrating vectors. But I am confused about the use of level or first differenced data. Should use the following VAR model with ect instruction or estimate the same model with the first differenced endogenous variables in line with the specification of error correction model?
Regards
Code: Select all
open data 28_sept_level.xlsx
calendar(m) 1994
data(format=xlsx,org=columns) 1994:2 2015:6
table
compute p =2
compute k =5
compute nstep= 16
@johmle(lags=2,det=rc,vectors=cvectors)
# int lm2 ltl lcpi lip
equation(coeffs=%xcol(cvectors,1)) ect1 *
# int lm2 ltl lcpi lip constant
equation(coeffs=%xcol(cvectors,2)) ect2 *
# int lm2 ltl lcpi lip constant
equation(coeffs=%xcol(cvectors,3)) ect3 *
# int lm2 ltl lcpi lip constant
set dlip = lip - lip{1}
set dlcpi = lcpi - lcpi{1}
set dlm2 = lm2 - lm2{1}
set dltl = ltl - ltl{1}
set dint = int - int{1}
*
system(model=creditmodel)
variables int lm2 ltl lcpi lip
lags 1 to 2
det constant crisis
ect ect1 ect2 ect3
end(system, cv=cvlin)
estimate(resids=varresids, noprint, OUTSIGMA=vlin)
impulse(model=creditmodel,window="Impulse Responses", steps=nstep)
source mcvardodraws3.src
@MCVARDoDraws3(model=creditmodel, steps=16)
@MCProcessIRF(model=creditmodel,irf=irflin,center=mean, lower=lowerlin, upper = upperlin, STDDEV=.75)
@MCGraphIRF(model=creditmodel,center=mean, page= byshock,header='linear',STDDEV=1,INCLUDE=||3,4,5||)