questions on estimation

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.

questions on estimation

Postby fuyangzhao » Wed Feb 22, 2017 1:23 am

Hi professor!
I lately wrote a model and tried to estimate it. But there is a problem. Dynare can only give me posterior modes, after which It reported the following error message:
Error using chol
Matrix must be positive definite.

Error in metropolis_hastings_initialization (line 68)
d = chol(vv);

Error in random_walk_metropolis_hastings (line 62)
[ ix2, ilogpo2, ModelName, MetropolisFolder, fblck, fline, npar, nblck, nruns, NewFile, MAX_nruns, d ] = ...

Error in dynare_estimation_1 (line 782)
feval(options_.posterior_sampling_method,objective_function,options_.proposal_distribution,xparam1,invhess,bounds,dataset_,options_,M_,estim_params_,bayestopt_,oo_);

Error in dynare_estimation (line 89)
dynare_estimation_1(var_list,dname);

Error in landfinance_bys_fullshock (line 713)
dynare_estimation(var_list_);

Error in dynare (line 180)
evalin('base',fname) ;


And I couldn't get posterior means if the problem is not solve. Does the matrix means covariance matrix for the proposal density of the MCMC sampler? I add an option
Code: Select all
mcmc_jumping_covariance = prior_variance
. But it said that my value of
Code: Select all
mh_init_scale
was too large (0.4), and I had to change it to a very small value to let it proceed. The result is also weird. The condifence interval is too narrow that the upper value is almost equal to the lower value.

So...How can I modify my estimation option to get reliable posterior means and confidence interval?
My code is packed in zip file in the attachment
estimating.zip
(11.19 KiB) Downloaded 42 times
. Thank you so much!
fuyangzhao
 
Posts: 48
Joined: Thu Dec 10, 2015 1:20 pm

Re: questions on estimation

Postby jpfeifer » Thu Feb 23, 2017 4:54 pm

You need to correct your mod-file. First of all, check
Code: Select all
identification

You will see that
WARNING !!!
The rank of H (model) is deficient!

gltrans is not identified in the model!
[dJ/d(gltrans)=0 for all tau elements in the model solution!]
betaparam_trans is not identified in the model!
[dJ/d(betaparam_trans)=0 for all tau elements in the model solution!]
inveta is not identified in the model!
[dJ/d(inveta)=0 for all tau elements in the model solution!]

because you are trying to estimate parameters that are not even present in the data. Secondly, there is stochastic singularity in your model as there seems to be an exact linear combination between your observables implied by the model. You need to fix this as well.

After that, have a look at the
Code: Select all
mode_check

plots.
------------
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 9 guests