citHeader("To cite BAMP in publications please use:")

if(!exists("meta") || is.null(meta)) meta <- packageDescription("bamp")
year <- sub("-.*", "", meta$Date) 
note <- sprintf("R package version %s", meta$Version) 


bibentry(bibtype = "Article",
title = "BAMP – Bayesian age-period-cohort modeling and prediction",
author = c(person("Volker","Schmid",email="volker.schmid@lmu.de"), person("Leonhard","Held")),
journal= "Journal of Statistical Software",
year = "2007",
volume = "21",
textVersion=
paste("Volker J. Schmid, Leonhard Held.",
"BAMP – Bayesian age-period-cohort modeling and prediction.",
"Journal of Statistical Software 21 (2007).",
"DOI 10.18637/jss.v021.i08")
)
bibentry(bibtype = "Manual",
 header = "To refer to the current version of the package you could use:",
 title = "{bamp}: Bayesian age-period-cohort modeling and prediction",
 author = c(person("Volker","Schmid",email="volker.schmid@lmu.de")),
 year = year,
 note = note,
 url = "https://volkerschmid.github.io/bamp/",
 textVersion =
   paste("Volker J. Schmid",
         sprintf("(%s).", year),
         "bamp: Bayesian age-period-cohort modeling and prediction.",
         paste(note, ".", sep = ""),
         "https://volkerschmid.github.io/bamp/")
)