Unexpected NAME ERROR

Hello, dear all.

I was wondering if you could please assist me with the error message I am having below.

var c1 c2 sk sb W r R T_p T_f Y K i;
parameters p_taup p_tauf p_delta p_gam p_theta p_alpha g;
varexo N A;

p_taup = 0.195;
p_tauf = 0;
p_delta = 1;
p_gam = 1;
p_theta = 0.8771;
p_alpha = 0.4;
g = 0.4430;

model;
c1 + sk + sb = (1 - p_taup - p_tauf)*W;
c2(+1) = (r(+1) + (1 - p_delta))*sk + (1 + R(+1))*sb + T_p + T_f;
R = r - p_delta;
c2^(-p_gam) = c2(+1)^(-p_gam)*((r(+1) + 1 + p_delta)/(1+p_theta));
Y = K^(p_alpha)*(A*N)^(1-p_alpha);
r = p_alpha*K^(p_alpha-1)*(A*N)^(1-p_alpha);
W = (1-p_alpha)*A*K^(p_alpha)*(A*N)^(-p_alpha);
K = (1-p_delta)K(-1) + i;
T_p = (1+g)*p_taup*W;
T_f = p_tauf*W*(r(+1)+(1-p_delta));
i = N*sk + N*p_tauf*W - (1-p_delta)*K;
end;

initval;
sb = 0;
end;

steady;

The message I get is:

dynare olg;

Configuring Dynare …
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Using 64-bit preprocessor
Starting Dynare (version 4.5.7).
Starting preprocessing of the model file …
ERROR: olg.mod: line 22, col 16: syntax error, unexpected NAME

There is no lack of semicolon in line 26.
can someone identify the error?

Thank you so much.

Regards,
João

1 Like

Hello, Joao, you can locate the possible error in line 22 column 16 in your Editor window. Perhaps there is a * missing. Best.

1 Like