Discrete and normal shock

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Discrete and normal shock

Postby omhr88 » Thu Nov 12, 2015 4:08 pm

I would like to simulate two kinds of shock in the same DSGE model. The first shock aims at generating uncertainty between four kind of policies (therefore a discrete random variable) and the second shock is simply from a normal distribution. I know how to simulate a single non-normal shock: viewtopic.php?f=1&t=1855

However, I am finding troubles understanding how to make these two kinds of shocks coexist into the dynare simult() function. Should I treat them separately until the random generating process and then stack them into the vector DynareResults.exo_simul?
omhr88
 
Posts: 1
Joined: Thu Nov 12, 2015 2:36 pm

Re: Discrete and normal shock

Postby jpfeifer » Sat Nov 21, 2015 3:10 pm

First of all, see the caveat that this approach is only valid at first order due to certainty equivalence in
http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=7257

Second, what you need to do is change those shocks that are discrete in DynareResults.exo_simul while leaving the other ones unaffected. This requires your covariance matrix to be diagonal as otherwise there would be interactions. If there are no interactions, you can just change them one by one.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 15 guests