Skip to content

gravity

1.1Package record

Estimation Methods for Gravity Models

0packages dependsuggested by 1
9.9Kdownloads / year
85.3%test coverage
13/13flavors OK

Overview

About

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

Changes in 1.1
  • Updated maintainer's email
  • Avoids 1:NROW() and uses seq_len() instead

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1
README· In the repository, left out of the releaseVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 1.1Citation fileNoWebsiteYes · pkgdown
Help pages
20 (1 internal)
Examples that run
100%19 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
80% with a bibliography file

Downloads

9.9K
CRAN downloads in the past year
Rank #5,182 · ~27/day · ~828/mo
Daily download trend is not available in this view yet.
51230 days
1.6K90 days
9.9K1 year
Compare downloads with other packages →
Also on94 r2u7 autocran89 c2d4u

Repository

38Stars
14Forks
4Open issues
0Open PRs
0Releases
164Commits
10Commit identities
rinternational-tradegravitylmglmtobitddmmaximum-likelihood
License file reads as Apache-2.0 · 164 commits · Last activity 2024-11-21 · +2.7% stars, 30d · Default branch at 1.2, ahead of CRAN 1.1 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
0
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-07-16 · 362026-10-22 · 38
PracticesBeta

11 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/pachadotdev/gravity on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Governance and community (2)
Funding

Funding links: buymeacoffee.com

The repository owner accepts GitHub Sponsors

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2024-11-21

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
CRAN release process (1)
CRAN-SUBMISSION
Research and citation (1)
codemeta.json
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing gravity adds 37 packages (20 with compiled code, 28 MB of source tarballs). Heaviest: stringi 11 MB, Rcpp 1.8 MB, collapse 1.4 MB.

Depends (1)
R >= 3.4.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (8)
Author, Maintainer since 0.8.5 (2018), Copyright holder · added in 0.8.5
Author, Copyright holder
Author, Copyright holder · added in 0.8.5
Author, Copyright holder
Contributor · added in 0.9.7
adapted parts of the code to use dplyr 0.8.0
Contributor · added in 0.9.7
simplified parts of the code
Contributor · added in 1.0
improved the double demeaning function
Reviewer · added in 0.9.8
sent us different suggestions and bug reports

Previously maintained by Anna-Lena Woelwer (0.3 to 0.6).

Listed in earlier versions (1)
Martin Bresslein
no longer listed · 0.3 to 0.5
Releases (10)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • unarchivedReturned to CRAN
    2023-05-02
  • 1.1Latest
    record
    2023-05-02 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • archivedRemoved from CRAN
    2023-04-02
    email to the maintainer is undeliverable
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0
    record
    2022-01-05 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • unarchivedReturned to CRAN
    2020-07-27
  • 0.9.9
    record
    2020-07-27 · diff ↗
  • archivedRemoved from CRAN
    2020-07-26
    check problems were not corrected in time
  • R
    R 4.0.0 released · 2020-04-24
  • 0.9.8
    record
    2019-05-08 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
Show 9 earlier eventsHide 9 earlier events
  • 0.9.7
    record
    2019-04-22 · diff ↗ ·
    added 2 exports
    discard_unusable, log_distance
  • 0.9.0
    record
    2018-11-22 · diff ↗ ·
    added 1 export
    hm_summary
  • 0.8.5
    record
    2018-09-20 · diff ↗ ·
    removed 14 exports
    BVU, BVW, DDM, EK_Tobit, ET_Tobit, Fixed_Effects, GPML, NBPML, NLS, OLS, PPML, SILS, Tetrads, Tobit
    added 14 exports
    bvu, bvw, ddm, ek_tobit, et_tobit, fixed_effects, gpml, nbpml, nls, ols, ppml, sils, tetrads, tobit
  • R
    R 3.5.0 released · 2018-04-23
  • 0.6
    record
    2017-12-14 · diff ↗ ·
    added 3 exports
    EK_Tobit, ET_Tobit, Tobit
  • 0.5
    record
    2017-11-14 · diff ↗ ·
    added 3 exports
    GPML, NBPML, NLS
  • R
    R 3.4.0 released · 2017-04-21
  • 0.3
    record
    2017-01-31
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2017-01-31
Total releases
10 / 9 yrs
License
Apache License (>= 2) · relicensed from GPL-3 in 1.0
Minimum R
≥ 3.4.0
Bundled data
477 KB / 2 files
Download size
638 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("gravity")
Vargas, M., Burgard, J. P., Doytchinova, H., Francois, R., Henry, L., Johnson, S., Kunst, J., & Woelwer, A. (2023). gravity: Estimation Methods for Gravity Models (Version 1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.gravity

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for gravity version 1.1 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy