posterior.mode {MCMCglmm} | R Documentation |
Estimates the mode of a vector using kernel density estimation
posterior.mode(x)
x |
numeric vector |
mode of the kernel density estimate
Jarrod Hadfield j.hadfield@ed.ac.uk
density
v<-rIW(10, as.matrix(1), n=1000) hist(v) abline(v=posterior.mode(v), col="red")