as_draws: Convert stanemax object to a posterior draws object

as_drawsR Documentation

Convert stanemax object to a posterior draws object

Description

Convert stanemax object to a posterior draws object

Usage

as_draws(x, ...)

as_draws_list(x, ...)

as_draws_array(x, ...)

as_draws_df(x, ...)

as_draws_matrix(x, ...)

as_draws_rvars(x, ...)

## S3 method for class 'stanemax'
as_draws(x, inc_warmup = FALSE, ...)

## S3 method for class 'stanemaxbin'
as_draws(x, inc_warmup = FALSE, ...)

## S3 method for class 'stanemax'
as_draws_list(x, inc_warmup = FALSE, ...)

## S3 method for class 'stanemaxbin'
as_draws_list(x, inc_warmup = FALSE, ...)

## S3 method for class 'stanemax'
as_draws_array(x, inc_warmup = FALSE, ...)

## S3 method for class 'stanemaxbin'
as_draws_array(x, inc_warmup = FALSE, ...)

## S3 method for class 'stanemax'
as_draws_df(x, inc_warmup = FALSE, ...)

## S3 method for class 'stanemaxbin'
as_draws_df(x, inc_warmup = FALSE, ...)

## S3 method for class 'stanemax'
as_draws_matrix(x, inc_warmup = FALSE, ...)

## S3 method for class 'stanemaxbin'
as_draws_matrix(x, inc_warmup = FALSE, ...)

## S3 method for class 'stanemax'
as_draws_rvars(x, inc_warmup = FALSE, ...)

## S3 method for class 'stanemaxbin'
as_draws_rvars(x, inc_warmup = FALSE, ...)

Arguments

x

An object of class stanemax.

...

Arguments passed to individual methods (if applicable).'

inc_warmup

Should warmup draws be included? Defaults to FALSE.

Value

A draws object of the appropriate subclass

See Also

draws subset_draws

Examples

## Not run: 
data(exposure.response.sample)
fit <- stan_emax(response ~ exposure, exposure.response.sample)
posterior::as_draws_list(fit)
posterior::as_draws_array(fit)
posterior::as_draws_df(fit)
posterior::as_draws_matrix(fit)
posterior::as_draws_rvars(fit)

## End(Not run)

rstanemax documentation built on April 4, 2025, 2:39 a.m.