Stored results policy and transition function

Hi all,

I have a Dynare mod file that does both simulation and bayesian estimation. Therefore, the reported policy and transition function in the command window does not match the workspace oo_.dr.ghx and oo_dr.ghu results. My question is, which solution do these two variables in the workspace represent? Is it just the solution of my last MCMC-drawn parameters or what? Is there a way to solve and store the policy transition matrix for each draw?

Thanks!
three_eq_nk3.mod (3.3 KB)

You mean at the end of estimation? It should be from the last draw. You could use a posterior_function to get the policy functions for posterior draws. But what exactly are you trying to do?

Thank you, prof Pfeifer! The reason I need all the policy function values is that my JMP is doing something that requires the solutions from each MCMC draw.

Then you should go for the posterior_function approach. An example is DSGE_mod/Jermann_Quadrini_2012/Jermann_Quadrini_2012_NK at master · JohannesPfeifer/DSGE_mod · GitHub