R/abtest.R
abtest_targetnum.Rd
A/B testing comparing two mean
abtest_targetnum(data, expr, target, sign_level = 0.05, color = "grey")
A dataset
Expression, that results in a FALSE/TRUE
Target variable (must be numeric)
Significance Level (typical 0.01/0.05/0.10)
fill color
Plot that shows if difference is significant
data <- create_data_buy(obs = 100) abtest(data, city_ind == 1, target = age)