cv.coxpath {glmpath} | R Documentation |
Computes cross-validated (minus) log-partial-likelihoods for coxpath
Description
This function computes cross-validated (minus) log-partial-likelihoods
for coxpath.
Usage
cv.coxpath(data, method = c("breslow", "efron"), nfold = 5,
fraction = seq(0, 1, length = 100),
mode = c("norm", "lambda"), plot.it = TRUE, se = TRUE, ...)
Arguments
data |
a list consisting of |
method |
approximation method for tied survival times. Approximations derived
by Breslow (1974) and Efron (1977) are available. Default is
|
nfold |
number of folds to be used in cross-validation. Default is
|
fraction |
the fraction of L1 norm or log( |
mode |
If |
plot.it |
If |
se |
If |
... |
other options for coxpath |
Author(s)
Mee Young Park and Trevor Hastie
References
Mee Young Park and Trevor Hastie (2007) L1 regularization path algorithm for generalized linear models. J. R. Statist. Soc. B, 69, 659-677.
See Also
coxpath, plot.coxpath, predict.coxpath
Examples
data(lung.data)
attach(lung.data)
cv <- cv.coxpath(lung.data)
detach(lung.data)