Citing lavaan.mi in a publication

31 views
Skip to first unread message

Lilja Kristín Jónsdóttir

unread,
Sep 27, 2024, 6:42:04 AM9/27/24
to lavaan
I have just switched from using semTools to using lavaan.mi for my analysis, but am struggling to find citation info. I tried running the following code provided on GitHub; 

citHeader("The maintainer and *primary* contributors to this package are listed as authors, but this package is a collaborative work. The maintainer(s) cannot take credit for others' contributions. Whenever possible, please cite the paper(s) associated with the development of a particular function (e.g., permuteMeasEq or parcelAllocation) or tutorials about how to use them (e.g., probe2WayMC and related functions), which are listed in the References section of its associated help page.  Otherwise, please use the following citation for the package as a whole:")

year <- sub(".*(2[[:digit:]]{3})-.*", "\\1", settings.meta$Date, perl = TRUE)
vers <- paste("R package version", settings.meta$Version)
url <- "https://CRAN.R-project.org/package=semTools"

citEntry(entry = "Manual",
         title        = "\\texttt{semTools}: {U}seful tools for structural equation modeling",
         author       = c(person(given = c("Terrence","D."), family = "Jorgensen"),
                          person(given = "Sunthud", family = "Pornprasertmanit"),
                          person(given = c("Alexander","M."), family = "Schoemann"),
                          person(given = "Yves", family = "Rosseel")),
         year         = year,
         note         = vers,
         url          = url,
         
         textVersion  =
             paste("Jorgensen, T. D., Pornprasertmanit, S., Schoemann, A. M., & Rosseel, Y. (",
                   year, "). semTools: Useful tools for structural equation modeling. ",
                   vers, ". Retrieved from ", url, sep = "")
)


but got this error:  Error: object 'meta' not found.

Terrence Jorgensen

unread,
Sep 27, 2024, 6:44:47 AM9/27/24
to lavaan
I haven't set the CITATION file up yet, so it's just a copy of the one from semTools.  You can cite me as the author, using the title from the DESCRIPTION file.

Jorgensen, T. D. (2024). lavaan.mi: Fit Structural Equation Models to Multiply Imputed Data [Computer software, version 0.1-0.0029].  Available on GitHub: https://github.com/TDJorgensen/lavaan.mi/


Reply all
Reply to author
Forward
0 new messages