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, ...)
The short form data.frame
The unique values of ftype
passed to survtmle
.
The number of trt
values of interest.
The unique values of trtOfInterest
passed to
mean_tmle
.
The timepoint at which survtmle
was called to evaluate.
Minimum and maximum values to be placed on the ftype
.
Other arguments. Not currently used.
A list of data.frame
objects as described above.