Re: [R] two densities with same stepsize

2008-02-05 Thread Greg Snow
. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Antje > Sent: Tuesday, February 05, 2008 1:22 AM > To: [EMAIL PROTECTED] > Subject: [R] two d

Re: [R] two densities with same stepsize

2008-02-05 Thread Duncan Murdoch
On 05/02/2008 3:22 AM, Antje wrote: > Hi there, > > I have two series of data. plotting the density function of both gives me an > idea about the difference of the data. But I would like to quantify the > difference I see. > > a <- rnorm(100) > b <- rnorm(100) > > da <- density(a) > db <- dens

[R] two densities with same stepsize

2008-02-05 Thread Antje
Hi there, I have two series of data. plotting the density function of both gives me an idea about the difference of the data. But I would like to quantify the difference I see. a <- rnorm(100) b <- rnorm(100) da <- density(a) db <- density(b) The problem is that da$x and db$x are different an