Simulation after estimation

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.

Simulation after estimation

Postby yc1122 » Tue Nov 05, 2013 4:15 am

Hi all,

I have a problem about the following codes
estimation(datafile=xyz, mode_compute=5, mode_check, mh_nblocks=2, mh_replic=0, mh_drop=0.5, mh_jscale=0.015);

stoch_simul(order=1, periods=0,irf=20,conditional_variance_decomposition = [2, 10]) x y z;


Since the signs of some cross correlations between the variables are wrong after estimation, I want to do counterfactuals to figure out the source of the problem by looking at posterior modes.

In the first step, I use the above two lines to try to find the posterior modes and see cross correlations from the command "stoch_simul".

In the second step, I comment out the command "estimation" and set the parameters to be estimated to their posterior modes (including variances of the exogenous shocks) derived from the 1st step.

However, the 2nd step only results in failing BK conditions, though I can see various results generated by "estimation" and "stoch_simul" in the 1st step. According to the mannual, the above two lines of codes should set the parameters to the posterior modes which is exactly what I did in the 2nd step. I can't see the reason why the simulation results will differ.

Thanks heaps for any ideas.

cheers,
yc
yc1122
 
Posts: 28
Joined: Mon Jul 15, 2013 6:41 pm

Re: Simulation after estimation

Postby jpfeifer » Tue Nov 05, 2013 9:42 am

In Bayesian estimation they are set to their mean. This might explain the difference.
------------
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

Re: Simulation after estimation

Postby yc1122 » Tue Nov 05, 2013 11:24 am

But I didn't run Markov chains... just searching for the posterior mode. So right after the command "estimation", "stoch_simul" should set the parameters at their modes.
yc1122
 
Posts: 28
Joined: Mon Jul 15, 2013 6:41 pm

Re: Simulation after estimation

Postby jpfeifer » Tue Nov 05, 2013 6:02 pm

Then please provide the mod-file
------------
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

Re: Simulation after estimation

Postby yc1122 » Wed Nov 06, 2013 3:43 pm

Sorry, I've replaced the previous mode file. But now trials are good. Not sure if I made a typo, though I think not very likely. I'll save the mode file if I am trapped in the same problem again. Thank you.
yc1122
 
Posts: 28
Joined: Mon Jul 15, 2013 6:41 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests