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.

 

How can I use this to evaluate the fitted function at a certain point, e.g.
(x=1, y=1, z=1)? Does R provide methods for sampling from the fitted
function?

 

Thanks,

 

Christoph

 


	[[alternative HTML version deleted]]

