R/utils.R
posterior_mode.Rd
Return the posterior mode of a vector.
posterior_mode(x)
A vector
A scalar with same type as `x`.
posterior_mode(sample(1:3, 20, replace = TRUE))#> [1] 1