Internal function to be used by a wrapper.

get_MAP_internal(dat, nburn)

Arguments

dat

numeric. A vector of log marginal likelihood values for a given animal ID.

nburn

numeric. The size of the burn-in phase after which the MAP estimate will be identified.

Value

A numeric value indicating the iteration after the burn-in phase that holds the MAP estimate.