Computes a lower confidence limit for prediction performance after selecting the empirically best-performing candidate model.
Arguments
- true_labels
A numeric vector of true binary class labels coded as 0 and 1.
- pred_labels
A matrix of predicted class labels. Rows correspond to observations, columns to candidate prediction rules or models.
- alpha
Significance level for the lower confidence limit.
- B
Number of bootstrap replications.
- seed
Optional random seed. Use
NAto leave the random number generator unchanged.
Value
A list with components:
- bound
Estimated lower confidence limit for the selected model.
- tau
Estimated tilting parameter.
- t0
Observed performance of the selected model.
- selected_idx
Column index of the selected model.