View source: R/get_trans_intervals.R
get_trans_intervals | R Documentation |
Given a sample from a multi-state model, summarize the transitions that have been observed.
get_trans_intervals(gd, tmat)
gd |
A
The true transition time between states is then interval censored between the times. |
tmat |
A transition matrix as created by |
A data.frame
with the following named columns
entry_time
:Time of entry into "from" state;
time_from
:Last time subject(id) was seen in state "from";
time_to
:First time subject(id) was seen in state "to";
from
:State from which a transition was observed;
to
:State to which the transition was observed;
id
:Subject identifier;
For right-censored observations, entry_time denotes the first time
seen in the censored state, time_from the last time seen in the censored state,
time_to is Inf
, from the censored state and to is NA
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.