maxap {pema} | R Documentation |
Maximum a posteriori parameter estimate
Description
Find the parameter estimate with the highest posterior probability density given a vector of samples.
Usage
maxap(x, dens = NULL, ...)
Arguments
x |
Numeric vector. |
dens |
Optional object of class |
... |
Arguments passed to |
Value
Atomic numeric vector with the maximum a-posteriori estimate of
vector x
.
Examples
maxap(c(1,2,3,4,5))
[Package pema version 0.1.3 Index]