SBC_fit_to_draws_matrix: S3 generic converting a fitted model to a 'draws_matrix'...

View source: R/backends.R

SBC_fit_to_draws_matrixR Documentation

S3 generic converting a fitted model to a draws_matrix object.

Description

Needs to be implemented for all types of objects the backend can return from SBC_fit(). Default implementation just calls, posterior::as_draws_matrix(), so if the fit object already supports this, it will work out of the box.

Usage

SBC_fit_to_draws_matrix(fit)

## Default S3 method:
SBC_fit_to_draws_matrix(fit)

hyunjimoon/SBC documentation built on March 15, 2024, 3:18 a.m.