Robust bandwidth estimation for kernel density estimation
Source:R/kde_bandwidth.R
kde_bandwidth.Rd
Robust bandwidth estimation for kernel density estimation
Examples
# Univariate bandwidth calculation
kde_bandwidth(oldfaithful$duration)
#> [1] 5.087699
# Bivariate bandwidth calculation
kde_bandwidth(oldfaithful[, c("duration", "waiting")])
#> [,1] [,2]
#> [1,] 40.53793 349.3449
#> [2,] 349.34486 22918.0734