Historical and smoothed variables

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.

Historical and smoothed variables

Postby ming_ming » Sun Apr 24, 2016 12:59 pm

Hi Johannes,

I am learning how to use Dynare to do Bayesian estimation with a manually linearized symmetric two-country model. I followed your paper and specified four observables and four observation equations accordingly. During my estimation process, I run into several problems.

1. With mh_replic=0, Dynare reports the "Historical and smoothed variables" for all four observables. However, only 3 of them are perfectly matched (figure attached). The last one seems to be poorly matched (the same problem arises with mh_replic>0). But there is no measurement errors specified in the model. This is the case for both version 4.4.3 and unstable version.

2. When using the unstable version, I also got the following warning:

Warning: Your prior allows for correlations between measurement errors larger than +-1 and will not
integrate to 1 due to truncation. Please change your prior
> In initial_estimation_checks at 110
In dynare_estimation_1 at 157
In dynare_estimation at 105
In example at 547
In dynare at 223

This warning did not arise in version 4.4.3. Again, I did not specify any measurement error. Anything going wrong?

3. A regular "identification" command following the reference manual cannot go through. Dynare will report an error.

4. If I instead use the following estimation command
Code: Select all
estimation(datafile=example_data,mh_replic=20000,mh_nblocks=5,mh_jscale=0.23244,mode_compute=0,mode_file=example_mode,mode_check,moments_varendo)


Is the following field a correct place to check the variance decomposition for an endogenous variable, say TY?
Code: Select all
oo_.PosteriorTheoreticalMoments.dsge.VarianceDecomposition.Mean.TY_hat


All related model and data files are attached. Many thanks for your time! I appreciate that.

Ming
Attachments
example.zip
(21.19 KiB) Downloaded 119 times
ming_ming
 
Posts: 2
Joined: Sun Apr 24, 2016 12:48 pm

Re: Historical and smoothed variables

Postby jpfeifer » Sun May 01, 2016 3:57 pm

1. That usually means there is stochastic singularity in your model.
2. That is a bug in the warning message. Thanks for pointing it out. It should say
Code: Select all
correlations between structural shocks larger than +-1

This is definitely a problem when you try to do model_comparison. Otherwise, you can ignore it.
3. Identification unfortunately does not support correlations at this point. However, looking at the
Code: Select all
mode_check
plots, there seems to be an issue with d12 and potentially for d21
4. Yes, that is the correct field.
------------
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: Historical and smoothed variables

Postby ming_ming » Sat May 07, 2016 6:01 am

You are right, Johannes. I finally figured out where the stochastic singularity comes from in my model. Now the fitted variables look reasonable and I managed to obtain the global mode. Many thanks for your suggestions.
ming_ming
 
Posts: 2
Joined: Sun Apr 24, 2016 12:48 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 15 guests