Metropolies Hastings Algorithm

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.

Metropolies Hastings Algorithm

Postby uddin_sah » Wed Nov 30, 2011 9:36 am

Dear All,

I am running Smets Wouters2003. However, I am facing a problem on Metropolis Hasting Algorithm and don't know how to solve it. would you please send me some recommendation.


Regards
Helal
Attachments
StatEU.xls
(326 KiB) Downloaded 168 times
SmetsWouters2003.mod
(7.39 KiB) Downloaded 88 times
uddin_sah
 
Posts: 3
Joined: Sat Nov 19, 2011 8:41 am

Re: Metropolies Hastings Algorithm

Postby MichelJuillard » Thu Dec 01, 2011 9:15 pm

You should give more details about the problem that you encounter, so people can decide if they know how to help you without having to run your example.

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: Metropolies Hastings Algorithm

Postby uddin_sah » Thu Dec 08, 2011 8:39 am

Dear Michel,

Thanks for your comments. Following are the problems I am facing in executing this model

Warning: File 'SmetsWouters2003/Output' not found.
> In CheckPath at 42[/color]
In dynare_estimation_1 at 665
In dynare_estimation at 62
In SmetsWouters2003 at 330
In dynare at 120
Warning: File 'SmetsWouters2003/metropolis' not found.
> In CheckPath at 42
In metropolis_hastings_initialization at 46
In random_walk_metropolis_hastings at 58
In dynare_estimation_1 at 871
In dynare_estimation at 62
In SmetsWouters2003 at 330
In dynare at 120
??? Error using ==> chol
Matrix must be positive definite.

Error in ==> metropolis_hastings_initialization at 52
d = chol(vv);

Error in ==> random_walk_metropolis_hastings at 58
[ ix2, ilogpo2, ModelName, MhDirectoryName, fblck, fline, npar, nblck,
nruns, NewFile, MAX_nruns, d ] = ...

Error in ==> dynare_estimation_1 at 871
feval(options_.posterior_sampling_method,'DsgeLikelihood',options_.proposal_distribution,xparam1,invhess,bounds,gend,data,...

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> SmetsWouters2003 at 330
dynare_estimation(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;[/color]
uddin_sah
 
Posts: 3
Joined: Sat Nov 19, 2011 8:41 am

Re: Metropolies Hastings Algorithm

Postby reubenpjacob » Tue Dec 13, 2011 1:44 pm

perhaps the optimization algorithm did not find a well behaved hessian for the covariance matrix? look at the the mode_check figures. do you see the posterior is badly behaved in the neighbourhood of the mode?

reuben
reubenpjacob
 
Posts: 133
Joined: Fri Oct 06, 2006 3:23 pm
Location: Reserve Bank of New Zealand


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests