Dear community,
I have created a Kaplan Meier estimator with sts graph that includes a risktable. I would like the risktable to include not only numbers of participants at risk, but also numbers of participants censored at each timepoint, somewhat like this: https://towardsdatascience.com/kapla...s-c5768e349479
How can I do this? Or at the very least add a hash to each censoring event while keeping the risktable?
My code is:
Thank You in advance
I have created a Kaplan Meier estimator with sts graph that includes a risktable. I would like the risktable to include not only numbers of participants at risk, but also numbers of participants censored at each timepoint, somewhat like this: https://towardsdatascience.com/kapla...s-c5768e349479
How can I do this? Or at the very least add a hash to each censoring event while keeping the risktable?
My code is:
Code:
sts graph, by(rand) risktable(, order(1 "verum" 2 "placebo") rowtitle(, justification(left))) title("Kaplan-Meier curve randomized-controlled trial") subtitle("Time to event") ytitle("Probability of survival") xtitle("Time from randomisation (days)") ylabel(0(0.1)1, angle(horizontal)) xlabel(0 "0" 86400000 "1" 172800000 "2" 259200000 "3" 345600000 "4" 432000000 "5" 518400000 "6" 604800000 "7")
Comment