title: Warning in GLM analysis
body: <p>I was running GLM analysis using normalized and transformed data set but I encountered a Warning message as follow.</p>
  
  <blockquote>
    <p>glm.fit: fitted probabilities numerically 0 or 1 occurred 
    glm.fit: algorithm did not converge 
    glm.fit: fitted probabilities numerically 0 or 1 occurred</p>
  </blockquote>
  
  <p>Then, I created a simulation data frame and run it in the same fashion as I did for my actual data set and no warning. 
  Below are my code and the simulation data set
  Any help would be appreciated!
  Thank you!</p>
  
  <pre><code>library(tidyverse)
  library(broom)
  data &lt;- data.frame(B = c("m","m","m","m","m", "m", "f","f","f","f","f"),
                     G= c("s","s","s","u","u", "u", "k","k","k","r","r"),
                     g1 = c(35, 2, 3, 4, 5, 6, 7, 10, 12, 41, 76), 
                     g2 = c(20, 2, 7, 2, 8, 5, 5, 3, 7, 2, 12), 
                     g3 = c(5, 0, 4, 5, 2, 4, 8, 9, 20, 1, 11,
                     g4 = c(1,3,4,5,7,3,1,5,7,3,10),
                     g5=  c(20,23, 27, 35, 12, 10, 17, 24, 21, 15, 16)))
  data %&gt;% 
    pivot_longer(-c(1:3)) %&gt;% 
    group_split(name) %&gt;% 
    set_names(nm = map(., ~ first(.x$name))) %&gt;% 
    map(~ tidy(glm(factor(data$B) ~ value,family="binomial", data = .))) %&gt;% 
    map(~ filter(., p.value &gt; 0.05)) %&gt;% 
    bind_rows(.id = "var")```
  
  
  </code></pre>