Package: medfit Type: Package Title: Infrastructure for Mediation Model Fitting and Extraction Version: 0.16.0 Date: 2026-10-30 Authors@R: person("Davood", "Tofighi", email = "dtofighi@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0001-8523-7776")) Description: 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 (generalized linear models, linear mixed models for cluster-randomized designs, and a maximum-likelihood structural equation engine; Bayesian methods are planned), standardized extraction of mediation paths from various model types, and robust bootstrap inference methods. Mediation methods are described in MacKinnon, Lockwood and Williams (2004) , Preacher and Hayes (2008) , Tofighi and MacKinnon (2011) , and VanderWeele (2014) . License: GPL (>= 3) URL: https://data-wise.github.io/medfit/, https://github.com/data-wise/medfit BugReports: https://github.com/data-wise/medfit/issues Depends: R (>= 4.1.0) Imports: S7 (>= 0.1.0), stats, methods, checkmate, generics, lifecycle, MASS, nloptr (>= 1.0.4), rlang Suggests: knitr, lavaan (>= 0.6-0), lme4, numDeriv, OpenMx, pbkrtest, regmedint, sandwich, testthat (>= 3.0.0), tibble, withr, yaml Encoding: UTF-8 Language: en-US Roxygen: list(markdown = TRUE, roclets = c("rd", "collate", "namespace")) Config/testthat/edition: 3 Config/Needs/website: knitr, rmarkdown, quarto Config/roxygen2/version: 8.1.0 LazyData: true Config/pak/sysreqs: cmake Repository: https://data-wise.r-universe.dev Date/Publication: 2026-10-31 06:31:28 UTC RemoteUrl: https://github.com/Data-Wise/medfit RemoteRef: HEAD RemoteSha: c37c7ee8b1cd1e47d0d61f3d55b0a5fce335c7cc NeedsCompilation: no Packaged: 2026-10-31 07:21:51 UTC; root Author: Davood Tofighi [aut, cre, cph] (ORCID: ) Maintainer: Davood Tofighi