Skip to content
Stan.jl v5 refactors CmdStan v5. Stan.jl illustrates the usage of the new 'single method' packages, e.g. StanSample, StanOptimize, etc.
Julia Other
  1. Julia 98.9%
  2. Other 1.1%
Branch: master
Clone or download


Travis Build Status Coverage Status codecov


Important note

Major work will happen on this package over the next few months, i.e. until at least March 2020. The basic packages in StanJulia work but are still being fine-tuned. Documentation - to be part of Stan.jl v5 - is also virtually not there yet. WORK IN PROGRESS!!!!

Background info

Stan.jl v4.x (and earlier versions) was the first generation of Julia tools to use Stan's cmdstan executable. CmdStan.jl v5.x updated these for Julia v1.x and added features based on user feedback. Most of cmdstan's features are covered (but not all).

Stan.jl v5.x constitutes the third generation and extends Tamas Papp's approach taken in StanRun, StanDump and StanSamples. It covers all of cmdstan's features in separate modules. i.e. StanVariational, StanSample, etc., including an option to run generate_quantities.

Stan.jl v5.x will contain examples using the features available in StanJulia.

My intention is to continue maintenance of CmdStan.jl for at least another two years.


A collection of documented examples to use Stan (as an external program) from Julia.

Stan's cmdstan executable needs to be installed separatedly. Please see cmdstan installation.

For more info on Stan, please go to

You can’t perform that action at this time.