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.
 
[EMAIL PROTECTED]
phone: 561-352-9699
eFax:  503-217-5849
http://www.StatisticalEngineering.com

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Baron
Sent: Tuesday, August 24, 2004 1:01 PM
To: Paolo Tommasini
Cc: [EMAIL PROTECTED]
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/

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

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
    • ... Uwe Ligges
  • ... Shaw, Philip (NIH/NIMH)
  • ... Liaw, Andy
  • ... Paolo Tommasini
    • ... Roger Bivand
    • ... Arne Henningsen
  • ... Wildi Marc, wia
  • ... Paolo Tommasini
    • ... Jonathan Baron
      • ... Berton Gunter
      • ... Charles Annis, P.E.
      • ... Tony Plate
  • ... Loke Chok Kang
  • ... Austin, Matt
  • ... Austin, Matt
    • ... Thomas Lumley
  • ... Paolo Tommasini
  • ... Наталия Титова
    • ... Spencer Graves

Reply via email to