rbc_brasil.mod (1.3 KB)
I am trying to replicate a RBC model basic, but when i put my solution for steady state model appear this warning from dynare (ERROR: rbc_brasil.mod: line 38, col 2: syntax error, unexpected DIVIDE, expecting EQUAL).
the reason for this warning that in my code I put one variable k / n = in the solution of steady state.
I hope that someone can help me this problem.
k/n is not a valid variable name. Use
A = 1;
k_n = (alpha/(1/beta)-(1- delta))^(1/(1-alpha));
w = (1 - alpha)*(k_n)^alpha;
R = alpha*(k_n)^(alpha -1);
r = R - delta;
n = (((1- alpha)/theta)*(k_n)^alpha/(k_n)*((theta + 1 - alpha)/theta) - delta*(k_n));
i = delta*(k_n)*n;
y = (k_n)^alpha*n;
c = n*((k_n)^alpha - delta*(k_n));
Also, don’t do a full exp()-substitution. Go for auxiliary variables, see Question about understanding irfs in dynare - #4 by jpfeifer