estimate_win_prob: Estimate Win Probability

View source: R/estimate_win_prob.R

estimate_win_probR Documentation

Estimate Win Probability

Description

Creates a tibble of win probabilities for each option based on the data observed.

Usage

estimate_win_prob(input_df, distribution, priors = list())

Arguments

input_df

Dataframe containing option_name (str) and various other columns depending on the distribution type. See vignette for more details.

distribution

String of the distribution name

priors

Optional list of priors. Defaults will be use otherwise.

Value

tibble object with 2 columns: 'option_name' and 'win_probability' formatted as a percent

Examples

input_df <- tibble::tibble(
   option_name = c("A", "B"),
   sum_clicks = c(1000, 1000),
   sum_conversions = c(100, 120)
)
estimate_win_prob(input_df, "conversion_rate")


grizbayr documentation built on Oct. 9, 2023, 5:10 p.m.