Let's say you have a categorical variable but the categories are numbers. Is there a way to within the lm() formula, let R know that a specific regressor is categorical not numerical?
Thanks!
Let's say you have a categorical variable but the categories are numbers. Is there a way to within the lm() formula, let R know that a specific regressor is categorical not numerical?
Thanks!