Used internally. Function factory used to generate a function that generates binary outcomes from binomial distributions.
get_ys_binom(arms, event_probs)
A function which takes the argument allocs
(a character vector
with the allocations) and returns a numeric vector of similar length with
the corresponding, randomly generated outcomes (0 or 1, from binomial
distribution).
character vector of arms
as specified in setup_trial_binom()
.
numeric vector of true event probabilities in all arms
as specified in setup_trial_binom()
.