最近在看RBC之ABC,尝试将第8章CIA模型编程并用DYNARE模拟,程序运行报错,
There are 6 eigenvalue(s) larger than 1 in modulus
for 5 forward-looking variable(s)
The rank condition ISN'T verified!
错误使用 print_info (line 42)
Blanchard Kahn conditions are not satisfied: no stable equilibrium
出错 stoch_simul (line 98)
print_info(info, options_.noprint, options_);
出错 CIA (line 165)
info = stoch_simul(var_list_);
出错 dynare (line 180)
evalin('base',fname) ;
求助各位,不知如何修改,以下是code
var Y,C,K,H,W,R,M,p,g,rho;
varexo e,u;
parameters beta, delta, B, theta, gamma, alpha;
beta = 0.99;
delta =0.025;
B=-2.5805;
theta =0.36;
gamma =0.95;
alpha=0.95;
model;
1/beta=W/W(-1)*((1-delta)+R(+1));
B/(W*p)=-beta*(1/(p(+1)*C(+1)*g(+1)));
p*C=(M(-1)+g-1)/g;
K(+1)+M/p=(1-delta)*K+W*H+R*K;
W=(1-theta)*rho*(K/H)^theta;
R=theta*rho*(K/H)^(theta-1);
Y=rho*(K^theta)*(H^(1-theta));
Y=C+K(+1)-(1-delta)*K;
log(rho)=gamma*log(rho(-1))+e;
log(g)=alpha*log(g(-1))+u;
end;
initval;
Y = 1.2231;
C = 0.9095;
K = 12.544;
H = 0.3302;
W = (1-alpha)*Y/H;
R = alpha*Y/K;
M = 1;
p = 1.0995;
g = 1;
rho =1 ;
end;
steady;
check;
shocks;
var e; stderr 0.01;
var u; stderr 0.01;
end;
stoch_simul;


雷达卡



京公网安备 11010802022788号







