A reference class to compute twins via one random forest
modelis a caret/RandomForest/randomForest class object
interactionslogical set TRUE if model has been computed with interactions
...field from parent class : VT.forest
computeTwin1()Compute twin1 with OOB predictions
computeTwin2()Compute twin2 by switching treatment and applying random forest model
VT.forest.one extends VT.forest.
OOB predictions are used to estimate \(E(Y|T = real treatment)\). Then,
treatement is switched, it means that 1 becomes 0 and 0 becomes 1. We use
again model to estimate \(E(Y|T = the other treatment)\). This is
what computeTwin1() and computeTwin2() functions do.