After dealing with several examples of linear regression, we can certainly claim to have understood the mechanisms underlying this statistical technique. So far, we've used only continuous variables, such as predictors. What happens when the predictors are categorical variables? Don't worry, because the underlying principles of regression techniques remain the same.
Multiple linear regression with categorical predictor
Categorical variables
Categorical variables are variables that are not numerical. They do not derive from measurement operations (and do not have units of measurement), but from classification and comparison operations; for instance, they describe data that fits into specific categories. Categorical...