Extract samples from a ubmsFit model

# S4 method for class 'ubmsFit'
extract(object, pars, permuted = TRUE, inc_warmup = FALSE, include = TRUE)

Arguments

object

A ubmsFit object

pars

An optional character vector providing parameter names of interest. If not specified, all parameters are used

permuted

Logical. If TRUE, draws are permuted and merged; if FALSE, the original order is kept

inc_warmup

Logical. If TRUE, warmup iterations are included; if FALSE they are discarded.

include

Logical. If TRUE provided parameter names in pars are kept; if FALSE they are excluded.

Value

If permuted=TRUE, a list; if permuted=FALSE, an array.