Re: [R] Variable importance in Random Forests

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Thu, 06 Mar 2008 11:34:07 -0500

Depending on the way you ran randomForest, the variable of interest may have been used in many splits in many trees. The information can be extracted using the getTree() function. However, I suspect it might be more useful to look at partialPlot().

Best,
Andy

> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces_at_r-project.org] On Behalf Of Nagu
> Sent: Wednesday, March 05, 2008 6:31 PM
> To: r-help_at_r-project.org; r-help_at_stat.math.ethz.ch
> Subject: [R] Variable importance in Random Forests
>
> Hi,
>
> How do I get what splits were used for the top important variables.
> For example, if my top most important variable is a continuous
> variable, e.g. previous 12 month sales, and its range is between $0 to
> $1M, how do I find what what were the split values for this variable
> that were used in the random forests algorithm? How do I achieve the
> same thing for a factor variable?
>
> Thank you,
> Nagu
>
> ______________________________________________
> R-help_at_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.
>
>
>



Notice: This e-mail message, together with any attachme...{{dropped:15}}

R-help_at_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. Received on Thu 06 Mar 2008 - 16:45:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Mar 2008 - 17:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive