Get the draws of a Stan model fit
get_draws(x, pars) ## S3 method for class 'stanfit' get_draws(x, pars) ## S3 method for class 'CmdStanMCMC' get_draws(x, pars) ## S3 method for class 'CMdStanMCMC_CSV' get_draws(x, pars)
x: A stanfit (from rstan) or a CmdStanMCMC
x
stanfit
rstan
CmdStanMCMC
(from cmdstanr) object.
cmdstanr
pars: A character vector of parameter names.
pars
character
Useful links