citHeader("To cite pscl/ideal in publications use")

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

citEntry(entry="Manual",
         title = "{pscl}: Classes and Methods for {R} Developed in the Political Science Computational Laboratory",
         author = person("Simon", "Jackman", email = "simon.jackman@sydney.edu.au"),
         organization = "United States Studies Centre, University of Sydney",
         address = "Sydney, New South Wales, Australia",
         year = year,
         note = note,
         url = "https://github.com/atahk/pscl/",

         textVersion =
         paste("Simon Jackman",
   	       sprintf("(%s).", year),	 
               "pscl: Classes and Methods for R Developed in the Political Science Computational Laboratory.",
               "United States Studies Centre, University of Sydney.",
               "Sydney, New South Wales, Australia.",
	       paste(note, ".", sep = ""),
               "URL https://github.com/atahk/pscl/")
         )

citEntry(entry="Article",
         title = "Regression Models for Count Data in {R}",
         author = personList(as.person("Achim Zeileis"), 
	                     as.person("Christian Kleiber"),
                             as.person("Simon Jackman")),
         journal      = "Journal of Statistical Software",
         year         = "2008",
         volume       = "27",
         number       = "8",
         url          = "http://www.jstatsoft.org/v27/i08/",
         
         textVersion = 
         paste("Achim Zeileis, Christian Kleiber, Simon Jackman (2008).", 
               "Regression Models for Count Data in R.",
               "Journal of Statistical Software 27(8).",
               "URL http://www.jstatsoft.org/v27/i08/."),
	 header = "If count data regression models zeroinfl()/hurdle() are used, please cite:"
)
