## Not run:
# ## Phoneme data
# data(phoneme)
# classes <- phoneme[,151]
# phoneme <- phoneme[,-151]
# freq <- 1:150
# plugin.bandwidth <- numeric(5)
# cv.bandwidth <- numeric(5) # compare with cross-validation
# for (i in 1:5) {
# plugin.bandwidth[i] <- plugin.select(x = freq, y = phoneme[classes == i, ],
# drv = 0, degree = 1)
# cv.bandwidth[i] <- cv.select(x = freq, y = phoneme[classes == i, ],
# degree = 1)
# }
#
# round(cbind(plugin.bandwidth, cv.bandwidth), 4)
#
# ## End(Not run)
Run the code above in your browser using DataLab