jpfeifer wrote:Could you please explain what you changed?
Dear Johhanes,
I will try my best to explain it and hope will not make you feel confused due to my poor English.What I change to your original code is mainly the interest rate equation(financial friction model) and debt.
1. The orignal paper define interest rate in model : rt=rstar+psi*(exp(Dt+1/Xt-dbar)-1)+exp(mu-1)-1 , and Dt+1/Xt should be equal to dt+1,however the authers make Dt+1/Xt=dt in stead of dt+1 in their appendix. I guess this might be a typo,since Uribe and Schmitt-Grohe write a textbook "Open economy macroeconomics" which has not been published yet and in this text book Chapter 5, they correct the interest rate equation to make Dt+1/Xt=dt+1.
2. I do not know why they calibrate d=0.007. According to the original AER paper, it writes "We set the parameter dbar to induce a small steady-state trade balance to output ratio of about 0.25%, as observed on average in Argentina over the period 1900-2005" . I think the value of dbar is calculated from budget constraint at steady state.Howeve,budget constrain has tbbar and dbar at steady state, if both sides divided by ybar, we can get dbar/ybar is a function of tbbar/ybar,which might match the data TB/Y, here "bar"mean steady state value). So I put ybar in the interest rate equation .
At same time , I suppose tbbar/ybar(steady state of detrended TB/ steady state of detrended Y) equal to average TB/Y data value. Is this right? Otherwise we won't know the value of tbbar/ybar. In their textbook chapter 5 section 4 ,they use rt=rstar+psi*(exp((Dt+1/Xt-dbar)/ybar)-1) . And it seems that they also calibrate tbbar/ybar=average TB/Y data value.Since in my own data,trade blance to output raito on average is negative, then dbar/ybar (denote it to be d_share)would be negative, so I calibrate it to be d_share=-0.66(calculated from budget constraint)
So I write my code like the following(related to dbar part):
(1). My Interest Rate
- Code: Select all
r = RSTAR + psi*(exp((log(d(+1))/ybar)-(dbar/ybar)) - 1)+exp(mu-1)-1;
compared to yours
- Code: Select all
r = RSTAR + psi*(exp(d-dbar) - 1)+exp(mu-1)-1;
(2).My Trade balance
- Code: Select all
log(tb)= log(d) - log(d(+1))*g/r;
Compared to yours
- Code: Select all
log(tb)= d - d(+1)*g/r;
(3).My steady_state_model
- Code: Select all
dbar=ybar*d_share;
d=dbar;
c =(gbar/r-1)*d +y-s-invest;
d=exp(d);
Compared to yours
- Code: Select all
d = dbar;
c =(gbar/r-1)*d +y-s-invest;
Do you think there is some problem if I change the code like the above?
Best regards,
Huan