Skip to content
Prev 32582 / 398530 Next

Kernel density

Hi,

I want to fit a kernel density estimator by bkde of library KernSmooth.
I need only the density value at the point 0. 
I do not understand the following behaviour:
Error in 0:L : NA/NaN argument
$x
[1] -1

$y
[1] NA
Warning message: 
longer object length
	is not a multiple of shorter object length in: kappa * gcounts
$x
[1] -1  0  1

$y
[1] NA NA NA
(works, I get 401 proper y-values)

Adding truncate=FALSE does not change anything.
Do I really need to generate 401 (default gridsize) y-fits to extract the
one value I am interested in? What's the problem with specifying gridsize?

Best,
Christian