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 9fa5420 commit a25ecac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/check_zeroinflation.R
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,16 @@ check_zeroinflation.performance_simres <- function(x,
alternative <- match.arg(alternative)

# compute test results
.simres_statistics(x, statistic_fun = function(i) sum(i == 0), alternative = alternative)
result <- .simres_statistics(x, statistic_fun = function(i) sum(i == 0), alternative = alternative)

structure(
class = "check_zi",
list(
predicted.zeros = round(mean(.simres_statistics$simulated)),
observed.zeros = .simres_statistics$observed,
ratio = mean(.simres_statistics$simulated) / .simres_statistics$observed,
predicted.zeros = round(mean(result$simulated)),
observed.zeros = result$observed,
ratio = mean(result$simulated) / result$observed,
tolerance = tolerance,
p.value = .simres_statistics$p
p.value = result$p
)
)
}
Expand Down

0 comments on commit a25ecac

Please sign in to comment.