powered by
Computes the mode of a random variable.
moda(y = y)
The function returns the mode, a numeric scalar.
is a numeric vector.
Christian Salas-Eljatib.
The mode is an statistics representing the most "used" value of the random variable as a way of central position.
set.seed(1234) variable <- rnorm(10, mean=45,sd=6) #using the function moda(y=variable) moda(variable)
Run the code above in your browser using DataLab