Skip to contents

Posterior values are extracted from a `CmdStanMCMC` or `sefraModel` object using a call to $draws(<pars>, format = "draws_matrix"). Chains are combined.

Usage

get_draws(object, pars, dims, dimnames, melt, ...)

# S3 method for class 'CmdStanMCMC'
get_draws(object, pars, dims, dimnames, melt = TRUE, ...)

# S3 method for class 'sefraModel'
get_draws(object, pars, dims, dimnames = list(), melt = TRUE, ...)

Arguments

object

class `CmdStanMCMC` or `sefraModel object.

pars

character vector parameters.

dims

integer vector of dimensions (excluding the number of posterior samples)

dimnames

list of dimnames (excluding the number of posterior samples).

melt

should draws be melted to a data frame.

...

(not used).

Note

All parameters specified in pars must share dims and dimnames. Either dims or dimnames must be provided.

See also

[get_traces()]