This code is borrowed from internal function agsurv from survival package.
predictedHazard(fit)
fitted pcoxtime
A list of S3 objects.
number of observations used in the fit.
total number of events of interest in the fit.
time points defined by the risk set.
the number of individuals at risk at time t
.
the number of events that occur at time t
.
the number of subjects who exit the risk set, without an event, at time t
.
a vector or a matrix of estimated survival function.
a vector or a matrix of estimated cumulative hazard.