ROC.semipar {TGST}R Documentation

Semiparametric ROC Analysis

Description

This function performs ROC analysis on the rules from nonparametric approach. If plot=TRUE, the ROC curve is returned.

Usage

ROC.semipar(Z, S, phi, plot = TRUE)

Arguments

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 plot=TRUE. If false, then only AUC is calculated.

Value

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).

Examples

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.semipar( Z, S, phi,plot=TRUE)
a$AUC
a$FNR
a$FPR

[Package TGST version 1.0 Index]