Calculating parameter values in Bayesian 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.

Calculating parameter values in Bayesian estimation

Postby icarius » Wed Jan 28, 2015 9:25 pm

Hi, I am a new user to dynare and really appreciate your help with my problem.

There are several parameters, say A which I would like to estimate using Bayesian method in Dynare. I also have some other parameters in the model, say B which are some complicated function of A. Given values of A, I can only calculate B in Matlab (since Matlab has a function for this calculation). B doesn't influence the steady state of the model but only the dynamics of the model. I guess I can make an external Matlab file to calculate B and then use set_param_value in Dynare to call B when I do the Bayesian estimation? If so where should I put set_param_value? Under the parameters block? Or under the estimated_params block?

Thanks in advance for your help!
icarius
 
Posts: 1
Joined: Wed Jan 28, 2015 8:52 pm

Re: Calculating parameter values in Bayesian estimation

Postby jpfeifer » Thu Jan 29, 2015 6:49 pm

You cannot use the set_param_value command within the model. What you must do is either use model-local variables, which is hard in your case or use a steady state file. Within the steady state file, you can alter any parameter. An example is in the NK_baseline.mod.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests