Bayesian applied regression modeling via Stan

RStanArm allows users to specify models via the customary R commands, where

  • models are specified with formula syntax,

  • data is provided as a data frame, and

  • additional arguments are available to specify priors.

Estimation may be carried out with Markov chain Monte Carlo, variational inference, or optimization (Laplace approximation). Graphical posterior predictive checking, leave-one-out cross-validation, and posterior visualization are tightly integrated.


Visit for vignettes/tutorials, function documentation, and other information about the package.

Download and Get Started

Instructions for downloading, installing, and getting started with RStanArm on all platforms.


RStanArm’s reference manual and vignettes are also available from CRAN.

Source Code and Issue Tracker

RStanArm’s source code and issue tracker are hosted by GitHub.


RStan is open-source licensed under the