mcmc_map: MCMC map

Description Usage Arguments Value See Also Examples

View source: R/mcmc-map.R

Description

Adjust the sample values of an MCMC object using a function.

Usage

1
mcmc_map(.x, .f, .by = 1:npdims(.x), ...)

Arguments

.x

An MCMC object

.f

The function to use

.by

A positive integer vector of the dimensions to apply the function over.

...

Additional arguments passed to .f.

Value

The updated MCMC object.

See Also

Other manipulate: mcmc_aperm()

Examples

1

mcmcr documentation built on Sept. 7, 2021, 1:07 a.m.