Re: [R] Sampling from multi-dimensional kernel density estimation

2010-11-23 Thread Greg Snow
801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Christoph Goebel > Sent: Friday, November 19, 2010 1:56 PM > To: r-help@r-project.org > Subject: [R] Sampling from multi-dimensional kernel density

[R] Sampling from multi-dimensional kernel density estimation

2010-11-19 Thread Christoph Goebel
Hi, I'd like to use a three-dimensional dataset to build a kernel density and then sample from the distribution. I already used the npudens function in the np package to estimate the density and plot it: fit<-npudens(~x+y+z) plot(fit) It takes some time but appears to work well.