Find the parameter estimate with the highest posterior probability density given a vector of samples.
Arguments
- x
Numeric vector.
- dens
Optional object of class
density
. Defaults toNULL
.- ...
Arguments passed to
density
Examples
maxap(c(1,2,3,4,5))
#> [1] 3.011742