auc_boot | R Documentation |
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
)
data |
A data frame or matrix saving both cp and ca frequencies. cp must precede ca. |
group |
A vector indicating group membership. Will calculate AUCs by group. |
nboot |
Number of bootstrap iterations for each group. Defaults to 1,000. |
byDR |
Whether to order ids by diagnosticity ratios. Defaults to FALSE. |
ca_adj |
Whether to adjust id rates for ca lineups after simulating a sample from the unadjusted rates. |
lsize |
Size of lineup (used to adjust id rates). Defaults to 6. |
csize |
Number of confidence levels (used to adjust id rates). Defaults to 3. |
A list with simulated AUCs.
cpf <- c(100, 90, 80, 20, 10, 5)
caf <- c(6, 7, 15, 50, 75, 120)
auc_boot(cbind(cpf, caf), nboot = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.