[R] Can I use random Forest package?
vilike85
gt28 at st-andrews.ac.uk
Thu Apr 19 01:46:57 CEST 2012
Hello R Help,
I have a data set with 30 variables, some of these variables are factors
while some are numeric. My response variable is binary and I have made sure
that this is set as a factor with two levels and given each level a name
"Yes" and "No". I would like to run the randomPackage to discover variable
importance but when ever I try the following code:
model <- randomForest(IsBadBuy~. ,
data = train,
importance=TRUE,
keep.forest=TRUE)
I am given the response:
Error in na.fail.default(list(IsBadBuy = c(1L, 1L, 1L, 2L, 1L, 1L, 1L, :
missing values in object
However, I have gone through all of my variables and I have not found one
single missing value.
Can someone please advise me?
Thank you in advance
Graeme
--
View this message in context: http://r.789695.n4.nabble.com/Can-I-use-random-Forest-package-tp4569311p4569311.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list