vincentarelbundock / marginaleffects

R package to compute and plot predictions, slopes, marginal means, and comparisons (contrasts, risk ratios, odds, etc.) for over 100 classes of statistical and ML models. Conduct linear and non-linear hypothesis tests, or equivalence tests. Calculate uncertainty estimates using the delta method, bootstrapping, or simulation-based inference
https://marginaleffects.com
Other
471 stars 47 forks source link

Citation for marginal effects package #1167

Closed friendly closed 4 months ago

friendly commented 4 months ago

I want to cite the marginaleffects package in my book, but citation() gives just:

@Article{marginaleffectsForthcoming,
  title = {How to Interpret Statistical Models Using {marginaleffects} in {R} and {Python}},
  author = {Vincent Arel-Bundock and Noah Greifer and Andrew Heiss},
  year = {Forthcoming},
  journal = {Journal of Statistical Software},
}

which is not useful for my purpose. What I want is the standard form, which would be

@Manual{R-marginaleffects,
  title = {{marginaleffects}: Predictions, Comparisons, Slopes, Marginal Means, and Hypothesis Tests},
  author = {Vincent Arel-Bundock and Noah Greifer},
  year = {2024},
  note = {R package version 0.21.0},
  url = {https://marginaleffects.com/},
}

To see how to do this better (including both) see the CITATION file for my heplots package, https://raw.githubusercontent.com/friendly/heplots/master/inst/CITATION

This generates:

> citation("heplots")
To cite package 'heplots' in publications use:

  Michael Friendly and John Fox and Georges Monette (2024). heplots: Visualizing Tests in Multivariate Linear
  Models. R package version 1.7.0. URL https://CRAN.R-project.org/package=heplots

To refer to the theory on which this package is based, also cite:

  Friendly, M. (2007).  HE plots for Multivariate General Linear Models.  Journal of Computational and
  Graphical Statistics, 2007, 16, 421-444

For use with repeated measures designs also cite:

  Michael Friendly (2010). HE Plots for Repeated Measures Designs. Journal of Statistical Software, 37(4),
  1-40. DOI: 10.18637/jss.v037.i04

BibTeX entries for LaTeX users: use ‘toBibtex(citation("heplots"))’

To see these entries in BibTeX format, use 'print(<citation>, bibtex=TRUE)', 'toBibtex(.)', or set
'options(citation.bibtex.max=999)'.
vincentarelbundock commented 4 months ago

Thanks for considering a citation!

Out of curiosity, why do you prefer the CRAN form?

The reason I only put the JSS cite is that I would prefer that everyone who uses the package cites the exact same source, rather than slightly different version numbers, etc. That makes it easier to report aggregate "impact" to promotion committees, etc.

On Google Scholar it's possible to consolidate citations manually, but it's annoying and imperfect.