Closing Small Open Economy with Debt elastic interest rate

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Closing Small Open Economy with Debt elastic interest rate

Postby Philipp » Mon Apr 18, 2011 9:38 pm

Hi there,

I want to replicate the paper by Schmitt-Grohé and Uribe 2003 "Closing Small open Economy models". I was able to compute the Models 1 and 1a for the endogenous discount factor. Then I tried to compute the Model 2 for the debt elastic interest rate and thats where the struggling began... Actually, I have no clue anymore how to proceed. I would like to have a model in exp() rather than levels to capture the %-age deviations from steady state.

I would appreciate it if someone had a hint on where to start with the corrections.

Thanks for your comments,

Philipp
Last edited by Philipp on Thu Apr 21, 2011 4:30 pm, edited 1 time in total.
Philipp
 
Posts: 36
Joined: Mon Apr 18, 2011 9:01 pm
Location: State Secretariate for Economic Affairs

Re: Closing Small Open Economy with Debt elastic interest ra

Postby Philipp » Thu Apr 21, 2011 4:30 pm

I figured out (with the great help from my professor F.Collard) how to do it.

For the ones who are interested in solving SOE models some hints:

1. If you have a model with %age deviations from Steady State, i.e. in exp(), then make sure that foreign assets (usually d_t, sometimes b_t) can be negative and hence logs cannot be taken. So this variable should not be written as exp(d) rather just d. This also holds for the trade balance and the current account!

2. Make sure you get the right initial values. If you have exp(k)... in your equation, then the initial value should be k = log(kss) or something similar. This is the substitution you were making when substituting k by log(k) (from unit deviation to %age deviation).

3. Make also sure that the lambda (marginal utility of wealth) is expressed in exp().

I hope I could help some of you, students mainly, who encountered some similar problems as I did when starting with dynare.

Sincerely, Philipp
Philipp
 
Posts: 36
Joined: Mon Apr 18, 2011 9:01 pm
Location: State Secretariate for Economic Affairs

Re: Closing Small Open Economy with Debt elastic interest ra

Postby monad » Wed May 18, 2011 9:11 am

Hi Philipp,

I also work with the SOE model which I expressed in exp() in Dyanre. As yourself, I also figured out that NFAs must be in levels. Therfore, I agree with all your points and remarks. However, I would like to double check with you if my thinking is correct on implementing an exponential function to 'close' the model. In particular, if the function is of the form:

psi*[exp(d-dbar)];

1) I need to assume that the ss of d (i.e., dbar)=0
2) And then, do I want to take another exponent because the model is in exp(), ie., exp(psi*[exp(d-dbar)])
or - simply have psi*[exp(d-dbar)-1]

What is your opinion?

Thanks a lot,
Monika
Monika
monad
 
Posts: 8
Joined: Sat Aug 11, 2007 7:54 pm

Re: Closing Small Open Economy with Debt elastic interest ra

Postby Philipp » Wed Jul 20, 2011 3:34 pm

Dear Monika,

I'm truly sorry that I haven't answered before, I hope you were able to figure out how to do it anyways.

Actually, there is a really elegant way how to deal with the problem:

First, in an open economy the level of debt can be negative so you cannot take logs, this is yet not true for the other variables. Thus it is possible to write the model in %-age deviations from Steady State.

Second, I told dynare to compute the risk premium:

risk = psi*(exp(d-d_bar)-1);

and then the interest rate follows:

exp(r) = r_w+risk;

This gives the euler equation of the form:

// FOC wrt d (Euler Equation)
exp(lambda) = beta*(1+exp(r))*exp(lambda(+1));

I hope I could help you with that.

I'll send you the complete model anyways.

Sincerely

Philipp
Attachments
soe_2.mod
Uribe and Schmitt-Grohé, Closing SOE, Model2, Debt elastic interest rate
(3.92 KiB) Downloaded 875 times
Philipp
 
Posts: 36
Joined: Mon Apr 18, 2011 9:01 pm
Location: State Secretariate for Economic Affairs

Re: Closing Small Open Economy with Debt elastic interest ra

Postby singer » Fri Jul 27, 2012 10:35 pm

Hi Phillip,

I am a student who is trying to replicate the SGU models as well. I was able to replicate the debt elastic interest rate and portfolio adjustment costs but not the endogenous discount factor ( 1, 1a) and the complete markets model. In your earlier post you said that you were able to figure out the two versions of the endogenous discount factor and I was wondering if you could post the file for me.


Thank you
singer
 
Posts: 2
Joined: Fri Jul 27, 2012 10:25 pm

Re: Closing Small Open Economy with Debt elastic interest ra

Postby singer » Fri Aug 03, 2012 6:00 pm

Here is my file for the endogenous discount factor model. The first one is model 1 and the second is model 1A.

Thanks!
Attachments
m1a.mod
(2.31 KiB) Downloaded 371 times
m1.5.mod
(2.81 KiB) Downloaded 226 times
singer
 
Posts: 2
Joined: Fri Jul 27, 2012 10:25 pm

Re: Closing Small Open Economy with Debt elastic interest ra

Postby jpfeifer » Wed Jan 21, 2015 12:33 pm

Some of the above files contained errors. A (hopefully correct) replication file for Schmitt-Grohe/Uribe (2003): "Closing small open economy models", Journal of International Economics, 61, pp. 163-185 is available on my homepage at https://sites.google.com/site/pfeiferecon/dynare.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 10 guests