Learn R Programming

rethinking (version 2.13)

chainmode: 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

Value

Details

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