Uses extract
with permuted = FALSE
and inc_warmup = FALSE
.
get_draws(object, draws = NULL, reduce = NULL, ...)
An object of class lgpfit or stanfit
.
Indices of the parameter draws. NULL
corresponds to
all post-warmup draws.
Function used to reduce all parameter draws into
one set of parameters. Ignored if NULL
, or if draws
is not
NULL
.
Additional arguments to rstan::extract()
.
The return value is always a 2-dimensional array of shape
num_param_sets
x num_params
.
Other main functions:
create_model()
,
draw_pred()
,
lgp()
,
pred()
,
prior_pred()
,
sample_model()