Skip to contents

Transform an ernest_sampler object to a format supported by the posterior package.

Usage

# S3 method for class 'ernest_sampler'
as_draws(x, scale = c("original", "unit"), inc_live = TRUE, ...)

# S3 method for class 'ernest_sampler'
as_draws_list(x, scale = c("original", "unit"), inc_live = TRUE, ...)

# S3 method for class 'ernest_sampler'
as_draws_matrix(x, scale = c("original", "unit"), inc_live = TRUE, ...)

Arguments

x

An ernest_sampler object, or another R object for which the methods are defined.

scale

One of original or unit. If unit, the returned draws object will contain points expressed in the unit hypercube, which was originally used by ernest for generated sampling. If original (the default), the returned draws object will contain points in the original parameter space defined by the prior transformation.

inc_live

Should the live points be included? Defaults to TRUE.

...

Arguments passed to individual methods (if applicable).