glmnet_basesurv function

Breslow baseline hazard estimator for glmnet objects

Breslow baseline hazard estimator for glmnet objects

Derived from peperr:::basesurv and gbm::basehaz.gbm.

glmnet_basesurv(time, event, lp, times.eval = NULL, centered = FALSE)

Arguments

  • time: Survival time
  • event: Status indicator
  • lp: Linear predictors
  • times.eval: Survival time to evaluate
  • centered: Should we center the survival curve? See basehaz for details.

Returns

list containing cumulative base hazard

Examples

NULL
  • Maintainer: Nan Xiao
  • License: GPL-3 | file LICENSE
  • Last published: 2024-09-05