Created
January 9, 2023 12:36
-
-
Save cindyangelira/bf6308b176de727e450efc0e5308fcc5 to your computer and use it in GitHub Desktop.
survival curve
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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