question about the posterior intervals of the local variable

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.

question about the posterior intervals of the local variable

Postby zhanshuo » Thu May 04, 2017 6:39 am

Hi, dear professor,I encounter a problem of calculating the posterior intervals of parameters, which denote as model-local variables by"#" in the model section.
So is there a easy way to work it out?
Thanks.
zhanshuo
 
Posts: 44
Joined: Fri Nov 25, 2016 7:59 am

Re: question about the posterior intervals of the local vari

Postby jpfeifer » Thu May 04, 2017 11:32 am

That does not work with model local variables. What you can do instead is to define the model local variable as a parameter and handle the parameter dependence via a steady_state_model-block.
------------
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: question about the posterior intervals of the local vari

Postby zhanshuo » Thu May 04, 2017 1:04 pm

Thanks for answering me!
But I still doubt since steady-state-model is a file that handles endogenous variables, but my model-local variable is a parameter, like
"# r_ss=1/beta", where beta is a estimated parameter and thus in this way r_ss is also estimated.
So can such a parameter be defined in the steady-state-model?
Thanks!
zhanshuo
 
Posts: 44
Joined: Fri Nov 25, 2016 7:59 am

Re: question about the posterior intervals of the local vari

Postby jpfeifer » Fri May 05, 2017 6:55 am

Yes. For every iteration, the steady_state_model-block will be evaluated. Any parameter you set within the steady_state_model-block or the steadystate.m-file will be passed back. That allows handling parameter dependence as well. An example of this is at https://github.com/JohannesPfeifer/DSGE_mod/blob/master/Gali_2015/Gali_2015_chapter_6_5.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 8 guests