title: Logistic regression - defining reference level in R
body: <p>I am going nuts trying to figure this out. How can I in R, define the reference level to use in a binary logistic regression? What about the multinomial logistic regression? Right now my code is:</p>
  
  <pre><code>logistic.train.model3 &lt;- glm(class~ x+y+z,
                           family=binomial(link=logit), data=auth, na.action = na.exclude)
  </code></pre>
  
  <p>my response variable is "YES" and "NO". I want to predict the probability of someone responding with "YES".</p>
  
  <p>I DO NOT want to recode the variable to 0 / 1. Is there a way I can tell the model to predict "YES" ? </p>
  
  <p>Thank you for your help.</p>