margins: Marginal Effects for Model Objects

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

Version: 0.3.26
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: 2021-01-22
Author: Thomas J. Leeper ORCID iD [aut, cre], Jeffrey Arnold [ctb], Vincent Arel-Bundock [ctb], Jacob A. Long ORCID iD [ctb]
Maintainer: Thomas J. Leeper <thosjleeper 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.26.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): margins_0.3.26.tgz, r-oldrel (arm64): margins_0.3.26.tgz, r-release (x86_64): margins_0.3.26.tgz
Old sources: margins archive

Reverse dependencies:

Reverse imports: dotwhisker, mhurdle
Reverse suggests: brmsmargins, broom, broom.helpers, DeclareDesign, estimatr, ggeffects, interactions, konfound, marginaleffects, MarginalMediation, modelsummary


Please use the canonical form to link to this page.