estimates.nlists: 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 'nlists'
estimates(x, fun = median, ...)

Arguments

x

An object.

fun

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

...

Additional arguments passed to fun.

Value

A list of uniquely named numeric objects.

See Also

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

Examples

1
estimates(nlists(nlist(x = 1:3), nlist(x = 2:4)), fun = mean)

nlist documentation built on Sept. 5, 2021, 6:05 p.m.