null.d <- model.bact2$null.deviance resid.d <- model.bact2$deviance bact.pseudoR2 <- (null.d - resid.d) / null.d bact.pseudoR2 # 0.0624257 # This is very low! library(binomTools) HLtest(Rsq(model.bact2)) # Chi-square statistic: 7.812347 with 8 df # P-value: 0.4520122 # Fit is adequate.