/RStan.jl

A wrapper to RStan. Currently only supports sampling.

Primary LanguageJuliaOtherNOASSERTION

RStan

Build Status

Coverage Status

codecov.io

This is a very light wrapper to "rstan", using RCall. The only exported function is "rstan". Upon initializing, it will automatically turn on for you:

rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())

but print the recomendation to do so anyway.

Write your model in a character string, and submit that with your data in a dictionary.

data = Dict("x" => x, "N" => length(x))
rstan(model_code, data)