VT.forest.one {aVirtualTwins} | R Documentation |

## Difft by one random forest

### Description

A reference class to compute twins via one random forest

### Details

`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.

### Fields

`model`

is a caret/RandomForest/randomForest class object

`interactions`

logical set TRUE if model has been computed with interactions

`...`

field from parent class : `VT.forest`

### Methods

`computeTwin1()`

Compute twin1 with OOB predictions

`computeTwin2()`

Compute twin2 by switching treatment and applying random forest model

### See Also

`VT.difft`

, `VT.forest`

, `VT.forest.double`

[Package

*aVirtualTwins* version 1.0.1

Index]