Function to extract state pair counts and observed (right) times.
state.pairs.CT(
formula = NULL,
data = NULL,
whereQ = NULL,
nstates = NULL,
time = NULL,
state = NULL,
id = NULL
)A table with the state-pair counts and a list with the observed (right) times for each transition.
Model specification.
Data.
Placement of allowed transition intensities. Only for internal use. Defaults to NULL and is obtained automatically when formula is provided.
Total number of states. Only for internal use. Defaults to NULL and is obtained automatically when formula is provided.
Name of variable containing the time-to-event.
Name of variable containing the states.
Name of variable containing the unique code identifying the individuals.