The software that I am using gives the summary output of the survfit function. What is the easiest way to take this information and use the ggsurvplot function? I understand that this summary data is in a different format from the traditional data frame for the ggsurvplot function. Is there another function I should be using instead for a Kaplan-Meier Curve? Any information would be much appreciated. Notably, the survival probabilities round to 1 in the summary output, so it would be great if I could use the n.risk and n.event columns to calculate more accurate survivals. Thanks!
structure(list(time = c(11L, 13L, 14L, 15L, 16L, 17L, 18L, 19L,
20L, 21L), n.risk = c(399490L, 399133L, 398853L, 398558L, 398078L,
397755L, 397487L, 397273L, 397108L, 396949L), n.event = c(1L,
1L, 3L, 2L, 2L, 1L, 2L, 3L, 2L, 6L), survival = c(1, 1, 1, 1,
1, 1, 1, 1, 1, 1), std.err = c(2.5e-06, 3.54e-06, 5.6e-06, 6.63e-06,
7.52e-06, 7.93e-06, 8.69e-06, 9.73e-06, 1.04e-05, 1.21e-05),
lowerci = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), upperci = c(1,
1, 1, 1, 1, 1, 1, 1, 1, 1)), row.names = c(NA, -10L), class = "data.frame")
````