Learn R Programming

⚠️There's a newer version (1.1) of this package.Take me there.

gravity (version 0.9.8)

Estimation Methods for Gravity Models

Description

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

Copy Link

Version

Install

install.packages('gravity')

Monthly Downloads

530

Version

0.9.8

License

GPL-3

Maintainer

Mauricio S

Last Published

May 8th, 2019

Functions in gravity (0.9.8)

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)