Description Usage Arguments Details Value Author(s) References See Also
Performs k-fold cross validation for penalized regression models with overlapping grouped covariates over a grid of values for the regularization parameter lambda.
1 2 |
X |
The design matrix, without an intercept, as in |
y |
The time-to-event outcome matrix for survival analysis, as explained in |
group |
A list of vectors containing group information, as in |
... |
Additional arguments to |
nfolds |
The number of cross-validation folds. Default is 10. |
seed |
Set the seed of the random number generator to obtain reproducible results. |
cv.ind |
User specified indices of which fold each observation belongs to. By default the observations are randomly assigned. |
returnY |
Should the linear predictors from the cross-validation folds be returned? Default is FALSE; if TRUE, this will return a matrix in which the element for row i, column j is the fitted value for observation i from the fold in which observation i was excluded from the fit, at the jth value of lambda. See details in |
trace |
If set to TRUE, print out the progress of the cross-validation. Default is FALSE. |
This function is built upon cv.grpsurv. The plot, summary, and predict functions are also supported. See details about the cross-validation approach for fitting survival models in cv.grpsurv.
An object with S3 class "cv.grpsurvOverlap", which inherits from class "cv.grpregOverlap" and "cv.grpsurv".
The following variables are contained in the class (adopted from cv.grpsurv).
cve |
The error for each value of |
lambda |
The sequence of regularization parameter values along which the cross-validation error was calculated. |
fit |
The fitted |
min |
The index of |
lambda.min |
The value of |
null.dev |
The cross-validated deviance for Cox model with max(lambda). See details in |
Yaohui Zeng and Patrick Breheny
Maintainer: Yaohui Zeng <yaohui-zeng@uiowa.edu>
Breheny P (2014). R package 'grpreg'. https://CRAN.R-project.org/package=grpreg/grpreg.pdf
grpregOverlap, predict.grpregOverlap, summary, and cv.grpreg.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.