powered by
variableImpPlot provides a dotchart of variable importance as measured by ranger with the argument importance='impurity'.
variableImpPlot
ranger
variableImpPlot(object, n.var=min(30, length(object$model.rf$variable.importance)), xlim=NULL, main=NULL)
Invisibly, the importance of the variables that were plotted.
an abcrf or regAbcrf object.
abcrf
regAbcrf
number of variables in the variable importance representation.
range of the abscissa.
an overall title for the variable importance plot.
abcrf, plot.abcrf, plot.regAbcrf
plot.abcrf
plot.regAbcrf
data(snp) modindex <- snp$modindex[1:500] sumsta <- snp$sumsta[1:500,] data1 <- data.frame(modindex, sumsta) model.rf <- abcrf(modindex~., data1, ntree=100) variableImpPlot(model.rf)
Run the code above in your browser using DataLab