A reference class to compute twins via double random forests
model_trt1
a caret/RandomForest/randomForest object for treatment T = 1
model_trt0
a caret/RandomForest/randomForest object for treatment T = 0
...
field from parent class : VT.forest
computeTwin1()
Compute twin1 with OOB predictions from double forests. See details.
computeTwin2()
Compute twin2 by the other part of data in the other forest. See details.
VT.forest.double
extends VT.forest
.
\(E(Y|T = 1)\) if \(T_i = 1\) is estimated by OOB predictions from
model_trt1
.
\(E(Y|T = 0)\) if \(T_i = 0\) is estimated by OOB predictions from
model_trt0
.
This is what computeTwin1()
does.
Then \(E(Y|T = 1)\) if \(T_i = 0\) is estimated by model_trt1.
Then \(E(Y|T = 0)\) if \(T_i = 1\) is estimated by model_trt1.
This is what computeTwin2()
does.