null.d <- model.bact2$null.deviance resid.d <- model.bact2$deviance bact.pseudoR2 <- (null.d - resid.d) / null.d bact.pseudoR2 # 0.0624257 # C'est très faible ! library(binomTools) HLtest(Rsq(model.bact2)) # Chi-square statistic: 7.812347 with 8 df # P-value: 0.4520122 # L'ajustement est adéquat.