using simul, problem in law of motion in foreign debt ?
Posted: Sun Nov 15, 2015 7:22 pm
Hi All,
I am solving a deterministic Ramsey (not DSGE) small open economy model. The setup is very similar to "“Closing Small Open Economy” by Schmitt-Groh & Uribe and I use debt dependent interest to pin down the steady state. the only difference is that in my model shock is unexpected ex-anti so I should use simul. I can solve the steady state without any problem and I set debt to be zero in the final steady state. My mod code can give me the transition path under shock path of TFP. However, the debt level has a jump during the last period and that law of motion in foreign debt does not hold in the last period.
In the model section I put
b=(1+rworld+rfun(b(-1),bbar, ppsi ))*b(-1)-nx;
since debt is predetermined this line shows that b is backward looking. However, in the last period the debt level should goes to the final steady state. My understanding of the routine simul is that it does not check that b=(1+rworld+rfun(b(-1),bbar, ppsi ))*b(-1)-nx hold in the last period. I believe that is why debt path is discountinous in the last period.
if I use b(+1)=(1+rworld+rfun(b,bbar, ppsi ))*b-nx(+1) then the initial debt is not used as an initial condition.
Basically in my mode initial debt and terminal debt are both determined. So my question is in simul, is there a way to write the law of motion of debt to make sure that both the initial debt and terminal debt are satisfied at the same time?
I have searched the forum and only find a few posts with similar issues that debt jumps in the last period but no answers.
viewtopic.php?f=1&t=4483&hilit=foreign+deterministic
Any help would be appreciated.
I am solving a deterministic Ramsey (not DSGE) small open economy model. The setup is very similar to "“Closing Small Open Economy” by Schmitt-Groh & Uribe and I use debt dependent interest to pin down the steady state. the only difference is that in my model shock is unexpected ex-anti so I should use simul. I can solve the steady state without any problem and I set debt to be zero in the final steady state. My mod code can give me the transition path under shock path of TFP. However, the debt level has a jump during the last period and that law of motion in foreign debt does not hold in the last period.
In the model section I put
b=(1+rworld+rfun(b(-1),bbar, ppsi ))*b(-1)-nx;
since debt is predetermined this line shows that b is backward looking. However, in the last period the debt level should goes to the final steady state. My understanding of the routine simul is that it does not check that b=(1+rworld+rfun(b(-1),bbar, ppsi ))*b(-1)-nx hold in the last period. I believe that is why debt path is discountinous in the last period.
if I use b(+1)=(1+rworld+rfun(b,bbar, ppsi ))*b-nx(+1) then the initial debt is not used as an initial condition.
Basically in my mode initial debt and terminal debt are both determined. So my question is in simul, is there a way to write the law of motion of debt to make sure that both the initial debt and terminal debt are satisfied at the same time?
I have searched the forum and only find a few posts with similar issues that debt jumps in the last period but no answers.
viewtopic.php?f=1&t=4483&hilit=foreign+deterministic
Any help would be appreciated.