Learn R Programming

rstanemax (version 0.1.9)

as_draws: 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 stanemax as_draws(x, inc_warmup = FALSE, ...)

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

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

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

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

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

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

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

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

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

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

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

Value

A draws object of the appropriate subclass

Arguments

x

An object of class stanemax.

...

Arguments passed to individual methods (if applicable).'

inc_warmup

Should warmup draws be included? Defaults to FALSE.

See Also

draws subset_draws

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab