These functions convert coxnet objects into popular survival objects like survival::coxph or rms::cph.

as.coxph(object, ...)

# S3 method for rcv.glmnet
as.coxph(object, s, x, y, ...)

# S3 method for coxnet
as.coxph(object, s, x, y, ...)

as.cph(object, ...)

# S3 method for rcv.glmnet
as.cph(object, s, x, y, ...)

# S3 method for coxnet
as.cph(object, s, x, y, time.inc = 30, ...)

Arguments

object

object that should be converted.

...

further arguments passed to the underlying function (survival::coxph or rms::cph).

s

character/numeric, value(s) of the penality parameter lambda.

x

matrix, as in glmnet.

y

response as in glmnet.

time.inc

numeric(1), time increment, see rms::cph() for details.

See also

Author

Sebastian Gibb