Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><del> I think the most likely cause of this error are negative values or zeros in the data, since the default link in glm.nb is 'log'. It would be easy enough to test by changing <code>link="identity"</code>. </del> I also think you need to try smaller models .... maybe a quarter of those variables to start. That also lets you add related variables as bundles since it looks from the names that you have possibly severe potential for collinearity with categorical variables.</p> <p>We really need a data description. I wondered about <code>Dirty.Industry + Clean.Industry</code>. That is the sort of dichotomy that is better handled with a factor variable that has those levels. That prevents the collinearity if Clean = not-Dirty. Perhaps similarly with your "Heterogeneity" variables. (I'm not convinced that @BenBolker's comment is correct. I think it very possible that you first need statistical consultation before address coding issues.)</p> <pre><code>require(MASS) data(quine) # following example in ?glm.nb page &gt; quine$Days[1] &lt;- -2 &gt; quine.nb1 &lt;- glm.nb(Days ~ Sex/(Age + Eth*Lrn), data = quine, link = "identity") Error in eval(expr, envir, enclos) : negative values not allowed for the 'Poisson' family &gt; quine$Days[1] &lt;- 0 &gt; quine.nb1 &lt;- glm.nb(Days ~ Sex/(Age + Eth*Lrn), data = quine, link = "identity") Error: no valid set of coefficients has been found: please supply starting values In addition: Warning message: In log(y/mu) : NaNs produced </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload