Re: [R] Area of density

2008-09-06 Thread pragmatic
BIG THANKS!!! )) -- View this message in context: http://www.nabble.com/Area-of-density-tp19338958p19351299.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat

Re: [R] Area of density

2008-09-05 Thread Rolf Turner
On 6/09/2008, at 8:32 AM, pragmatic wrote: Hello! Please, anybody help me. Can I calculate area of density was created by: D <- density(x) In other words I want to know area under curve 'plot(D)' and It's good to calculate area before and after 0 separately. (1) You could use splinefun()

Re: [R] Area of density

2008-09-05 Thread Duncan Murdoch
On 05/09/2008 4:32 PM, pragmatic wrote: Hello! Please, anybody help me. Can I calculate area of density was created by: D <- density(x) In other words I want to know area under curve 'plot(D)' That should be 1. and It's good to calculate area before and after 0 separately. That's harder,

[R] Area of density

2008-09-05 Thread pragmatic
Hello! Please, anybody help me. Can I calculate area of density was created by: > D <- density(x) In other words I want to know area under curve 'plot(D)' and It's good to calculate area before and after 0 separately. -- View this message in context: http://www.nabble.com/Area-of-density-tp193