kde_bandwidth {weird} | R Documentation |
Robust bandwidth estimation for kernel density estimation
kde_bandwidth(
data,
method = c("robust_normal", "double", "lookout"),
max.iter = 2
)
data |
A numeric matrix or data frame. |
method |
Method to use for selecting the bandwidth.
|
max.iter |
How many times should the |
A matrix of bandwidths (or scalar in the case of univariate data).
Rob J Hyndman
# Univariate bandwidth calculation
kde_bandwidth(oldfaithful$duration)
# Bivariate bandwidth calculation
kde_bandwidth(oldfaithful[,2:3])