Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.73 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.73 KB

StanQuap.jl

Project Status Build Status

Purpose of package

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.

Installation

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