statetable.msm(state, subject, data=NULL)
state
. If not given, all observations are assumed to be on
the same subject.subject
and state
can be found.crudeinits.msm
## Heart transplant data
data(heart)
## 148 deaths from state 1, 48 from state 2 and 55 from state 3.
statetable.msm(state, PTNUM, data=heart)
Run the code above in your browser using DataLab