survexp(formula, data, weights, subset, na.action, times, cohort=T, conditional=F, ratetable=survexp.us, scale=1, npoints, se.fit=<<see below>>, model=F, x=F, y=F)
Cohort survival is used to produce an overall survival curve. This is then added to the Kaplan-Meier plot of the study group for visual comparison between these subjects and the population at large. There are three common methods of computing cohort survival. In the "exact method" of Ederer the cohort is not censored; this corresponds to having no response variable in the formula. Hakulinen recommends censoring the cohort at the anticipated censoring time of each patient, and Verheul recommends censoring the cohort at the actual observation time of each patient. The last of these is the conditional method. These are obtained by using the respective time values as the follow-up time or response in the formula.
Ederer, F., Axtell, L. and Cutler, S. (1961). The relative survival rate: a statistical methodology. Natl Cancer Inst Monogr 6,101-21.
Hakulinen, T. (1982). Cancer survival corrected for heterogeneity in patient withdrawal. Biometrics 38, 933.
Verheul, H., Dekker, E., Bossuyt, P., Moulijn, A. and Dunning, A. (1993). Background mortality in clinical survival studies. Lancet 341, 872-875.
# Create new data frame with the largest stop value for each patient hearta <- by(heart, IND=heart$id, FUN=function(x)x[x$stop==max(x$stop),]) hearta <- do.call("rbind", hearta)# Estimate of conditional survival survexp(stop ~ ratetable(sex="male", year=year*365.25, age=(age+48)*365.25), conditional=T, data=hearta)
# Estimate of conditional survival stratified by prior surgery survexp(stop ~ surgery + ratetable(sex="male", year=year*365.25, age=(age+48)*365.25), conditional=T, data=hearta) rm(hearta)