Page 1 of 1

correlation between shocks

PostPosted: Thu Apr 26, 2007 5:34 pm
by pun_star
hi
how does one let shocks be correlated with each other in dynare?i would like to estimate the correlation between 2 shocks?

regards
estefan

Re: correlation between shocks

PostPosted: Mon Apr 30, 2007 11:43 am
by StephaneAdjemian
Hi,

You have two possibilities :

(i) By declaring that you want two estimate a correlation in the estimated_params block (see the documentation at: http://www.dynare.org/manual/re29.html *).

or

(ii) By imposing a common factor representation of the shocks in the model block. For instance if you want to correlate e1 and e2, you have to declare these variables as endogenous variables and declare u1, u2 and u as exogenous variables. Then you just have two write (in the model block) :

e1 = u + u1 ;

e2 = gam*u + u2 ;

where gam is a parameter. The covariance between e1 and e2 is defined by the variance of the common factor (u) and parameter gam.


Best,
Stéphane.

NB: * new url

pun_star wrote:hi
how does one let shocks be correlated with each other in dynare?i would like to estimate the correlation between 2 shocks?

regards
estefan
[/url]