Used internally by check_performance(), calculates the ideal design
percentage as described in that function's documentation.
calculate_idp(sels, arms, true_ys, highest_is_best)A single numeric value between 0 and 100 corresponding to the
ideal design percentage.
a character vector specifying the selected arms (according to the
selection strategies described in extract_results()).
character vector with unique names for the trial arms.
numeric vector specifying true outcomes (e.g., event
probabilities, mean values, etc.) for all trial arms.
single logical, specifies whether larger estimates of
the outcome are favourable or not; defaults to FALSE, corresponding to,
e.g., an undesirable binary outcomes (e.g., mortality) or a continuous
outcome where lower numbers are preferred (e.g., hospital length of stay).