estimates.mcmcr: Estimates

Description Usage Arguments Value See Also Examples

View source: R/estimates.R

Description

Calculates the estimates for an MCMC object.

Usage

1
2
## S3 method for class 'mcmcr'
estimates(x, fun = median, as_df = FALSE, ...)

Arguments

x

An object.

fun

A function that given a numeric vector returns a numeric scalar.

as_df

A flag indicating whether to return the values as a data frame versus a named list.

...

Optional arguments to fun.

Value

A named list or data frame.

See Also

Other MCMC manipulations: bind_chains(), bind_iterations(), collapse_chains(), split_chains()

Examples

1

mcmcr documentation built on Feb. 11, 2021, 5:06 p.m.