auc_boot: Bootstrap AUCs

Description Usage Arguments Value Examples

View source: R/auc_boot.R

Description

A function to simulate bootstrap samples and calculate AUC.

Usage

1
2
3
4
5
6
7
8
9
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

1
2
3
cpf <- c(100, 90, 80, 20, 10, 5)
caf <- c(6, 7, 15, 50, 75, 120)
auc_boot(cbind(cpf, caf), nboot = 100)

fullROC documentation built on Jan. 16, 2021, 5:40 p.m.

Related to auc_boot in fullROC...