Skip to contents

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

  1. Wrap observed data with as_data()

  2. Define priors using distribution functions (e.g., normal(), gamma_dist())

  3. Define the model structure using standard R operations

  4. Assign a likelihood with distribution()

  5. Create a model with model()

  6. Draw samples with mcmc()

Author

Maintainer: Max Moldovan max.moldovan@adelaide.edu.au (ORCID) [copyright holder]