prepare.los.data {etm} | R Documentation |
Prepare the data for clos
Description
Prepare data to be passed to clos() in package etm.
Usage
prepare.los.data(x)
Arguments
x |
data.frame of the form data.frame(id, j.01, j.02, j.03, j.12, j.13, cens):
|
Value
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 |
Author(s)
Matthias Wangler
See Also
Examples
data(los.data)
my.observ <- prepare.los.data(x=los.data)
[Package etm version 1.1.1 Index]