ROCAnalysis: ROC Analysis

Description Usage Arguments Value Examples

View source: R/ROCAnalysis.R

Description

This function performs ROC analysis for tripartite rules. If plot=TRUE, the ROC curve is returned.

Usage

1

Arguments

Obj

An object of class TGST.

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 ROC curve) and ROC curve.

Examples

1
2
3
4
5
6
7
d = Simdata
Z = d$Z # True Disease Status
S = d$S # Risk Score
phi = 0.1 #10% of patients taking viral load test
lambda = 0.5
Obj = TGST(Z, S, phi, method="nonpar")
ROCAnalysis(Obj, plot=TRUE)

yizhenxu/TVLT documentation built on Nov. 27, 2020, 2:37 a.m.