View source: R/getPosteriorMode.R
getPosteriorMode | R Documentation |
This function is a wrapper of hdr
, it returns one mode
(if receives a vector), otherwise it returns a list of modes (if receives a
list of vectors). If receives an mcmc object it returns the marginal
parameter mode using Kernel density estimation
(posterior.mode
).
getPosteriorMode(df = NULL, round = 3)
df |
data frame, list or vector with posterior distribution(s). |
round |
numeric, number of decimals rounded. |
a vector or a list of modes
# List example a <- list("First" = rnorm(100,1), "Second" = rnorm(100,2)) getPosteriorMode(a) # vector example getPosteriorMode(rnorm(100,5), round = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.