Skip to content

Instantly share code, notes, and snippets.

@NightlordTW
Created November 21, 2011 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NightlordTW/1383665 to your computer and use it in GitHub Desktop.
Save NightlordTW/1383665 to your computer and use it in GitHub Desktop.
Logistic Regression Example (Part 3)
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