Skip to content

Commit

Permalink
closes #632
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 16, 2024
1 parent e0235ed commit 39b3751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/check_zeroinflation.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ check_zeroinflation.default <- function(x, tolerance = 0.05, ...) {

# for models with zero-inflation component or negative binomial families,
# we use simulated_residuals()
if (!inherits(x, not_supported) && (model_info$is_zero_inflated || model_info$is_negbin)) {
if (!inherits(x, not_supported) && (model_info$is_zero_inflated || model_info$is_negbin || model_info$family == "genpois")) { # nolint
if (missing(tolerance)) {
tolerance <- 0.1
}
Expand Down

0 comments on commit 39b3751

Please sign in to comment.