| trans.illdeath {mstate} | R Documentation |
Define transition matrices for common multi-state models like the competing risks model and the illness-death model.
trans.comprisk(K, names) trans.illdeath(names)
K |
The number of competing risks |
names |
A character vector containing the names of either the
competing risks or the states in the multi-state model specified by
the competing risks or illness-death model. The length of names
should be either K or K+1 (for trans.comprisk),
or 3 (for trans.illdeath) |
If names is missing, the names "eventfree", "cause1",
etcetera are assigned in trans.comprisk, or "healthy",
"illness", "death" in trans.illdeath.
A transition matrix describing the states and transitions in the multi-state model.
Hein Putter <H.Putter@lumc.nl>
trans.comprisk(3)
trans.comprisk(3,c("c1","c2","c3"))
trans.comprisk(3,c("nothing","c1","c2","c3"))
trans.illdeath()
trans.illdeath(c("nothing","ill","death"))