title: dglm() function in R giving the error "Error: inner loop 1; cannot correct step size"
body: <p>I am running the dglm() function in R with the parameters below</p>
  
  <pre><code>obj=dglm(sigdat~genotypes, ~genotypes, family="gaussian")
  </code></pre>
  
  <p>genotypes is a vector of containing "1"s, "0"s, "2"s, and sometimes NA. the vector is below:</p>
  
  <pre><code>1  1  1  1 NA NA NA  1  1 NA  1 NA NA  1  1  1 NA  1  1 NA  1  1  1  0  1  2  1  1  1  1 NA  1  1  1 NA  1  0  1  0  0 NA NA  1  1 NA NA  1  1 NA NA  0  1 NA  1  0 NA  2  0  2  1  1  1  0  0  1  1  0  0  &gt; 0  1  0  1  1  1  2  1  1  0  0  1  1  0 NA NA  0  0  1  1  1  0  1  0  0  1  0  1  2  2  0  1  0  2  2  2  1  0  1  2  0  0  1  1  &gt; 0  1  0  0  2  0  1  0  0  0  1  2  0  0  0  0  1  1  1  0
   0  0  0  0  0  1  0  1  0  0  0  0  1  1  0  1  1  0  1  1  1  0  0 NA  1 NA  1  1  0  0  0 NA  0  1  1 NA  1  1 NA  0  1
  </code></pre>
  
  <p>Sigdat is also a vector of named values with length of 173 and the range is from 7.838156 to 12.216716. The full error I am getting is</p>
  
  <blockquote>
    <p>"Error: inner loop 1; cannot correct step size. In addition: Warning
    message: step size truncated due to divergence"</p>
  </blockquote>
  
  <p>Does anyone know what could be the potential problem. I am tempted to say it is most likely the NA values but previous times that I have run dglm with vectors containing NAs it has worked fine.</p>
  
  <p>Thank you.</p>