add_rstan_model: Add compiled 'rstan' models to 'brmsfit' objects

View source: R/brmsfit-helpers.R

add_rstan_modelR Documentation

Add compiled rstan models to brmsfit objects

Description

Compile a stanmodel and add it to a brmsfit object. This enables some advanced functionality of rstan, most notably log_prob and friends, to be used with brms models fitted with other Stan backends.

Usage

add_rstan_model(x, overwrite = FALSE)

Arguments

x

A brmsfit object to be updated.

overwrite

Logical. If TRUE, overwrite any existing stanmodel. Defaults to FALSE.

Value

A (possibly updated) brmsfit object.


paul-buerkner/brms documentation built on April 14, 2024, 5:39 p.m.