data(Haberman)
Haberman$X = scale(Haberman$X, center=TRUE, scale=TRUE)
lambda = 10^(seq(-3, 3, length.out=10))
kern = rbfdot(sigma=1)
m1 = kerndwd(Haberman$X, Haberman$y, kern, qval=1,
lambda=lambda, eps=1e-5, maxit=1e5)
plot(m1, color=TRUE)
Run the code above in your browser using DataLab