1
0
Fork 0
mirror of https://github.com/prise6/aVirtualTwins.git synced 2024-04-25 19:00:27 +02:00
aVirtualTwins/man/vt.data.Rd
2018-02-03 13:18:19 +01:00

38 lines
947 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/object.wrapper.R
\name{vt.data}
\alias{vt.data}
\title{Initialize virtual twins data}
\usage{
vt.data(dataset, outcome.field, treatment.field, interactions = TRUE, ...)
}
\arguments{
\item{dataset}{data.frame representing RCT's}
\item{outcome.field}{name of the outcome's field in \code{dataset}}
\item{treatment.field}{name of the treatment's field in \code{dataset}}
\item{interactions}{logical. If running VirtualTwins with treatment's
interactions, set to TRUE (default value)}
\item{...}{parameters of \code{\link{VT.object}}}
}
\value{
\code{VT.object}
}
\description{
\code{vt.data} is a wrapper of \code{\link{formatRCTDataset}} and
\code{\link{VT.object}}. Allows to format your data.frame in order to create
a VT.object object.
}
\examples{
data(sepsis)
vt.o <- vt.data(sepsis, "survival", "THERAPY", T)
}
\seealso{
\code{\link{formatRCTDataset}}
}