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

From: Adelchi Azzalini <azzalini_at_stat.unipd.it>
Date: Fri 16 Dec 2005 - 18:41:31 EST

On Thu, 15 Dec 2005 14:21:17 -0500, Strickland, Matthew wrote:

SM> Hi,
SM> 
SM> My data consists of a set of point locations (x,y). 
SM> 
SM> I would like to know if there is a procedure for bivariate kernel
SM> density estimation in R that returns the density estimates at the
SM> observed point locations rather than at grid locations. I have
SM> looked at a number of different routines and they all seem to
SM> return estimates at grid locations.  
SM> 

One option is to use (from package sm),   sm.density(xy, eval.points=xy, eval.grid=FALSE) where xy in a (n\times 2) matrix.

Best wishes,
Adelchi Azzalini

-- 
Adelchi Azzalini  <azzalini@stat.unipd.it>
Dipart.Scienze Statistiche, Universitŕ di Padova, Italia
tel. +39 049 8274147,  http://azzalini.stat.unipd.it/

______________________________________________
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 18:46:07 2005

This archive was generated by hypermail 2.1.8 : Fri 16 Dec 2005 - 20:32:43 EST