varimp: Create a causal forest variable importance object

Description Usage Arguments Value Examples

View source: R/varimp.R

Description

Create a causal forest variable importance object

Usage

1
varimp(fit)

Arguments

fit

A trained causal_forest object

Value

An object of class varimp, essentially just a tibble with a row for each covariate.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
 require(grf)

 Xdat <- subset(cfex, select = -c(W, Y))
 X <- make_contrasts(Xdat, 'fct')
 cf <- causal_forest(X, cfex$Y, cfex$W)

 cf_eval(cf, Xdat)$varimp

## End(Not run)

ensley-nexant/cfeval documentation built on May 20, 2020, 12:34 a.m.