## Matrix of fake importance measures per Tree
set.seed(290875)
ntree <- 500
p <- 15
fakeVIM <- matrix(rnorm(ntree * p), nrow = ntree, ncol = p,
dimnames = list(paste0("pred", seq_len(ntree)), paste0("pred", seq_len(p))))
is.VarImp(fakeVIM)
## make a 'VarImp' object
fakeVarImp <- as.VarImp(fakeVIM, type = "See Info",
info = list("The Vims are based on fake data.",
"The mean was used to aggregate across the trees"))
is.VarImp(fakeVarImp)
Run the code above in your browser using DataLab