powered by
This function gives you the optimal semiparametric tripartite rule that minimizes TMR (total misclassification risk).
Semi.par.rule(Z, S, phi)
True disease status (No disease / treatment success coded as Z=0, diseased / treatment failure coded as Z=1).
Risk score.
Percentage of patients taking viral load test.
Semiparametric rule and its associated TMR.
# 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