as_draws.RprobitB_fit: Convert a fitted model to posterior draws

View source: R/posterior.R

as_draws.RprobitB_fitR Documentation

Convert a fitted model to posterior draws

Description

Returns the canonical retained posterior draws.

Usage

## S3 method for class 'RprobitB_fit'
as_draws(x, ...)

Arguments

x

[RprobitB_fit]
Fitted choice model.

...

Currently not used.

Value

A draws_array with dimensions iteration, chain, and variable.

Examples

set.seed(1)
model <- fit(
  choice ~ x | 0, dgp_parameters = list(beta = c(x = 1)), chains = 1
)
posterior::as_draws(model)

RprobitB documentation built on Sept. 20, 2026, 9:07 a.m.