citHeader("To cite the R package 'dlnm' in publications use:")

if(!exists("meta") || is.null(meta)) meta <- packageDescription("dlnm")
year <- sub(".*(2[[:digit:]]{3})-.*", "\\1", meta$Date)
vers <- paste("R package version", meta$Version)

citEntry(entry="Manual",
	title = "dlnm: Distributed Lag Non-linear Models.",
	author = personList(as.person("Gasparrini, A"),as.person("Armstrong, B")),
	year = year,
	note = vers,
	textVersion =
	paste("Antonio Gasparrini and Ben Armstrong. dlnm: Distributed Lag Non-linear Models. ",year,", ",vers, ".", sep=""))

citEntry(
	entry="Article",
 	author = personList(as.person("Gasparrini, A"),as.person("Armstrong, B"),as.person("Kenward, MG")),
	 title= "Distributed lag non-linear models",
 	journal="Statistics in Medicine",
	volume= "In Press",
	number="",
	pages="",
	year="2010",
	textVersion="Gasparrini A., Armstrong, B.,Kenward MG. Distributed lag non-linear models. Statistics in Medicine. 2010, In Press."
)

citEntry(
	entry="Article",
	author = personList(as.person("Armstrong, B")),
	title= "Models for the relationship between ambient temperature and daily mortality",
	journal="Epidemiology",
	volume= "17",
	number="6",
	pages="624-631",
	year="2006",
	textVersion="Armstrong, B. Models for the relationship between ambient temperature and daily
	mortality. Epidemiology. 2010, 17(6):624-631."
)

citFooter("A BibTeX entry for LaTeX users is returned by: toBibtex(citation('dlnm'))")
