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)

bibentry(bibtype="Manual",
         title = "{pscl}: Classes and Methods for {R} Developed in the Political Science Computational Laboratory",
         author = person(given="Simon", family="Jackman", role = "aut", email = "simon.jackman@sydney.edu.au"),
         organization = "University of Sydney",
         address = "Sydney, 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.",
          "Sydney, Australia.",
          paste(note, ".", sep = ""),
          "URL https://github.com/atahk/pscl/")
         )

bibentry(bibtype="Article",
         title = "Regression Models for Count Data in {R}",
         author = c(as.person("Achim Zeileis"), 
                    as.person("Christian Kleiber"),
                    as.person("Simon Jackman")
                    ),
         journal      = "Journal of Statistical Software",
         year         = "2008",
         volume       = "27",
         number       = "8",
         url          = "https://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:"
)
