Hello!
I am starting to learn Dynare and now I have a problem with a .mod file.
I just copied the model from the Paper of Sargent et. al. (Practicing Dynare):
periods 1000;
var c k lab z;
varexo e;
parameters bet the del alp tau rho s;
bet = 0.987;
the = 0.357;
del = 0.012;
alp = 0.4;
tau = 2;
rho = 0.95;
s = 0.007;
model;
(c^the*(1-lab)^(1-the))^(1-tau)/c=bet*((c(+1)^the*(1-lab(+1))^(1-the))^(1-tau)/c(+1)*(1+alp*exp(z(-1))*k(-1)^(alp-1)*lab^(1-alp)-del);
c=the/(1-the)*(1-alp)*exp(z(-1))*k(-1)^alp*lab^(-alp)*(1-lab);
k=exp(z(-1))*k(-1)^alp*lab^(1-alp)-c+(1-del)*k(-1);
z=rho*z(-1)+s*e;
end;
initval;
k = 1;
c = 1;
lab = 0.3;
z = 0;
e = 0;
end;
schocks;
var e;
stderr 1;
end;
steady;
stoch_simul(dr_algo=0,periods=1000);
datasaver('simudata',[]);
So, it is just a copy, but when I start Dynare, the following error Message occurs:
ERROR: prac_dy_sec2.mod:17.134: syntax error, unexpected ';'
Starting Dynare ...
Starting preprocessing of the model file ...
error: DYNARE: preprocessing failed
error: evaluating if command near line 94, column 1
error: called from `dynare' in file `/home/basher/Desktop/dynare_v4/matlab/dynare.m'
But I do not see, that I have an `;` somewhere, that does not belong there? So what is the Problem?? Can someone help me?
Thanks in advance!
basher