maxap: Maximum a posteriori parameter estimate

View source: R/maxap.R

maxapR 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 density. Defaults to NULL.

...

Arguments passed to density

Value

Atomic numeric vector with the maximum a-posteriori estimate of vector x.

Examples

maxap(c(1,2,3,4,5))

pema documentation built on March 31, 2023, 11:38 p.m.