Re: [R] Binning Question

2010-04-13 Thread David Winsemius
On Apr 13, 2010, at 12:02 AM, Noah Silverman wrote: David, That helps me a lot. Thanks!!! -N On 4/12/10 9:06 PM, David Winsemius wrote: dat <- as.data.frame(matrix( rnorm(200), 100 , 2)) # bivariate normal n=100 ab <- matrix( c(-5,-5,5,5), 2, 2) # interval [-5,5) x [-5,5) nbin <- c( 2

Re: [R] Binning Question

2010-04-12 Thread Noah Silverman
David, That helps me a lot. Thanks!!! -N On 4/12/10 9:06 PM, David Winsemius wrote: dat <- as.data.frame(matrix( rnorm(200), 100 , 2)) # bivariate normal n=100 ab <- matrix( c(-5,-5,5,5), 2, 2) # interval [-5,5) x [-5,5) nbin <- c( 20, 20) # 400 bins bins <- bin2(dat, ab, nbin) # bin coun

Re: [R] Binning Question

2010-04-12 Thread David Winsemius
On Apr 12, 2010, at 9:07 PM, Noah Silverman wrote: Hi, I'm trying to setup some complicated binning with statistics and could use a little help. I've found the bin2 function from the ash package, but it doesn't do everything I need. My intention is to copy some of their code and then modi

[R] Binning Question

2010-04-12 Thread Noah Silverman
Hi, I'm trying to setup some complicated binning with statistics and could use a little help. I've found the bin2 function from the ash package, but it doesn't do everything I need. My intention is to copy some of their code and then modify as needed. I have a vector of two columns: head(data)