]
[mailto:[EMAIL PROTECTED] On Behalf Of Carlos Morales
Sent: Saturday, September 06, 2008 11:24 AM
To: r-help@r-project.org
Subject: [R] Mode value
Hello everyone,
I would like to know if there is any function to calculate
the mode value, or I have to build one to do it.
Thanks so much
Carlos Morales wrote:
Hello everyone,
I would like to know if there is any function to calculate the mode value, or I
have to build one to do it.
Hi Carlos,
If you mean the mode of a sample from a discrete distribution, try Mode
in the prettyR package.
Jim
Hello everyone,
I would like to know if there is any function to calculate the mode value, or I
have to build one to do it.
Thanks so much
Carlos
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
look here:
http://www.nabble.com/how-to-calculate-the-mode-of-a-continuous-variable-td19214243.html#a19214243
On Sat, Sep 6, 2008 at 1:24 PM, Carlos Morales
[EMAIL PROTECTED] wrote:
Hello everyone,
I would like to know if there is any function to calculate the mode value, or
I have to build
Hi Carolos,
I know that it is not a elegant soluction, but may work. Almost for integer
values. Take care with float values.
modevalue-function(x)
{
x.freq-data.frame(table(x))
x.freq.max-max(x.freq$Freq)
x.freq.selected-subset(x.freq, x.freq$Freq==x.freq.max)
On 09/06/08 17:24, Carlos Morales wrote:
Hello everyone,
I would like to know if there is any function to calculate the mode value, or
I have
to build one to do it.
I just did this the other day. Funny you should ask. It finds the
mode of each row of a matrix called Pbest.
Pbest.p -
6 matches
Mail list logo