Description Usage Arguments Details Value References Examples

The function `mfv`

returns the most frequent value(s) (or mode(s))
found in a vector.
The function `mfv1`

returns the first of these values, so that `mfv1(x)`

is identical to `mfv(x)[[1L]]`

.

1 2 3 |

`x` |
Vector of observations (of type numeric, character, factor, or logical). |

`...` |
Additional parameters that are currently ignored. |

Argument `x`

is to come from a discrete distribution.
`mfv`

calls the function `tabulate`

.

The function `mfv`

returns a vector of the same type as `x`

.
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 |

statoo documentation built on Jan. 27, 2017, 1 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.