Page 1 of 1

can I specify stochastic shocks in forecast

PostPosted: Mon Oct 14, 2013 3:54 pm
by anitazhang
Dear all,

I'd like to simulate a transition path with mixing deterministic and stochastic shocks. And according to the Userguide, I complete it using stoch_simul and forecast. Now I want to feed in the stochastic shocks and examine how different realizations of stochastic shocks can cause a different transition path.

How can I do with Dynare?

What I thought might be related is 1) the approach specified by adamshap - Aug 1, 2006, using simult_ function. but it is used for models with just stochastic shocks. is there any way to extend it to models with mixed shocks?

2) use the conditional_forecast command. specifically, I add a trick variable which is set to equal the stochastic policy shock and specify the path of this trick avriable under the conditional_forecast command. however, the problem is that the transition path produced by Dynare is as if there is no detereministic shock. specifically, when I set the trick variable to be zero for all periods, all endogenous variables become constant at the initial value, despite that I have specified variation in determined shocks in the "shocks" block.

I attached the codes. can any one please take a look and let me know if anything goes wrong. Or it there any other ideas?

Thank you for your time in advance.

Sincerely,
Anita

Re: can I specify stochastic shocks in forecast

PostPosted: Mon Oct 21, 2013 3:03 am
by anitazhang
any thoughts?

Re: can I specify stochastic shocks in forecast

PostPosted: Sat Jun 06, 2015 2:02 pm
by fp3690
I am bumping this because it is an issue I am having (two years later) and I can't find any good resources other than this post by iacoviel, but as it is dated I am looking for an updated answer.

Thanks!


viewtopic.php?f=1&t=798&hilit=Contributions+of+shocks+to+endogenous+variables

Re: can I specify stochastic shocks in forecast

PostPosted: Wed Jun 10, 2015 8:33 am
by jpfeifer
I don't understand the actual setup/question. What does a stochastic shock in a forecast mean? Do you want to simulate the uncertainty related to a forecast?

The forecast command allows for combinations of deterministic and stochastic shocks, but it does not allow to set a particular realization of a stochastic shock (which would rather make it deterministic).

If you are dealing with a first-order approximation, you can in principle achieve any combination of deterministic and stochastic shocks by defining the deterministic shocks as perfectly anticipated news shocks and the stochastic shocks as regular shocks and then using the simult_ function.