powered by
The function plots a Kaplan Meier curve in red solid line
km_redsolid(time, censor, plotcens)
time of observed event
a vector indicating censored or not at the given times, 0 = censored; 1 = uncensored
0: add censored data to the output curve
1: don't add censored data to the output curve
A red solid Kaplan Meier curve
# NOT RUN { t1 <- c(2,3,4,5.5,7,10,12,15) c1 <- c(0,0,1,0,0,1,0,0) km_redsolid(t1,c1,0) # }
Run the code above in your browser using DataLab