Learn R Programming

MCMCglmm (version 2.36)

posterior.mode: Estimates the marginal parameter modes using kernel density estimation

Description

Estimates the marginal parameter modes using kernel density estimation

Usage

posterior.mode(x, adjust=0.1, ...)

Value

modes of the kernel density estimates

Arguments

x

mcmc object

adjust

numeric, passed to density to adjust the bandwidth of the kernal density

...

other arguments to be passed

Author

Jarrod Hadfield j.hadfield@ed.ac.uk

See Also

Examples

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

Run the code above in your browser using DataLab