TGST: Create a TGST Object

Description Usage Arguments Value Examples

View source: R/TGST.R

Description

Create a TGST object, usually used as an input for optimal rule search and ROC analysis.

Usage

1
TGST(Z, S, phi, method = "nonpar")

Arguments

Z

A vector of true disease status (No disease / treatment success coded as Z=0, diseased / treatment failure coded as Z=1).

S

A vector of risk Score.

phi

Percentage of patients taking gold standard test.

method

Method for searching for the optimal tripartite rule, options are "nonpar" (default) and "semipar".

Value

An object of class TGST.The class contains 6 slots: phi (percentage of gold standard tests), Z (true failure status), S (risk score), Rules (all possible tripartite rules), Nonparametric (logical indicator of the approach), and FNR.FPR (misclassification rates).

Examples

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

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