TGST {TGST}R Documentation

Create a TGST Object

Description

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

Usage

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

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


[Package TGST version 1.0 Index]