Determines the amount of shrinkage for a penalized regression model fitted by glmnet via crossvalidation, conforming to the calling convention required by argument complexity
in peperr
call.
1  complexity.glmnet(response, x, full.data, ...)

response 
a survival object (with 
x 

full.data 
data frame containing response and covariates of the full data set. 
... 
additional arguments passed to 
Function is basically a wrapper for cv.glmnet
of package glmnet
. A nfold crossvalidation (default n=10) is performed to determine the optimal penalty lambda.
For Cox PH regression models the deviance based on penalized partial loglikelihood is used as loss function. For binary endpoints other loss functions are available as well (see type.measure
). Deviance is default. Calling peperr
, the default arguments of cv.glmnet
can be changed by passing a named list containing these as argument args.complexity
.
Note that only penalized Cox PH (family="cox"
) and logistic regression models (family="binomial"
) are sensible for prediction error
evaluation with package peperr
.
Scalar value giving the optimal lambda.
Thomas Hielscher \ t.hielscher@dkfz.de
Friedman, J., Hastie, T. and Tibshirani, R. (2008)
Regularization Paths for Generalized Linear Models via Coordinate
Descent, http://www.stanford.edu/~hastie/Papers/glmnet.pdf
Journal of Statistical Software, Vol. 33(1), 122 Feb 2010
http://www.jstatsoft.org/v33/i01/
Simon, N., Friedman, J., Hastie, T., Tibshirani, R. (2011)
Regularization Paths for Cox's Proportional Hazards Model via
Coordinate Descent, Journal of Statistical Software, Vol. 39(5)
113
http://www.jstatsoft.org/v39/i05/
Porzelius, C., Binder, H., and Schumacher, M. (2009)
Parallelized prediction error estimation for evaluation of highdimensional models,
Bioinformatics, Vol. 25(6), 827829.
Sill M., Hielscher T., Becker N. and Zucknick M. (2014), c060: Extended Inference with Lasso and ElasticNet Regularized Cox and Generalized Linear Models, Journal of Statistical Software, Volume 62(5), pages 1–22.
http://www.jstatsoft.org/v62/i05/
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.