Re: [R] find maximum values on the density function of a bimodal distribution

2014-04-22 Thread David Carlson
---Original Message- From: Bert Gunter [mailto:gunter.ber...@gene.com] Sent: Monday, April 21, 2014 4:17 PM To: David Carlson Cc: Luigi Marongiu; r-help@r-project.org Subject: Re: [R] find maximum values on the density function of a bimodal distribution Well, yes and no, David. Yours is one possible int

Re: [R] find maximum values on the density function of a bimodal distribution

2014-04-21 Thread Bert Gunter
ople.tamu.edu/~dcarlson/nar/ > > Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Luigi > Marongiu > Sent: Monday, April 21, 2014 1:24 PM > To: r-help@r-project.org > Subject: [R] find maximum values on the

Re: [R] find maximum values on the density function of a bimodal distribution

2014-04-21 Thread David Carlson
u Sent: Monday, April 21, 2014 1:24 PM To: r-help@r-project.org Subject: [R] find maximum values on the density function of a bimodal distribution *dear all,I have a bimodal distribution and i would like to identify the two most frequent values. Using unimodal values i found from the R archive that

[R] find maximum values on the density function of a bimodal distribution

2014-04-21 Thread Luigi Marongiu
*dear all,I have a bimodal distribution and i would like to identify the two most frequent values. Using unimodal values i found from the R archive that is possible to identify the most frequent value, which corresponds to the peak of the density function:from Bert Gunter, Fri Mar 13 04rv <- rbinom