Skip to content

model check for negative binomial model

1 message · Salvador SANCHEZ COLON

#
Cara Alessandra,


If I may interject into your conversation, the key to your question lies in the parameter estimates:for the 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 *


As I understand your design, you have two independent variables (factors): Species and treatment, each with two levels: L vs. G and Y vs N.?


Thus, the logit model that you obtain (omitting the random effects) is:


logit(p) = log(p/(1-p) = -1.38864 + 0.32105*Treatment + 0.22218*Species


Treatment and species are two-level factors which are coded as 0 or 1 and the model has to have parameter estimates for each of those levels.?By design, in generalized linear models parameters are estimated by taking one of the levels of each factor as the reference level and assigned a value of 0, and the parameters for the other levels are expressed in relation to the reference level. Thus, in your case, treatment N and species G are designated as the reference levels for their corresponding factors and, hence, their parameter values are both 0 (and not listed in the output). Then, treatment Y has a positive effect (0.32) on the odds ratio of hatching/not-hatching compared to treatment N; and species L also has a positive effect (0.22 times) on the odds ratio of hatching vs not-hatching.?


The intercept then (-1.38864) denotes the odds ratio for the combination of treatment N and species G; that is, when both factors are at their reference level of 0. This translates into a probability of hatching (p):


p =? exp(-1.38864)/(1+exp(-1.38864) = 0.1996


For treatment Y and species G, the model becomes:


p =? exp(-1.38864 +?0.32105)/(1+exp(-1.38864 +?0.32105) = 0.25569


as treatment Y has a positive effect on the odds ratio of hatching.?


For treatment N and species L, the model becomes:


p =? exp(-1.38864 +?0.22218)/(1+exp(-1.38864 +?0.22218) = 0.2375


as species L has a positive effect on the odds ratio of hatching.


Finally, for the combination of treament Y and species L, the model becomes:


p =? exp(-1.38864 + 0.32105 +?0.22218)/(1+exp(-1.38864?+ 0.32105 +?0.22218) = 0.3002


as both levels Y and L have positive effects on the odds ratio of hatching.


I hope this helps.


Best regards,


Salvador








En Lun, 17 Febrero, 2020 en 18:2, Alessandra Bielli <bielli.alessandra at gmail.com> escribi?:
?

Para: Ben Bolker
Cc: r-sig-mixed-models at r-project.orgDear Ben

I am trying to make a prediction for the combination of species (L or G)
and treatment (control/experiment).

I am still confused about the prediction values. I would like to present
results as a success rate for a nest, to say that treatment
increases/decreases success by ...%. But the value I have is the
probability that 1 egg in the nest succeeds, correct? I am not sure how to
use these predictions.

Thanks for your help!

Alessandra
On Mon, Feb 17, 2020 at 2:15 PM Ben Bolker <bbolker at gmail.com> wrote:

            
_______________________________________________
R-sig-mixed-models at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
.