View source: R/report-extract.R
| model_citation | R Documentation |
Returns the published source(s) of a model, for the reference list of a paper that uses it.
model_citation(x, ...)
x |
A model object (for example |
... |
Currently ignored. |
The references come from the model constructor of the installed version of bmm, so a fit made with an older version gets the current, corrected references. When the installed version no longer has a constructor for the model, or its references are empty, the copy stored in the fit or model object is returned instead.
Some versions of a model cite the papers that introduced them instead,
for example sdt_rating(version = "dpsdt").
A custom m3() model is cited with the paper that introduced the M3
framework. The model structure itself is defined by the user, so its
source cannot be known to bmm. The returned vector then has the attribute
uncited, naming the part of the model you have to cite yourself.
bmm itself is cited separately, see citation("bmm").
A character vector with one reference in APA style per element,
or character(0) if no reference is available.
citation()
model_citation(sdm(resp_error = "y"))
model_citation(
sdt_rating(response = paste0("r", 1:4), stimulus = "old", version = "dpsdt")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.