margins: Marginal Effects for Model Objects

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

Version: 0.3.27
Imports: utils, stats, prediction (≥ 0.3.6), data.table, graphics, grDevices, MASS
Suggests: methods, knitr, rmarkdown, testthat, ggplot2, gapminder, sandwich, stargazer, lme4
Enhances: AER, betareg, nnet, ordinal, survey
Published: 2024-06-13
DOI: 10.32614/CRAN.package.margins
Author: Thomas J. Leeper ORCID iD [aut], Jeffrey Arnold [ctb], Vincent Arel-Bundock [ctb], Jacob A. Long ORCID iD [ctb], Ben Bolker ORCID iD [ctb, cre]
Maintainer: Ben Bolker <bolker at>
License: MIT + file LICENSE
NeedsCompilation: no
Citation: margins citation info
Materials: README NEWS
In views: CausalInference, Econometrics, MixedModels
CRAN checks: margins results


Reference manual: margins.pdf
Vignettes: Introduction to 'margins'
Comparison with Stata's 'margins' command
Technical Implementation Details


Package source: margins_0.3.27.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): margins_0.3.27.tgz, r-oldrel (arm64): margins_0.3.27.tgz, r-release (x86_64): margins_0.3.27.tgz, r-oldrel (x86_64): margins_0.3.27.tgz
Old sources: margins archive

Reverse dependencies:

Reverse imports: mhurdle
Reverse suggests: beeca, brmsmargins, broom.helpers, estimatr, interactions, MarginalMediation


Please use the canonical form to link to this page.