get_draws {lgpr}R Documentation

Extract parameter draws from lgpfit or stanfit

Description

Uses extract with permuted = FALSE and inc_warmup = FALSE.

Usage

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


[Package lgpr version 1.2.4 Index]