map_from_density | R Documentation |
Find maximum a posteriori estimate using posterior samples
map_from_density(param.ts, plot=FALSE)
param.ts |
vector of scalar samples |
plot |
boolean, plot or not |
Finds location of max of density from samples.
Scalar MAP estimate.
Marten Thompson thom7058@umn.edu
n.post.samp <- 10
beta.samp <- rnorm(n.post.samp, 0, 1/2)
map_from_density(beta.samp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.