Learn R Programming

explore (version 1.0.2)

abtest: A/B testing

Description

A/B testing

Usage

abtest(data, expr, target, sign_level = 0.05)

Value

Plot that shows if difference is significant

Arguments

data

A dataset

expr

Expression, that results in a FALSE/TRUE

target

Target variable (must be 0/1 or FALSE/TRUE)

sign_level

Significance Level (typical 0.01/0.05/0.10)

Examples

Run this code
data <- create_data_buy(obs = 100)
abtest(data, female_ind == 1, target = buy)
abtest(data, city_ind == 1, target = buy)

Run the code above in your browser using DataLab