Skip to contents

Matches the shape returned by rstan::extract().

Usage

backend_extract(raw_fit, pars, ...)

Arguments

raw_fit

a backend-native fit object (an rstan stanfit or a cmdstanr CmdStanMCMC).

pars

character vector of parameter names to extract.

...

forwarded to the backend's extractor.

Value

a named list of draw arrays, one per parameter.

Examples

if (FALSE) { # \dontrun{
post <- backend_extract(fit, pars = c("beta", "sigma"))
} # }