Last chance! 50% off unlimited learning
Sale ends in
A/B testing comparing percent per group
abtest_targetpct(
data,
expr,
n,
target,
sign_level = 0.05,
group_label,
ab_label = FALSE,
color = "grey"
)
Plot that shows if difference is significant
A dataset
Expression, that results in a FALSE/TRUE
A Variable for number of observations (count data)
Target variable (must be 0/1 or FALSE/TRUE)
Significance Level (typical 0.01/0.05/0.10)
Label of groups (default = expr)
Label Groups as A and B (default = FALSE)
color of bar
data <- create_data_buy(obs = 100)
abtest(data, female_ind == 1, target = buy)
abtest(data, age >= 40, target = buy)
Run the code above in your browser using DataLab