Likelihood only!

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.

Re: Likelihood only!

Postby jpfeifer » Thu Oct 09, 2014 9:58 am

You cannot have a mixture. You must either go full ML or full Bayesian. Everything in between will crash.
------------
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: Likelihood only!

Postby Glm » Thu Oct 09, 2014 10:11 am

Oki. But I also tried a full Bayesian where I put priors on all parameters (that's the only difference between "s_and_w_ml.mod" and "s_and_w_prior.mod"). Although it doesn't work the same way that "s_and_w_ml.mod" does, that is, allows me to evaluate the likelihood value only for a given parameter vector.
Glm
 
Posts: 47
Joined: Tue Jan 17, 2012 12:54 pm

Re: Likelihood only!

Postby jpfeifer » Thu Oct 09, 2014 12:12 pm

Then provide the final file that does not work.
------------
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: Likelihood only!

Postby Glm » Tue Oct 14, 2014 3:54 pm

No worries, I found the problem myself. Some of the parameters were outside of the prior bounds which in turn generated the error log likelihood -1e+8.

But thanks anyways for all your help!

\\\Glm
Glm
 
Posts: 47
Joined: Tue Jan 17, 2012 12:54 pm

Re: Likelihood only!

Postby Glm » Sat Oct 18, 2014 4:52 pm

If i write like this in the parameter block

constebeta=0.16;
cbeta=1/(1+constebeta/100);

and like this in the model block

x*cbeta=gamma+y*zeta;


will Dynare take into account that cbeta is a function of constebeta when I estimate with regard to constebeta?

\\\Glm
Glm
 
Posts: 47
Joined: Tue Jan 17, 2012 12:54 pm

Re: Likelihood only!

Postby jpfeifer » Sun Oct 19, 2014 9:10 am

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.
------------
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

Previous

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 10 guests