Make [survival::basehaz()] available for coxnet objects.
basehaz(fit, ...)
# S3 method for coxph
basehaz(fit, centered = TRUE, ...)
# S3 method for cv.glmnet
basehaz(
fit,
x,
y,
s = c("lambda.1se", "lambda.min"),
times = NULL,
centered = TRUE,
...
)
# S3 method for coxnet
basehaz(fit, x, y, s = NULL, times = NULL, centered = TRUE, ...)fitted model.
further arguments passed to basehaz.
logical(1), see survival::basehaz().
matrix, model matrix used to fit fit.
Surv, Survival object used to fit fit.
numeric(1), lambda penality parameter.
numeric, estimate baseline hazard for times. If NULL all
times are returned.
data.frame with variable names hazard, time and optionally
strata.