Usage
Youden3Grp(x, y, z, method = c("Normal","TN","EMP","KS","KS-SJ"), randomStart.N = 1,
optim.method = NULL, t.minus.start = NULL, t.plus.start = NULL,
lam.minus = 1/3, lam0 = 1/3, lam.plus = 1/3, typeIerror = 0.05, margin =0.05,NBOOT=10,seed.seq=NULL,alpha=0.05,FisherZ=FALSE,...)
Arguments
x
A numeric vector, a diagnostic test's measurements for
subjects in D- (usually a healthy group).
y
A numeric vector, a diagnostic test's measurements for subjects in D0
(usually a mildly diseased group).
z
A numeric vector, a diagnostic test's measurements for subjects in D+
(usually a severly diseased group).
method
A character.
Specify a method to be used for estimating the extended Youden index
Choices include
Normal---Estimate the extended Youden index under the
assumption of normal distributions of a diagnostic test in
the three groups.
TN---Transformed normal. Implement Box-cox transformation to
approximate normality and then estimate the extended Youden index
under normality.
EMP---Estimate the extended Youden index by using empirical
cumulative density function.
KS---Estimate the extended Youden index by using Kernel
density estimation with a normal reference rule for bandwidth
selection.
KS-SJ---Estimate the extended Youden index by using Kernel
density estimation with the Sheather-Jones Plug-in method for
bandwidth selection.
randomStart.N
An argument need to be specified when the
method EMP, KS or KS-SJ is used to
estimate the optimal cut-point and the extended Youden index
J. Default, randomStart.N=1.
optim.method
A character argument. The optimization method specified to derive the
optimal cut-points
when nonparametric methods are used to estimate the extended Youden
index. Default, optim.method=L-BFGS-B.see optim
. t.minus.start
A numeric value. The starting points of the lower optimal
cut-point (t-) which separate the D- and D0 group. Default
t.minus.start=NULL will randomly generate starting value.
t.plus.start
A numeric value. The starting points of the upper optimal
cut-point (t+) which separate the
D0 and D+ group. Default t.plus.start=NULL will randomly generate
starting value.
lam.minus
A numeric value. The expected population proportion of the D- group,
used for sample size calculation. Default, lam.minus=1/3. The
proportions of the three ordinal groups (lam.minus, lam0, lam.plus)
should sum to 1.
lam0
A numeric value. The expected population proportion of the D0 group, used for
sample size calculation. Default, lam0=1/3. The proportions of the
three ordinal groups (lam.minus, lam0, lam.plus) should sum to 1.
lam.plus
A numeric value. The expected population proportion of the D+ group, used for
sample size calculation. Default, lam.plus=1/3.The proportions of the
three ordinal groups (lam.minus, lam0, lam.plus) should sum to 1.
typeIerror
A numeric value. (1-typeIerror)*100% confidence interval
(CI) in sample size calculation. Default typeIerror=0.05, i.e.,
calculate 95% CI.
margin
A numeric value. The margin of error on the Youden index estimate in
sample size calculation. Default, margin=0.05.
NBOOT
A numeric value. Total number of bootstrap samples to
draw for bootstrap variance and CI.
seed.seq
a numeric vector of length NBOOT.The sequence of random seeds for bootstrapping
procedure to obtain bootstrapping variance and percentile confidence
interval if methods other than Normal is adopted
alpha
A numeric value. Significance level for CI
calculation. Default, alpha=0.05
...
Other options for the R function optim
.