Re: [R] Calculating sum of squares from density estimates

2008-01-24 Thread Rainer M Krug
David Winsemius wrote: > Rainer M Krug <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > >> Hi >> >> I have some density estimates obtained from density(). I would like >> to calculate the sum of squares of these. As the x values of the >> estimates are not the same, and I would prefer not

Re: [R] Calculating sum of squares from density estimates

2008-01-24 Thread David Winsemius
Rainer M Krug <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hi > > I have some density estimates obtained from density(). I would like > to calculate the sum of squares of these. As the x values of the > estimates are not the same, and I would prefer not to restrict the > estiomate to a

[R] Calculating sum of squares from density estimates

2008-01-24 Thread Rainer M Krug
Hi I have some density estimates obtained from density(). I would like to calculate the sum of squares of these. As the x values of the estimates are not the same, and I would prefer not to restrict the estiomate to a certain range of x values, how can I do the calculation? Lets say: d1 <- de