Dear Sir/Madam,
I was wondering if you could please assist me with the error message I am having below.
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//% Notes:
//% DYNARE timing convention has been used
//% for the capital accumulation equation
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//% VARIABLES AND PARAMETERS DEFINITION
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
var y c k i h l z;
varexo e;
parameters beta alpha gamma theta omega rho sigma;
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//% CALIBRATED PARAMETER VALUES FROM THE ARTICLE
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
beta = .96;
alpha = .29;
gamma= 2;
theta = .6;
omega= 1.42;
rho=.51;
sigma = .045;
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//% MODEL:
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
model;
//% FIRST ORDER CONDITIONS
exp(l)=((1-alpha)*(exp(k(-1))*(exp(h))^alpha)*exp(l)^(-alpha))^(1/theta);
exp(h)=((alpha*(exp(k(-1)*exp(h))^(alpha-1))*exp(l)^(1-alpha))*(1+exp(z)))^(1/omega-1);
((exp(c)-(exp(l)^1+theta)/(1+theta))^(-gamma))/(1+exp(z))=beta*(exp(c(+1))-(exp(l(+1))^(1+theta))/(1+theta)^(-gamma))*alpha*(exp(k)*exp(h(+1))^(alpha-1))*(exp(l(+1))^(1-alpha))*exp(h(+1))+(1-(1/omega)*exp(h(+1))^omega)/(1+exp(z(+1)));
((exp(k(-1))*exp(h))^alpha)*exp(l)^(1-alpha)=exp(c)+exp(k)/(1+exp(z))-(exp(k(-1))*(1-(1/omega)*exp(h)^omega))/(1+exp(z));
//% CONSTRAINTS
exp(k)=(((exp(k(-1))^alpha)*(exp(h))^(alpha))*exp(l)^(1-alpha)+(1-(1/omega)*(exp(h)^omega)*exp(k(-1)))/(1+exp(z))-exp(c))*(1+exp(z));
exp(y)=exp(c)+exp(i)/(1+exp(z));
z=rho*z(-1)+e;
end;
//% INITIAL VALUES AND STEADY STATE:
initval;
k=0.567966;
i=0.0563;
l=0.3610;
h=0.251526;
c=0.2196
z=0;
e=0;
end;
steady;
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//% SHOCKS: DEFINE SHOCKS
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
shocks;
var e = sigma^2;
end;
stoch_simul(periods=2100,order=1);
The message I get is:
>> dynare GHH.mod
Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
Starting Dynare (version 4.1.2).
Starting preprocessing of the model file ...
ERROR: GHH.mod:59.1: syntax error, unexpected NAME
??? Error using ==> dynare at 126
DYNARE: preprocessing failed
Thank you so much.
Regards,
Bouba