This is an R package that emulates other R model-fitting functions but uses Stan (via the rstan package) for the back-end estimation. The primary target audience is people who would be open to Bayesian inference if using Bayesian software were easier but would use frequentist software otherwise.
- mc-stan.org/rstanarm (online documentation, vignettes)
- Ask a question (Stan Forums on Discourse)
- Open an issue (GitHub issues for bug reports, feature requests)
The most recent rstanarm release can be installed from CRAN via
install.packages("rstanarm")
To install from GitHub, first make sure that you can install the rstan package and C++ toolchain by following these instructions. Once rstan is successfully installed, you can install rstanarm from GitHub using the devtools package by executing the following in R:
if (!require(devtools)) {
install.packages("devtools")
library(devtools)
}
install_github("stan-dev/rstanarm", build_vignettes = FALSE)
You can switch build_vignettes
to TRUE
but it takes a lot longer to install and the
vignettes are already separately available from the
Stan website
and
CRAN.
If installation fails, please let us know by filing an issue.
If you are interested in contributing to the development of rstanarm please see the Contributing to development page of the wiki.