Skip to content

Instantly share code, notes, and snippets.

@cindyangelira
Created January 9, 2023 12:36
Show Gist options
  • Save cindyangelira/bf6308b176de727e450efc0e5308fcc5 to your computer and use it in GitHub Desktop.
Save cindyangelira/bf6308b176de727e450efc0e5308fcc5 to your computer and use it in GitHub Desktop.
survival curve
# Plot all survival curves----
plot(coxtime$prediction(predict_sets = "test")$distr, ind = 1, fun = "survival")
# Plot first two survival curves----
plot(coxtime$prediction(predict_sets = "test")$distr[1], "survival", main = "First 2 Survival Curves")
lines(coxtime$prediction(predict_sets = "test")$distr[2], "survival", col = 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment