Hi All
I am a new Dynare user and am not sure how to interpret the error messages. I have attempted to code up a fairly standard model (using the example in guide.pdf as a template) but cannot get it to work. Can anyone point me to a source for understanding the various error messages? Or, better yet, help me to understand the errors in my code?
Here is the code...
var y, c, k, n, l, i, z;
varexo e;
parameters alpha, beta, delta, rho, psi, phi;
alpha = .45;
beta = .1;
delta = .25;
rho = .1;
psi = .45;
phi = .1;
model;
((1-psi)/psi)*c/l = (1-alpha)*z*(k/n)^alpha;
c^(psi*(1-phi)-1) * l^((1-psi)*(1-phi)) = beta * c(+1)(psi(+1)*(1-phi(+1))-1) * l(+1)^((1-psi(+1))*(1-phi(+1))) * ( alpha*z(+1)*(n(+1)/k(+1))^(1-alpha) + 1 - delta );
log(z) = (1-rho)*log(z) + rho*log(z(-1)) + e;
1 = n + l;
k(+1) = i + (1-delta)*k;
y = c + i;
y = z*k^alpha*n^(1-alpha);
end;
initval;
y = 1;
c = .76;
l = .1;
k = 9;
n = .9;
i = .24;
z = 0;
end;
shocks;
var e = .000081;
end;
steady;
stoch_simul;
And the errors are...
??? Error using ==> feval
Error: File: standardmodel_fff.m Line: 8 Column: 59
()-indexing must appear last in an index expression.
Error in ==> dynare_solve at 41
fvec = feval(func,x,varargin{:});
Error in ==> steady_ at 23
[ys_,check] = dynare_solve([fname_ '_fff'],x);
Error in ==> steady at 7
steady_;
Error in ==> standardmodel at 99
steady(0);
Error in ==> dynare at 26
evalin('base',fname) ;
Thanks!
Tom