powered by
Find maximum a posteriori estimate using posterior samples
map_from_density(param.ts, plot=FALSE)
Scalar MAP estimate.
vector of scalar samples
boolean, plot or not
Finds location of max of density from samples.
n.post.samp <- 10 beta.samp <- rnorm(n.post.samp, 0, 1/2) map_from_density(beta.samp)
Run the code above in your browser using DataLab