Learn R Programming

mcmcr (version 0.6.1)

mcmc_map: 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

Run this code
# NOT RUN {
mcmc_map(mcmcr_example$beta, exp)
# }

Run the code above in your browser using DataLab