StanQuap.jl

Quadratic approximation of posterior distribution using StanOptimize
Author StanJulia
Popularity
0 Stars
Updated Last
4 Months Ago
Started In
February 2021

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