gravity: Estimation Methods for Gravity Models

A wrapper of different standard estimation methods for gravity models. This package provides estimation methods for log-log models and multiplicative models.

Version: 1.1
Depends: R (≥ 3.4.0)
Imports: lmtest, sandwich, glm2, MASS, stats, censReg, survival, multiwayvcov, tibble, magrittr, dplyr, tidyr, purrr, rlang, Rdpack, utils
Suggests: knitr, rmarkdown, testthat, broom
Published: 2023-05-02
DOI: 10.32614/CRAN.package.gravity
Author: Anna-Lena Woelwer [aut, cph], Jan Pablo Burgard [aut, cph], Joshua Kunst [aut, cph], Mauricio Vargas ORCID iD [aut, cre, cph], Romain Francois [ctb] (adapted parts of the code to use dplyr 0.8.0), Lionel Henry [ctb] (simplified parts of the code), Sarah Johnson [ctb] (improved the double demeaning function), Hrisyana Doytchinova [rev] (sent us different suggestions and bug reports)
Maintainer: Mauricio Vargas <m.sepulveda at>
License: Apache License (≥ 2)
NeedsCompilation: no
Materials: NEWS
In views: Econometrics
CRAN checks: gravity results


Reference manual: gravity.pdf
Vignettes: A crash course on gravity models
Creating gravity datasets


Package source: gravity_1.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): gravity_1.1.tgz, r-oldrel (arm64): gravity_1.1.tgz, r-release (x86_64): gravity_1.1.tgz, r-oldrel (x86_64): gravity_1.1.tgz
Old sources: gravity archive

Reverse dependencies:

Reverse suggests: cepiigeodist


Please use the canonical form to link to this page.