Skip to content

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

1 message · Liaw, Andy

#
A sample from a continuous distribution most likely has no meaningful sample
mode.  Shown below is a way to estimate the location of mode from a kernel
density estimate (using the locfit package):
Locfit for R.
August 3, 2000.  (Updated for R 1.7.0, March 21, 2003)

Attaching package 'locfit':


        The following object(s) are masked from package:stats :

         knots
[1] -0.615337

HTH,
Andy