medfit: Infrastructure for Mediation Model Fitting and Extraction
- 18 June 2026
- dataset
- Published by The R Foundation
Abstract
Provides S7-based infrastructure for fitting mediation models, extracting path coefficients, and performing bootstrap inference. Designed as a foundation package for the mediation analysis ecosystem, supporting 'probmed', 'RMediation', and 'medrobust' packages. Implements unified interfaces for model fitting across different engines (currently generalized linear models, with future support for mixed models and Bayesian methods), standardized extraction of mediation paths from various model types, and robust bootstrap inference methods. Mediation inference methods are described in MacKinnon, Lockwood and Williams (2004) and Tofighi and MacKinnon (2011) .Keywords
This publication has 5 references indexed in Scilit:
- medfit: Infrastructure for Mediation Model Fitting and Extraction2026
- A Unification of Mediation and InteractionEpidemiology, 2014
- RMediation: An R package for mediation analysis confidence intervalsBehavior Research Methods, 2011
- Asymptotic and resampling strategies for assessing and comparing indirect effects in multiple mediator modelsBehavior Research Methods, 2008
- Confidence Limits for the Indirect Effect: Distribution of the Product and Resampling MethodsMultivariate Behavioral Research, 2004