Page 1 of 1

how to calculate value and policy function in Dynare

PostPosted: Tue Jun 03, 2014 11:44 am
by suxijian
Hi, everyone, I'm a novice in Dynare, and have a problem about how to get the value function and policy function from Dynare. It seems that the user guide didn't discuss about the related contents.

Here is a sample code that I write to solve out a simple RBC model and do simulation. The code is brief and successful. However, I didn't know to get the value function and policy function from Dynare. Does someone can give me instructions and suggestions? Many thanks.

I upload my sample code and the original model and the value function I set here.

Re: how to calculate value and policy function in Dynare

PostPosted: Wed Jun 04, 2014 4:47 pm
by jpfeifer
For the value function, see http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=5370. For the policy function, see the output of the decision rules Dynare provides after running stoch_simul. On my homepage you can find a Matlab function to plot the policy functions.

Re: how to calculate value and policy function in Dynare

PostPosted: Thu Jun 05, 2014 9:05 am
by suxijian
Many thanks for your instructions, Jpfeifer. I will read the contents and try to do it.