predictProb.glmnet: Extract predicted survival probabilities from a glmnet fit

Description Usage Arguments Value Author(s) References See Also


Extracts predicted survival probabilities from survival model fitted by glmnet, providing an interface as required by pmpec.


## S3 method for class 'glmnet'
predictProb(object, response, x, times, complexity, ...)



a fitted model of class glmnet.


response variable. Quantitative for family="gaussian", or family="poisson" (non-negative counts). For family="binomial" should be either a factor with two levels, or a two-column matrix of counts or proportions. For family="multinomial", can be a nc>=2 level factor, or a matrix with nc columns of counts or proportions.


n*p matrix of covariates.


vector of evaluation time points.


lambda penalty value.


additional arguments, currently not used.


Matrix with probabilities for each evaluation time point in times (columns) and each new observation (rows).


Thomas Hielscher \


Friedman, J., Hastie, T. and Tibshirani, R. (2008) Regularization Paths for Generalized Linear Models via Coordinate Descent,
Journal of Statistical Software, Vol. 33(1), 1-22 Feb 2010
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) 1-13
Porzelius, C., Binder, H., and Schumacher, M. (2009) Parallelized prediction error estimation for evaluation of high-dimensional models, Bioinformatics, Vol. 25(6), 827-829.
Sill M., Hielscher T., Becker N. and Zucknick M. (2014), c060: Extended Inference with Lasso and Elastic-Net Regularized Cox and Generalized Linear Models, Journal of Statistical Software, Volume 62(5), pages 1–22.

See Also

predictProb.coxnet, peperr, glmnet

c060 documentation built on May 31, 2017, 1:47 a.m.

Search within the c060 package
Search all R packages, documentation and source code