Skip to content

Commit

Permalink
fix create_data_abtest percent
Browse files Browse the repository at this point in the history
  • Loading branch information
rolkra committed Oct 10, 2024
1 parent 9f2c4a6 commit 332c026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/create-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,8 @@ create_data_abtest <- function(n_a = 100, n_b = 100,

# check unit
if (success_unit == "percent") {
success_a <- round(n_a * success_a/10, 0)
success_b <- round(n_b * success_b/10, 0)
success_a <- round(n_a * success_a/100, 0)
success_b <- round(n_b * success_b/100, 0)
}

# create count data
Expand Down

0 comments on commit 332c026

Please sign in to comment.