Finding Steady state of New Keynesian 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.

Finding Steady state of New Keynesian Model

Postby Anh Nguyen » Thu Aug 04, 2011 1:05 am

I am having a problem with the steady state as follows, can anyone help me?

var x infl i;

varexo uis uas ui;

parameters alf bet lam rho pi1 pi2;
bet=0.99;
rho=-ln(bet);

model;
x = x(+1)-alf*(i-infl(+1)-rho)+uis;
infl = bet*infl(+1)+lam*x+uas;
i = rho +(1-rho)*(pi1*infl+pi2*x)+ui;
end;

varobs x infl i;

initval;
x=0;
infl=0;
i=rho;
end;
steady;
check;


estimated_params;
alf, normal_pdf, 1, 0.5;
lam, beta_pdf, 0.5, 0.18, 0,1;
pi1, gamma_pdf, 1.5, 0.25;
pi2, gamma_pdf, 0.5, 0.1;
stderr uis, inv_gamma_pdf, 2, inf;
stderr uas, inv_gamma_pdf, 2, inf;
stderr ui, inv_gamma_pdf, 2, inf;
end;

estimation (datafile=Vietnam,mh_replic=100000,prefilter=1, conf_sig=0.90) x infl i;


The error as follows:
Warning: Some of the parameters have no value (alf, lam, pi1, pi2) when using steady. If these parameters are not
initialized in a steadystate file, Dynare may not be able to solve the model...

> In test_for_deep_parameters_calibration at 46
In steady at 33
In vietnam at 101
In dynare at 132
STEADY: numerical initial values incompatible with the following equations
1 2 3


Thank you very much
Anh Nguyen
 
Posts: 2
Joined: Thu Aug 04, 2011 12:27 am

Re: Finding Steady state of New Keynesian Model

Postby olayenidynare » Thu Aug 04, 2011 4:16 pm

The message means that you have not calibrated the listed parameters. You must calibrate all the parameters in the parameters block whether or not you're still going to estimate them.

Also note that you could also use
#rho=-ln(bet);
in the model block instead of calibrating it the way you did.

Hope this helps.
olayenidynare
 
Posts: 22
Joined: Sat Feb 21, 2009 3:17 pm

Re: Finding Steady state of New Keynesian Model

Postby Anh Nguyen » Fri Aug 05, 2011 11:41 am

Thank you very much. It finally works.
Best,
Anh Nguyen
 
Posts: 2
Joined: Thu Aug 04, 2011 12:27 am

Re: Finding Steady state of New Keynesian Model

Postby kunal » Mon Apr 27, 2015 3:51 pm

Can any one please post a steady state file for New Keynesian model
kunal
 
Posts: 1
Joined: Mon Apr 27, 2015 2:49 pm

Re: Finding Steady state of New Keynesian Model

Postby jpfeifer » Tue Apr 28, 2015 5:10 am

There is one in the examples folder of Dynare.
------------
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 5 guests