Question about IRFs

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 IRFs

Postby shr » Fri Aug 29, 2014 12:53 pm

I have a question about producing IRFs from estimated models. I understand the difference between using bayesian_irfs and running stoch_simul after the estimation (the mean of the IRFs not being the same as the IRFs at the mean). What surprises me is that if I use stoch_simul after the estimation, and compare the resulting IRFs to those from a calibrated version of the same model, where all parameters in the calibrated model have been set to their estimated posterior mean values, then they are not identical - in fact, they are quite different. How can that be? I thought these two approaches should give the same results. Any help will be much appreciated!
shr
 
Posts: 10
Joined: Fri Aug 29, 2014 12:48 pm

Re: Question about IRFs

Postby Luciano » Fri Aug 29, 2014 1:12 pm

Hi,

I have the same problem. Are you trying to replicate a paper?

Cheers

L.
Luciano
 
Posts: 8
Joined: Mon Nov 11, 2013 11:40 am

Re: Question about IRFs

Postby shr » Fri Aug 29, 2014 1:16 pm

Hi Luciano,

No, my intention is to isolate the effect of a specific parameter in my model. For that, I first need to be able to replicate my own results!
shr
 
Posts: 10
Joined: Fri Aug 29, 2014 12:48 pm

Re: Question about IRFs

Postby Luciano » Fri Aug 29, 2014 1:23 pm

OK,

I have exactly the same problem but I am trying to replicate a paper.

Unless I have committed an error somewhere, the IRFs calculated from the posterior (mean) estimate of the model parameters do not match the ones obtained in the paper using (I suppose) bayesian_irf.

Cheers
Luciano
 
Posts: 8
Joined: Mon Nov 11, 2013 11:40 am

Re: Question about IRFs

Postby jpfeifer » Fri Aug 29, 2014 1:31 pm

Could you please provide me with a sample mod-file to replicate the issue.
------------
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 IRFs

Postby shr » Fri Aug 29, 2014 1:32 pm

Well, then you have a different problem than I do, I think. You can find answers to your question in these two links:
viewtopic.php?f=1&t=4650

And: viewtopic.php?f=1&t=2737
shr
 
Posts: 10
Joined: Fri Aug 29, 2014 12:48 pm

Re: Question about IRFs

Postby jpfeifer » Fri Aug 29, 2014 8:05 pm

Your estimation routine looks incorrect due the steady state not being correctly updated. This could explain your differences. After running estimation, Dynare will update the estimated parameters but not take any dependence into account that you did not specify. Rather, your calibration only once updates the other parameters depending on the estimated one. That’s why you should use model-local variables (the ones with the pound operator) or a steady state file. See Remark 4 (Parameter dependence and the use of model-local variables) in Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf.

In contrast, for stoch_simul the estimated parameters are used for the first run so that the subsequent parameters are correctly updated.
------------
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 IRFs

Postby shr » Mon Sep 01, 2014 6:12 pm

Dear jpfeifer,

Thanks a lot - that works! The steady state expressions have now been entered as model-local variables instead of parameters, so that they are updated in the estimation. That did the job. Thanks a lot!
shr
 
Posts: 10
Joined: Fri Aug 29, 2014 12:48 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests

cron