Why a Reference Category Matters
A regression model can include a predictor whose values are categories rather than measurements on a numerical scale. Examples include treatment assignment, blood group, or type of clinic. To describe how such a predictor enters a model, it helps to distinguish the categories themselves from the role one category plays as the reference.
The reference category provides an anchor for describing the other categories in a reference-based model. Choosing it affects which category is treated as the baseline for those comparisons. It does not change the observations, the categories in the data, or the scientific question.
A level is a category, not an individual observation. If 40 patients received usual care, “usual care” is one level and each patient’s treatment-group entry is an observation of that factor. Likewise, a level does not have to be numerical: names such as “urban,” “suburban,” and “rural” can be levels.
The Baseline in a Regression Model
Let \(G\) denote a categorical predictor, and let \(Z\) stand for any other predictors in the model. The model describes the expected outcome for a specified category and specified values of the other predictors. Write this conditional mean as
Here \(g\) is one level of the factor. If the reference level is \(r\), the baseline for the factor’s comparisons is the model’s outcome for \(G=r\), at the relevant values \(z\) of the other predictors. The choice of \(r\) therefore determines which category is named as the baseline. It does not, by itself, say anything about whether that category has a larger or smaller outcome.
For example, suppose a factor has levels A, B, and C. With A as the reference, the baseline category is A, and descriptions of the other levels use A as their anchor. With B as the reference, B becomes the anchor instead. This follows directly from substituting the selected category into the model’s conditional mean: the baseline under reference A is \(m(A,z)\), whereas under reference B it is \(m(B,z)\). The category named as baseline changes; the observed data do not.
This is a statement about the role of the reference in a reference-based parameterization. The precise interpretation of individual regression coefficients depends on how the factor is coded and on the rest of the model. The reference choice alone does not supply a coefficient value, a standard error, or a test result.
Choosing a Useful Reference Category
The best reference is usually the category that makes the model’s comparisons easiest to interpret in context. A useful choice often has one or more of these features:
- It answers the main comparison question. If the purpose is to compare new treatments with usual care, usual care is a natural reference.
- It is familiar to the intended audience. A clearly understood baseline can make a results table easier to read.
- It is a meaningful starting point. For a dose factor, the zero-dose level may be a natural baseline if that is the relevant comparison.
- It is clearly identified in reporting. Readers should not have to guess which category anchors the comparisons.
These are practical guidelines, not mathematical requirements. A category is not automatically the right reference just because it is the most common, the first alphabetically, or the smallest number. Nor must the reference be a control group: the meaningful choice depends on the question and context.
Worked Example: Selecting a Reference for Treatment Groups
In a hypothetical study, patients are assigned to usual care, Treatment A, or Treatment B. The outcome is a symptom score after six weeks, measured in points. The research question is how each new treatment compares with usual care. Which level is a suitable reference, and what baseline does it represent?
Identify the factor and its levels. The factor is treatment group, with three levels: usual care, Treatment A, and Treatment B.
Choose the reference for the question. Usual care is the natural choice because both new treatments are to be compared with it. The reference category is therefore usual care.
State the baseline in context. The baseline is the model’s outcome for a patient in the usual-care group, at any specified values of other predictors in the model. It is not a treatment effect or a claim that usual care is better; it is the chosen comparison anchor.
Suppose the hypothetical observed group means are 12.4 points for usual care, 10.8 for Treatment A, and 9.9 for Treatment B. These summaries help describe the data, but the choice of usual care as reference follows from the research question, not from which mean is largest. The reference selection itself does not calculate adjusted model results.
Reference Choice and the Meaning of Categories
A factor’s levels may be nominal, ordered, or based on a quantity that has been grouped into categories. The reference choice does not change what kind of variable it is. For instance, selecting a reference for low, medium, and high severity does not turn those categories into equally spaced numerical values. Nor does selecting the zero-dose level for a categorical dose factor, by itself, assert that the model treats dose as a continuous linear predictor.
It is also important to distinguish the reference category from a measurement baseline used in another context. “Baseline visit” can mean a participant’s measurement before treatment. “Reference category” means a level of a categorical predictor used as the comparison anchor. They are related only if the factor itself includes a category such as “baseline visit.”
Worked Example: Choosing a Reference for Dose Categories
A hypothetical study records dose group as 0 mg, 5 mg, or 10 mg. The outcome is a laboratory measure in units per liter. Investigators want the model’s categorical comparisons anchored on no dose. Identify the levels and the reference, and explain what the baseline means.
Levels. The factor is dose group, with levels 0 mg, 5 mg, and 10 mg. Although the level labels contain numbers, this setup treats the predictor as categories.
Reference. Choose 0 mg as the reference because it is the no-dose group specified as the comparison anchor.
Baseline. The baseline is the model’s outcome for the 0 mg category, at the stated values of any other predictors. The other dose categories are considered relative to this baseline in a reference-based model. This choice does not establish that dose has a linear effect or that the differences between dose groups are equally spaced.
For illustration, suppose the hypothetical sample means are 18.2 units per liter at 0 mg, 16.7 at 5 mg, and 15.9 at 10 mg. The reference remains 0 mg because of the intended comparison, regardless of these observed means. These unadjusted means are not a substitute for model estimates when the model includes other predictors.
When the Most Common Category Is Not the Best Reference
A large category may provide a stable and familiar comparison group, so choosing it can be convenient. But frequency alone does not determine the reference. A less common category may be more useful if it is the scientifically meaningful benchmark. Conversely, a rare reference may make estimates less precise in some settings; that concern is a reason to consider the data and analysis carefully, not a rule that the largest group must always be selected.
With several levels, ask what readers will need to compare. A reference category makes its relationship to each other category direct to describe, while comparisons between two non-reference categories may require a separate contrast. Choosing a reference is therefore partly a communication decision. It should make the most important comparisons clear and should be reported explicitly.
Worked Example: Choosing a Reference for Clinic Type
A hypothetical service evaluation includes patients from four clinic types: community, general hospital, specialist center, and mobile clinic. The main question is whether outcomes at other clinic types differ from outcomes at the general hospital. The outcome is a 30-day symptom score in points. Select and describe the reference.
Identify the factor. Clinic type is the categorical predictor, and its four levels are community, general hospital, specialist center, and mobile clinic.
Match the reference to the question. Select general hospital as the reference because the question explicitly uses it as the benchmark for the other clinic types.
Describe the baseline. The baseline is the model’s expected 30-day symptom score for the general-hospital category at the specified settings of any other predictors. The category sizes do not alter which level is the reference once the choice is made.
If a different evaluation instead asked how each clinic type compares with community care, community would be a reasonable reference. The factor would still have the same four levels and the same observations; only the category named as the baseline would change.
Common Mistakes
- Calling the reference a special kind of level. It is an ordinary level selected for a particular role; it is not an additional category.
- Assuming the reference must be the control or the largest group. Either may be a sensible choice, but the research question and interpretability should guide the decision.
- Thinking the reference category is excluded from the study. It remains part of the data and the model. “Reference” describes its role in comparisons, not whether it is observed.
- Interpreting the choice as a scientific conclusion. Naming a reference does not show that it is superior, safer, or more representative.
- Failing to state the reference when reporting results. Without it, readers cannot tell what the categorical comparisons use as their baseline.
Check Your Understanding
Answer each question using the definitions and examples above.
- A predictor has levels “remote,” “hybrid,” and “in person.” What is a reference category, and can any of these levels be selected as one?
- A study compares two new programs with standard care. Which reference would make those comparisons direct to describe, and why?
- Why does choosing the most common level not automatically make it the best reference?
- A dose factor has levels 0 mg, 5 mg, and 10 mg. If it is treated as categorical, what does choosing 0 mg as the reference establish—and what does it not establish?
- Does changing the reference category change the observations or the factor’s levels? Explain what does change.