title: How do we set the success category for logistic regression in python?
body: <p>I was learning logistic regression in python by comparing it with SAS.</p>
  
  <p><strong>Dataset:</strong> <a href="http://www.ats.ucla.edu/stat/data/binary.csv" rel="nofollow">http://www.ats.ucla.edu/stat/data/binary.csv</a></p>
  
  <p>here admit is the response variable and has categories 0 and 1.</p>
  
  <p>SAS by default is modeling based on probability that ADMIT=0 and if I specify DESC option it does it on ADMIT = 1.</p>
  
  <p><strong>Ref:</strong> <a href="http://www.ats.ucla.edu/stat/sas/faq/logistic_descending.htm" rel="nofollow">http://www.ats.ucla.edu/stat/sas/faq/logistic_descending.htm</a></p>
  
  <p>Now in python,using stats models by default it is modeling on ADMIT = 1.How can I make to model on ADMIT= 0 (change the event description ) so that I dont see the difference in coefficients and predicted probablities.</p>
  
  <p>Thanks.</p>