Learn R Programming

nlist (version 0.4.0)

estimates.nlist: Estimates

Description

Calculates the estimates for an MCMC object.

Usage

# S3 method for nlist
estimates(x, fun = median, ...)

Value

A list of uniquely named numeric objects.

Arguments

x

An object.

fun

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

...

Additional arguments passed to fun.

See Also

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

Examples

Run this code
estimates(nlist(x = 1:9))
estimates(nlist(y = 3:5, zz = matrix(1:9, 3)))

Run the code above in your browser using DataLab