mcmc_map: MCMC map

View source: R/mcmc-map.R

mcmc_mapR Documentation

MCMC map

Description

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

Usage

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

mcmc_map(mcmcr_example$beta, exp)

poissonconsulting/mcmcr documentation built on Jan. 18, 2024, 1:11 a.m.