Uses extract with permuted = FALSE and inc_warmup = FALSE.

get_draws(object, draws = NULL, reduce = NULL, ...)

Arguments

object

An object of class lgpfit or stanfit.

draws

Indices of the parameter draws. NULL corresponds to all post-warmup draws.

reduce

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().

Value

The return value is always a 2-dimensional array of shape num_param_sets x num_params.

See also

Other main functions: create_model(), draw_pred(), lgp(), pred(), prior_pred(), sample_model()