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]]
>
>
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> [email protected] 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.
______________________________________________
[email protected] 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.