# -------------------------------------------- # CITATION file created with {cffr} R package # See also: https://docs.ropensci.org/cffr/ # -------------------------------------------- cff-version: 1.2.0 message: 'To cite package "stackr" in publications use:' type: software license: MIT title: 'stackr: Create Mixture Models From Predictive Samples' version: 0.1.0 doi: 10.32614/CRAN.package.stackr abstract: The `stackr` package provides an easy way to combine predictions from individual time series or panel data models to an ensemble. `stackr` stacks (Yuling Yao, Aki Vehtari, Daniel Simpson, and Andrew Gelman (2018) ) Models according to the Continuous Ranked Probability Score (CRPS) (Tilmann Gneiting & Adrian E Raftery (2007) ) over k-step ahead predictions. It is therefore especially suited for timeseries and panel data. A function for leave-one-out CRPS may be added in the future. Predictions need to be predictive distributions represented by predictive samples. Usually, these will be sets of posterior predictive simulation draws generated by an MCMC algorithm. Given some training data with true observed values as well as predictive samples generated from different models, `crps_weights` finds the optimal (in the sense of minimizing expected cross-validation predictive error) weights to form an ensemble from these models. Using these weights, `mixture_from_samples` can then provide samples from the optimal model mixture by drawing from the predictice samples of the individual models in the correct proportion. This gives a mixture model solely based on predictive samples and is in this regard superior to other ensembling techniques like Bayesian Model Averaging. authors: - family-names: Bosse given-names: Nikos email: nikosbosse@gmail.com orcid: https://orcid.org/0000-0002-7750-5280 - family-names: Yao given-names: Yuling email: yy2619@columbia.edu - family-names: Abbott given-names: Sam email: contact@samabbott.co.uk orcid: https://orcid.org/0000-0001-8057-8037 - family-names: Funk given-names: Sebastian email: sebastian.funk@lshtm.ac.uk orcid: https://orcid.org/0000-0002-2842-3406 repository: https://epiforecasts.r-universe.dev commit: 6ac296722faf603d5504f65b564bf92183c0bcdb contact: - family-names: Bosse given-names: Nikos email: nikosbosse@gmail.com orcid: https://orcid.org/0000-0002-7750-5280