powered by
Adjust the sample values of an MCMC object using a function.
mcmc_map(.x, .f, .by = 1:npdims(.x), ...)
An MCMC object
The function to use
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_aperm()
# NOT RUN { mcmc_map(mcmcr_example$beta, exp) # }
Run the code above in your browser using DataLab