View source: R/bootstrap_measures.R
bootstrap_measures | R Documentation |
Bootstrap customer data from an A/B-test
bootstrap_measures(input_data_frame, bootstrap_iterations = 100, ...)
input_data_frame |
A grouped data frame with one row per customer/visitor. It should contain a (grouped-by) column with the test variant and additional columns for each measure in the test for that customer/visitor. |
bootstrap_iterations |
The number of bootstrap iterations to calculate, the default is 100. |
... |
< The value can be:
|
Returns a boot_strap object (a data frame) with
bootstrap_iterations
rows containing columns as defined in ...
example_data <- data.frame(
x = rep(stats::runif(10),2),
group = c("A", "B")
) %>%
group_by(group)
bootstrap_measures(example_data, kpi1=mean(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.