Created
November 21, 2011 19:36
-
-
Save NightlordTW/1383665 to your computer and use it in GitHub Desktop.
Logistic Regression Example (Part 3)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mydata$rank = factor(mydata$rank) #Treat rank as a categorical variable | |
fmla = as.formula("admit~gre+gpa+rank") #Create model formula | |
mylogit = mle.logreg(fmla, mydata) #Estimate coefficients | |
mylogit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment