by Bernie » Tue Jul 11, 2006 2:59 pm
// example of solving Hansen(1985) model
var y, c, k, a, n, i;
varexo e;
parameters beta, rho, alpha, delta, psi, PSI,sc,si;
alpha = 0.36;
rho = 0.95;
beta = 0.99;
delta = 0.025;
psi = 0;
PSI = 2.5;
sc=0.2564;
si=0.7436;
model(linear);
y=(1+psi)*n+c;
y=a+alpha*k(-1)+(1-alpha)*n;
y=sc*c+si*i;
k=delta*i+(1-delta)*k(-1);
c-c(+1)+(1-beta*(1-delta))*(y(+1)-k);
a=rho*a(-1)+e;
end;
steady;
initval;
y=0;
c=0;
i=0;
k=0;
a=0;
n=0;
e=0;
end;
shocks;
var e; stderr 0.007;
end;
stoch_simul(dr_algo=1,drop=200,order=1);
I want the variable "a" upward.
but the result show the variable "a" downward.
thanks Professor