Prepare the data for clos
Prepare data to be passed to clos() in package etm.
prepare.los.data(x)
x |
data.frame of the form data.frame(id, j.01, j.02, j.03, j.12, j.13, cens):
|
a data.frame of the form data.frame(id, from, to, time, oid):
id: |
id (patient id, admision id) |
from: |
the state from where a transition occurs |
to: |
the state to which a transition occurs |
time: |
time of the transition |
oid: |
the observation id |
Matthias Wangler
data(los.data) my.observ <- prepare.los.data(x=los.data)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.