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.
GreyMerchant, thanks for your reply. In the vignette you shared, the author does convert the dependent variable to a factor, but he does not convert any independent variables to factors.