In running a random forest model with the random forest package, do independent categorical variables need to be converted to factors? Does the dependent categorical variable need to be converted to a factor?
I would think the dependent variable does. I'm not as sure about the independent variables. Thank you.