mcmc_map | R Documentation |
Adjust the sample values of an MCMC object using a function.
mcmc_map(.x, .f, .by = 1:npdims(.x), ...)
.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. |
The updated MCMC object.
Other manipulate:
mcmc_aperm()
mcmc_map(mcmcr_example$beta, exp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.