An object which defines a mechanism for taking
a SingleSimFit object and imputing missing data
to create a ImputeSim
The method name (used for printing)
which columns of the SingleSim data frame are required by the method, typically
c("censored.time","observed.events","arm")
A function which takes a SingleSimFit object and outputs the details for a single
imputed data set, specifically a list with two elements:
new.censored.times - a vector of times subjects were censored (after taking into account imputation)
and newevent.times - a list of vectors where the vectors contain the imputed event times for the subjects
(these vectors do not contain the observed event times before subject drop out). If a subject has no imputed events then
the vector numeric(0) is returned.
A list of named parameters describing the method (used for printing) - or NULL if none
The following components must be included in an ImputeMechanism Object
It is possible to create user defined mechanisms, however,
common mechanisms have already been implemented. For example see
weighted_j2r
A print.ImputeMechanism method is defined.
j2r <- weighted_j2r(trt.weight=0)
Run the code above in your browser using DataLab