[R] Re: How to get mode (the most frequent value in distribution)?
vito_ricci at yahoo.com
Fri Nov 12 13:51:02 CET 2004
if you have a continous distribution is rather
difficult that the same value is repeated many times.
In this case I believe you could not find the mode
(the most frequent value in distribution) as your
distribution is continous, but only the modal
class/interval (the interval of the distribution
having the most frequency).
See this example:
> xcut<-cut(x, breaks=c(-4,-3,-2,-1,0,1,2,3,4))
(-4,-3] (-3,-2] (-2,-1] (-1,0] (0,1] (1,2]
0 1 19 33 30 17
the modal class/interval is (-1,0].
I hope I give a little help.
I have a continous distribution and would like to get
mode (the most
frequent value in distribution). I easily found mean,
median and other
basic thing but not mode function. Can anyone help?
I know there my might be problems with multiple modes,
but still I think
that there should be a mode function in R.
Please send mail to R-help list and me, so I can get
Lep pozdrav / With regards,
Diventare costruttori di soluzioni
Became solutions' constructors
"The business of the statistician is to catalyze
the scientific learning process."
George E. P. Box
Visitate il portale http://www.modugno.it/
e in particolare la sezione su Palese http://www.modugno.it/archivio/cat_palese.shtml
More information about the R-help