Mode compute 4 and 6 combined, make sense?

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.

Mode compute 4 and 6 combined, make sense?

Postby jolanda_un » Sat Jun 21, 2014 8:14 am

Dear Dynare users, this is my first post on this forum. I would like to thank you all for the help you give in the use of this software.

I have a common problem with bayesian estimation, mode_compute=4 does not work and gives me the classic error

Code: Select all
??? Error using ==> chol
Matrix must be positive definite.


Most of you suggest of using the calibrated initial values for the estimation or to run an other routine like mode_compute=6. In my experience the only mode compute that gives proper convergence is 4 (also 10). Since I have no idea of what means "calibrated initial values" or at least I am not sure of it, i would like to ask you if would make sense to run the mode_compute=6 (that works always) and use the posterior mode or the final posterior mean as initial values for a new estimation with mode_compute=4.


I read somewhere to use a "combination of the two mode_compute" but i don't know if you mean this.

Greetins!
jolanda_un
 
Posts: 3
Joined: Sat Jun 21, 2014 8:05 am

Re: Mode compute 4 and 6 combined, make sense?

Postby costa » Sun Jun 22, 2014 2:52 am

Hi,

Sometimes I do this (estimate with mode compute 6 ) and put the results as the inputs for another estimation, and I manage to get better results. But as an user I´m not sure if that is theoretically right.

I think you are referring to the estimated_params_init option, where you can put the calibration option. As far as I know it should be placed before the estimation command, before the priors.

I hope I have not confused you even more.
costa
 
Posts: 47
Joined: Thu Nov 14, 2013 8:09 pm

Re: Mode compute 4 and 6 combined, make sense?

Postby jolanda_un » Sun Jun 22, 2014 7:17 am

Yes i was referring to the part, actually i use to set this value after the estimated_params, I giess is the same:

Code: Select all
estimated_params;
x, init_value, upper bound,lower bound, prior shape,prior mean,...

jolanda_un
 
Posts: 3
Joined: Sat Jun 21, 2014 8:05 am

Re: Mode compute 4 and 6 combined, make sense?

Postby jpfeifer » Sun Jun 22, 2014 10:50 am

Sequentially running different mode_compute makes a lot of sense. In case you did not find the true mode, you increase the likelihood of finding it. In case you already found it, running mode_compute a second time will just cost you time, but will not do any other harm as the optimizer will stay at the same mode you found before.

Using the calibrated value as starting values is recommended in case your mode_computation fails because of invalid starting values. If that is no problem, you don't need to use it. Using the full estimated_params-block with initial value, upper and lower bound makes the estimated_params_init-redundant.
------------
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: Mode compute 4 and 6 combined, make sense?

Postby jolanda_un » Sun Jun 22, 2014 2:38 pm

Thank you for the kind reply.

By "sequentially using" do you mean taking the posterior mode values from a computation and use it as initial parameter values for an other? Or there is an automatic way of running sequential routines?

By calibrated values do you mean posterior mean values after the metropolis hastings?

Sorry for the trivial questions.
jolanda_un
 
Posts: 3
Joined: Sat Jun 21, 2014 8:05 am

Re: Mode compute 4 and 6 combined, make sense?

Postby jpfeifer » Sun Jun 22, 2014 4:59 pm

Use the
Code: Select all
mode_file
option of estimation to load the results from the previous mode-computation. That part you have to do manually.

With calibrated values I mean the values set before the model block if you would run stoch_simul. That is, the values before you even would run estimation with mode-computation.
------------
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 5 guests