Set the reference category in a regression model in R

In this video, we set the reference category in a regression model in R. When running a regression model with a categorical variable, R picks one as the reference against which the other categories are compared (aka base category). To change this reference, we can use relevel().

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.