Okey admittedly the question was really illposed. Let me try again: My small open economy model works fine, I compare a money supply rule with an exchange rate peg. So far, the equation on foreign bonds was defined as
- Code: Select all
//5 Foreign bonds
exp(lb)*(1+phib*bf)= beta*exp(Rs+ds(+1)+lb(+1)-dps(+1));
with
ds(+1) being the change in the nominal exchange rate. As a reader of the paper it is hard to understand, what a positive deviation from steady state of ds means, i.e. does the nominal exchange rate appreciate or depreciate? To this end, I would like to report the IRF not of the change of the nominal exchange rate but of the level, S_level.
Hence I define
ds(+1)=(s_level(+1)-s_level). Of course, when the policy sets a peg, then s_level is at its initial value. It would be nice to have that the steady state deviation of s_level in this case is zero, not NaN.
Suppose I replaced
ds in all the equations with
s_level-s_level(-1), then my system works fine for a pegged regime and I get what I want, but when I use the money supply rule, then I get an unit root, and I am not quite sure where it comes from. I set the steady state of s_level=1, the model is in logs.