I have a data set with 100 inputs, they are either called X or Y. I am trying to use the anova function to compare these categorical X’s and Y’s to a quantitative variable (length). How do I convert my categorical variable to something quantitative? Thanks
Share
You may not need to to do any conversion: the factor and character data types are accepted by lm and anova(). It;s possible that you are thinking of aov which is for balanced designs. lm is the regression function that will handle the unbalanced linear models.