[R] kernel smooth for tw-dimensional data

Patrick Wang pwang at berkeley.edu
Wed Jun 6 03:59:46 CEST 2007


Hi all:

I can use the density() function to get the kernel density for given
observed data X with bandwidth.

Is there a function in R that can take in two dimensional data(x, y) and
return a joint density based
on the bandwidth. Do I need to provide bandwith for x and then for y?

Is the GRASS package
kde2d.G(x, y, h, G, reverse=reverse(G))

provide such function?

Thanks
pat



More information about the R-help mailing list