The R package projpred performs the projection predictive variable selection for various regression models. Usually, the reference model is an rstanarm or brms fit, but custom reference models can also be used. Details on supported model types are given in section âSupported types of modelsâ of the main vignette1.
For details on how to cite projpred, see the projpred citation info on CRAN2. Further references (including earlier work that projpred is based on) are given in section âIntroductionâ of the main vignette.
The vignettes3 illustrate how to use the projpred functions in conjunction. Details on the projpred functions as well as some shorter examples may be found in the documentation4.
InstallationThere are two ways for installing projpred: from CRAN or from GitHub. The GitHub version might be more recent than the CRAN version, but the CRAN version might be more stable.
From CRANinstall.packages("projpred")
From GitHub
This requires the devtools package, so if necessary, the following code will also install devtools (from CRAN):
if (!requireNamespace("devtools", quietly = TRUE)) {
install.packages("devtools")
}
devtools::install_github("stan-dev/projpred", build_vignettes = TRUE)
To save time, you may omit build_vignettes = TRUE
.
We welcome contributions! The projpred package is under active development. If you find bugs or have ideas for new features (for us or yourself to implement) please open an issue on GitHub. See CONTRIBUTING.md for more details.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4