If all you need the formula interface for is auto deletion of NAs, I'd
suggest doing something like:
varlist <- c("fruit", "apples", "oranges", "blueberries")
fruits.nona <- na.omit(fruits.data[varlist])
model.rf <- randomForest(fruits.data[-1], fruits.data[[1]], ...)
If you want to know the cal
mmv wrote:
> I'm attempting to pass a string argument into the function
> randomForest but I get an error:
>
> state <- paste(list("fruit ~", "apples+oranges+blueberries",
> "data=fruits.data, mtry=2, do.trace=100, na.action=na.omit,
> keep.forest=TRUE"), sep= " ", collapse="")
I really don't u
I'm attempting to pass a string argument into the function
randomForest but I get an error:
state <- paste(list("fruit ~", "apples+oranges+blueberries",
"data=fruits.data, mtry=2, do.trace=100, na.action=na.omit,
keep.forest=TRUE"), sep= " ", collapse="")
model.rf <- randomForest(state)
Error in
The limitation comes from the way categorical splits are represented in the
code: For a categorical variable with k categories, the split is
represented by k binary digits: 0=right, 1=left. So it takes k bits to
store each split on k categories. To save storage, this is `packed' into a
4-byte in
Hello,
I'm using the random forest package. One of my factors in the data set contains
41 levels (I can't code this as a numeric value - in terms of linear models
this would be a random factor). The randomForest call comes back with an error
telling me that the limit is 32 categories.
Is there