get_ys_binom {adaptr} | R Documentation |
Generate binary outcomes from binomial distributions
Description
Used internally. Function factory used to generate a function that generates binary outcomes from binomial distributions.
Usage
get_ys_binom(arms, event_probs)
Arguments
arms |
character vector of |
event_probs |
numeric vector of true event probabilities in all |
Value
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).
[Package adaptr version 1.4.0 Index]