talira

CmdStanR

Lightweight R interface to CmdStan

open sourceBSD-3-Clausefree

CmdStanR is a lightweight R interface to Stan, an alternative to RStan that calls CmdStan's command-line programs to compile models and run algorithms instead of linking Stan's C++ into R, so it keeps up with Stan releases. It runs Stan's algorithms and leaves analysis to other packages. It installs from the Stan r-universe repository or conda-forge, not CRAN.

Problems it solves

  • fit a Stan model from R
  • use the latest Stan release from R
  • an alternative to RStan that avoids compiling C++ inside R

Features

  • compile and run Stan models from R through CmdStan
  • no C++ linked into R
  • keeps up with Stan releases
  • installs CmdStan with install_cmdstan()

Alternatives

The same job

These do what CmdStanR does.

  1. RStan R interface to Stan, for Bayesian inference
  2. CmdStan Command-line interface to Stan for compiling and running Bayesian models
  3. Stan Probabilistic programming language for Bayesian statistical modelling

Compare CmdStanR with the top 3