Project Status | Build Status |
---|---|
This package is created to simplify the usage of quadratic approximations in StatisticalRethinking.jl.
As such, it is intended for initial learning purposes.
Many better (and certainly more efficient!) ways of obtaining a quadratic approximation to the posterior distribution are available in Julia (and demonstrated in the project StatisticalRethinkingStan.jl) but none used a vanilla Stan Language program as used in Statistical Rethinking.
Once this package is registered, install with
pkg> add StanQuap.jl
You need a working Stan's cmdstan installation, the path of which you should specify either in CMDSTAN
or JULIA_CMDSTAN_HOME
, eg in your ~/.julia/config/startup.jl
have a line like
# CmdStan setup
ENV["CMDSTAN"] = expanduser("~/src/cmdstan-2.35.0/") # replace with your path
It is recommended that you start your Julia process with multiple worker processes to take advantage of parallel sampling, eg
julia -p auto