A probabilistic programming package for Bayesian statistical modelling in R
using native R syntax. Models are defined interactively with gretaR_array
objects, then compiled to torch tensors for HMC and NUTS inference on a
native torch (libtorch) backend.
Core workflow
Wrap observed data with
as_data()Define priors using distribution functions (e.g.,
normal(),gamma_dist())Define the model structure using standard R operations
Assign a likelihood with
distribution()Create a model with
model()Draw samples with
mcmc()
Author
Maintainer: Max Moldovan max.moldovan@adelaide.edu.au (ORCID) [copyright holder]
