A special function for Cox models fit with coxic that
identifies formula terms specifying the state-transition type.
Usage
trans(from, to)
Arguments
from
a variable representing the originating state.
to
a variable representing the subsequent state.
Value
A combination of the from and to arguments by column
with two attributes:
"states"a vector giving the unique non-missing values in the from and
to arguments ordered so that the initial state appears first,
the intermediate state second, and the terminal state last.
"types"a vector of transition type labels in terms of the values in the
from and to arguments ordered so that the
intermediate transition appears first, the terminal transition
directly from the initial state second, and the terminal transition
from the intermediate state last.