posterior.mode {MCMCglmm}R Documentation

Estimates the mode of a vector using kernel density estimation

Description

Estimates the mode of a vector using kernel density estimation

Usage

posterior.mode(x)

Arguments

x numeric vector

Value

mode of the kernel density estimate

Author(s)

Jarrod Hadfield j.hadfield@ed.ac.uk

See Also

density

Examples

v<-rIW(10, as.matrix(1), n=1000)
hist(v)
abline(v=posterior.mode(v), col="red")

[Package MCMCglmm version 1.06 Index]