Description Usage Arguments Details Value Author(s) See Also Examples

Miscellaneous functions that compute the matrix of possible
transitions used as argument in the `etm`

function.

1 2 3 4 5 6 | ```
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 [email protected]

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.