vt.data {aVirtualTwins} | R Documentation |
Initialize virtual twins data
Description
vt.data
is a wrapper of formatRCTDataset
and
VT.object
. Allows to format your data.frame in order to create
a VT.object object.
Usage
vt.data(dataset, outcome.field, treatment.field, interactions = TRUE, ...)
Arguments
dataset |
data.frame representing RCT's |
outcome.field |
name of the outcome's field in |
treatment.field |
name of the treatment's field in |
interactions |
logical. If running VirtualTwins with treatment's interactions, set to TRUE (default value) |
... |
parameters of |
Value
VT.object
See Also
Examples
data(sepsis)
vt.o <- vt.data(sepsis, "survival", "THERAPY", T)
[Package aVirtualTwins version 1.0.1 Index]