fc_surv {failCompare} | R Documentation |
Computes a sample survival function.
fc_surv(time, censorID = NULL, rc.value = NULL)
time |
failure or censoring time |
censorID |
binary or logical variable the same length as |
rc.value |
time after which all values are censored |
Calculates a sample survival function accounting for right censoring. In the absence of censoring, it uses the basic survival function estimator, or otherwise uses the Kaplan-Meier product limit estimate.
a numeric vector of survival fraction estimates sample survival function