Overview - Releveling factors
What is it?
Releveling factors means changing which category is considered the baseline or reference in a factor variable. Factors in R are used to represent categories, and one category is always the baseline for comparisons. Releveling lets you pick a different baseline to change how results are interpreted in models or summaries.
Why it matters
Without releveling, the default baseline might not make sense for your analysis or story. This can lead to confusing or misleading results when comparing groups. Releveling helps you control the baseline so your comparisons and interpretations match your real-world question or focus.
Where it fits
Before learning releveling, you should understand what factors are and how R handles categorical data. After mastering releveling, you can learn about modeling with factors, contrasts, and interpreting model outputs that depend on factor baselines.