powered by
Compute the mode of data using the empirical probability density function. Note that there are some problems using all=TRUE or warning=TRUE.
emode (f, include.boundaries=TRUE, all=FALSE, warning=FALSE)
An epdfuv or epdfc object.
Include the min and max data values.
If true, return all modal points, otherwise, return the max modal point only.
If true generate a warning if there are no or multiple modal points.
epdfuv, epdfc
# NOT RUN { #compute the empirical mode x = rnorm (30, 4) ^ 2 epdfuv.f = epdfuv (x) emode (epdfuv.f) # }
Run the code above in your browser using DataLab