View source: R/object.wrapper.R
vt.data | R Documentation |
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(dataset, outcome.field, treatment.field, interactions = TRUE, ...)
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 |
VT.object
formatRCTDataset
data(sepsis)
vt.o <- vt.data(sepsis, "survival", "THERAPY", T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.