chainmode: Find mode of a continuous density estimate

Description Usage Arguments Details Author(s)

Description

Returns estimated mode of a density computed from samples.

Usage

1
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


joepowers16/rethinking documentation built on June 2, 2019, 6:52 p.m.