Learn R Programming

mcmcr (version 0.0.2)

estimates: Estimates

Description

Get the estimates for an MCMC object.

Usage

estimates(object, ...)

# S3 method for mcarray estimates(object, fun = stats::median, as_df = FALSE, ...)

# S3 method for mcmc estimates(object, fun = stats::median, as_df = FALSE, ...)

# S3 method for mcmc.list estimates(object, fun = stats::median, as_df = FALSE, ...)

# S3 method for mcmcarray estimates(object, fun = stats::median, as_df = FALSE, ...)

# S3 method for mcmcr estimates(object, fun = stats::median, as_df = FALSE, ...)

Arguments

object

An MCMC object.

...

Unused.

fun

The function to use.

as_df

A flag indicating whether to return the estimates as a tibble versus a named list.

Value

A named list or tibble.

Methods (by class)

  • mcarray: Estimates for an mcarray object

  • mcmc: Estimates for an mcmc object

  • mcmc.list: Estimates for an mcmc.list object

  • mcmcarray: Estimates for an mcmcarray object

  • mcmcr: Estimates for an mcmcr object

Examples

Run this code
# NOT RUN {
estimates(mcmcr_example)
estimates(mcmcr_example, as_df = TRUE)
# }

Run the code above in your browser using DataLab