A function to simulate bootstrap samples and calculate AUC.
auc_boot( data, group = NULL, nboot = 1000, byDR = FALSE, ca_adj = FALSE, lsize = 6, csize = 3 )
A data frame or matrix saving both cp and ca frequencies. cp must precede ca.
A vector indicating group membership. Will calculate AUCs by group.
Number of bootstrap iterations for each group. Defaults to 1,000.
Whether to order ids by diagnosticity ratios. Defaults to FALSE.
Whether to adjust id rates for ca lineups after simulating a sample from the unadjusted rates.
Size of lineup (used to adjust id rates). Defaults to 6.
Number of confidence levels (used to adjust id rates). Defaults to 3.
A list with simulated AUCs.
# NOT RUN { cpf <- c(100, 90, 80, 20, 10, 5) caf <- c(6, 7, 15, 50, 75, 120) auc_boot(cbind(cpf, caf), nboot = 100) # }
Run the code above in your browser using DataCamp Workspace