gravity v0.9.8


Monthly downloads



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.

Functions in gravity

Name Description
tetrads Tetrads
gravity_zeros Gravity dataset without zero trade flows
hm_summary Head and Mayer consistent summary statistics
log_distance Apply logarithm to distance column
nbpml Negative Binomial Pseudo Maximum Likelihood (NBPML)
ppml Poisson Pseudo Maximum Likelihood (PPML)
sils Structural Iterated Least Squares (SILS)
gpml Gamma Pseudo Maximum Likelihood (GPML)
nls Non-linear Least Squares (NLS)
ols Ordinary Least Squares (OLS)
tobit Left-censored Tobit model with known threshold
fixed_effects Fixed Effects
bvu Bonus vetus OLS (BVU)
bvw Bonus vetus OLS (BVW)
ddm Double Demeaning (DDM)
discard_unusable Discard non-positive and/or non-finite observations in datasets
gravity-exports gravity exported operators and S3 methods The following functions are imported and then re-exported from the gravity package to avoid listing Depends of gravity.
ek_tobit Eaton2001;textualgravity Tobit model (EK Tobit)
gravity_no_zeros Gravity dataset without zero trade flows
et_tobit Eaton1995;textualgravity threshold Tobit model (ET Tobit)
No Results!

Vignettes of gravity

No Results!

Last month downloads


Type Package
RdMacros Rdpack
License GPL-3
Encoding UTF-8
LazyData true
RoxygenNote 6.1.1
VignetteBuilder knitr
NeedsCompilation no
Packaged 2019-05-08 21:14:15 UTC; pacha
Repository CRAN
Date/Publication 2019-05-08 21:40:04 UTC

Include our badge in your README