[R] Stratified Sampling with randomForest Regression

Liaw, Andy andy_liaw at merck.com
Fri Jun 1 16:52:59 CEST 2012


Yes, you need to modify both the R and the underlying C code.  It's the the source package on CRAN (the .tar.gz file).

Andy
 

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Josh Browning
Sent: Friday, June 01, 2012 10:48 AM
To: r-help at r-project.org
Subject: [R] Stratified Sampling with randomForest Regression

Hi All,

 

I'm using R's randomForest package (and it's quite awesome!) but I'd
really like to do some stratified sampling with a regression problem.
However, it appears that the package was designed to only accommodate
stratified sampling for classification purposes (see
https://stat.ethz.ch/pipermail/r-help/2006-November/117477.html).  As
Andy suggests in the link just mentioned, I'm trying to modify the
source code.  However, it appears that I may also need to modify the C
code that randomForest is calling, is that correct?  If so, how do I
access that code?

 

Or, has anyone modified the package to allow for stratified sampling in
regression problems?

 

Please let me know if I'm not being clear enough with this question, and
thanks for helping me out!

 

Josh


	[[alternative HTML version deleted]]

______________________________________________
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:11}}



More information about the R-help mailing list