Build a logistic regression model to predict the probability that a student will be in the honors class, based on information we know about the student: Male , read = 50, math = 60. What is the probability?
For building the model, the only variables are female ( have to seperate gender from code) , Honors, read, and math
Model I want to show is :
m5 <- glm(hon ~ female + math + read + female * math * read, data = honor, family = binomial)
summary(m5)
Male is 0 Female is 1 as levels when I go deeper as a Binary predictor for model. How can I add this on the model?
Is this correct model to build to extract logit values to make a probability?
predict(m5, newdata = data.frame(female = 0, read = 50, math = 60))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.