a problem of predicting whether a student succeed or not based of his GPA and GRE. with python code example
Example 1: a problem of predicting whether a student succeed or not based of his GPA and GRE. for logistic regression
mydata$rank <- factor(mydata$rank)
mylogit <- glm(admit ~ gre + gpa + rank, data = mydata, family = "binomial")
Example 2: a problem of predicting whether a student succeed or not based of his GPA and GRE. for logistic regression
## odds ratios only
exp(coef(mylogit))