
Calculate basic measures of diagnostic accuracy for a number of studies.
sens(x)
spec(x)
fpr(x)
A numeric vector.
a data frame with variables including TP
, FN
, FP
, TN
, alternatively a matrix with column names including these.
Philipp Doebler <philipp.doebler@googlemail.com>
These functions are the basic building blocks of many procedures to assess diagnostic accuracy. For a decent summary of set of primary studies it is better to use madad
, for graphical summaries crosshair
and ROCellipse
are available.
madad
, crosshair
, link{ROC.ellipse}
data(AuditC)
plot(fpr(AuditC), sens(AuditC), main = "AUDIT-C data on ROC space",
ylab = "Sensitivity", xlab = "False Positive Rate")
Run the code above in your browser using DataLab