calc_mode: Calculate the mode of values If the distribution is bi or...

Description Usage Arguments Value Author(s) Examples

View source: R/calc_mode.R

Description

Calculate the mode of values If the distribution is bi or multimodal or uniform, NA is returned

Usage

1
calc_mode(values)

Arguments

values

numeric vector to calculate the mode of

Value

the mode of the trace

Author(s)

Richèl J.C. Bilderbeek

Examples

1
2
3
4
5
6
# 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))

tracerer documentation built on May 30, 2021, 5:06 p.m.