Thank you @therneau for the note!
- Multi-state data gets more complicated wrt number at risk.
Consider the following simple model (for the colon cancer data set)
library(survival)
state <- c("enroll", "progression", "death")
smat <- matrix(0, 3, 3, dimnames=list(state, state))
smat[1:2, 3] <- smat[1,2] <- 1
statefig(1:2, smat)
The number at risk for the enroll:progression transition is the number at the foot of the arrow; the number at risk for the death state is the sum of the number in the enroll and progression box. The first is probably the right label for a cumulative hazard curve. Is the second the one we want for the Prob("death") curve? But then you can't have just one n.risk row for a plot with multiple groups.
- For multi-state curves, there are advocates for both "stacked" and non stacked forms.
Thank you @therneau for the note!
Consider the following simple model (for the colon cancer data set)
The number at risk for the enroll:progression transition is the number at the foot of the arrow; the number at risk for the death state is the sum of the number in the enroll and progression box. The first is probably the right label for a cumulative hazard curve. Is the second the one we want for the Prob("death") curve? But then you can't have just one n.risk row for a plot with multiple groups.