1
0
Fork 0
mirror of https://github.com/prise6/aVirtualTwins.git synced 2024-05-01 19:52:43 +02:00
aVirtualTwins/man/vt.data.Rd

36 lines
918 B
Plaintext
Raw Normal View History

2016-10-09 02:43:51 +02:00
% Generated by roxygen2: do not edit by hand
2015-06-21 02:29:01 +02:00
% 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}}
2016-10-09 02:43:51 +02:00
\item{interactions}{logical. If running VirtualTwins with treatment's
2015-06-21 02:29:01 +02:00
interactions, set to TRUE (default value)}
\item{...}{parameters of \code{\link{VT.object}}}
}
\value{
\code{VT.object}
}
\description{
2016-10-09 02:43:51 +02:00
\code{vt.data} is a wrapper of \code{\link{formatRCTDataset}} and
2015-07-27 01:40:52 +02:00
\code{\link{VT.object}}. Allows to format your data.frame in order to create
a VT.object object.
}
\examples{
\dontrun{
data(sepsis)
formatRCTdataset(sepsis, "survival", "THERAPY", T)
}
2016-10-09 02:43:51 +02:00
2015-06-21 02:29:01 +02:00
}