citHeader(
  "To cite medfit in publications, cite the software. To cite the underlying",
  "methodology, cite the relevant references below."
)

## Software
bibentry(
  bibtype = "Manual",
  title   = "{medfit}: Infrastructure for Mediation Model Fitting and Extraction",
  author  = c(person("Davood", "Tofighi",
                     comment = c(ORCID = "0000-0001-8523-7776"))),
  year    = "2026",
  note    = sprintf("R package version %s", meta$Version),
  url     = "https://data-wise.github.io/medfit/"
)

## Methods: confidence limits for the indirect effect (distribution of the
## product and resampling) -- the basis for medfit's bootstrap inference.
bibentry(
  bibtype = "Article",
  title   = "Confidence Limits for the Indirect Effect: Distribution of the Product and Resampling Methods",
  author  = c(person("David P.", "MacKinnon"),
              person("Chondra M.", "Lockwood"),
              person("Jason", "Williams")),
  journal = "Multivariate Behavioral Research",
  year    = "2004",
  volume  = "39",
  number  = "1",
  pages   = "99--128",
  doi     = "10.1207/s15327906mbr3901_4"
)

## Methods: resampling strategies for indirect effects in multiple-mediator
## models -- the basis for medfit's parallel and serial mediation support.
bibentry(
  bibtype = "Article",
  title   = "Asymptotic and resampling strategies for assessing and comparing indirect effects in multiple mediator models",
  author  = c(person("Kristopher J.", "Preacher"),
              person("Andrew F.", "Hayes")),
  journal = "Behavior Research Methods",
  year    = "2008",
  volume  = "40",
  number  = "3",
  pages   = "879--891",
  doi     = "10.3758/brm.40.3.879"
)

## Methods: RMediation and confidence intervals for mediation (the ecosystem
## medfit underpins).
bibentry(
  bibtype = "Article",
  title   = "{RMediation}: An {R} package for mediation analysis confidence intervals",
  author  = c(person("Davood", "Tofighi"),
              person("David P.", "MacKinnon")),
  journal = "Behavior Research Methods",
  year    = "2011",
  volume  = "43",
  number  = "3",
  pages   = "692--700",
  doi     = "10.3758/s13428-011-0076-x"
)

## Methods: four-way decomposition of mediation and interaction -- the basis
## for medfit's treatment-by-mediator interaction (InteractionMediationData).
bibentry(
  bibtype = "Article",
  title   = "A Unification of Mediation and Interaction: A Four-Way Decomposition",
  author  = c(person("Tyler J.", "VanderWeele")),
  journal = "Epidemiology",
  year    = "2014",
  volume  = "25",
  number  = "5",
  pages   = "749--761",
  doi     = "10.1097/EDE.0000000000000121"
)
