Skip to content

How to get mode (the most frequent value in distribution)?

1 message · Vito Ricci

#
Hi Gregor,

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
(-4,-3] (-3,-2] (-2,-1]  (-1,0]   (0,1]   (1,2]  
(2,3]   (3,4] 
      0       1      19      33      30      17      
0       0
[1] 33

the modal class/interval is (-1,0].

I hope I give a little help.
Best
Vito
You wrote:
Hello!

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
response faster.

Thank you!