Stan Logo

projpred

Projection predictive variable selection


The projpred package performs projection predictive variable selection for generalized linear models. Currently projpred is most easily compatible with rstanarm but other reference models can also be used.

The method is described and evaluated in comparison to many other methods in

  • Juho Piironen and Aki Vehtari (2017). Comparison of Bayesian predictive methods for model selection. Statistics and Computing, 27(3):711-735. doi:10.1007/s11222-016-9649-y. (online).

Currently, the supported models (family objects in R) include Gaussian, Binomial and Poisson families. See the projpred vignette for examples.

Getting Started

To get started see the projpred vignettes.

Installation

Install the latest release from CRAN

install.packages("projpred")

Install the latest development version from GitHub

if (!require("devtools")) {
  install.packages("devtools")
}

devtools::install_github("stan-dev/projpred", build_vignettes = TRUE)