Title: Solving for Country Portfolios in Open Economy Macro Models