Hi jpfeifer,
Sorry to bother you again, I made some changes to the code and run into the same problem again, could you help me see if it is an issue with collinearity again?Thanks very much
- Code: Select all
var c_1 c_2 c l_1 l_2 l p_1 p_2 p w m_11 m_12 m_21 m_22 y_1 y_2 a_1 a_2 nu;
varexo eps_a1 eps_a2 eps_nu;
parameters beta sigma varphi delta theta rho_a rho_nu eta_1 eta_2
omega_1 omega_2 kappa_1 kappa_2;
beta = 0.996;
sigma = 1;
varphi = 2;
delta = 0.3;
theta = 6;
rho_a = 0.9;
rho_nu = 0.5;
eta_1 = 0.5;
eta_2 = 0.5;
omega_1 = 0.85;
omega_2 = 0.85;
kappa_1 = (1-omega_1*beta)*(1-omega_1)/omega_1;
kappa_2 = (1-omega_2*beta)*(1-omega_2)/omega_2;
model(linear);
w - p = varphi*l + c;
y_1 = delta*(a_1 + l_1) + (1-delta)*(eta_1*m_11 + eta_2*m_12);
y_2 = delta*(a_2 + l_2) + (1-delta)*(eta_1*m_21 + eta_2*m_22);
p_1-p_1(-1) = beta*(p_1(+1)-p_1) + kappa_1*(delta*(w-a_1)+
(1-delta)*((1/delta)*(y_1-eta_1*m_11-eta_2*m_12)-w-2*a_1) - p_1);
p_2-p_2(-1) = beta*(p_2(+1)-p_2) + kappa_2*(delta*(w-a_2)+
(1-delta)*((1/delta)*(y_2-eta_1*m_21-eta_2*m_22)-w-2*a_2) - p_2);
y_1 = (1 - (1-delta)*(theta-1)/theta)*c_1 + ((1-delta)*(theta-1)/theta)*(m_11 + m_21);
y_2 = (1 - (1-delta)*(theta-1)/theta)*c_2 + ((1-delta)*(theta-1)/theta)*(m_12 + m_22);
l = 0.5*l_1 + 0.5*l_2;
p = 0.5*p_1 + 0.5*p_2;
c_1 = -(p_1-p) + c;
c_2 = -(p_2-p) + c;
m_11 = -(p_1 - ((1/delta)*(y_1-eta_1*m_11-eta_2*m_12)-w-2*a_1)) + (eta_1*m_11 + eta_2*m_12);
m_12 = -(p_2 - ((1/delta)*(y_2-eta_1*m_21-eta_2*m_22)-w-2*a_2)) + (eta_1*m_11 + eta_2*m_12);
m_21 = -(p_1 - ((1/delta)*(y_1-eta_1*m_11-eta_2*m_12)-w-2*a_1)) + (eta_1*m_21 + eta_2*m_22);
m_22 = -(p_2 - ((1/delta)*(y_2-eta_1*m_21-eta_2*m_22)-w-2*a_2)) + (eta_1*m_21 + eta_2*m_22);
p + c = p(-1) + c(-1) + nu;
a_1 = rho_a*a_1(-1) + eps_a1;
a_2 = a_2(-1) + eps_a2;
nu = rho_nu*nu(-1) + eps_nu;
end;
steady;
check;
shocks;
var eps_a1 = 0;
var eps_a2 = 0;
var eps_nu = 0.004;
end;
stoch_simul;