estMode: Estimate Mode of Posterior Distribution

View source: R/estMode.R

estModeR Documentation

Estimate Mode of Posterior Distribution

Description

Estimates the mode of the posterior, by calculating the density of posterior samples and choosing x-value with the maximum y-value.

Usage

estMode(x, na.rm = F)

Arguments

x

numeric vector

Author(s)

Kevin See

Examples

estMode(rgamma(1000, 5, 1/6))

KevinSee/DABOM documentation built on April 4, 2024, 9:28 a.m.