运行实验后,我收集了数据并按照以下格式进行了重塑:
library(tidyverse)
df <- tibble::tribble(
~element, ~sessions, ~begin, ~complete,
"baseline", 256, 67, 15,
"variation", 580, 167, 22
)
比我汇总为:
df %>%
group_by(element) %>%
mutate(sessions_to_begin = round(begin/sessions*100,2),
sessions_to_complete = round(complete/sessions*100,2)) -> df_agg
df_agg <- tibble::tribble(
~element, ~sessions, ~begin, ~complete, ~sessions_to_begin, ~sessions_to_complete,
"baseline", 256, 67, 15, 26.17, 5.86,
"variation", 580, 167, 22, 28.79, 3.79
)
我想实现创建一个df,其中包含指标session_to_begin
和sessions_to_complete
的基线/变量对的比例测试p值。
它看起来像:
df_test <- tibble::tribble(
~metric, ~baseline, ~variation, ~p-value, ~effect_size,
"session_to_begin", 25.9, 29.5, "-", "-",
"session_to_complete", 6.03, 3.95, "-", "-"
)
我认为对于效果大小,这可能是一个可行的选择: