get_performance | R Documentation |
Get model performace, sensitivity, sepcificity and others
get_performance(
pred,
labels,
best.cutoff = NA,
digit = 2,
boot.n = 2000,
specify.sen = NULL,
specify.spe = NULL,
OR = F
)
pred |
Predicted score |
labels |
T/F label |
digit |
2 for 0.01, 3 for 0.001 |
boot.n |
Default 2000 |
specify.sen |
User can input one or more specific sensitivity |
specify.spe |
User can input one or more specific specificity |
OR |
Default F. If calculate OR or not |
risk.probability = c(1:10)
labels = rep(c(1,0,1),c(2,6,2))
loonR::get_performance(risk.probability, labels)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.