create_data_abtest {explore}R Documentation

Create data of A/B testing

Description

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
)

Arguments

n_a

Total size of group A

n_b

Total size of group B

success_a

Success in group A

success_b

Success in group B

success_unit

Unit ("count"|"percent")

count

Create as count-data (FALSE|TRUE)

Value

A dataset as tibble

Examples

library(dplyr)
create_data_abtest() %>% abtest()
create_data_abtest(
  n_a = 100,
  n_b = 100,
  success_a = 20,
  success_b = 30,
  success_unit = "count"
) %>% abtest()

[Package explore version 1.3.1 Index]