Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 15, 2024
1 parent a25ecac commit d0822ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/check_overdispersion.R
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,11 @@ check_overdispersion.performance_simres <- function(x,
dispersion <- function(i) var(i - x$fittedPredictedResponse) / variance

# compute test results
.simres_statistics(x, statistic_fun = dispersion, alternative = alternative)
result <- .simres_statistics(x, statistic_fun = dispersion, alternative = alternative)

out <- list(
dispersion_ratio = .simres_statistics$observed / mean(.simres_statistics$simulated),
p_value = .simres_statistics$p
dispersion_ratio = result$observed / mean(result$simulated),
p_value = result$p
)

class(out) <- c("check_overdisp", "see_check_overdisp")
Expand Down

0 comments on commit d0822ba

Please sign in to comment.