marginaleffects: Predictions, Comparisons, Slopes, Marginal Means, and Hypothesis Tests

Compute and plot predictions, slopes, marginal means, and comparisons (contrasts, risk ratios, odds, etc.) for over 100 classes of statistical and machine learning models in R. Conduct linear and non-linear hypothesis tests, or equivalence tests. Calculate uncertainty estimates using the delta method, bootstrapping, or simulation-based inference.

Version: 0.20.1
Depends: R (≥ 3.6.0)
Imports: checkmate, data.table, generics, insight (≥ 0.19.7), methods, rlang, utils, Rcpp (≥ 1.0.0)
LinkingTo: Rcpp, RcppEigen
Suggests: AER, Amelia, afex, aod, bench, betareg, BH, bife, biglm, blme, boot, brglm2, brms, brmsmargins, broom, car, carData, causaldata, clarify, cjoint, collapse, conflicted, countrycode, covr, crch, DALEXtra, DCchoice, dbarts, distributional, dfidx, dplyr, emmeans, equivalence, estimatr, fixest, flexsurv, fmeffects, fontquiver, future, future.apply, fwb, gam, gamlss, gamlss.dist, geepack, ggdist, ggokabeito, ggplot2, ggrepel, glmmTMB, glmx, haven, here, itsadug, ivreg, kableExtra, lme4, lmerTest, logistf, magrittr, MatchIt, MASS, mclogit, MCMCglmm, missRanger, mgcv, mice, miceadds, mlogit, mlr3verse, modelbased, modelsummary, nlme, nnet, numDeriv, optmatch, ordinal, parameters, parsnip, partykit, patchwork, pkgdown, phylolm, plm, polspline, poorman, posterior, pscl, purrr, quantreg, Rchoice, REndo, rcmdcheck, remotes, rmarkdown, rms, robust, robustbase, robustlmm, rsample, rstanarm, rstantools, rsvg, sampleSelection, sandwich, scam, spelling, speedglm, survey, survival, svglite, systemfonts, tibble, tictoc, tidymodels, tidyr, tidyverse, tinysnapshot, tinytable (≥ 0.2.0), tinytest, titanic, truncreg, tsModel, withr, workflows, yaml, xgboost, testthat (≥ 3.0.0), altdoc
Enhances: knitr
Published: 2024-05-08
DOI: 10.32614/CRAN.package.marginaleffects
Author: Vincent Arel-Bundock ORCID iD [aut, cre, cph], Noah Greifer ORCID iD [ctb], Etienne Bacher ORCID iD [ctb]
Maintainer: Vincent Arel-Bundock <vincent.arel-bundock at>
License: GPL (≥ 3)
Copyright: inst/COPYRIGHTS
marginaleffects copyright details
NeedsCompilation: yes
Language: en-US
Materials: README NEWS
In views: CausalInference, Econometrics, MixedModels
CRAN checks: marginaleffects results


Reference manual: marginaleffects.pdf


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

Reverse dependencies:

Reverse depends: mvgam
Reverse imports: bsitar, clarify, etwfe, ggfixest, healthequal
Reverse suggests: broom.helpers, catregs, DeclareDesign, ggeffects, insight, lmw, MatchIt, modelbased, modelsummary, ordbetareg, parameters, tinytable, WeightIt


Please use the canonical form to link to this page.