R interface to Stan, for Bayesian inference
open sourceGPL-3.0-or-laterfree
RStan (the rstan package) is the R interface to Stan, the probabilistic programming language for statistical modelling. From R you parse, compile, test, fit and analyse Stan models, using the header-only Stan library from the StanHeaders package: full Bayesian inference with Markov chain Monte Carlo, approximate Bayesian inference with variational methods, and (optionally penalised) maximum likelihood with optimisation, all with automatic differentiation for the gradients.
Problems it solves
- fit a Bayesian model with MCMC from R
- use Stan models in my R analysis
- estimate a hierarchical model in R with full posterior distributions
Features
- compile and fit Stan models from R
- MCMC sampling for full Bayesian inference
- variational inference and penalised maximum likelihood
- automatic differentiation of the model's gradients
Alternatives
The same job
These do what RStan does.
- CmdStanR Lightweight R interface to CmdStan
- JAGS Just Another Gibbs Sampler: MCMC for Bayesian hierarchical models
- Stan Probabilistic programming language for Bayesian statistical modelling
- CmdStan Command-line interface to Stan for compiling and running Bayesian models
- mclust Gaussian mixture modelling for model-based clustering, classification and density estimation in R
