A problem about Bayesian estimation, Thx for reading!

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.

A problem about Bayesian estimation, Thx for reading!

Postby lssp » Wed Jul 08, 2015 5:06 am

Hello Mr. Pfeifer!

Thank you so much for reading this post!

I've got a problem : After I finished my bayesian estimation in Dynare, how can I get the plot of some certain endogenous variable?

For example, the equilibrium real interest rate is one of the endogenous variables in my model, I use the data between 1962-2008 to do the bayesian estimation, then what can I do to
get the plot of this equilibrium real interest rate between 1962-2008 (just like the picture attached) ?


Would you please help me out ? Thanks again!
Attachments
picture.doc
(82.5 KiB) Downloaded 123 times
lssp
 
Posts: 15
Joined: Thu Apr 10, 2014 12:22 pm

Re: A problem about Bayesian estimation, Thx for reading!

Postby jpfeifer » Wed Jul 08, 2015 6:49 am

You need to specify the
Code: Select all
smoother

option.
------------
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: A problem about Bayesian estimation, Thx for reading!

Postby lssp » Wed Jul 08, 2015 4:24 pm

jpfeifer wrote:You need to specify the
Code: Select all
smoother

option.


Professor Pfeifer,

Thank you so much for your reply, that really helps me a lot ! And after I add " smoother " in the code, I've got some new questions, would you please help me out ?

(1) Affter I add the "smoother", I sucessfully get the plots of all the variables, what if I only want to get the plot of one certain variable (e.g. the interest rate) ? What should I suppose to do ?

(2) Then it's about the Y axis. The model is in linear form, so the value of the variable (e.g. the interest rate) displayed in Y axis is the value after log-linearized, how can I change it into the real value and make it displayed in the Y axis ?

(3) If I just want to get the mean estimate of the smoothed variables ( the black line ) in the plot and do not need the deciles of the smoother distribution (the green lines), what should I do to eliminate the green lines ?

Thank you again for reading this post and it's very kind of you for solving these problems !
lssp
 
Posts: 15
Joined: Thu Apr 10, 2014 12:22 pm

Re: A problem about Bayesian estimation, Thx for reading!

Postby jpfeifer » Wed Jul 08, 2015 5:12 pm

1) Only provide that variable after the estimation command
2) Define a new variable that takes the level. If your model is loglinearized, this might be complicated.
3) You need to generate this graph yourself using the results saved in oo_.SmoothedVariables
------------
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: Google [Bot] and 7 guests