[R] mode of a distribution - was (no subject)

Charles Annis, P.E. Charles.Annis at StatisticalEngineering.com
Tue Aug 24 19:18:50 CEST 2004


Perhaps a time out might be helpful.

?which.max will produce the location (index) of the maximum of a numeric
vector, but Paolo doesn't want that.  He wants the location of the most
frequent observation which would be the maximum of the probability density,
which he doesn't have.  

It would be useful to estimate what kind of density represents the data and
then, given this, determine its interesting statistics, including the mode.


Charles Annis, P.E.
 
Charles.Annis at StatisticalEngineering.com
phone: 561-352-9699
eFax:  503-217-5849
http://www.StatisticalEngineering.com

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Jonathan Baron
Sent: Tuesday, August 24, 2004 1:01 PM
To: Paolo Tommasini
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] (no subject)

On 08/24/04 13:50, Paolo Tommasini wrote:
>Hi my name is Paolo Tommasini does anyone know how to compute a "mode"
>( most frequent element ) for a distribution ?

which.max

-- 
Jonathan Baron, Professor of Psychology, University of Pennsylvania
Home page: http://www.sas.upenn.edu/~baron
R search page: http://finzi.psych.upenn.edu/

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html




More information about the R-help mailing list