You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using survival::coxph() for multistate models, the summary() (and therefore the tidy()) output contains indices only.
These refer to the indices of fit$states, and are hard to read, especially when dealing with multiple models.
If these indices could be replaced by their labels, the readability would improve dramatically.
I know that {broom}'s policy is now to not change their methods, but in this case, I think this could be worth it.
This could be a use_label=TRUE option, that should probably depend on the coxphms class.
Feature
Hi,
When using
survival::coxph()
for multistate models, thesummary()
(and therefore thetidy()
) output contains indices only.These refer to the indices of
fit$states
, and are hard to read, especially when dealing with multiple models.If these indices could be replaced by their labels, the readability would improve dramatically.
I know that {broom}'s policy is now to not change their methods, but in this case, I think this could be worth it.
This could be a
use_label=TRUE
option, that should probably depend on thecoxphms
class.Here is an example of an expected output:
Created on 2025-01-05 with reprex v2.1.1
Of course, this code could be improved.
Separating
term
fromtransition
allows for better filtering and arranging,The text was updated successfully, but these errors were encountered: