Learn R Programming

bpnreg (version 2.0.3)

hmodeci: Find the highest density interval.

Description

Find the highest density interval.

Usage

hmodeci(x, cip)

Value

a vector of length 2 containing the lower and upper bound of the interval.

Arguments

x

a sample from which to estimate the interval

cip

bandwidth for the algorithm, ranging from 0 to 1