mfv returns the most frequent value(s) (or mode(s))
found in a vector.
mfv1 returns the first of these values, so that
is identical to
1 2 3
Vector of observations (of type numeric, character, factor, or logical).
Additional parameters that are currently ignored.
x is to come from a discrete distribution.
mfv calls the function
mfv returns a vector of the same type as
One should be aware that this vector can be of length
> 1, in case of multiple modes.
mfv1 is safer in the sense that it always
returns a vector of length
1 (the first of the modes found).
Dutta S. and Goswami A. (2010). Mode estimation for discrete distributions. Mathematical Methods of Statistics, 19(4):374–384.
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.