predict.instrumental_forest: Predict with an instrumental forest

Description Usage Arguments Value

View source: R/instrumental_forest.R

Description

Gets estimates of tau(x) using a trained instrumental forest.

Usage

1
2
3
## S3 method for class 'instrumental_forest'
predict(object, newdata = NULL,
  num.threads = NULL, estimate.variance = FALSE, ...)

Arguments

object

The trained forest.

newdata

Points at which predictions should be made. If NULL, makes out-of-bag predictions on the training set instead (i.e., provides predictions at Xi using only trees that did not use the i-th training example).

num.threads

Number of threads used in training. If set to NULL, the software automatically selects an appropriate amount.

estimate.variance

Whether variance estimates for hattau(x) are desired (for confidence intervals).

...

Additional arguments (currently ignored).

Value

Vector of predictions, along with (optional) variance estimates.


grf documentation built on May 9, 2018, 5:04 p.m.