Kernel CDF estimate: integral drops to zero

I want to integrate a kernel density estimate in order to get a kernel estimate of the cdf. This is my code: set.seed(1) z <- rnorm(250) pdf <- approxfun(density(z, bw = "SJ"), yleft = 0, yright = 0) cdf <- function(b) { integrate(pdf, -...
more »

2017-07-09 21:07 (1) Answers