sens.spec {wikibooks}R Documentation

sensitivity and specificity of an assessment instrument

Description

This function generates sensitivity and specificity for all possible cut-off-points of an assessment instrument using the assessment-scores.

Usage

sens.spec(x, y, risk = 1, dir = "LESS", plot = F)

Arguments

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" wether a high (x) leads to positive group
plot logical wether a plot should be generated

Author(s)

Produnis

References

http://de.wikibooks.org/wiki/GNU_R:_Programmierbeispiele#Beispiel_2

Examples

# Using the cms-Dataset
## Not run: sens.spec(cms$ascore, cms$arisk, risk=1)

[Package wikibooks version 0.2 Index]