title: r- glm2 error "singular fit encountered"
body: <p>I'm trying different methods to do logistic regressions.
  I use glm and got a warning but still got the coefficients. So the formula works.</p>
  
  <pre><code>logit&lt;-glm(flag_compro~.,training, family=binomial("logit"),control = list(maxit = 50))
  </code></pre>
  
  <p>Now, I'm testing glm2, and since it says that uses the same model spefications as glm, I wrote:</p>
  
  <pre><code>logit2&lt;-glm2(flag_compro~., training, family=binomial("logit"))
  </code></pre>
  
  <p>But I got the following error:</p>
  
  <pre><code>&gt; logit2&lt;-glm2(flag_compro~., training, family=binomial("logit"))
  Error in lm.fit(x = x[good, , drop = FALSE] * w, y = z * w, singular.ok = FALSE,  : 
    singular fit encountered
  </code></pre>
  
  <p>I think it's related to the fact that I might have multicolinearity. If that's the case, does the package glm2 have something to solve it?</p>