Package: medfit 0.2.1

medfit: Infrastructure for Mediation Model Fitting and Extraction
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) <doi:10.1207/s15327906mbr3901_4> and Tofighi and MacKinnon (2011) <doi:10.3758/s13428-011-0076-x>.
Authors:
medfit_0.2.1.tar.gz
medfit_0.2.1.tar.gz(r-4.7-any)medfit_0.2.1.tar.gz(r-4.6-any)
medfit_0.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
medfit/json (API)
| # Install 'medfit' in R: |
| install.packages('medfit', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/data-wise/medfit/issues
Pkgdown/docs site:https://data-wise.github.io
Last updated from:9b98484d0f. Checks:4 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 120 | ||
| source / vignettes | OK | 164 | ||
| linux-release-x86_64 | OK | 135 | ||
| wasm-release | OK | 106 |
Exports:bootstrap_mediationBootstrapResultextract_mediationfit_mediationmedMediationDatandeniepathspmquickSerialMediationDatate
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Perform Bootstrap Inference for Mediation Statistics | bootstrap_mediation |
| BootstrapResult S7 Class | BootstrapResult |
| Extract Mediation Structure from Fitted Models | extract_mediation |
| Fit Mediation Models | fit_mediation |
| Simple Mediation Analysis | med |
| MediationData S7 Class | MediationData |
| Extract Natural Direct Effect (NDE) | nde |
| Extract Natural Indirect Effect (NIE) | nie |
| Extract All Path Coefficients | paths |
| Extract Proportion Mediated (PM) | pm |
| Print Method for mediation_effect | print.mediation_effect |
| Print Summary for BootstrapResult | print.summary.BootstrapResult |
| Print Summary for MediationData | print.summary.MediationData |
| Print Summary for SerialMediationData | print.summary.SerialMediationData |
| Quick Summary of Mediation Results | quick |
| SerialMediationData S7 Class | SerialMediationData |
| Extract Total Effect (TE) | te |
