Thanks in advance here. I use dpik() function to calculate the bandwidth h. Following is the related code: h<-dpik(x,scalest="minim",level=2L,kernel="normal",canonical=FALSE,gridsize=401L,range.x=range(x),truncate=TRUE)
But there is warning messages: 1: In bkfe(gcounts, 6L, alpha, range.x = c(sa, sb), binned = TRUE) : Binning grid too coarse for current (small) bandwidth: consider increasing 'gridsize' 2: In bkfe(gcounts, 4L, alpha, range.x = c(sa, sb), binned = TRUE) : Binning grid too coarse for current (small) bandwidth: consider increasing 'gridsize' I don't know what it means and how to deal with it. Thanks Regards -- View this message in context: http://r.789695.n4.nabble.com/about-dpik-tp4636738.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org 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.