VT.difft {aVirtualTwins} | R Documentation |
Difference between twins
Description
A reference class to represent difference between twin1 and twin2
Details
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 favorable outcome is 1. Then,
difft_i = twin1_i - twin2_i if T_i = 1
difft_i = twin2_i - twin1_i if T_i = 0
. So absolute method is :
P(Y = 1 | T = 1) - P(Y = 1 | T =0)
So relative method is :
P(Y = 1 | T = 1)/P(Y = 1 | T =0)
So absolute method is :
logit(P(Y = 1 | T = 1)) - logit(P(Y = 1 | T =0))
Fields
vt.object
VT.object (refClass) representing data
twin1
vector of
E(Y|T = real treatment)
twin2
vector of
E(Y|T = another treatment)
method
Method available to compute difft : c("absolute", "relative", "logit"). Absolute is default value. See details.
difft
vector of difference between twin1 and twin2
Methods
computeDifft()
Compute difference between twin1 and twin2. See details.
See Also
VT.forest
, VT.forest.one
,
VT.forest.double