extract,ubmsFit-method {ubms}R Documentation

Extract Samples From a ubmsFit Model

Description

Extract samples from a ubmsFit model

Usage

## S4 method for signature '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.


[Package ubms version 1.2.6 Index]