sens.spec | R Documentation |
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)
x |
score of an assessment-instrument (numeric) |
y |
a factor which classify x to positive or negative group |
risk |
y-value for the positive group (e.g. 1 or "y")) |
dir |
"LESS" if a low (x) leads to positive group; "GREATER" whether a high (x) leads to positive group |
plot |
logical whether a plot should be generated |
Produnis
https://de.wikibooks.org/wiki/GNU_R:_Programmierbeispiele#Beispiel_2
# Using the cms-Dataset ## Not run: sens.spec(cms$ascore, cms$arisk, risk=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.