from one type to two types of agents
Posted: Thu Jul 28, 2016 2:24 am
Hi all,
Problems occur when I try to extend the basic NK model from one agent to two agents model. Codes are attached.
It's a basic NK model with positive inflation target. The price rigidity is governed by Calvo, and it's indexed to the target inflation. The only shock is the discount factor shock "e_m". I can run the mod file "NK1" successfully.
However, when I try to extend it to two agents model, it doesn't work.
The two agents model is extended by assuming only a fraction of households will be affected by discount factor shock. Thus in equilibrium both types of agents consume the same and supply the same amount of labor.
The mod file is "NK_type". The warning is "There are 5 eigenvalue(s) larger than 1 in modulus for 6 forward-looking variable(s). The rank condition ISN'T verified!"
Here're some clues:
1. I use "check" and found there's one unit root. The one-agent model doesn't have an unit root. But I cannot find which one variable in the two agents model has an unit root. Moreover, I don't know why there's a unit root.
2. I use "model_diagnostics(M_,options_,oo_);" The result is:
model_diagnostic: the Jacobian of the static model is singular, there is 1 colinear relationships between the variables and the equations
Colinear variables:
L_u
C_u
L_r
C_r
Colinear equations
1 2 19
The presence of a singularity problem typically indicates that there is one
redundant equation entered in the model block, while another non-redundant equation
is missing. The problem often derives from Walras Law."
However, I don't think there's collinearity problem here. And if there is, I don't know which "non-redundant equation" I've omitted.
3. Maybe there're some fundamental problems with the two agents model setup? The equations are wrong? I have found any yet.
Thanks for your help!
Problems occur when I try to extend the basic NK model from one agent to two agents model. Codes are attached.
It's a basic NK model with positive inflation target. The price rigidity is governed by Calvo, and it's indexed to the target inflation. The only shock is the discount factor shock "e_m". I can run the mod file "NK1" successfully.
However, when I try to extend it to two agents model, it doesn't work.
The two agents model is extended by assuming only a fraction of households will be affected by discount factor shock. Thus in equilibrium both types of agents consume the same and supply the same amount of labor.
The mod file is "NK_type". The warning is "There are 5 eigenvalue(s) larger than 1 in modulus for 6 forward-looking variable(s). The rank condition ISN'T verified!"
Here're some clues:
1. I use "check" and found there's one unit root. The one-agent model doesn't have an unit root. But I cannot find which one variable in the two agents model has an unit root. Moreover, I don't know why there's a unit root.
2. I use "model_diagnostics(M_,options_,oo_);" The result is:
model_diagnostic: the Jacobian of the static model is singular, there is 1 colinear relationships between the variables and the equations
Colinear variables:
L_u
C_u
L_r
C_r
Colinear equations
1 2 19
The presence of a singularity problem typically indicates that there is one
redundant equation entered in the model block, while another non-redundant equation
is missing. The problem often derives from Walras Law."
However, I don't think there's collinearity problem here. And if there is, I don't know which "non-redundant equation" I've omitted.
3. Maybe there're some fundamental problems with the two agents model setup? The equations are wrong? I have found any yet.
Thanks for your help!