Skip to content

Commit

Permalink
fix genpois
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 16, 2024
1 parent 39b3751 commit 3382ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/check_overdispersion.R
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...), ...))
Expand Down

0 comments on commit 3382ecb

Please sign in to comment.