map_from_density {agfh} | R Documentation |
Calculate the MAP Estimate from Posterior Samples
Description
Find maximum a posteriori estimate using posterior samples
Usage
map_from_density(param.ts, plot=FALSE)
Arguments
param.ts |
vector of scalar samples |
plot |
boolean, plot or not |
Details
Finds location of max of density from samples.
Value
Scalar MAP estimate.
Source
Marten Thompson thom7058@umn.edu
Examples
n.post.samp <- 10
beta.samp <- rnorm(n.post.samp, 0, 1/2)
map_from_density(beta.samp)
[Package agfh version 0.2.1 Index]