[R] density

Adaikalavan Ramasamy ramasamy at cancer.org.uk
Sun May 20 01:13:27 CEST 2007


Try bkde2D {KernSmooth} or kde2d {MASS}.


Bruce Willy wrote:
> Hello,
>  
> I have a n*2 matrix, called "plan", which contains n observations from 2 variates.
>  
> I want a kernel density estimate of the joint distribution of these 2 variates.
> I try : density(plan). Unfortunately, R thinks there is 2n observations (if n=10, 20 observations), where there is only n.
>  
> How to to make a multivariate kernel density estimate ?
>  
> Thank you very much.
> _________________________________________________________________
> 
> météo et bien plus encore !
> 
> 	[[alternative HTML version deleted]]
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list