View source: R/find_best_option.R
find_best_option | R Documentation |
Samples from posterior, calculates win probability, and selects the best option. Note: this can be inefficient if you already have the win probability dataframe. Only use this if that has not already been calculated.
find_best_option(posterior_samples, distribution)
posterior_samples |
Tibble returned from sample_from_posterior with 3 columns 'option_name', 'samples', and 'sample_id'. |
distribution |
String: name of the distribution |
String: the best option name
# Requires posterior distribution
## Not run:
find_best_option(posterior_samples = posterior_samples, distribution = "conversion_rate")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.