citHeader("To cite package dng in publications use")

## Rcpp (>= 0.12.6) passes package metadata to citation().
if(!exists("meta") || is.null(meta)) meta <- packageDescription("dng")
year <- sub("-.*", "", meta$Date)
note <- sprintf("R package version %s", meta$Version)

citEntry(entry = "Manual",
         title = "{dng}: Split normal and Split-t distributions",
         author = personList(as.person("Feng Li"),
                             as.person("Jiayue Zeng")),
         year = year,
         note = note,
         url = "https://bitbucket.org/fli/dng",

         textVersion =
         paste("Feng Li, Jiayue Zeng",
   	       sprintf("(%s).", year),
               "dng: Split normal and Split-t distributions.",
	       paste(note, ".", sep = ""),
               "URL https://bitbucket.org/fli/dng")
)

citEntry(entry="Article",
         title = "Flexible modeling of conditional
distributions using smooth mixtures of asymmetric student t densities",
         author = personList(as.person("Feng Li"),
                             as.person(" Villani Mattias"),
                             as.person(" Kohn Robert")),

         series = "Lecture Notes in Statistics",
         Journal = "Journal of Statistical Planning and Inference",
         Year = "2010",
         Number = "12",
         Pages = "3638--3654",
         Volume = "140",
         textVersion = "Li, F., Villani, M., & Kohn, R. (2009). Flexible modeling of conditional distributions using smooth mixtures of asymmetric student t densities. Journal of Statistical Planning & Inference, 140(12), 3638-3654."
)
