trans_mat: Create a transition matrix ——

Description Usage Arguments References Examples

Description

In a competing risk setting state 2 is reachable from state 1. State 3 is absorbing, reachable from states 1 and 2.

Usage

1

Arguments

x:

List of possible transitions. x[[i]] consists of a vector of state numbers reachable from state i.

names:

Character vector of state names, having the same length as x.

References

Liesbeth C. de Wreede, Marta Fiocco, Hein Putter (2011). mstate: An R Package for the Analysis of Competing Risks and Multi-State Models. Journal of Statistical Software, 38(7), 1-30. URL http://www.jstatsoft.org/v38/i07/.

Examples

1
2
3
4
5
   # For a competing risks setting
   trans_mat( x = list( c(2, 3), c(3), c() ) )
   # For consecutive states
   trans_mat( x = list(c(2), 3, c() ) )
   

csetraynor/mstte documentation built on May 31, 2019, 4:54 a.m.