Dear Joao Santos Silva,
I am trying to replicate results from a regression in the IMF Global Financial Stability Report 2023 (Online Annex). They examine whether geopolitical factors matter for cross-border capital allocation using a bilateral panel, and they estimate the following "gravity" model:
log(Xc,c',t) = 𝛽 GEOPOLITICALDISTANCEc,c',t-1 + 𝛿 GRAVITYCONTROLSc,c' + 𝜈c',t + 𝜈c,t + 𝜖c,c',t
Where Xc,c',t is the portfolio share, c is the destination country, c' is the origin country, and 𝜈c',t and 𝜈c,t are origincountry-time and destinationcountry-time fixed effects.
I say "gravity" because they estimate the model using OLS, while I read in many of your posts that gravity models should use for example PPML.
I have two questions:
1) If I want to estimate the model with OLS as they did, how do I code the origincountry-time and destinationcountry-time fixed effects in xtreg? This is what I have so far, I don't know how to add the country-time varying fixed effects.
xtset countrypair year, early
xtreg log_share L.GPD gravity_controls, fe robust
2) Would it be more sensible to estimate the same model with PPML?
I would be extremely grateful if you could help!
Best,
Chiara
I am trying to replicate results from a regression in the IMF Global Financial Stability Report 2023 (Online Annex). They examine whether geopolitical factors matter for cross-border capital allocation using a bilateral panel, and they estimate the following "gravity" model:
log(Xc,c',t) = 𝛽 GEOPOLITICALDISTANCEc,c',t-1 + 𝛿 GRAVITYCONTROLSc,c' + 𝜈c',t + 𝜈c,t + 𝜖c,c',t
Where Xc,c',t is the portfolio share, c is the destination country, c' is the origin country, and 𝜈c',t and 𝜈c,t are origincountry-time and destinationcountry-time fixed effects.
I say "gravity" because they estimate the model using OLS, while I read in many of your posts that gravity models should use for example PPML.
I have two questions:
1) If I want to estimate the model with OLS as they did, how do I code the origincountry-time and destinationcountry-time fixed effects in xtreg? This is what I have so far, I don't know how to add the country-time varying fixed effects.
xtset countrypair year, early
xtreg log_share L.GPD gravity_controls, fe robust
2) Would it be more sensible to estimate the same model with PPML?
I would be extremely grateful if you could help!
Best,
Chiara

Comment