Learn R Programming

geoCount (version 1.150120)

findMode: Estimate Mode of the Posterior Samples

Description

This function estimates the mode of empirical density function for a given posterior samples.

Usage

findMode(x, ...)

Arguments

x
a vector of posterior samples
...
other parameters used when estimating then empirical density function; see ?density

Value

The value of mode.

Details

This function uses density function to estimate the empirical density function.

Examples

Run this code
## Not run: 
# findMode(rnorm(1000))
# ## End(Not run)

Run the code above in your browser using DataLab