The function takes a data.frame
of short format
right-censored failure times and reshapes the long format into the wide
format needed for calls to both mean_tmle
and
hazard_tmle
. The list returned will have a number of entries
equal to length(trtOfInterest) + 1
. The first will have number of
rows for each observation equal to the ftime
corresponding to that
observation. The subsequent entries will have t0
rows for each
observation and will set trt
column equal to each value of
trtOfInterest
in turn.
makeDataList(dat, J, ntrt, uniqtrt, t0, bounds = NULL, ...)
dat | The short form |
---|---|
J | The unique values of |
ntrt | The number of |
uniqtrt | The unique values of |
t0 | The timepoint at which |
bounds | Minimum and maximum values to be placed on the |
... | Other arguments. Not currently used. |
A list of data.frame
objects as described above.