📜  根据 GPA 和 GRE 预测学生是否成功的问题.逻辑回归 - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:17.693000             🧑  作者: Mango
代码示例2
mydata$rank <- factor(mydata$rank)
mylogit <- glm(admit ~ gre + gpa + rank, data = mydata, family = "binomial")