Skip to contents

Generic function to convert an object to a posterior::draws representation (e.g., draws_array, draws_matrix, or other formats).

Usage

as_draws(x, ...)

# S3 method for class 'rjuliabugs'
as_draws(x, ...)

# S3 method for class 'array'
as_draws(x, ...)

Arguments

x

An object to convert (e.g., a rjuliabugs object or a 3D array).

...

Further arguments passed to specific methods.

Value

A draws object (e.g., draws_array) or a modified rjuliabugs object.