densest | R Documentation |
This function assumes that data represents a continuous variable and finds a single value with the highest estimated density. This can be used to estimate the mode of the data. If there is only one value that value is returned. If multiple density maxima with the same density exist, their mean is returned.
densest(data)
data |
The input data. |
The densest value of data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.