chainmode: Find mode of a continuous density estimate

View source: R/utilities.r

chainmodeR Documentation

Find mode of a continuous density estimate

Description

Returns estimated mode of a density computed from samples.

Usage

chainmode( chain , ... )

Arguments

chain

Values, e.g. sampled from a posterior via MCMC

...

Optional arguments passed to density calculation

Details

This function just finds the x value that maximizes the y density in the density estimate.

Author(s)

Richard McElreath


rmcelreath/rethinking documentation built on Sept. 18, 2023, 2:01 p.m.