Description Usage Arguments Value Examples
View source: R/TGSTFunctions.R
This function gives you the semiparametric FNR and FPR associated with a given tripartite rule.
1 | semipar.fnr.fpr(Z, S, l, u)
|
Z |
True disease status (No disease / treatment success coded as Z=0, diseased / treatment failure coded as Z=1). |
S |
Risk score. |
l |
Lower cutoff of tripartite rule. |
u |
Upper cutoff of tripartite rule. |
Matrix with 2 columns. Each row is a set of semiparametric (FNR, FPR) on an associated tripartite rule.
1 2 3 4 5 6 | d = Simdata
Z = d$Z # True Disease Status
S = d$S # Risk Score
phi = 0.1 #10% of patients taking viral load test
rules = nonpar.rules( Z, S, phi)
semipar.fnr.fpr(Z,S,rules[1,1],rules[1,2])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.