citHeader("To cite the 'MEDseq' package in publications, please use:")

citEntry(entry = "Article",
  author  = personList(person(given="Keefe", family="Murphy"),
                       person(given=c("Thomas", "Brendan"), family="Murphy"),
                       person(given="Raffaella", family="Piccarreta"),
                       person(given=c("Isobel", "Claire"), family="Gormley")),
  title   = "Clustering Longitudinal Life-Course Sequences Using Mixtures of Exponential-Distance Models",
  year    = "2021",
  journal = "Journal of the Royal Statistical Society: Series A (Statistics in Society)",
  volume  = "184",
  number  = "4",
  pages   = "1414--1451",
  url     = "https://rss.onlinelibrary.wiley.com/doi/abs/10.1111/rssa.12712",
  doi     = "10.1111/rssa.12712",

  textVersion  =
    paste0("Keefe Murphy, T. Brendan Murphy, Raffaella Piccarreta, and I. Claire Gormley (2021). ",
           "Clustering Longitudinal Life-Course Sequences Using Mixtures of Exponential-Distance Models. ",
           "Journal of the Royal Statistical Society: Series A (Statistics in Society), 184(4): 1414-1451. ",
           "URL: https://rss.onlinelibrary.wiley.com/doi/abs/10.1111/rssa.12712.")
)

year     <- sub(".*(2[[:digit:]]{3})-.*", "\\1", meta$Date)
vers     <- paste("package version", meta$Version)

citEntry(entry = "Manual",
  author  = personList(person(given="Keefe", family="Murphy"),
                       person(given=c("Thomas", "Brendan"), family="Murphy"),
                       person(given="Raffaella", family="Piccarreta"),
                       person(given=c("Isobel", "Claire"), family="Gormley")),
  title   = "\\texttt{\\textup{MEDseq}}: {M}ixtures of Exponential-Distance Models with Covariates",
  year    = year,
  note    = paste0("\\textsf{R} ", vers),
  url     = "https://cran.r-project.org/package=MEDseq",

  textVersion  =
    paste0("Keefe Murphy, T. Brendan Murphy, Raffaella Piccarreta, and I. Claire Gormley (", year, "). ",
           "MEDseq: Mixtures of Exponential-Distance Models with Covariates. ", "R ", vers,
           ". URL: https://cran.r-project.org/package=MEDseq.")
)