Gravity: Estimation Methods for Gravity Models in R
Authors/Creators
Files
10.21105.joss.01038.pdf
Additional details
Identifiers
Related works
- Describes
- 10.5281/zenodo.1491873 (DOI)
- Is reviewed by
- https://github.com/openjournals/joss-reviews/issues/1038 (URL)
Dates
- Issued
-
November 19, 2018
References
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- Anderson, J. (2010). The Gravity Model. In National Bureau of Economic Research. National Bureau of Economic Research. https://doi.org/10.3386/w16576
- 00028282, Anderson, James E., The American Economic Review, 1, 106–116, American Economic Association, A Theoretical Foundation for the Gravity Equation, 69, 1979
- 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
- van Bergeijk, P. A. G., & Brakman, S. (2010). The Gravity Model in International Trade. Cambridge University Press. https://doi.org/10.1017/cbo9780511762109
- Tobin, J. (1958). Estimation of Relationships for Limited Dependent Variables. Econometrica, 26(1), 24. https://doi.org/10.2307/1907382
- 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
- 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
- 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
- 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.
- 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
- tidyverse: Easily Install and Load the 'Tidyverse', Wickham, Hadley, 2017, R package version 1.2.1, https://cran.r-project.org/package=tidyverse
- R: A Language and Environment for Statistical Computing, R Core Team, R Foundation for Statistical Computing, Vienna, Austria, 2018, https://www.r-project.org
- 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
- 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
- Advanced International Trade: Theory and Evidence, Feenstra, Robert C, 2015, Princeton University Press
Citations
- de Lucio, J., & Requena, F. (2026). InTrade: A Python package for MRIO-based value-added and structural gravity analysis. SoftwareX, 35, 102749. https://doi.org/10.1016/j.softx.2026.102749
- Lenormand, M. (2023). TDLM: An R package for a systematic comparison of trip distribution laws and models. Journal of Open Source Software, 8(88), 5434. https://doi.org/10.21105/joss.05434