Displaying 1 result from an estimated 1 matches for "p7_6".
Did you mean:
p7_
2009 Apr 28
1
Problem with Random Forest predict
...factors as well.
predCell<-randomForest(x=tempdata[-match("Cell",names(tempdata))],y=tempdata$Cell,importance=T)
Then I try my partial plot to look at the effect of a specific predictor.
partialPlot(x=predCell,pred.data=tempdata[-match("Cell",names(tempdata))],x.var="P7_6")
I get this error:
Error in predict.randomForest(x, x.data, type = "prob") :
Type of predictors in new data do not match that of the training data.
In examining randomForest:::predict.randomForest I see the following code that produces this error message.
cat.new <-...