tra | R Documentation |
Miscellaneous functions that compute the matrix of possible
transitions used as argument in the etm
function.
tra_ill(state.names = c("0", "1", "2"))
tra_ill_comp(nComp = 2,
state.names = as.character(seq(0, nComp + 1, 1)))
tra_comp(nComp = 2,
state.names = as.character(seq(0, nComp)))
tra_surv(state.names = c("0", "1"))
state.names |
A vector of characters giving the states names |
nComp |
For the competing risks models, the number of competing events |
These functions compute the matrix of possible transitions that is
used as argument in, e.g., the etm
function. tra_surv
is
for the usual survival model, tra_comp
for the competing risks
model, tra_ill
for the illness-death model and
tra_ill_comp
for the illness-death model with competing
terminal events. By default, state names are from 0 to ...
A quadratic matrix with TRUE
if a transition is possible,
FALSE
otherwise.
Arthur Allignol arthur.allignol@gmail.com
etm
tra_ill()
## competing risks model with 4 competing events non-default state names
tra_comp(4, state.names = c("healthy", "Cardiac problems", "Cancer",
"Rhenal failure", "Other"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.