-
Notifications
You must be signed in to change notification settings - Fork 58
Description
IF THE MODEL YOU WOULD LIKE TO SUPPORT IS NOT LISTED BELOW, PLEASE OPEN A NEW ISSUE.
It is often very easy to add support for new models. If you would like to help us do it (thanks!!!), please read this vignette on marginaleffects extensions: https://vincentarelbundock.github.io/marginaleffects/articles/extensions.html
marginaleffects only supports modeling packages released on CRAN. If you would like to add support for a non-CRAN package, your code can be hosted in the user-submitted (b
ut unsupported) code library in the vignette above.
If you cannot contribute code to support a new model, and if that model is not listed below, please open a new issue with a working example using a small publicly available dataset.
Seems possible
ordinal::clmm2: Supportordinal::clmmandordinal::clmm2#1003GLMMadaptive: Support model: GLMMadaptive #1411twopartm: Support for twopartm models #1494
Challenges
Existing issues (with some notes)
bife:bifeSupport Not Working Properly #949earth(MARS): Support earth mars #1186flexsurv: Support:flexsurv#320gamm4: Support gamm4 #947logitr: See code insandbox/and Support:logitr#516mrmm: Support mmrm #963 [DRAFT] adding support for the {mmrm} package #1000MuMIn: Feature Request: Support for model class "averaging" from MuMIn::model.avg() in R #1154panelr: Support:panelr#210stats::nls: Support:nls#326systemfit: Support:systemfit#836
predict problem
alpaca: Supportalpacapackage #786deming: Support:deming#1601aov: Support:aovandaovlist#1606bayesXcensRegcoxme: Support:coxme#645coxphw: Supporttimeregorcoxphwpackages #467coxrobustcplmendorse: Support:endorse#1144geeglmmglmnlivprobitMASS::ridgelmmgcv::gamm: Support:mgcv::gamm#187ordinal::clm2: no prediction for each levelordinal::clmm: no predict method at allpglmplm::pgmmrobust::glmRob: breaks withnewdatatimereg: Supporttimeregorcoxphwpackages #467geessbin: Support forgeessbin#1529
vcov problem
complmrobbfslnovcovmethod at alllqmm: breaks withnewdataSupport:lqmm#1072
Categorical / Multinomial DV
VGAM::vglm: not just multinomialVGAM::vgam
Not currently planned
Spatial regression
Spatial regression models typically rely on very different data structures, and are currently considered out of scope for marginaleffects
- Support for SSN2 models #1052
spaMM::HLfit:- Support for SSN2 models #1052 (comment)
- Support for Spatial Regression Models #1067
sdmTMB: Support: sdmTMB #1136
Multi-row data structure
Some multinomial models require dataset to be presented with one observation-choice combination per row. The whole marginaleffects infrastrcture is designed to create contrasts 1 row at a time, so we cannot support these.
mlogitMNPSupport:mnppackage #1382
No formula interface
glinternet: Support:glinternet#934
Very different object structure
metafor: Very different input data. Likely very difficult to support. Would need code submission from an expert contributor. Support:metafor(rma,rma.mv) #604lavaan: Vincent has no experience with this package. We could consider this, but it would require serious code contributions. Support:lavaan#499R-INLA: Very different and unlikely. Support:R-INLA#342Apollofor choice models. Seems extremely idiosyncratic, and does not appear to supply any of the standard methods such asvcov(),coef(), orpredict(). Supporting this is likely to be a major challenge. Vincent is unlikely to do this himself without significant help (or more likely a quasi-complete PR) from a contributor. https://cran.r-project.org/web/packages/apollo/index.htmlcmprsk::crr: Seems very different. Vincent will not implement this unless someone is willing to help.
Already supported via tidymodels or mlr3
glmnet: no formula interface and already supported throughtidymodelsandmlr3. Support:glmnet#923SuperLearner: Support:SuperLearner#834
Not on CRAN
rblimpSupport:rblimp#1621gamlss2: Support model:gamlss2#1412: checked on 2025-06-17bigmlogit: checked on 2022-06-02mixor: checked on 2022-03-10mnlogit: checked on 2023-01-11tobit1: checked on 2023-01-11ZBZIMM: Support: ZBZIMM #541
Supported by other packages
- Source:
emmeans
https://cran.r-project.org/web/packages/emmeans/vignettes/models.html - Source:
easystats - Source:
ggeffects- bamlss, cgam, cgamm, gamm, gamm4, MixMod, nlmer, survreg, sjstats::svyglm.nb, vgam.