View source: R/get_ys_and_draws.R
get_ys_binom | R Documentation |
Used internally. Function factory used to generate a function that generates binary outcomes from binomial distributions.
get_ys_binom(arms, event_probs)
arms |
character vector of |
event_probs |
numeric vector of true event probabilities in all |
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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.