Published November 19, 2018 | Journal article | Version v1 | https://doi.org/10.21105/joss.01038

Gravity: Estimation Methods for Gravity Models in R

Files

10.21105.joss.01038.pdf

Files (1.6 MB)

Name Size Download all
md5:27665f9e385f4f402a159ef8b6fe1a14
129.0 kB Preview Download
md5:48dbbe56721ab5a4b7726dd40c00ba70
672.1 kB Download
md5:544239d156bef07ad2563fc1d637a42c
827.1 kB Preview Download

Additional details

Dates

Issued
November 19, 2018

References

  1. Woelwer, A.-L., Burgard, J. P., Kunst, J., & Vargas, M. (2018). gravity (Version 0.9.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.1491873
  2. Head, K., & Mayer, T. (2014). Gravity Equations: Workhorse,Toolkit, and Cookbook. In Handbook of International Economics (pp. 131–195). Elsevier. https://doi.org/10.1016/b978-0-444-54314-1.00003-3
  3. Egger, P., & Pfaffermayr, M. (2003). The proper panel econometric specification of the gravity equation: A three-way model with bilateral interaction effects. Empirical Economics, 28(3), 571–580. https://doi.org/10.1007/s001810200146
  4. Gómez-Herrera, E. (2012). Comparing alternative methods to estimate gravity models of bilateral trade. Empirical Economics, 44(3), 1087–1111. https://doi.org/10.1007/s00181-012-0576-2
  5. Head, K., Mayer, T., & Ries, J. (2010). The erosion of colonial trade linkages after independence. Journal of International Economics, 81(1), 1–14. https://doi.org/10.1016/j.jinteco.2010.01.002
  6. Silva, J. M. C. S., & Tenreyro, S. (2006). The Log of Gravity. The Review of Economics and Statistics, 88(4), 641–658. https://doi.org/10.1162/rest.88.4.641
  7. Anderson, J., & van Wincoop, E. (2001). Gravity with Gravitas: A Solution to the Border Puzzle. In National Bureau of Economic Research. National Bureau of Economic Research. https://doi.org/10.3386/w8079
  8. Anderson, J. (2010). The Gravity Model. In National Bureau of Economic Research. National Bureau of Economic Research. https://doi.org/10.3386/w16576
  9. 00028282, Anderson, James E., The American Economic Review, 1, 106–116, American Economic Association, A Theoretical Foundation for the Gravity Equation, 69, 1979
  10. Baier, S. L., & Bergstrand, J. H. (2009). Bonus vetus OLS: A simple method for approximating international trade-cost effects using the gravity equation. Journal of International Economics, 77(1), 77–85. https://doi.org/10.1016/j.jinteco.2008.10.004
  11. van Bergeijk, P. A. G., & Brakman, S. (2010). The Gravity Model in International Trade. Cambridge University Press. https://doi.org/10.1017/cbo9780511762109
  12. Tobin, J. (1958). Estimation of Relationships for Limited Dependent Variables. Econometrica, 26(1), 24. https://doi.org/10.2307/1907382
  13. Eaton, J., & Tamura, A. (1995). Bilateralism and Regionalism in Japanese and U.S. Trade and Direct Foreign Investment Patterns. In National Bureau of Economic Research. National Bureau of Economic Research. https://doi.org/10.3386/w4758
  14. Eaton, J., & Kortum, S. (2001). Trade in Capital Goods. In National Bureau of Economic Research. National Bureau of Economic Research. https://doi.org/10.3386/w8070
  15. Carson, R. T., & Sun, Y. (2007). The Tobit model with a non‐zero threshold. The Econometrics Journal, 10(3), 488–502. https://doi.org/10.1111/j.1368-423x.2007.00218.x
  16. 07350015, Cameron, A. Colin and Gelbach, Jonah B. and Miller, Douglas L., Journal of Business & Economic Statistics, 2, 238–249, American Statistical Association, Robust Inference With Multiway Clustering, 29, 2011, In this article we propose a variance estimator for the OLS estimator as well as for nonlinear estimators such as logit, probit, and GMM. This variance estimator enables cluster-robust inference when there is two-way or multiway clustering that is nonnested. The variance estimator extends the standard cluster-robust variance estimator or sandwich estimator for one-way clustering (e.g., Liang and Zeger 1986; Arellano 1987) and relies on similar relatively weak distributional assumptions. Our method is easily implemented in statistical packages, such as Stata and SAS, that already offer cluster-robust standard errors when there is one-way clustering. The method is demonstrated by a Monte Carlo analysis for a two-way random effects model; a Monte Carlo analysis of a placebo law that extends the state-year effects example of Bertrand, Duflo, and Mullainathan (2004) to two dimensions; and by application to studies in the empirical literature where two-way clustering is present.
  17. rlang: Functions for Base Types and Core R and 'Tidyverse' Features, Henry, Lionel and Wickham, Hadley, 2018, R package version 0.2.2, https://cran.r-project.org/package=rlang
  18. tidyverse: Easily Install and Load the 'Tidyverse', Wickham, Hadley, 2017, R package version 1.2.1, https://cran.r-project.org/package=tidyverse
  19. R: A Language and Environment for Statistical Computing, R Core Team, R Foundation for Statistical Computing, Vienna, Austria, 2018, https://www.r-project.org
  20. Wölwer, A.-L., Breßlein, M., & Burgard, J. P. (2018). Gravity Models in R. Austrian Journal of Statistics, 47(4), 16–35. https://doi.org/10.17713/ajs.v47i4.688
  21. Feenstra, R. C. (2002). Border Effects and the Gravity Equation: Consistent Methods for Estimation. Scottish Journal of Political Economy, 49(5), 491–506. https://doi.org/10.1111/1467-9485.00244
  22. Advanced International Trade: Theory and Evidence, Feenstra, Robert C, 2015, Princeton University Press