你能在R 中执行内核Logistic回归吗?

我试图在R中执行内核逻辑回归.是否有一个包执行此操作? 最佳答案 stats :: ksmooth为您提供Nadaraya-Watson内核回归:

with(cars, {
    plot(speed, dist>40)
    lines(ksmooth(speed, dist>40, "normal", bandwidth = 2), col = 2)
    lines(ksmooth(speed, dist>40, "normal", bandwidth = 6), col = 3)
})
点赞