psolymos / ResourceSelection

Resource Selection (Probability) Functions for Use-Availability Data in R
https://peter.solymos.org/ResourceSelection/
9 stars 4 forks source link

Hosmer-Lemeshow test in GLMM (binomial family) #19

Closed CamilaDeu closed 1 year ago

CamilaDeu commented 1 year ago

Hi, I ran a GLMM (binomial family) using the lme4 package, and wanted to know if it is appropriate to apply the Hosmer-Lemeshow test to evaluate the model fit. Thank you!

library(lme4)

GLMM

m1 <- glmer(Canto ~ T + H + Patm + V + Pp + CU + (1|Evento), data = Datos, family = binomial)

psolymos commented 1 year ago

Hi @CamilaDeu, using the Hosmer-Lemeshow with Binomial GLMM is more likely not applicable the same way as for GLMs. Hope this helps.