Description Usage Arguments Value Examples
View source: R/TGSTFunctions.R
This function gives you all possible cutoffs [l,u] for tripartite rules, by applying nonparametric search to the given data.
P(S in [l,u]) ≤ φ
1 | nonpar.rules(Z, S, phi)
|
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. |
Matrix with 2 columns. Each row is a possible tripartite rule, with output on lower and upper cutoff.
1 2 3 4 5 | d = Simdata
Z = d$Z # True Disease Status
S = d$S # Risk Score
phi = 0.1 #10% of patients taking viral load test
nonpar.rules( Z, S, phi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.