title: glm in python vs R
body: <p>I have some dataset: titanic</p>
  
  <p>Doing this in R</p>
  
  <p><code>glm(Survived ~ Sex, titanic, family = "binomial")</code></p>
  
  <p>I get</p>
  
  <pre><code>(Intercept)     SexMale 
  1.124321   -2.477825
  </code></pre>
  
  <p>R takes <strong>survived</strong> as positive outcome.</p>
  
  <p>But when I'm doing the same in Python</p>
  
  <p><code>sm.formula.glm("Survived ~ Sex", family=sm.families.Binomial(), data=titanic).fit()</code></p>
  
  <p>I get negative results: i.e. Python takes <strong>not survived</strong> as positive outcome.</p>
  
  <p>How can I adjust Python's glm function behavior so it will return the same result as R does?    </p>