Skip to content

margins

0.3.28Package record

Marginal Effects for Model Objects

2packages dependsuggested by 8
225.7Kdownloads / year
63.8%test coverage
13/13flavors OK

Overview

About

An R port of the margins command from 'Stata', which can be used to calculate marginal (or partial) effects from model objects.

Changes in 0.3.28
  • CRAN issues only (documentation, vignette support)

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-21
  • ERROR12 OK, 1 ERROR2026-07-16
  • OK13 OK2026-07-15
Show 2 earlier changesHide 2 earlier changes
  • ERROR12 OK, 1 ERROR2026-07-10
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.3.28
READMEYes · 1,392 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 0.3.28Citation fileYes · computed when R runs it
Help pages
7 (1 internal)includes a package overview page
Examples that run
50%3 run in a plain check · 3 never run
Exported functions with examples
80%
Documented parameters
79%
Return-value docs
80%
Help pages citing references
29%

Downloads

225.7K
CRAN downloads in the past year
Rank #1,021 · ~618/day · ~18.8K/mo
Daily download trend is not available in this view yet.
12.7K30 days
38.5K90 days
225.7K1 year
Compare downloads with other packages →
Also on1.8K r2u10 autocran2.2K conda_forge149 c2d4u

Repository

3Stars
1Forks
3Open issues
1Open PRs
0Releases
388Commits
10Commit identities
388 commits · Last activity 2024-07-31 · 0% stars, 30d
Responsiveness
not measured

Stars over time

2024-08-30 · 22026-07-07 · 3
PracticesBeta

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

Checks run against github.com/bbolker/margins on 2026-10-11.

Continuous integration (2)
Travis CI (config file)AppVeyor
Governance and community (3)
Contributing guideIssue templatesPR template
Docs source (1)
README.Rmd
Reproducibility and dev environment (1)
Makefile
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing margins adds 2 packages (1 with compiled code, 5.8 MB of source tarballs). Heaviest: data.table 5.7 MB, prediction 74 KB.

Depends (0)
none
Imports (7)
utilsstatspredictiondata.tablegraphicsgrDevicesMASS
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
4indirect
Imports 2
Suggested by 8
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (5)
Contributor, Maintainer since 0.3.27 (2024) · added in 0.3.27
Contributor · added in 0.3.20
Contributor
Contributor · added in 0.3.26

Previously maintained by Thomas J. Leeper (0.3.0 to 0.3.26.1).

Releases (7)

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
  • 0.3.28Latest
    record
    2024-07-31 · current release · diff ↗
  • unarchivedReturned to CRAN
    2024-06-13
  • 0.3.27
    record
    2024-06-13 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • archivedRemoved from CRAN
    2024-04-12
    requires archived package 'prediction'
  • 0.3.26.1
    record
    2024-03-24 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • unarchivedReturned to CRAN
    2021-01-22
  • 0.3.26
    record
    2021-01-22 · diff ↗ ·
    added 1 export
    margins_summary
  • archivedRemoved from CRAN
    2021-01-21
    check problems were not corrected in time
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
Show 6 earlier eventsHide 6 earlier events
  • 0.3.23
    record
    2018-05-22 · diff ↗
  • 0.3.20
    record
    2018-04-24 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 0.3.0
    record
    2017-03-22
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2017-03-22
Total releases
7 / 9 yrs
License
MIT + file LICENSE OSI
Download size
1.9 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("margins")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

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 margins version 0.3.28 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, 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