Skip to content
Prev 18163 / 20628 Next

model check for negative binomial model

Dear Ben

Thanks for your quick response.

Yes, emergence success is usually between 60 and 80% or higher.
I am not sure how to use a binomial, if my data are counts?

Can you explain why the approximation doesn't work well if success gets
much above 50%? Does it make sense, then, to have "unhatched" as dependent
variable, so that I predict mortality (usually below 50%) using a nb with
offset(log(total clutch)) ?
Generalized linear mixed model fit by maximum likelihood (Laplace
Approximation) ['glmerMod']
 Family: Negative Binomial(2.2104)  ( log )
Formula: Unhatched ~ Relocation..Y.N. + SP + offset(log(Total_Clutch)) +
   (1 | Beach_ID) + (1 | Week)
   Data: main

     AIC      BIC   logLik deviance df.resid
  5439.4   5466.0  -2713.7   5427.4      614

Scaled residuals:
    Min      1Q  Median      3Q     Max
-1.4383 -0.7242 -0.2287  0.4866  4.0531

Random effects:
 Groups   Name        Variance Std.Dev.
 Week     (Intercept) 0.003092 0.0556
 Beach_ID (Intercept) 0.025894 0.1609
Number of obs: 620, groups:  Week, 31; Beach_ID, 8

Fixed effects:
                  Estimate Std. Error z value Pr(>|z|)
(Intercept)       -1.38864    0.08227 -16.879  < 2e-16 ***
Relocation..Y.N.Y  0.32105    0.09152   3.508 0.000452 ***
SPL                0.22218    0.08793   2.527 0.011508 *
---
Signif. codes:  0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1

Correlation of Fixed Effects:
            (Intr) R..Y.N
Rlct..Y.N.Y -0.143
SPL         -0.540 -0.038

Thanks,

Alessandra
On Tue, Feb 11, 2020 at 7:29 PM Ben Bolker <bbolker at gmail.com> wrote:

            
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Rplot.pdf
Type: application/pdf
Size: 58626 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mixed-models/attachments/20200212/ccb30a6c/attachment-0001.pdf>