read.cf | R Documentation |
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.
read.cf(object, X = "All")
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. |
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.
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.