Transform ernest_sampler
to posterior::draws
objects
as_draws-ernest.Rd
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
orunit
. Ifunit
, the returneddraws
object will contain points expressed in the unit hypercube, which was originally used by ernest for generated sampling. Iforiginal
(the default), the returneddraws
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).