A reference class to compute twins via k random forest
interactionslogical set TRUE if model has been computed with interactions
foldnumeric, number of fold, i.e. number of forest (k)
rationumeric experimental, use to balance sampsize. Defaut to 1.
groupsvector Define which observations belong to which group
...field from parent class : VT.forest
run()Compute twin1 and twin2 estimation. Switch treatment if necessary.
VT.forest.fold extends VT.forest
Twins are estimated by k-fold cross validation. A forest is computed on k-1/k of the data and then used to estimate twin1 and twin2 on 1/k of the left data.