syntax error, unexpected COMMA, expecting EQUAL or '.'

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.

syntax error, unexpected COMMA, expecting EQUAL or '.'

Postby 0130535 » Wed Oct 21, 2015 4:30 am

When I use the example of p56 of DYNARE User Guide,the dynare said error:
why/

estimated params;
alpha, beta_pdf, 0.35, 0.02;
0130535
 
Posts: 3
Joined: Wed Oct 21, 2015 4:22 am

Re: syntax error, unexpected COMMA, expecting EQUAL or '.'

Postby jpfeifer » Fri Oct 23, 2015 6:08 am

Please provide the full file.
------------
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

Re: syntax error, unexpected COMMA, expecting EQUAL or '.'

Postby 0130535 » Mon Oct 26, 2015 4:17 am

the original program is :

var y c k i l y_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);
y_l = y/l;
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, 0.003;
stderr e, inv_gamma_pdf, 0.01, inf;
end;
estimation(datafile=simuldataRBC,nobs=200,first obs=500,
mh_replic=2000,mh_nblocks=2,mh_drop=0.45,mh_jscale=0.8);

dynare said:
error: line 28, col 6: syntax error, unexpected COMMA, expecting EQUAL or '.'

why? thanks!
0130535
 
Posts: 3
Joined: Wed Oct 21, 2015 4:22 am

Re: syntax error, unexpected COMMA, expecting EQUAL or '.'

Postby jpfeifer » Mon Oct 26, 2015 7:54 am

You are missing the underscore in estimated_params and first_obs.
------------
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: No registered users and 9 guests