get_draws: Extract parameter draws from lgpfit or stanfit

View source: R/methods-lgpfit.R

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


jtimonen/lgpr documentation built on Oct. 12, 2023, 11:13 p.m.