3.10 etsum
Automatically output text from survival analysis. Set the code chuck option results='asis'
.
rm_etsum(data = lung, response = c("time","Status"), group = 1,
times=c(365,720,1095), units="days")
Will output this:
There are 228 patients. There were 165 (72%) events. The median and range of the follow-up times is 255.5 (5-1022) days. The KM median event time is 310 with 95% confidence Interval (285,363). The first and last event times occurred at 5 and 883 days respectively. The 365,720 and 883 day probabilities of ‘survival’ and their 95% confidence intervals are 41 (34-49),12 (8-20) and 5 (2-12) percent.
NOTE: This function currently accepts only integer response variables.