reallocate_probs | R Documentation |
Used internally. This function calculates new allocation probabilities for
each arm, based on the information specified in setup_trial()
,
setup_trial_binom()
or setup_trial_norm()
and the calculated
probabilities of each arm being the best by prob_best()
.
reallocate_probs(
probs_best,
fixed_probs,
min_probs,
max_probs,
soften_power = 1,
match_arm = NULL,
rescale_fixed = FALSE,
rescale_limits = FALSE,
rescale_factor = 1,
rescale_ignore = NULL
)
probs_best |
a resulting named vector from the |
fixed_probs |
numeric vector, fixed allocation probabilities for each
arm. Must be either a numeric vector with |
min_probs |
numeric vector, lower threshold for adaptive allocation
probabilities; lower probabilities will be rounded up to these values. Must
be |
max_probs |
numeric vector, upper threshold for adaptive allocation
probabilities; higher probabilities will be rounded down to these values.
Must be |
soften_power |
either a single numeric value or a numeric vector of
exactly the same length as the maximum number of looks/adaptive analyses.
Values must be between |
match_arm |
index of the |
rescale_fixed |
logical indicating whether |
rescale_limits |
logical indicating whether |
rescale_factor |
numerical, rescale factor defined as
|
rescale_ignore |
|
A named (according to the arms
) numeric vector with updated
allocation probabilities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.