Re: [R] how to find how many modes in 2 dimensions case

2007-06-12 Thread Ravi Varadhan
EMAIL PROTECTED] Webpage: http://www.jhsph.edu/agingandhealth/People/Faculty/Varadhan.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Wang Sent: Friday, June 08, 2007 3:35 PM To: Bert Gunter Cc: r-help@stat.math.ethz.ch Subject: Re: [R] how to fin

Re: [R] how to find how many modes in 2 dimensions case

2007-06-12 Thread Ravi Varadhan
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Wang Sent: Friday, June 08, 2007 3:35 PM To: Bert Gunter Cc: r-help@stat.math.ethz.ch Subject: Re: [R] how to find how many modes in 2 dimensions case Thanks for the reply, maybe I shall say bumps

Re: [R] how to find how many modes in 2 dimensions case

2007-06-09 Thread Tony Plate
If you want to count the local maxima in the n x n matrix returned by kde2d, AND you know there are no ties, you could do something like the following: > set.seed(1) > x <- matrix(sample(10, 25, rep=TRUE), 5, 5) > x [,1] [,2] [,3] [,4] [,5] [1,]3935 10 [2,]4 10

Re: [R] how to find how many modes in 2 dimensions case

2007-06-08 Thread Patrick Wang
rick Wang > Sent: Friday, June 08, 2007 11:54 AM > To: R-help@stat.math.ethz.ch > Subject: [R] how to find how many modes in 2 dimensions case > > Hi, > > Does anyone know how to count the number of modes in 2 dimensions using > kde2d function? > > Thanks > Pat >

Re: [R] how to find how many modes in 2 dimensions case

2007-06-08 Thread Bert Gunter
EMAIL PROTECTED] On Behalf Of Patrick Wang Sent: Friday, June 08, 2007 11:54 AM To: R-help@stat.math.ethz.ch Subject: [R] how to find how many modes in 2 dimensions case Hi, Does anyone know how to count the number of modes in 2 dimensions using kde2d functi

[R] how to find how many modes in 2 dimensions case

2007-06-08 Thread Patrick Wang
Hi, Does anyone know how to count the number of modes in 2 dimensions using kde2d function? Thanks Pat __ R-help@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/posti