Learn R Programming

mcmcr (version 0.6.1)

estimates.mcmcr: Estimates

Description

Calculates the estimates for an MCMC object.

Usage

# S3 method for 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 results 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

Run this code
# NOT RUN {
estimates(mcmcr_example)
# }

Run the code above in your browser using DataLab