mcmc_map {mcmcr}R 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)

[Package mcmcr version 0.6.1 Index]