Choosing initial values of variables

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.

Choosing initial values of variables

Postby ericman967 » Tue Dec 10, 2013 4:35 am

I'm new to Dynare. How do you choose initial values which are close to steady state values in equilibrium? I've included my model below. I'm only going off of other models I've seen using dynare, c=0.7, and so on. The output says the residual for equation 5 is infinity - does this mean equation 5 is the key?

Code: Select all
// The preamble
var c, Y, G, p, m;
varexo Gj Mj M;

parameters cbeta, cm;

cbeta=0.99;
cm=0.7;

// The model
model;

// Intertemporal Euler
(1/c)=cbeta * (1/(1+(p/p(-1))))*(1/c(+1))*(cm*G^(cm-1) * Gj^(cm))/(G^(cm)+Gj^(cm))^2;

// Household constraint
c*p + M + G = Y + (G^(cm)/(G^(cm)+Gj^(cm)))*(M(-1)+Mj(-1));

// MRS consumption and money
(M/p)=(c * cm*G^(cm-1)*Gj^(cm))/(cm*G^(cm-1)*Gj^(cm) - G^(cm)*(G^(cm) + Gj^(cm)));

// Money equation
(M/p)=m;

// Consumption and money condition
(cbeta/p)*(1/m) + (1/c(+1))*(cbeta/p(+1))*(G^(cm))/(G^(cm)+Gj^(cm)) - (1/c)*(cbeta/p);

end;

initval;

c= 0.7;
M= 1;
Y= 0.7;
G= 0.5;
p= 0.9;
Gj= 0.5;
Mj= 0.5;

end;
steady;


shocks;
var Gj;
periods 1:9;
values 0.1;
end;

simul(periods = 10);
ericman967
 
Posts: 5
Joined: Wed Sep 25, 2013 1:30 am

Re: Choosing initial values of variables

Postby jpfeifer » Tue Dec 10, 2013 10:11 am

That's where the problem shows up. You problem starts with not initializing all variables. You only have M, but not m.
------------
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: Google [Bot] and 5 guests