title: GLM function for Logistic Regression: what is the default predicted outcome?
body: <p>I am relatively new to R modelling and I came across the GLM functions for modelling. I am interested in Logistic regression using the family 'binomial'. My question is when my dependent variable can take one of two possible outcomes - say 'positive', 'negative' - what is the default outcome for which the estimates are computed - does the model predict the log odds for a 'positive' or a 'negative' outcome by default ? Also, what is the default outcome considered for estimation when the dependent variable is </p>
  
  <ol>
  <li><code>Yes</code> or <code>No</code></li>
  <li>1 or 2</li>
  <li><code>Pass</code> or <code>Fail</code> </li>
  </ol>
  
  <p>etc. ?</p>
  
  <p>Is there a rule by which R selects this default? Is there a way to override it manually? Please clarify.</p>