October 2017
Beginner to intermediate
572 pages
26h 1m
English
The surfit function shows details for different genders. If we look at the first observation, where sex=1 (Male), it states that a total of 138 males were in the cancer dataset, of which 112 people died; the median time is 270 days. It also points out that the 95% confidence interval for the median survival time for 212 is 310.
The summary of the survfit function displays the data in a tabular format for each time point in the dataset. At every step, it computes the total person at risk; that is, n.risk, the number of events at a given time point, and n.point: proportion who survived at a point of time with the standard error and confidence level. If we look at the first two lines of output:
time n.risk n.event survival std.err ...
Read now
Unlock full access