to_brms: Convert BI fit to brmsfit

View source: R/to_brms.R

to_brmsR Documentation

Convert BI fit to brmsfit

Description

Converts a BI (NumPyro MCMC) object into a compatible brmsfit object.

Usage

to_brms(
  bi_fit,
  formula = NULL,
  data = NULL,
  family = NULL,
  par_map = NULL,
  ...
)

Arguments

bi_fit

The reticulate object returned by BI fitting.

formula

The brms formula for the model. Defaults to 'bi_fit$formula'.

data

The data used for fitting. Defaults to 'bi_fit$data'.

family

The family used. Defaults to 'bi_fit$family' or 'gaussian()'.

par_map

Optional list for custom naming: list(BI_name = brms_name).

...

Additional arguments passed to brms::brm(..., empty = TRUE).

Value

A brmsfit object.


BayesForge documentation built on June 9, 2026, 1:09 a.m.