auprc.pvrandom: Assess the significance of AUPRC against random guessing #'

View source: R/yr2.R

auprc.pvrandomR Documentation

Assess the significance of AUPRC against random guessing #'

Description

Assess the significance of AUPRC against random guessing #'

Usage

auprc.pvrandom(yr2, monotonized = TRUE, cycles = 10000)

Arguments

yr2

the yogiroc2 object

monotonized

whether or not to monotonize the curves

cycles

the sample size of the null distribution to use

Value

The emprical p-values of the AUPRC against random guessing

Examples

#generate fake data
N <- 10
M <- 8
truth <- c(rep(TRUE,N),rep(FALSE,M))
scores <- cbind(
  pred1=c(rnorm(N,1,0.2),rnorm(M,.9,0.1)),
  pred2=c(rnorm(N,1.1,0.2),rnorm(M,.9,0.2))
)
#create yogiroc2 object
yrobj <- yr2(truth,scores)
#call pvrandom function
auprc.pvrandom(yrobj)

jweile/yogiroc documentation built on Jan. 15, 2024, 2:47 a.m.