powered by
This function generates sensitivity and specificity for all possible cut-off-points of an assessment instrument using the assessment-scores.
sens.spec(x, y, risk = 1, dir = "LESS", plot = F)
score of an assessment-instrument (numeric)
a factor which classify x to positive or negative group
y-value for the positive group (e.g. 1 or "y"))
"LESS" if a low (x) leads to positive group; "GREATER" whether a high (x) leads to positive group
logical whether a plot should be generated
https://de.wikibooks.org/wiki/GNU_R:_Programmierbeispiele#Beispiel_2
# NOT RUN { # Using the cms-Dataset # } # NOT RUN { sens.spec(cms$ascore, cms$arisk, risk=1) # }
Run the code above in your browser using DataLab