botev | R Documentation |
Uses the diffusion algorithm of Botev (2011) to calculate the bandwidth for kernel density estimation
botev(x)
x |
a vector of ordinal data |
a scalar value with the optimal bandwidth
Zdravko Botev
Botev, Z. I., J. F. Grotowski, and D. P. Kroese. "Kernel density estimation via diffusion." The Annals of Statistics 38.5 (2010): 2916-2957.
fname <- system.file("Namib/DZ.csv",package="provenance")
bw <- botev(read.distributional(fname)$x$N1)
print(bw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.