Difficulties when estimate a DSGE model

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.

Difficulties when estimate a DSGE model

Postby hefangfang0112 » Tue Feb 21, 2012 1:42 pm

Dear all,
I am estimating a economic DSGE model with DYNARE,and i meet problems as follow:
??? 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 ==> monetary at 247
dynare_estimation(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;
Since i am a beginner of dynare,i don't know how to solve the problem.I need your help,thank you very much.
monetary.mod
Here is my model mode .
(2.21 KiB) Downloaded 368 times

data_2ond.m
This is my data file.
(2.52 KiB) Downloaded 308 times
hefangfang0112
 
Posts: 2
Joined: Mon Feb 20, 2012 8:02 am

Re: Difficulties when estimate a DSGE model

Postby jpfeifer » Tue Feb 21, 2012 10:47 pm

Use mode_compute=6 (search the forum using Google on the issue, there are countless posts). Moreover, check the timing for k, particularly in the production function and the law of motion.
------------
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: Difficulties when estimate a DSGE model

Postby hefangfang0112 » Wed Feb 22, 2012 11:03 am

Thank you for your reply,i can run the mode file successfully now.Best wishes!
hefangfang0112
 
Posts: 2
Joined: Mon Feb 20, 2012 8:02 am

Re: Difficulties when estimate a DSGE model

Postby salarcon » Mon Aug 29, 2016 11:00 pm

i am trying to stimate a dsge model but the dynare told me: Impossible to find the steady state.
i dont know what is wrong with my code
please help me
Attachments
x1.mod
(1.61 KiB) Downloaded 145 times
salarcon
 
Posts: 3
Joined: Fri Aug 19, 2016 1:26 pm

Re: Difficulties when estimate a DSGE model

Postby jpfeifer » Wed Aug 31, 2016 7:23 am

@salarcon Please recheck your model. Your exogenous processes are most surely wrong. Why do you have
Code: Select all
log(Px) = rho*Px((-1))+ e;
log(Pm) = mrho*Pm((-1));

with log on the left and levels on the right side?
------------
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 contributions and examples

Who is online

Users browsing this forum: No registered users and 4 guests