But since you don't, why not calculate the density directly for each point (e.g., in a loop). The formula is simple enough:
mean(dnorm(x-gx,sd=h1)*dnorm(y-gy,sd=h2)) yes, this was my initial thought, and it works. (But i was hoping kde2d or some similar function could do it faster). I'l try out the "discard kde2d estimates - method". By the way Karl, its your program kode-likb-gr.R im modifying, hope you don't mind :ninja:. Thanks for your replies! Geir Drage Berentsen -- View this message in context: http://n4.nabble.com/density-estimates-for-fixed-points-tp1556081p1557418.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.