citHeader("To cite package stochvol in publications use:")

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

citEntry(entry = "article",
         title = "Dealing with Stochastic Volatility in Time Series Using the R Package stochvol",
         author = personList(as.person("Gregor Kastner")),
         journal = "Journal of Statistical Software",
         year = "forthcoming",
         volume = "", 
         pages = "",
         url = "http://cran.r-project.org/web/packages/stochvol/vignettes/article.pdf",
         textVersion = "Gregor Kastner (forthcoming). Dealing with Stochastic Volatility in Time Series Using the R Package stochvol. Journal of Statistical Software. URL: http://cran.r-project.org/web/packages/stochvol/vignettes/article.pdf"
)

citEntry(header = "To refer to the current version of the package you could use:",
         entry = "manual",
         title = "{stochvol}: Efficient Bayesian Inference for Stochastic Volatility (SV) Models",
         author = personList(as.person("Gregor Kastner")),                              
         year = year,
         note = note,
         url = "http://cran.r-project.org/package=stochvol",
         textVersion =
         paste("Gregor Kastner",
   	       sprintf("(%s).", year),	 
               "stochvol: Efficient Bayesian inference for stochastic volatility (SV) models.",
	       paste(note, ".", sep = ""),
               "URL: http://cran.r-project.org/package=stochvol")
)

citEntry(header = "To refer to the sampling methodology used in stochvol please cite:",
         entry = "article",
         title = "Ancillarity-Sufficiency Interweaving Strategy ({ASIS}) for Boosting {MCMC} Estimation of Stochastic Volatility Models",
         author = personList(as.person("Gregor Kastner"),
                             as.person("Sylvia Fr\\\"{u}hwirth-Schnatter")),
         journal = "Computational Statistics \\& Data Analysis",
         year = "2014",
         volume = "76", 
         pages = "408--423",
         url = "http://dx.doi.org/10.1016/j.csda.2013.01.002",
         textVersion = "Gregor Kastner, Sylvia Frühwirth-Schnatter (2014). Ancillarity-sufficiency interweaving strategy (ASIS) for boosting MCMC estimation of stochastic volatility models. Computational Statistics & Data Analysis 76:408-423. URL: http://dx.doi.org/10.1016/j.csda.2013.01.002"
)

citFooter("BibTeX entries of the above can be obtained by", sQuote('toBibtex(citation("stochvol"))'))
