powered by
Calculate the mode of values If the distribution is bi or multimodal or uniform, NA is returned
calc_mode(values)
the mode of the trace
numeric vector to calculate the mode of
Richèl J.C. Bilderbeek
# In a unimodal distribution, find the value that occurs most calc_mode(c(1, 2, 2)) calc_mode(c(1, 1, 2)) # For a uniform distribution, NA is returned tracerer:::calc_mode(c(1, 2))
Run the code above in your browser using DataLab