When plotting a cuminc() plot and adding a risk table, the order of the strata in the risk table is alphabetical. Is it possible for the order to follow the levels of a factor?
In the example below, I would like Drug B to be the top row in the risk table, and Drug A to come second.
It seems by default the risk table does not follow the levels of the factored stratum.
When plotting a cuminc() plot and adding a risk table, the order of the strata in the risk table is alphabetical. Is it possible for the order to follow the levels of a factor?
In the example below, I would like Drug B to be the top row in the risk table, and Drug A to come second. It seems by default the risk table does not follow the levels of the factored stratum.
Not sure if this a bug or a missing feature, but any help on this would be greatly appreciated. Many thanks!