Hello,

I am running randomForest models on a number of species.  I would like to be
able to automate the printing of dependence plots for the most important
variables in each model, but I am unable to figure out how to enter the
variable names into my code.  I had originally thought to extract them from
the $importance matrix after sorting by metric (e.g. %IncMSE), but the
importance matrix is n by 2 - containing only the data for each metric
(%IncMSE and IncNodePurity).  It is clearly linked to the variable names,
but I am unsure how to extract those names for use in scripting.  Any
assistance would be greatly appreciated as I am currently typing the
variable names into each partialPlot call for every model I run.....and that
is taking a LONG time.

Thanks!

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to