read.cf: Read causal forest object

View source: R/read_cf.R

read.cfR Documentation

Read causal forest object

Description

tSNE-Clustering visualization starts by a causal forest object. This function read a causal forest object that has been created and process data for t-SNE clustering analysis on next stage.

Usage

read.cf(object, X = "All")

Arguments

object

causal forest object that has been created.

X

Vector of covariate names or number of clumns to includes in later t-SNE analysis.Defaults to all covariates in X.orig of cf object.

References

Athey Susan, Julie Tibshirani, and Stefan Wager. Generalized Random Forests. Annals of Statistics (forthcoming), 2018

Wager, Stefan, and Susan Athey. Estimation and Inference of Heterogeneous Treatment Effects using Random Forests. Journal of the American Statistical Association (forthcoming), 2018.

Examples

# Train a causal forest.
n = 50; p = 10
X = matrix(rnorm(n*p), n, p)
W = rbinom(n, 1, 0.5)
Y = pmax(X[,1], 0) * W + X[,2] + pmin(X[,3], 0) + rnorm(n)
c.forest <- causal_forest(X, Y, W)
my_cf <- read.cf(c.forest, X = c(2:7))

jiongyi-cao/tSneClstGRF documentation built on June 2, 2022, 11:40 p.m.