by tzxchina » Fri Sep 10, 2010 4:18 am
After I RUN the programme ,there is an erroras following:
Starting Dynare (version 4.1.2).
Starting preprocessing of the model file ...
ERROR: rbc.mod:32.6: syntax error, unexpected COMMA, expecting EQUAL
??? Error using ==> dynare
DYNARE: preprocessing failed
THE programm(filename is rbc .mod) is as following:
var y c k i l w r z;
varexo e;
parameters beta psi delta alpha rho epsilon;
model;
(1/c) = beta*(1/c(+1))*(1+r(+1)-delta);
psi*c/(1-l) = w;
c+i = y;
y = (k(-1)^alpha)*(exp(z)*l)^(1-alpha);
w = y*((epsilon-1)/epsilon)*(1-alpha)/l;
r = y*((epsilon-1)/epsilon)*alpha/k(-1);
i = k-(1-delta)*k(-1);
z = rho*z(-1)+e;
end;
varobs y;
initval;
k = 9;
c = 0.7;
l = 0.3;
w = 2.0;
r = 0;
z = 0;
e = 0;
end;
steady;
check;
estimated params;
alpha,beta_pdf,0.35,0.02;
beta,beta_pdf,0.99,0.002;
delta,beta_pdf, 0.025, 0.003;
psi,gamma_pdf,1.75,0.02;
rho,beta_pdf,0.95,0.05;
epsilon,gamma_pdf,10.05, 0.003;
stderr e,inv_gamma_pdf,0.01,inf;
end;
estimation(datafile=RBC,mh_replic=2000,mh nblocks=2,mh drop=0.45,mh jscale=0.8,
mode_compute=6);