1
0
Fork 0
mirror of https://github.com/prise6/aVirtualTwins.git synced 2024-04-26 19:10:26 +02:00
aVirtualTwins/man/VT.difft.Rd

47 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2016-10-09 02:43:51 +02:00
% Generated by roxygen2: do not edit by hand
2015-06-10 15:24:53 +02:00
% Please edit documentation in R/difft.R
\docType{class}
\name{VT.difft}
\alias{VT.difft}
\title{Difference between twins}
\description{
A reference class to represent difference between twin1 and twin2
}
\details{
2016-10-09 02:43:51 +02:00
Difft are calculated depending on the favorable outcome chosen. It is the
second level of the outcome. For example, if the outcome is 0 and 1, the
2015-06-21 02:29:01 +02:00
favorable outcome is 1. Then, \deqn{difft_i = twin1_i - twin2_i if T_i = 1}
\deqn{ difft_i = twin2_i - twin1_i if T_i = 0}.
So \emph{absolute} method is :
\deqn{P(Y = 1 | T = 1) - P(Y = 1 | T =0)}
So \emph{relative} method is :
\deqn{P(Y = 1 | T = 1)/P(Y = 1 | T =0)}
So \emph{absolute} method is :
\deqn{logit(P(Y = 1 | T = 1)) - logit(P(Y = 1 | T =0))}
2015-06-10 15:24:53 +02:00
}
\section{Fields}{
\describe{
\item{\code{vt.object}}{VT.object (refClass) representing data}
\item{\code{twin1}}{vector of \eqn{E(Y|T = real treatment)}}
2015-06-11 09:32:10 +02:00
\item{\code{twin2}}{vector of \eqn{E(Y|T = another treatment)}}
2015-06-10 15:24:53 +02:00
2015-06-21 02:29:01 +02:00
\item{\code{method}}{Method available to compute difft : c("absolute", "relative",
"logit"). Absolute is default value. See details.}
2015-06-10 15:24:53 +02:00
\item{\code{difft}}{vector of difference between twin1 and twin2}
}}
2015-06-10 15:24:53 +02:00
\section{Methods}{
\describe{
\item{\code{computeDifft()}}{Compute difference between twin1 and twin2. See details.}
}}
2015-06-10 15:24:53 +02:00
\seealso{
2015-06-21 02:29:01 +02:00
\code{\link{VT.forest}}, \code{\link{VT.forest.one}},
\code{\link{VT.forest.double}}
2015-06-10 15:24:53 +02:00
}