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 dataset

treatment.field

name of the treatment's field in dataset

interactions

logical. If running VirtualTwins with treatment's interactions, set to TRUE (default value)

...

parameters of VT.object

Value

VT.object

See Also

formatRCTDataset

Examples


data(sepsis)
vt.o <- vt.data(sepsis, "survival", "THERAPY", T)
  

[Package aVirtualTwins version 1.0.1 Index]