prob_all_equi {adaptr} | R Documentation |
Calculate the probability that all arms are practically equivalent
Description
Used internally. This function takes a matrix
as calculated by the
get_draws_binom()
, get_draws_norm()
or a corresponding custom function
(specified using the fun_draws
argument in setup_trial()
; see
get_draws_generic()
), and an equivalence difference, and calculates the
probability of all arms being equivalent (absolute differences between
highest and lowest value in the same set of posterior draws being less than
the difference considered practically equivalent).
Usage
prob_all_equi(m, equivalence_diff = NULL)
Arguments
m |
a matrix with one column per trial arm (named as the |
equivalence_diff |
single numeric value ( |
Value
A single numeric value corresponding to the probability of all arms being practically equivalent.