With excessmass
, the excess of mass statistic, introduced by M<U+00FC>ller and Sawitzki (1991), for the integer number of modes specified in mod0
is computed.
If there are repeated data in the sample or the distance between different pairs of data points shows ties, a data perturbation is applied. This modification is made in order to avoid the discretization of the data which has important effects on the computation of the test statistic. The perturbed sample is obtained by adding a sample from the uniform distribution in minus/plus a half of the minimum of the positive distances between two sample points.
The NAs will be automatically removed.