powered by
vt.data is a wrapper of formatRCTDataset and VT.object. Allows to format your data.frame in order to create a VT.object object.
vt.data
formatRCTDataset
VT.object
vt.data(dataset, outcome.field, treatment.field, interactions = TRUE, ...)
data.frame representing RCT's
name of the outcome's field in dataset
dataset
name of the treatment's field in dataset
logical. If running VirtualTwins with treatment's interactions, set to TRUE (default value)
parameters of VT.object
# NOT RUN { data(sepsis) vt.o <- vt.data(sepsis, "survival", "THERAPY", T) # }
Run the code above in your browser using DataLab