View source: R/get_ys_and_draws.R
get_draws_binom | R Documentation |
Used internally. This function generates draws from posterior distributions
using separate beta-binomial models (binomial outcome, conjugate beta prior)
for each arm, with flat (beta(1, 1)
) priors.
get_draws_binom(arms, allocs, ys, control, n_draws)
arms |
character vector, currently active |
allocs |
character vector, allocations of all patients (including
allocations to currently inactive |
ys |
numeric vector, outcomes of all patients in the same order
as |
control |
unused argument in the built-in functions for
|
n_draws |
single integer, number of posterior draws. |
A matrix
(with numeric values) with length(arms)
columns and
n_draws
rows, with arms
as column names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.