extract-ubmsFit-method function

Extract Samples From a ubmsFit Model

Extract Samples From a ubmsFit Model

Extract samples from a ubmsFit model

## 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.

Returns

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

  • Maintainer: Ken Kellner
  • License: GPL (>= 3)
  • Last published: 2024-10-01