Description Usage Arguments Value Examples
evalTwoPhase functions
1 | evalTwoPhase(Outcome, X, Z, Stratum, Phase_ID, namesX, namesZ, q, p, method)
|
Outcome |
vector of length n |
X |
matrix of size n x t (t standard predictors included in the model) |
Z |
matrix of size n x m (m biomarkers included in the model); some subjects have NA values |
Stratum |
vector of length n |
Phase_ID |
vector of length n |
namesX |
names of X; vector of length t |
namesZ |
names of Z; vector of length m |
q |
threshold value for TPR(q) |
p |
threshold value for FPR(p) |
method |
"Benchmark", "ML" |
numBoot |
number of bootstrap samples |
calculate TPR, FPR, and AUC, with two-phase estimators implemented via function tps() in R package "osDesign" (Haneuse and others, 2011).
1 | est_benchmark <- evalTwoPhase(Outcome, X, Z, Stratum, Phase_ID, namesX, namesZ, q=0.2, p=0.2, method="Benchmark")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.