[R] Random Forest
jporzak at gmail.com
Mon Apr 23 15:21:36 CEST 2007
I'm assuming you really do want to do a classification?
I'm guessing you have coded MMS_ENABLED_HANDSET as 0, 1; or some such
suggest you do:
dat$MMS_ENABLED_HANDSET <- factor(dat$MMS_ENABLED_HANDSET)
to force your response variable to be a factor (AKA categorical)
And, perhaps, label your levels with something like:
levels(dat$MMS_ENABLED_HANDSET) <- c("Not Enabled", "MMS Enabled")
On 4/23/07, Ruben Feldman <frubeng at gmail.com> wrote:
> 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!
> [[alternative HTML version deleted]]
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
San Francisco, CA
More information about the R-help