marginaleffects: Marginal Effects, Marginal Means, Predictions, and Contrasts

Compute and plot adjusted predictions, contrasts, marginal effects, and marginal means for over 70 classes of statistical models in R. Conduct linear and non-linear hypothesis tests using the delta method.

Version: 0.8.1
Depends: R (≥ 3.5.0)
Imports: checkmate, data.table, generics, insight (≥ 0.18.5), methods
Suggests: AER, afex, aod, bench, betareg, BH, bife, biglm, brglm2, brms, brmsmargins, broom, collapse, conflicted, covr, crch, datawizard, dplyr, emmeans, estimatr, fixest (≥ 0.10.1), future, future.apply, gam, gamlss, gamlss.dist, geepack, ggbeeswarm, ggdag, ggdist, ggplot2, ggrepel, glmmTMB, glmx, haven, here, itsadug, ivreg, kableExtra, knitr, lme4, lmerTest, magrittr, margins, MASS, MatchIt, mclogit, mgcv, mhurdle, mice, mlogit, modelbased, modelsummary, nlme, nnet, ordinal, patchwork, pkgdown, plm, polspline, posterior, prediction, pscl, quantreg, RcppEigen, remotes, rlang, rmarkdown, rms, robust, robustbase, robustlmm, rstanarm, rstantools, sampleSelection, sandwich, scam, speedglm, spelling, survey, survival, systemfonts, tidymodels, tidyr, tidyverse, tinytest, titanic, truncreg, tsModel, vdiffr, withr
Published: 2022-11-23
Author: Vincent Arel-Bundock ORCID iD [aut, cre, cph], Marcio Augusto Diniz ORCID iD [ctb], Noah Greifer ORCID iD [ctb]
Maintainer: Vincent Arel-Bundock <vincent.arel-bundock at>
License: GPL (≥ 3)
Copyright: inst/COPYRIGHTS
marginaleffects copyright details
NeedsCompilation: no
Language: en-US
Materials: README NEWS
In views: CausalInference, Econometrics, MixedModels
CRAN checks: marginaleffects results


Reference manual: marginaleffects.pdf
Vignettes: Vignettes and Documentation


Package source: marginaleffects_0.8.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): marginaleffects_0.8.1.tgz, r-oldrel (arm64): marginaleffects_0.8.1.tgz, r-release (x86_64): marginaleffects_0.8.1.tgz, r-oldrel (x86_64): marginaleffects_0.8.1.tgz
Old sources: marginaleffects archive

Reverse dependencies:

Reverse suggests: insight, MatchIt, modelbased, modelsummary, ordbetareg, parameters


Please use the canonical form to link to this page.