View source: R/check_performance.R
calculate_idp | R Documentation |
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)
sels |
a character vector specifying the selected arms (according to the
selection strategies described in |
arms |
character vector with unique names for the trial arms. |
true_ys |
numeric vector specifying true outcomes (e.g., event
probabilities, mean values, etc.) for all trial |
highest_is_best |
single logical, specifies whether larger estimates of
the outcome are favourable or not; defaults to |
A single numeric value between 0
and 100
corresponding to the
ideal design percentage.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.