if (FALSE) {
design <- sequential_design(
formula = y ~ treatment, effect_name = "treatment",
metric = "direction", looks = c(40, 80, 120),
prob_success = 0.95, prob_futility = 0.05
)
# After the first 40 observations have been collected:
mon <- sequential_analysis(design, data_so_far)
print(mon)
# After 80:
mon <- sequential_analysis(mon, data_so_far)
plot_sequential_monitor(mon)
}
Run the code above in your browser using DataLab