I have used simple linear regression, and I'm now checking that the model meets the assumption of linearity. The model used a continuous response variable and categorical explanatory variables. How can I asses linearity when using categorical explanatory variables?

**Contents**hide

#### Best Answer

Linear regression with only categorical explanatory variables is really ANOVA. With only one categorical predictor (with two or more levels) this is one-way ANOVA. In one-way ANOVA the linearity assumption is essentially empty, so there is nothing to check.

With two or more categorical predictors this corresponds to rwo-way (or higher) ANOVA. In this case also, linearity is empty, so there is nothing to check about linearity, but the question of including (or not) interactions arises, so should be checked/thought about.

### Similar Posts:

- Solved – How to verify linearity assumption in linear regression with categorical predictors
- Solved – How to verify linearity assumption in linear regression with categorical predictors
- Solved – The best way to check the linearity assumption in ANOVA (except using scatter plots)
- Solved – Ways of Testing Linearity Assumption in Multiple Regression apart from Residual Plots
- Solved – Assumptions needed for multiple linear regression