Learn R Programming

TGST (version 1.0)

Semi.par.rule: Min TMR Semiparametric Rule

Description

This function gives you the optimal semiparametric tripartite rule that minimizes TMR (total misclassification risk).

Usage

Semi.par.rule(Z, S, phi)

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.

Value

Semiparametric rule and its associated TMR.

Examples

Run this code
# NOT RUN {
d = Simdata
Z = d$Z # True Disease Status
S = d$S # Risk Score
phi = 0.1 #10% of patients taking viral load test
Semi.par.rule( Z, S, phi)
# }

Run the code above in your browser using DataLab