[R] Random Forest

Arne.Muller at sanofi-aventis.com Arne.Muller at sanofi-aventis.com
Mon Apr 23 12:43:26 CEST 2007


Ruben,

Maybe your binary response is a numeric vector - try converting it into
a factor with two levels. You probably want classification rather than
regression (the dependent variable should be numeric and continous)!

   Arne

>-----Original Message-----
>From: r-help-bounces at stat.math.ethz.ch 
>[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Ruben Feldman
>Sent: Monday, April 23, 2007 10:28 AM
>To: r-help at stat.math.ethz.ch
>Subject: [R] Random Forest
>
>Hi R-wizards,
>
>I ran a random forest on a dataset where the response variable 
>had two possible values. It returned a warning telling me that 
>it did regression and if that was really what I wanted.
>Does anybody know what is being in terms of the algorithm when 
>it does a regression? (the random forest is used as a 
>regression, how does that work?)
>
>Thanks for your time!
>
>Ruben
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at stat.math.ethz.ch 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