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.17.3
Depends: R (≥ 3.0.2), ggplot2 (≥ 2.0.0), StanHeaders (≥ 2.17.2)
Imports: methods, stats4, inline, gridExtra (≥ 2.0.0), Rcpp (≥ 0.12.0)
LinkingTo: Rcpp (≥ 0.12.0), RcppEigen (≥, BH (≥ 1.65), StanHeaders (≥ 2.17.2)
Suggests: RUnit, RcppEigen (≥, BH (≥ 1.65), parallel, KernSmooth, loo (≥ 1.0.0), shinystan (≥ 2.2.1), bayesplot, rstantools, rstudioapi, Matrix, knitr (≥ 1.15.1)
Published: 2018-01-20
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.17.3.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X El Capitan binaries: r-release: rstan_2.17.3.tgz
OS X Mavericks binaries: r-oldrel: rstan_2.17.2.tgz
Old sources: rstan archive

Reverse dependencies:

Reverse depends: bayesLopod, beanz, clinDR, CopulaDTA, dfped, dfpk, dgo, edstan, eggCounts, fergm, idem, JMbayes, MADPop, MIXFIM, tmbstan, varian, walker
Reverse imports: adnuts, BANOVA, bmlm, breathteststan, brms, ctsem, DeLorean, DrBats, gastempt, ggfan, hBayesDM, idealstan, MCMCvis, nauf, projpred, prophet, RBesT, rstanarm, rstansim, shinystan, survHE, themetagenomics, treatSens, trialr
Reverse linking to: bayesLopod, beanz, bmlm, breathteststan, dfpk, eggCounts, gastempt, idealstan, idem, MADPop, RBesT, rstanarm, survHE, tmbstan, treatSens, trialr, walker
Reverse suggests: bayesplot, blavaan, bridgesampling, broom, ggmcmc, loo, lsmeans, nimble, rstantools, sjstats


Please use the canonical form to link to this page.