prepare.los.data {changeLOS} | R Documentation |
Prepare data as the ones generated by read.los.data
to be passed to clos().
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 |
For bootstrap applications (see the examples to
clos
), where an individual may enter the new bootstrap
data set several times, it is useful to have 'oid', which will tell
several draws of the same individual apart.
Matthias Wangler mw@imbi.uni-freiburg.de
data(los.data) my.observ <- prepare.los.data(x=los.data)