From 3382ecb7cb1f230e1cb81ea15da984a699aadaaa Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 16 Mar 2024 12:39:11 +0100 Subject: [PATCH] fix genpois --- R/check_overdispersion.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/check_overdispersion.R b/R/check_overdispersion.R index ec8f480e8..42861b95b 100644 --- a/R/check_overdispersion.R +++ b/R/check_overdispersion.R @@ -248,7 +248,7 @@ check_overdispersion.merMod <- function(x, ...) { info <- insight::model_info(x) # for certain distributions, simulated residuals are more accurate - use_simulated <- info$is_zero_inflated || info$is_bernoulli || info$is_binomial || (!info$is_count && !info$is_binomial) || info$is_negbin + use_simulated <- info$family == "genpois" || info$is_zero_inflated || info$is_bernoulli || info$is_binomial || (!info$is_count && !info$is_binomial) || info$is_negbin # nolint if (use_simulated) { return(check_overdispersion(simulate_residuals(x, ...), ...))