Learn R Programming

bpnreg (version 2.0.3)

hmodeC: Estimate the mode by finding the highest posterior density interval

Description

Estimate the mode by finding the highest posterior density interval

Usage

hmodeC(x, cip)

Value

a scalar containing the estimate of the mode

Arguments

x

a sample from which to estimate the interval

cip

bandwidth for the algorithm, ranging from 0 to 1