R语言逻辑回归 logistic regression

R语言逻辑回归代码示例 rm(list=ls()) require(kernlab) data(spam) data <- spam n <- nrow(spam) id <- sample(1:n, floor(n*0.5)) train <- data[id,] test <- data[-id,] mdl <- glm(formula = type~., family = binom
相关文章
相关标签/搜索