On Wed, 2 Dec 2009 11:14:14 +0100 Trafim <rdapam...@gmail.com> wrote: > As far as I understood from Help kde2d returns matrix elements of which are > values of joint probability mass function Pr(X=x,Y=y) therefore, sum of its > elements should sum to 1.
No, they're values of a joint *density* function, which should usually *not* sum to 1. -- Karl Ove Hufthammer ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.