Description Usage Arguments Value Examples
View source: R/OriginalFunctions.R
This function performs ROC analysis for tripartite rules by nonparametric approach. If plot=TRUE, the ROC curve is returned.
1 | ROC.nonpar(Z, S, phi, plot = TRUE)
|
Z |
True disease status (No disease / treatment success coded as Z=0, diseased / treatment failure coded as Z=1). |
S |
Risk score. |
phi |
Percentage of patients taking viral load test. |
plot |
Logical parameter indicating if ROC curve should be plotted. Default is |
AUC The area under the ROC curve. FNR Misdiagnoses rate for viral failure (false negative rate). FPR Misdiagnoses rate for treatment failure (false positive rate).
1 2 3 4 5 6 7 8 | d = Simdata
Z = d$Z # True Disease Status
S = d$S # Risk Score
phi = 0.1 #10% of patients taking viral load test
a = ROC.nonpar( Z, S, phi,plot=TRUE)
a$AUC
a$FNR
a$FPR
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.