[R] randomForest

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Mar 20 16:28:48 CET 2009



Anirudh Kondaveeti wrote:
> Hi!
> 
> I am dealing with random forest using R.
> 
> Is there a way to sample a fixed no.of rows from a dataset for use with
> different trees in random Forest.
> To be more clear, my data set contains 1500 rows, and I am growing 500 trees
> in Random Forest
> Is it possible to sample only 500 rows of data from the data set and use it
> for different trees in the forest. I mean each tree of the forest should use
> a different 500 rows from the data set.


See ?randomForest and the argument sampsize.

Uwe Ligges



> 
> Thanks in advance!
> 
> Anirudh Kondaveeti
> ----------------------------
> 
> 	[[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.




More information about the R-help mailing list