auprc.pvrandom | R Documentation |
Assess the significance of AUPRC against random guessing #'
auprc.pvrandom(yr2, monotonized = TRUE, cycles = 10000)
yr2 |
the yogiroc2 object |
monotonized |
whether or not to monotonize the curves |
cycles |
the sample size of the null distribution to use |
The emprical p-values of the AUPRC against random guessing
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.