VarImpPlot | R Documentation |
Plots variable importance for a MetaForest object.
VarImpPlot(mf, n.var = 30, sort = TRUE, ...)
mf |
MetaForest object. |
n.var |
Number of moderators to plot. |
sort |
Should the moderators be sorted from most to least important? |
... |
Parameters passed to and from other functions. |
A ggplot object.
set.seed(42)
data <- SimulateSMD()
mf.random <- MetaForest(formula = yi ~ ., data = data$training,
whichweights = "random", method = "DL",
tau2 = 0.0116)
VarImpPlot(mf.random)
VarImpPlot(mf.random, n.var = 2)
VarImpPlot(mf.random, sort = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.