simul v.s. stoch_simul

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.

simul v.s. stoch_simul

Postby bigbigben » Sun Mar 25, 2007 9:01 pm

If I can plot some irfs from stoch_simul but all the output from simul is NaN, it means my model is not right, is it?

I am so frustrated.
bigbigben
 
Posts: 171
Joined: Sun May 28, 2006 1:19 am

Postby MichelJuillard » Mon Mar 26, 2007 8:37 am

Not necessarily. Maybe you don't have enough periods in simul. Remember that you must do the simulation until the variables go back very near steady state.

What are you trying to get from comparing stoch_simul with simul?

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby bigbigben » Mon Mar 26, 2007 11:54 am

Thanks for your reply, Michel. I just want to set a loop outside dynare code to do some searching to match the theoretical IRFs and Empirical IRFs. Simul is better for this purpose but I am really struck with NaNs . Thus I switch to stoch_simul and it can give out some plot, which looks look.


Further, If simul needs extra periods to go back to steady state, how many periods does it need? Say, if I just want IRF for periods and simul gives out 24 numbers, How can I decide which part can be used?
bigbigben
 
Posts: 171
Joined: Sun May 28, 2006 1:19 am

Postby MichelJuillard » Mon Mar 26, 2007 12:17 pm

I guess that by empirical IRFs, you mean IRFs obtained from VAR analysis, right?

simul is no better than stoch_simul for that purpose.... and simul assumes deterministic perfect foresight.

For simul, you should start with 100 or 200 periods and check whether convergence back to stready state happens any earlier. If that is the case, you can use less periods.

With simul and rplot, if you don't want to plot all the periods, you can use
DSAMPLE int;
will plot 'int' periods

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

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