Command-line interface to Stan for compiling and running Bayesian models
open sourceBSD-3-Clausefree
CmdStan is the command-line interface to Stan, the statistical modelling language. It translates a Stan program to C++ with the stanc3 compiler and builds it into an executable you run from the shell for full Bayesian inference with the No-U-Turn sampler (NUTS), maximum likelihood estimation with BFGS and L-BFGS optimization, Pathfinder and ADVI variational inference, and Laplace sampling. It also ships stansummary and diagnose for checking the outputs. CmdStanPy and CmdStanR are thin interfaces to it for Python and R. Install it by downloading a release tarball and running make.
Problems it solves
- fit a Bayesian model from the command line without R or Python
- run Hamiltonian Monte Carlo sampling on my Stan model in a shell script
- compile a Stan model into a standalone executable for a cluster
Features
- MCMC sampling with NUTS (Hamiltonian Monte Carlo)
- optimization with BFGS, L-BFGS and Newton
- Pathfinder and ADVI variational inference
- Laplace sampling
- stansummary and diagnose for MCMC output
- stanc3 compiler from Stan to C++
Alternatives
The same job
These do what CmdStan does.
