cv.coxpath {glmpath} | R Documentation |
This function computes cross-validated (minus) log-partial-likelihoods
for coxpath.
cv.coxpath(data, method = c("breslow", "efron"), nfold = 5, fraction = seq(0, 1, length = 100), mode = c("norm", "lambda"), plot.it = TRUE, se = TRUE, ...)
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(λ) with respect to their
maximum values at which the CV errors are computed. Default is
|
mode |
If |
plot.it |
If |
se |
If |
... |
other options for coxpath |
Mee Young Park and Trevor Hastie
Mee Young Park and Trevor Hastie (2007) L1 regularization path algorithm for generalized linear models. J. R. Statist. Soc. B, 69, 659-677.
coxpath, plot.coxpath, predict.coxpath
data(lung.data) attach(lung.data) cv <- cv.coxpath(lung.data) detach(lung.data)