Learn R Programming

provenance (version 4.4)

botev: Compute the optimal kernel bandwidth

Description

Uses the diffusion algorithm of Botev (2011) to calculate the bandwidth for kernel density estimation

Usage

botev(x)

Value

a scalar value with the optimal bandwidth

Arguments

x

a vector of ordinal data

Author

Zdravko Botev

References

Botev, Z. I., J. F. Grotowski, and D. P. Kroese. "Kernel density estimation via diffusion." The Annals of Statistics 38.5 (2010): 2916-2957.

Examples

Run this code
fname <- system.file("Namib/DZ.csv",package="provenance")
bw <- botev(read.distributional(fname)$x$N1)
print(bw)

Run the code above in your browser using DataLab