why does dynare compute my model infinitely?
Posted: Sun Feb 21, 2010 2:54 pm
Hello everybody, sorry to bother you with the basics. I am trying to compute a very simple RBC model. There are no errors reported and everything would be fine apart from the fact that... dynare actually does not compute it (the model is really simple, see below, but after a few minutes dynare still stands at "starting matlab/octave computing"). Being a newbie I have no idea what might be wrong, as no errors are reported. Could you possibly help? Thanks a lot!
- Code: Select all
var c, l, k, x, a;
varexo e;
parameters alpha, rho, delta;
alpha = 0.34;
delta = 0.025;
rho = 0.95;
model;
1/c = (1/c(+1))*(a*alpha*(l(+1)/k(+1))^(1-alpha)+1);
c/l-1 = (1-alpha)*(k/l)^alpha;
c + x = a*(k^alpha)*(l^(1-alpha));
k = x(-1) + (1-delta)*k(-1);
a = rho * a(-1) + e;
end;
initval;
c = 0;
x = 0;
l = 0;
k = 0;
a = 0;
end;
shocks;
var e = 0.00448;
end;
stoch_simul(periods=1000);