View source: R/response.coxnet.R
response.coxnet | R Documentation |
Internal function to make the response y passed to glmnet suitable for coxnet (i.e. glmnet with family = "cox"). Sanity checks are performed here too.
response.coxnet(y)
y |
Response variable. Either a class "Surv" object or a two-column matrix with columns named 'time' and 'status'. |
If y is a class "Surv" object, this function returns y with no changes. If y is a two-column matrix with columns named 'time' and 'status', it is converted into a "Surv" object.
A class "Surv" object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.