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 `
sefraModelobject.- 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).