rstan: R Interface to Stan

User-facing R functions are provided to parse, compile, test, estimate, and analyze Stan models by accessing the header-only Stan library provided by the 'StanHeaders' package. The Stan project develops a probabilistic programming language that implements full Bayesian statistical inference via Markov Chain Monte Carlo, rough Bayesian inference via 'variational' approximation, and (optionally penalized) maximum likelihood estimation via optimization. In all three cases, automatic differentiation is used to quickly and accurately evaluate gradients without burdening the user with the need to derive the partial derivatives.

Version: 2.15.1
Depends: R (≥ 3.0.2), ggplot2 (≥ 2.0.0), StanHeaders (≥ 2.15.0)
Imports: methods, stats4, inline, gridExtra (≥ 2.0.0), Rcpp (≥ 0.12.0)
LinkingTo: Rcpp (≥ 0.12.0), RcppEigen, BH (≥ 1.62), StanHeaders (≥ 2.15.0)
Suggests: RUnit, RcppEigen, BH (≥ 1.62), parallel, KernSmooth, loo (≥ 1.0.0), shinystan (≥ 2.2.1), bayesplot, rstantools, rstudioapi, Matrix, knitr (≥ 1.15.1)
Published: 2017-04-19
Author: Jiqiang Guo [aut], Jonah Gabry [aut], Ben Goodrich [cre, aut], Daniel Lee [ctb], Krzysztof Sakrejda [ctb], Trustees of Columbia University [cph], Oleg Sklyar [cph] (R/cxxfunplus.R), The R Core Team [cph] (R/pairs.R, R/dynGet.R), Jens Oehlschlaegel-Akiyoshi [cph] (R/pairs.R), Hadley Wickham [cph] (R/rtools.R), Joel de Guzman [cph] (Boost), John Fletcher [cph] (Boost), Thomas Heller [cph] (Boost), Eric Niebler [cph] (Boost)
Maintainer: Ben Goodrich <benjamin.goodrich at>
License: GPL (≥ 3)
NeedsCompilation: yes
SystemRequirements: pandoc
Citation: rstan citation info
Materials: NEWS
In views: Bayesian
CRAN checks: rstan results


Reference manual: rstan.pdf
Vignettes: Interfacing with External C++ Code
stanfit objects
Package source: rstan_2.15.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X El Capitan binaries: r-release: rstan_2.15.1.tgz
OS X Mavericks binaries: r-oldrel: rstan_2.15.1.tgz
Old sources: rstan archive

Reverse dependencies:

Reverse depends: beanz, CopulaDTA, dgo, edstan, eggCounts, idem, MADPop, MIXFIM, varian, walker
Reverse imports: bmlm, breathteststan, brms, ctsem, DeLorean, dfpk, DrBats, gastempt, hBayesDM, MCMCvis, nauf, prophet, rstanarm, shinystan, themetagenomics, treatSens
Reverse linking to: beanz, bmlm, breathteststan, dfpk, eggCounts, gastempt, idem, MADPop, rstanarm, treatSens, walker
Reverse suggests: bayesplot, blavaan, broom, ggmcmc, loo, lsmeans, nimble, raw, rstantools


Please use the canonical form to link to this page.