distribution_mode | R Documentation |
Compute mode for a statistical distribution
distribution_mode(x)
x |
An atomic vector, a list, or a data frame. |
The value that appears most frequently in the provided data. The returned data structure will be the same as the entered one.
For continuous variables, the
Highest Maximum a Posteriori probability estimate (MAP) may be
a more useful way to estimate the most commonly-observed value
than the mode. See bayestestR::map_estimate()
.
distribution_mode(c(1, 2, 3, 3, 4, 5))
distribution_mode(c(1.5, 2.3, 3.7, 3.7, 4.0, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.