A package to run Stan's cmdstan executable from Julia.
Documentation | Build Status |
---|---|
For more info on Stan, please go to http://mc-stan.org.
The Julia package CmdStan.jl is based on Stan's command line interface, 'cmdstan'.
The 'cmdstan' interface needs to be installed separatedly. Please see cmdstan installation for further details.
The location of the cmdstan executable and related programs is now obtained from the environment variable JULIA_CMDSTAN_HOME. This used to be CMDSTAN_HOME.
Right now versioninfo()
will show its setting (if defined).
Release 5.0.0 of CmdStan.jl is a major level update as it breaks several examples.
By default a call to stan() will now return an MCMCChains.Chains object (which has been derived from the Mamba.Chains object). The Chains object has facilities for summarizing, diagnostics, plotting and further processing.
The simplest way to revert back to the pre-5.0.0 behavior is to use the output_format=:array
option in the call to StanModel().
Release 5.2.1 contains:
- Fixed an issue with read_diagnose.jl which failed on either linux or osx because of slightly different .csv file layout.
Release 5.2.0 contains:
- Specified Julia 1 dependency in Project
- Updates from sdewaele to fix resource busy or locked error messages
- Thanks to Daniel Coutinho an issue was fixed which made running CmdStan using Atom bothersome.
- Contains a fix in diagnostics testing
Release 5.1.1 contains:
- Fixed an issue with
save_warmup
in Variational (thanks to fargolo). - Fixed a documentation issue in
rel_path_cmdstan
. - Enabled specifying
data
andinit
using an existing file. - Support for Stan's include facility (thanks to Chris Fisher).
CmdStan.jl tested on cmdstan v2.20.0.
Release 5.1.0 contains:
- Support for retrieving stansummary data (read_summary()).
- Support for using mktempdir() (might improve issue #47).
- Fixed handling of save_warmup.
- Read all optimization iterations (thanks to sdewaele).
- Several other minor documentation and type definition updates.
- Fixeda bug related to Array{Dict} inputs to init and data (thanks to sdewaele).
- Added a test to compare Stan's ESS values with MCMCChains ESS values.
- Updated all examples to have a single Dict as data input (suggested by sdewaele).
CmdStan.jl tested on cmdstan v2.19.1.
- STABLE — documentation of the most recently tagged version.
- DEVEL — documentation of the in-development version.
Question and contributions are very welcome, as are feature requests and suggestions. Please open an issue if you encounter any problems or have a question.
There is no shortage of good books on Bayesian statistics. A few of my favorites are:
and a great read (and implemented in DynamicHMC.jl):
CmdStan.jl and several other Julia based mcmc packages are used in StatisticalRethinking.jl