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, Stanford University",
         author = person("Simon", "Jackman", email = "jackman@stanford.edu"),
         organization = "Department of Political Science, Stanford University",
         address = "Stanford, California",
         year = year,
         note = note,
         url = "http://pscl.stanford.edu/",

         textVersion =
         paste("Simon Jackman",
   	       sprintf("(%s).", year),	 
               "pscl: Classes and Methods for R Developed in the Political Science Computational Laboratory, Stanford University.",
               "Department of Political Science, Stanford University.",
               "Stanford, California.",
	       paste(note, ".", sep = ""),
               "URL http://pscl.stanford.edu/")
         )

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:"
)
