Learn R Programming

mcmcr (version 0.0.2)

mcmc_map: MCMC Map

Description

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

Usage

mcmc_map(.x, .f, ...)

# S3 method for default mcmc_map(.x, .f, ...)

# S3 method for mcmc.list mcmc_map(.x, .f, ...)

# S3 method for mcmcr mcmc_map(.x, .f, ...)

# S3 method for mcmcrs mcmc_map(.x, .f, ...)

Arguments

.x

An MCMC object

.f

The function to use

...

Additional arguments passed to .f.

Value

The updated MCMC object.

Methods (by class)

  • default: Adjust the sample values of an MCMC object

  • mcmc.list: Adjust the sample values of an mcmc.list object

  • mcmcr: Adjust the sample values of an mcmcr object

  • mcmcrs: Adjust the sample values of an mcmcrs object

Examples

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

Run the code above in your browser using DataLab