Hi, I am using the randomForest package for species distribution modelling. I am facing two problem in this work. First when fitting the model i am getting warning message: "Warning message:
In randomForest.default(m, y, ...) :
The response has five or fewer unique values. Are you sure you want to do regression?"
I am also getting error mesg when predicting the model in raster stack of env. variables as :
"n eval(predvars, data, env) : object 'X' not found"
Could you explain me the reason for such warning/error message?
I will be grateful if you have any tutorials to use randomforest in species distribution modelling.
Thank you