Adjust the sample values of an MCMC object using a function.
mcmc_map(.x, .f, .by = 1:npdims(.x), ...)
The updated MCMC object.
Other manipulate:
mcmc_aperm()
mcmc_map(mcmcr_example$beta, exp)
#> [,1] [,2]
#> [1,] 2.642310 7.182544
#> [2,] 7.182544 19.524180
#>
#> nchains: 2
#> niters: 400