This function is a wrapper for the gbm::basehaz.gbm(). The function computes the Breslow estimator of the baseline hazard function for a proportional hazard regression model.

sgb_bhaz(sgb_booster, eval_times = NULL, smooth = FALSE,
  cumulative = TRUE)

Arguments

sgb_booster

an object of class sgb_booster (see sgb_fit).

eval_times

Values at which the baseline hazard will be evaluated.

smooth

If TRUE sgb_bhaz will smooth the estimated baseline hazard using Friedman's super smoother supsmu.

cumulative

If TRUE the cumulative survival function will be computed.

Value

A vector with a baseline hazard value corresponding to each time in eval_times If cumulative is TRUE, the returned vector evaluates the cumulative hazard function at those values.