Computes the mode given a vector of data.
metric_mode(x, na.rm = FALSE)
x | A |
---|---|
na.rm | A |
A single numeric
or integer
value.
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.
The mode should be used when computing latent class recovery among subjects.
#> [1] 0