fullROC (version 0.1.0)

auc_boot: Bootstrap AUCs

Description

A function to simulate bootstrap samples and calculate AUC.

Usage

auc_boot(
  data,
  group = NULL,
  nboot = 1000,
  byDR = FALSE,
  ca_adj = FALSE,
  lsize = 6,
  csize = 3
)

Arguments

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.

Value

A list with simulated AUCs.

Examples

Run this code
# 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