a list with the posterior samples of the provided parameters.
Arguments
object
a varstan object
pars
n optional character vector providing the parameter names
(or other quantity names) of interest. If not specified, all parameters
and other quantities are used. The log-posterior with name lp__ is also
included.
permuted
a logical scalar indicating whether the draws
after the warm-up period in each chain should be permuted and merged.
If FALSE, the original order is kept. For each stanfit object,
the permutation is fixed (i.e., extracting samples a second time will
give the same sequence of iterations).
inc_warmup
a logical scalar indicating whether to include the
warm-up draws. This argument is only relevant if permuted is FALSE.
include
a logical scalar indicating whether the parameters named
in pars should be included (TRUE) or excluded (FALSE).