dip: Compute Hartigan's DIP Test Statistic for Unimodality
Description
Computes Hartigan's DIP test statistic for testing unimodality,
and additionally the modal interval. This function is taken from Martin Maechler's diptest package.
Usage
dip(x,
full.result = FALSE,
debug = FALSE)
Arguments
x
numeric. Vector of observations.
full.result
logical. If TRUE returns the full result
list, see below.
debug
logical. If TRUE, some tracing information is printed
(from the C routine).
Value
Depending on full.result either a number, the dip statistic, or
a list with components