View source: R/estimate_win_prob_vs_baseline.R
estimate_win_prob_vs_baseline | R Documentation |
Calculates the win probability of the best option compared to a single other option given an input_df
estimate_win_prob_vs_baseline(
input_df,
distribution,
priors = list(),
wrt_option
)
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. |
wrt_option |
string the option win prob is calculated with respect to (wrt). Required. |
Tibble of each option_name and the win probability expressed as a percentage and a decimal 'raw'
input_df <- tibble::tibble(
option_name = c("A", "B", "C"),
sum_clicks = c(1000, 1000, 1000),
sum_conversions = c(100, 120, 110)
)
estimate_win_prob_vs_baseline(input_df = input_df,
distribution = "conversion_rate",
wrt_option = "B")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.