Re: [R] bivariate kernel density estimates at point locations ( r ather than at grid locations)

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Fri 16 Dec 2005 - 07:52:25 EST


You can try `locfit', though it does local likelihood, rather than garden-variety kernel density estimation. Here's an example:

library(locfit)
data(cldem)
den.fit <- locfit(~ x1 + x2, data=cltrain) predict(den.fit, newdata=cltrain)

Andy

From: Strickland, Matthew
>
> Hi,
>
> My data consists of a set of point locations (x,y).
>
> I would like to know if there is a procedure for bivariate kernel
> density estimation in R that returns the density estimates at the
> observed point locations rather than at grid locations. I
> have looked at
> a number of different routines and they all seem to return
> estimates at
> grid locations.
>
> Any type of kernel is fine (i.e., Gaussian, Quartic, etc).
>
> Thank you for your help!
>
> Matt Strickland
> U.S. Centers for Disease Control and Prevention
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Dec 16 07:59:51 2005

This archive was generated by hypermail 2.1.8 : Fri 16 Dec 2005 - 09:45:45 EST