Someone please help me.
I'm newbe of dynare and have questions.
I want to simulate time-to-build ramsey model.
In this model, Law of motion of capital is follow;
k(t+1)-k(t)=f(k(t-1))-δk(t-1)
I know this model require two initial value of capital(k(-1)and k(0)), but I don't know how I express in dynare.
I write a dynare cord of this model,but I have a syntax error in line19 (K = Kstar)
I don't know why error occured. Please tell me why this cord is wrong.
- Code: Select all
var C K;
parameters alpha delta beta rho;
alpha = 0.3;
beta = 0.99;
delta = 0.025;
rho = 0.9;
Cstar = ((1 - beta)/(alpha * beta^2)^(alpha/(alpha - 1)) - delta * ((1 - beta)/(alpha * beta^2)^(1/(alpha - 1));
Kstar = ((1 - beta)/(alpha * beta^2)^(1/(alpha - 1));
model;
C^(-1 * rho) = beta * C(+1)^(-1 * rho) + beta^2 * (alpha * K(+1)^(alpha - 1) - delta) * C(+2)^(-1 * rho);
K(+1) - K = K(-1)^(alpha) - delta * K(-1) - C;
end;
inival;
C = Cstar
K = Kstar
end;
steady;
[Cstar; Kstar]
Thank you for your reading.