The reverse Kaplan-Meier method estimates the median potential followup time.
Arguments
- formula
A formula whose left hand side is a
Histor aSurvobject specifying the event time and the event type where by default 0=censored, 1=event, 2=competing risk (if any). Usecens.codeto change the value for censored.- cens.code
Value of the event
- data
A data.frame in which all the variables of
formulacan be interpreted.- ...
Arguments passed to
prodlim.quantile.
References
Michael Schemper and Terry L. Smith. A note on quantifying follow-up in studies of failure time. Controlled Clinical Trials, 17(4):343–346, 1996.
Author
Thomas A. Gerds <[email protected]>
Examples
set.seed(8)
d <- SimCompRisk(117)
# overall
followup(Hist(time,event)~1,data=d)
#> Median and inter quartile range (IQR) of the potential follow up time based on the reverse Kaplan-Meier method.
#> Key: <X>
#> X Median (IQR)
#> <char> <char>
#> 1: Overall 8.22 (4.61;11.46)
# in strata defined by variable X1
followup(Hist(time,event)~X1,data=d)
#> Median and inter quartile range (IQR) of the potential follow up time based on the reverse Kaplan-Meier method.
#> Key: <X1>
#> X1 Median (IQR)
#> <num> <char>
#> 1: 0 8.42 (7.65;--)
#> 2: 1 7.35 (4.04;10.12)