as: Convert coxnet objects

as.coxphR Documentation

Convert coxnet objects

Description

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

Usage

as.coxph(object, ...)

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

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

as.cph(object, ...)

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

## S3 method for class '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.

Author(s)

Sebastian Gibb

See Also

glmnet::glmnet()

rms::cph()


ampel-leipzig/glmnettools documentation built on June 21, 2022, 6:25 a.m.