Data that can be used for unit-testing or teaching
Usage
create_data_abtest(
n_a = 100,
n_b = 100,
success_a = 10,
success_b = 5,
success_unit = "count",
count = TRUE
)
Examples
library(dplyr)
#>
#> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’:
#>
#> filter, lag
#> The following objects are masked from ‘package:base’:
#>
#> intersect, setdiff, setequal, union
create_data_abtest() %>% abtest()
create_data_abtest(
n_a = 100,
n_b = 100,
success_a = 20,
success_b = 30,
success_unit = "count"
) %>% abtest()