Smet and Wolter DSGE for EU

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.

Smet and Wolter DSGE for EU

Postby phuong.macro » Mon Jun 27, 2016 7:46 pm

Hallo Leute

I am now replicating the Smet and Wolter's paper (2003) (DSGE of Euro area). Then I would like to ask you some questions about dynare code

1. According to Bayesian method, when I want to estimate a parameter, I have to declare prior mean, prior standard error, and prior shape as well. These prior values are reported by Smet and Wolter (2003). However, in Dynare, it is necessary to declare a starting value. So in this case, how we can give a starting value. It is fine if I can assign any value as a starting point? In particular, the persistent parameter for productiviy shock is declared by Smets and Wolter as 0.85 for prior mean, 0.1 for prior S.E, and Beta distribution as prior shape. Then I follow the dynare syntax

// PARAM NAME, INITVAL, LB, UB, PRIOR_SHAPE, PRIOR_P1, PRIOR_P2, PRIOR_P3, PRIOR_P4, JSCALE

Accordingly, how can I assign the initial value. It is fine if I can assign any value for the initial point. If I am not sure about the intial value that I assign, then I will increase number of draws.

2. For Bayesian econometrics, how we assign number of draws (mh_replic) to make sure that the estimated mean and variance will be very close to true values?
phuong.macro
 
Posts: 28
Joined: Mon Jun 27, 2016 7:35 pm

Re: Smet and Wolter DSGE for EU

Postby jpfeifer » Tue Jun 28, 2016 6:44 am

1. In case of replications, it is often best to initially start at the reported posterior mode, e.g. using the
Code: Select all
estimated_params_init(use_calibration);
block. You can also leave the inital value empty so that Dynare will start at the prior mean, i.e. having something like
Code: Select all
betta, beta_pdf, 0.993, 0.002;

2. You need to check convergence. If that is not the case, use more draws. A good starting point is the number of draws in the original paper. But given recent computer power, I would go for more draws than in the original paper.
------------
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: Smet and Wolter DSGE for EU

Postby phuong.macro » Tue Jun 28, 2016 9:11 am

I got it. Thank you so much for your usefull answer

I have 2 more questions:

1. Accordinging to Bayesian econometric, posterior is proportional to likehood times prior. Thus, I think that assigning a starting value will not impact our final estimated parameters. Then, I do not need to declare a starting point into my syntax in Dynare for my future research?

2. How I can check whether my estiamted mean and variance are close to true value in Dynare? order how I can check convergence in Dynare?
Is this ok if I only compare prior shape to posterior shape. Then if these two shapes look like the same, so that I can conlucde my estimated mean and variance is good.
Otherwise, I have to change my prior mean and prior S.E order I have to increase number of draws. So my understanding is correct?

Vielen dank
phuong.macro
 
Posts: 28
Joined: Mon Jun 27, 2016 7:35 pm

Re: Smet and Wolter DSGE for EU

Postby jpfeifer » Tue Jun 28, 2016 9:29 am

1. In theory it does not matter, but in practice it does. The further you start away from the posterior mode, the harder will it be to achieve convergence. However, if you don't have any information, the prior mean/mode is by definition your best guess for the starting value.

2. If
Code: Select all
mh_replic>2000
Dynare will display convergence diagnostics (either Brooks/Gelman or Geweke, depending on mh_nblocks)

Regarding prior/posterior comparison, you are mistaken. See http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=8201
------------
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: Smet and Wolter DSGE for EU

Postby phuong.macro » Tue Jun 28, 2016 11:33 am

Thank you so much indeed for your very detailed explanation

As your explanation, the further I start away from the posterior mode, the harder will it be to achieve convergence. So if I am not sure about a starting value, I can consider prior mean/mode as a starting point.
On the other hand,according to Monte Carlo theorem,if the number of draws (or replications) goes to infinity, then the estimated values will converge to the true values. Thus, in practice, to make sure that the estimated value will be close to the true values, then I should use the number of draw as large as possible. For example, in the case of Smets and Wolters (2003) they take 100000 replications. My understanding is correct?
phuong.macro
 
Posts: 28
Joined: Mon Jun 27, 2016 7:35 pm

Re: Smet and Wolter DSGE for EU

Postby jpfeifer » Wed Jun 29, 2016 7:12 am

Yes, starting from the prior mean is ok, although you should typically check robustness by using different starting values.

Often a million draws is a good starting point.
------------
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: Smet and Wolter DSGE for EU

Postby phuong.macro » Wed Jun 29, 2016 7:59 am

Vielen dank für die Helfen

I habe ganz verstenhen :P :idea: :P
phuong.macro
 
Posts: 28
Joined: Mon Jun 27, 2016 7:35 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests