evalTwoPhase: evalTwoPhase functions

Description Usage Arguments Value Examples

View source: R/twophase.R

Description

evalTwoPhase functions

Usage

1
evalTwoPhase(Outcome, X, Z, Stratum, Phase_ID, namesX, namesZ, q, p, method)

Arguments

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

Value

calculate TPR, FPR, and AUC, with two-phase estimators implemented via function tps() in R package "osDesign" (Haneuse and others, 2011).

Examples

1
est_benchmark <- evalTwoPhase(Outcome, X, Z, Stratum, Phase_ID, namesX, namesZ, q=0.2, p=0.2, method="Benchmark")

yaqicao/TwoPhaseAccuracy documentation built on Dec. 23, 2021, 7:16 p.m.