# -------------------------------------------- # CITATION file created with {cffr} R package # See also: https://docs.ropensci.org/cffr/ # -------------------------------------------- cff-version: 1.2.0 message: 'To cite package "medfit" in publications use:' type: software license: GPL-3.0-or-later title: 'medfit: Infrastructure for Mediation Model Fitting and Extraction' version: 0.3.1 identifiers: - type: doi value: 10.32614/CRAN.package.medfit 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 methods are described in MacKinnon, Lockwood and Williams (2004) , Preacher and Hayes (2008) , Tofighi and MacKinnon (2011) , and VanderWeele (2014) . authors: - family-names: Tofighi given-names: Davood email: dtofighi@gmail.com orcid: https://orcid.org/0000-0001-8523-7776 preferred-citation: type: manual title: 'medfit: Infrastructure for Mediation Model Fitting and Extraction' authors: - family-names: Tofighi given-names: Davood orcid: https://orcid.org/0000-0001-8523-7776 email: dtofighi@gmail.com year: '2026' notes: R package version 0.3.1 url: https://data-wise.github.io/medfit/ repository: https://data-wise.r-universe.dev repository-code: https://github.com/data-wise/medfit commit: 84cf62fc8aa6d1a5d4dab904b3bf4f44d662c563 url: https://data-wise.github.io/medfit/ date-released: '2026-06-11' contact: - family-names: Tofighi given-names: Davood email: dtofighi@gmail.com orcid: https://orcid.org/0000-0001-8523-7776 references: - type: article title: 'Confidence Limits for the Indirect Effect: Distribution of the Product and Resampling Methods' authors: - family-names: MacKinnon given-names: David P. - family-names: Lockwood given-names: Chondra M. - family-names: Williams given-names: Jason journal: Multivariate Behavioral Research year: '2004' volume: '39' issue: '1' doi: 10.1207/s15327906mbr3901_4 start: '99' end: '128' - type: article title: Asymptotic and resampling strategies for assessing and comparing indirect effects in multiple mediator models authors: - family-names: Preacher given-names: Kristopher J. - family-names: Hayes given-names: Andrew F. journal: Behavior Research Methods year: '2008' volume: '40' issue: '3' doi: 10.3758/brm.40.3.879 start: '879' end: '891' - type: article title: 'RMediation: An R package for mediation analysis confidence intervals' authors: - family-names: Tofighi given-names: Davood - family-names: MacKinnon given-names: David P. journal: Behavior Research Methods year: '2011' volume: '43' issue: '3' doi: 10.3758/s13428-011-0076-x start: '692' end: '700' - type: article title: 'A Unification of Mediation and Interaction: A Four-Way Decomposition' authors: - family-names: VanderWeele given-names: Tyler J. journal: Epidemiology year: '2014' volume: '25' issue: '5' doi: 10.1097/EDE.0000000000000121 start: '749' end: '761'