get_performance: Get model performace, sensitivity, sepcificity and others

get_performanceR Documentation

Get model performace, sensitivity, sepcificity and others

Description

Get model performace, sensitivity, sepcificity and others

Usage

get_performance(
  pred,
  labels,
  best.cutoff = NA,
  digit = 2,
  boot.n = 2000,
  specify.sen = NULL,
  specify.spe = NULL,
  OR = F
)

Arguments

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

Examples

risk.probability = c(1:10)
labels = rep(c(1,0,1),c(2,6,2))
loonR::get_performance(risk.probability, labels)

ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.