
Convert to posterior::rvar format
as_rvar.Rd
Generic function to convert an object to a posterior::rvar
representation.
This is typically used to convert MCMC output into a more flexible and vectorized format.
Usage
as_rvar(x, ...)
# S3 method for class 'rjuliabugs'
as_rvar(x, ...)
# S3 method for class 'array'
as_rvar(x, n_mcmc = NULL, ...)