Skip to content

Commit

Permalink
improved AnsariBradley
Browse files Browse the repository at this point in the history
  • Loading branch information
qddyy committed Oct 17, 2023
1 parent d556e06 commit cfcd663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/AnsariBradley.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ AnsariBradley <- R6Class(

mu <- if (even) m * (N + 2) / 4 else m * (N + 1)^2 / (4 * N)

if (!any(duplicated(c(private$.data$x, private$.data$y)))) {
if (anyDuplicated(c(private$.data$x, private$.data$y)) == 0) {
sigma2 <- if (even) {
(m * n * (N + 2) * (N - 2)) / (48 * (N - 1))
} else {
Expand Down

0 comments on commit cfcd663

Please sign in to comment.