Description Usage Arguments Details Value Recovery Use Examples
Computes the mode given a vector of data.
1 | metric_mode(x, na.rm = FALSE)
|
x |
A |
na.rm |
A |
Be forewarned that this method of obtaining the mode does not take into consideration ties. That is, only the first group with the maximum value is returned. If a second group also has a similar count, this group will not be returned.
A single numeric
or integer
value.
The mode should be used when computing latent class recovery among subjects.
1 2 3 | # Sample class-data
x = c(0, 0, 0, 1, 1, 2)
metric_mode(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.