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.21.7
Depends: R (≥ 3.4.0), StanHeaders (≥ 2.21.0), ggplot2 (≥ 3.0.0)
Imports: methods, stats4, inline, gridExtra (≥ 2.0.0), Rcpp (≥ 0.12.0), RcppParallel (≥ 5.0.1), loo (≥ 2.3.0), pkgbuild
LinkingTo: Rcpp (≥ 0.12.0), RcppEigen (≥ 0.3.3.3.0), BH (≥ 1.72.0-2), StanHeaders (≥ 2.21.0), RcppParallel
Suggests: RUnit, RcppEigen (≥ 0.3.3.3.0), BH (≥ 1.72.0-2), parallel, KernSmooth, shinystan (≥ 2.3.0), bayesplot (≥ 1.5.0), rmarkdown, rstantools, rstudioapi, Matrix, knitr (≥ 1.15.1), V8
Published: 2022-09-08
Author: Jiqiang Guo [aut], Jonah Gabry [aut], Ben Goodrich [cre, aut], Sebastian Weber [aut], Daniel Lee [ctb], Krzysztof Sakrejda [ctb], Modrak Martin [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), John Maddock [cph] (gamma.hpp), Paul Bristow [cph] (gamma.hpp), Nikhar Agrawal [cph] (gamma.hpp), Christopher Kormanyos [cph] (gamma.hpp), Bronder Steve [ctb]
Maintainer: Ben Goodrich <benjamin.goodrich at columbia.edu>
BugReports: https://github.com/stan-dev/rstan/issues/
License: GPL (≥ 3)
URL: https://mc-stan.org/rstan/, https://discourse.mc-stan.org
NeedsCompilation: yes
SystemRequirements: GNU make, pandoc
Citation: rstan citation info
Materials: NEWS
In views: Bayesian
CRAN checks: rstan results

Documentation:

Reference manual: rstan.pdf
Vignettes: Simulation Based Calibration
Interfacing with External C++ Code
RStan
stanfit objects

Downloads:

Package source: rstan_2.21.7.tar.gz
Windows binaries: r-devel: rstan_2.21.7.zip, r-release: rstan_2.21.7.zip, r-oldrel: rstan_2.21.7.zip
macOS binaries: r-release (arm64): rstan_2.21.5.tgz, r-oldrel (arm64): rstan_2.21.5.tgz, r-release (x86_64): rstan_2.21.7.tgz, r-oldrel (x86_64): rstan_2.21.7.tgz
Old sources: rstan archive

Reverse dependencies:

Reverse depends: banocc, BayesianFROC, bayesvl, bmscstan, clinDR, CopulaDTA, dfped, dfpk, DrBats, edstan, evidence, fergm, GPP, GPRMortality, HCT, iCARH, JMbayes, MADPop, MIXFIM, psrwe, tmbstan, varian, visit, walker
Reverse imports: adnuts, AovBay, baggr, BANOVA, bayes4psy, bayesbr, bayesdfa, bayesforecast, bayesGAM, BayesSenMC, bayesZIB, beanz, BeeGUTS, bellreg, BINtools, bistablehistory, bkmrhat, blavaan, bmgarch, bmggum, bmlm, bmstdr, breathteststan, brms, brxx, bws, CausalQueries, cbq, chkptstanr, CNVRG, conStruct, ctsem, dclone, DCPO, DeLorean, densEstBayes, disbayes, eggCounts, EloSteepness, epidemia, EpiNow2, fcirt, FlexReg, footBayes, gastempt, genphen, geostan, ggfan, glmmfields, glmmPen, gppm, hBayesDM, hsstan, HuraultMisc, hwep, idem, IgGeneUsage, isotracer, lgpr, llbayesireg, MapeBay, MCMCvis, metaBMA, MetaStan, MIRES, mrbayes, multinma, networkscaleup, OncoBayes2, pcFactorStan, pema, phacking, pivmet, PoolTestR, PosteriorBootstrap, ppcseq, prome, prophet, publipha, rater, RBesT, rbioacc, rbmi, rcbayes, Rlgt, rmBayes, rmdcev, rmsb, rPBK, rstanarm, rstanemax, rts2, sccomp, shinybrms, shinystan, spatialfusion, spsurv, ssMousetrack, SSNbayes, StanMoMo, surveil, survHE, thurstonianIRT, tipsae, trialr, TriDimRegression, truncnormbayes, ubms, YPBP, YPPE, zoid
Reverse linking to: AovBay, baggr, bayes4psy, bayesbr, bayesdfa, bayesforecast, bayesGAM, BayesSenMC, bayesZIB, beanz, BeeGUTS, bellreg, BINtools, bistablehistory, blavaan, bmgarch, bmggum, bmlm, bmstdr, breathteststan, bws, CausalQueries, cbq, CNVRG, conStruct, ctsem, DCPO, DeLorean, densEstBayes, dfpk, disbayes, eggCounts, EloSteepness, epidemia, EpiNow2, fcirt, FlexReg, gastempt, geostan, glmmfields, glmmPen, hBayesDM, hsstan, hwep, idem, isotracer, lgpr, MADPop, MapeBay, metaBMA, MetaStan, MIRES, mrbayes, multinma, networkscaleup, OncoBayes2, pcFactorStan, pema, phacking, PoolTestR, ppcseq, prome, prophet, psrwe, publipha, rater, RBesT, rbioacc, rbmi, rcbayes, Rlgt, rmBayes, rmdcev, rmsb, rPBK, rstanarm, rstanemax, rts2, sccomp, spsurv, ssMousetrack, StanMoMo, surveil, survHE, thurstonianIRT, tipsae, tmbstan, trialr, TriDimRegression, truncnormbayes, ubms, visit, walker, YPBP, YPPE, zoid
Reverse suggests: bayesian, bayesImageS, bayesnec, bayesplot, BayesPostEst, bayestestR, BayesTools, BCEA, bridgesampling, broom.mixed, causalOT, concurve, DAMisc, finalfit, loo, makemyprior, modeltime, pollimetry, RoBMA, rstantools, sjstats, SoupX, StanHeaders, tidybayes, unifed
Reverse enhances: DHARMa, mrregression

Linking:

Please use the canonical form https://CRAN.R-project.org/package=rstan to link to this page.