Page 1 of 1

Simulation after estimation

PostPosted: Tue Nov 05, 2013 4:15 am
by yc1122
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

Re: Simulation after estimation

PostPosted: Tue Nov 05, 2013 9:42 am
by jpfeifer
In Bayesian estimation they are set to their mean. This might explain the difference.

Re: Simulation after estimation

PostPosted: Tue Nov 05, 2013 11:24 am
by yc1122
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.

Re: Simulation after estimation

PostPosted: Tue Nov 05, 2013 6:02 pm
by jpfeifer
Then please provide the mod-file

Re: Simulation after estimation

PostPosted: Wed Nov 06, 2013 3:43 pm
by yc1122
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.