Mode {asbio} | R Documentation |
Calculates the sample mode; i.e. the most frequent outcome in a dataset. Non-existence of the mode will return a message.
Mode(x)
x |
A vector of quantitative data. |
Returns the sample mode or an error message if the mode does not exist.
Ken Aho
Bain, L. J., and M. Engelhardt (1992) Introduction to probability and mathematical statistics. Duxbury press. Belmont, CA, USA.
H.mean
, HL.mean
, mean
, median
, huber.mu
x<-round(rnorm(100000,mean=10,sd=2),0) mode(x)