CRAN/E | rstan

rstan

R Interface to Stan

Installation

About

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.

Citation rstan citation info
mc-stan.org/rstan/
discourse.mc-stan.org
System requirements GNU make, pandoc
Bug report File report

Key Metrics

Version 2.32.6
R ≥ 3.4.0
Published 2024-03-05 64 days ago
Needs compilation? yes
License GPL (≥ 3)
CRAN checks rstan results

Downloads

Yesterday 2.548 0%
Last 7 days 12.898 -32%
Last 30 days 64.170 +1%
Last 90 days 180.714 +11%
Last 365 days 700.018 -16%

Maintainer

Maintainer

Ben Goodrich

benjamin.goodrich@columbia.edu

Authors

Jiqiang Guo

aut

Jonah Gabry

aut

Ben Goodrich

cre / aut

Andrew Johnson

aut

Sebastian Weber

aut

Hamada S. Badr

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

Material

NEWS
Reference manual
Package source

In Views

Bayesian
MixedModels

Vignettes

Simulation Based Calibration
Interfacing with External C++ Code
RStan
stanfit objects

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

rstan archive

Depends

R ≥ 3.4.0
StanHeaders ≥ 2.32.0

Imports

methods
stats4
inline ≥ 0.3.19
gridExtra ≥ 2.3
Rcpp ≥ 1.0.7
RcppParallel ≥ 5.1.4
loo ≥ 2.4.1
pkgbuild ≥ 1.2.0
QuickJSR
ggplot2 ≥ 3.3.5

Suggests

testthat ≥ 3.0.4
parallel
KernSmooth
shinystan
bayesplot
rmarkdown
rstantools
rstudioapi
Matrix
knitr
coda
V8

LinkingTo

Rcpp ≥ 1.0.7
RcppEigen ≥ 0.3.4.0.0
BH ≥ 1.75.0-0
StanHeaders ≥ 2.32.0
RcppParallel ≥ 5.1.4

Reverse Depends

banocc
BASiCStan
BayesianPlatformDesignTimeTrend
bayesvl
bmscstan
clinDR
CopulaDTA
dfped
DrBats
edstan
evidence
fergm
GPP
GPRMortality
HCT
iCARH
JMbayes
MADPop
MIXFIM
ppcseq
tmbstan
varian
visit
walker

Reverse Imports

adnuts
AovBay
baggr
bakR
baldur
BANOVA
bayclumpr
bayes4psy
bayesbr
bayesdfa
bayesforecast
bayesGAM
BayesGmed
BayesGrowth
BayesSenMC
bayesZIB
bbmix
BCEA
beanz
BeeGUTS
bellreg
bennu
Bernadette
BINtools
bistablehistory
bkmrhat
blavaan
bmgarch
bmggum
bmlm
bmstdr
BPrinStratTTE
breathteststan
brms
brxx
bsitar
bws
CARME
CausalQueries
cbq
chkptstanr
cloneRate
CNVRG
conStruct
ctsem
dclone
DCPO
decontX
densEstBayes
disbayes
Load all 134 items
(warning: might lead to performance issues and take some time)

Reverse Suggests

bayesian
bayesImageS
bayesnec
bayesplot
BayesPostEst
bayestestR
BayesTools
bridgesampling
brms.mmrm
broom.mixed
compareMCMCs
finalfit
flocker
hmmTMB
loo
lorad
makemyprior
metabias
mice
modeltime
mpower
pollimetry
PosteriorBootstrap
postpack
rstantools
runMCMCbtadjust
sjstats
SoupX
StanHeaders
survHE
tidybayes
unifed

Reverse Enhances

DHARMa
dsem
mrregression

Reverse LinkingTo

AovBay
baggr
bakR
baldur
BASiCStan
bayes4psy
bayesbr
bayesdfa
bayesforecast
bayesGAM
BayesGmed
BayesGrowth
BayesianPlatformDesignTimeTrend
BayesSenMC
bayesZIB
bbmix
beanz
BeeGUTS
bellreg
bennu
Bernadette
BINtools
bistablehistory
blavaan
bmgarch
bmggum
bmlm
bmstdr
BPrinStratTTE
breathteststan
bws
CARME
CausalQueries
cbq
cloneRate
CNVRG
conStruct
ctsem
DCPO
decontX
densEstBayes
disbayes
EcoEnsemble
eggCounts
EloSteepness
EpiNow2
expertsurv
fcirt
FlexReg
gastempt
Load all 119 items
(warning: might lead to performance issues and take some time)