Learn R Programming

gravity (version 1.1)

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

501

Version

1.1

License

Apache License (>= 2)

Maintainer

Last Published

May 2nd, 2023

Functions in gravity (1.1)

nls

Non-linear Least Squares (NLS)
nbpml

Negative Binomial Pseudo Maximum Likelihood (NBPML)
tetrads

Tetrads
gravity_zeros

Gravity dataset without zero trade flows
log_distance

Apply logarithm to distance column
ols

Ordinary Least Squares (OLS)
ppml

Poisson Pseudo Maximum Likelihood (PPML)
sils

Structural Iterated Least Squares (SILS)
hm_summary

Head and Mayer consistent summary statistics
tobit

Left-censored Tobit model with known threshold
et_tobit

Eaton1995;textualgravity threshold Tobit model (ET Tobit)
bvu

Bonus vetus OLS (BVU)
ek_tobit

Eaton2001;textualgravity Tobit model (EK Tobit)
ddm

Double Demeaning (DDM)
discard_unusable

Discard non-positive and/or non-finite observations in datasets
fixed_effects

Fixed Effects
gravity_no_zeros

Gravity dataset without zero trade flows
gpml

Gamma Pseudo Maximum Likelihood (GPML)
bvw

Bonus vetus OLS (BVW)
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.