seTwoPhase: seTwoPhase functions

Description Usage Arguments Value Examples

View source: R/twophase.R

Description

seTwoPhase functions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
seTwoPhase(
  Outcome,
  X,
  Z,
  Stratum,
  Phase_ID,
  namesX,
  namesZ,
  q,
  p,
  numBoot,
  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)

numBoot

number of bootstrap samples

method

"Benchmark", "ML"

Value

standard error using bootstrap resampling

Examples

1
se_benchmark <- seTwoPhase(Outcome, X, Z, Stratum, Phase_ID, namesX, namesZ, q=0.2, p=0.9, numBoot=1000, method="ML")

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