The baseline hazard is extracted from the coxph()
call using the basehaz() function. The
baseline hazard function is then smoothed using
approxfun() to obtain the linear interpolant.
If required, the inverse baseline hazard is determined using root linear
interpolation. For this, a function written by Zheyuan Li (see references) is used.