Learn R Programming

TGST (version 1.0)

TGST.summ: Summary of Disease Status and Risk Score

Description

This function allows you to compute the percentage of diseased (equivalent to treatment failure Z=1) and show distribution summary of risk score (S) by the true disease status (Z).

Usage

TGST.summ(Z, S)

Arguments

Z

True disease status (No disease / treatment success coded as Z=0, diseased / treatment failure coded as Z=1).

S

Risk score.

Value

Percentage of treatment failure; Summary statistics (mean, standard deviation, minimum, median, maximum and IQR) of risk score by true disease status; Distribution plot.

Examples

Run this code
# NOT RUN {
d = Simdata
Z = d$Z # True Disease Status
S = d$S # Risk Score
TGST.summ(Z,S)
# }

Run the code above in your browser using DataLab