罗南京 发表于 2015-7-7 08:06 
额,我明白了,但是你这个模型没有连续五期啊…
我把你的rho删了,因为你的模型没用到;然后按照你说的故事改了一下。
var Y pi;
varexo v;
parameters Yba, pix, alpha, rho, fh, thetapi, thetaY;
Yba= 100;
pix= 2;
alpha= 1;
fh= 0.25;
thetapi= 0.5;
thetaY= 0.5;
model(linear);
Y= Yba-(alpha*thetapi)/(1+alpha*thetaY)*(pi-pix)+1/(1+alpha*thetaY)*v;
pi=pi(-1)+fh*(Y-Yba);
end;
initval;
Y = 100;
pi= 2;
v=0;
end;
steady;
shocks;
var v;
periods 5:9;
values 1;
end;
check;
simul(periods=100);
figure(1);
subplot(2,1,1); plot(Y); title('output');
subplot(2,1,2); plot(pi); title('inflation');