Marginal Effects for Model Objects
Overview
An R port of the margins command from 'Stata', which can be used to calculate marginal (or partial) effects from model objects.
- CRAN issues only (documentation, vignette support)
From NEWS.md in the release
Install
Health
- 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
Documentation
- 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
Repository
Stars over time
Forks over time
Issues over time
PRs over time
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.
Dependencies
Installing margins adds 2 packages (1 with compiled code, 5.8 MB of source tarballs). Heaviest: data.table 5.7 MB, prediction 74 KB.
Code & Tests
People & History
Previously maintained by Thomas J. Leeper (0.3.0 to 0.3.26.1).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.3.28Latest
- unarchivedReturned to CRAN2024-06-13
- 0.3.272024-06-13 · diff ↗
- RR 4.4.0 released · 2024-04-24
- archivedRemoved from CRAN2024-04-12requires archived package 'prediction'
- 0.3.26.12024-03-24 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- unarchivedReturned to CRAN2021-01-22
- 0.3.26
- archivedRemoved from CRAN2021-01-21check problems were not corrected in time
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
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.
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.