prob_best | R Documentation |
Used internally. This function takes a matrix
as calculated by the
get_draws_binom()
, get_draws_norm()
or a corresponding custom function
(as specified using the fun_draws
argument in setup_trial()
; see
get_draws_generic()
) and calculates the probabilities of each arm being the
best (defined as either the highest or the lowest value, as specified by the
highest_is_best
argument in setup_trial()
, setup_trial_binom()
or
setup_trial_norm()
).
prob_best(m, highest_is_best = FALSE)
m |
a matrix with one column per trial arm (named as the |
highest_is_best |
single logical, specifies whether larger estimates of
the outcome are favourable or not; defaults to |
A named numeric vector of probabilities (names corresponding to
arms
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.