plot.varimp: Plot variable importance of a causal forest

Description Usage Arguments Value Examples

View source: R/varimp.R

Description

Plot variable importance of a causal forest

Usage

1
2
## S3 method for class 'varimp'
plot(x, ...)

Arguments

x

A varimp object

...

Additional parameters (not used)

Value

A plot

Examples

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

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

 cfe <- cf_eval(cf, Xdat)
 plot(cfe$varimp)

## End(Not run)

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