Why Sparse Ordinal Levels Need Careful Coding
Ordinal responses often have a fixed set of ordered levels, such as none, mild, moderate, and severe. Some levels may occur rarely in a particular sample. That is a warning to inspect how much information the data provide about probabilities involving those levels; it is not, by itself, a reason to discard a level or combine it with another. The categories still describe distinct responses, and an analysis should preserve those distinctions unless there is a substantive reason to change them.
In a generalized linear mixed model, observations may also be clustered. Let \(Y_{ij}\) be the response for observation \(i\) in cluster \(j\), with ordered categories \(1,\ldots,K\). Let \(x_{ij}\) denote covariates and \(b_j\) a cluster-level random effect. An ordinal response model specifies probabilities for the ordered categories conditional on covariates and random effects. The data must therefore communicate both the category order and which observed response belongs to which category.
The response should ordinarily be stored as an ordered categorical variable, with the intended levels and their order explicitly declared. Integer labels can be convenient internal codes, but their numerical distances do not represent distances between responses. Coding mild, moderate, and severe as 1, 2, and 3 does not make the difference from mild to moderate equal to the difference from moderate to severe.
What Sparse Levels Change in an Ordinal Model
For a cumulative-link representation, define \(F_k(x_{ij},b_j)=P(Y_{ij}\leq k\mid x_{ij},b_j)\), for \(k=1,\ldots,K-1\). The probability of an interior category \(k\) is \(F_k-F_{k-1}\), with \(F_0=0\) and \(F_K=1\). The probability of the top category is \(1-F_{K-1}\). Thus every observation contributes to the likelihood through the probability assigned to its actual category, while the category boundaries determine which cumulative probabilities are relevant.
A rare interior category can leave its probability, or the thresholds that determine its boundaries, weakly informed. A rare endpoint may particularly limit information about the corresponding tail probability. The exact consequences depend on the chosen ordinal likelihood and the covariate pattern: a level may be rare overall but well represented across covariate values, or common overall but absent in an important subgroup. In a mixed model, it also matters whether responses occur across many clusters or are concentrated in just a few.
A useful intuition comes from a single cumulative split. Suppose a split defines a binary indicator \(I=1\) for a response on one side of a boundary, with probability \(p\). For \(n\) independent observations with a common \(p\), the Bernoulli log-likelihood is \(I_{\mathrm{sum}}\log(p)+(n-I_{\mathrm{sum}})\log(1-p)\). Its expected Fisher information for the logit of \(p\) is \(np(1-p)\). If \(p\) is very small, this information is small because few observations are expected on that side of the split. This is an intuition, not a formula for the variance of every ordinal-model estimate; covariates, random effects, and the likelihood representation also matter.
The derivation follows by differentiating with respect to \(\eta\). Since \(dp/d\eta=p(1-p)\), the score is \(I_{\mathrm{sum}}-np\), and the negative expected second derivative is \(np(1-p)\). When observed outcomes perfectly separate a covariate pattern, estimates can become extremely large or fail to be finite; sparse categories can make such patterns more likely. This is one reason to inspect the data before trusting a convergence message or a large coefficient.
Worked Example: A Rare Endpoint and Its Information
Suppose a hypothetical study records 120 responses in the ordered levels none, mild, moderate, and severe. The counts are 48, 42, 27, and 3. For the cumulative split severe versus not severe, the observed proportion in the severe category is \(3/120=0.0250\). Under a common-probability Bernoulli approximation, the information for the logit of that probability is
The calculation shows why the endpoint merits scrutiny: only three observations directly fall in the severe tail, and the approximate information is limited. It does not prove the ordinal model is unusable, nor does it give the exact standard error for a mixed-model threshold. Covariate distribution, cluster structure, and model specification still matter. A responsible next step is to inspect which clusters and covariate patterns contain those three responses, then assess estimate stability and uncertainty.
Response Coding and Representation
Coding begins with the meaning of the response, not with whichever coding makes software run most easily. Preserve the scientifically defined order, retain all possible levels in the declared response scale, and check that the recorded values map to those levels correctly. A numerical score model imposes assumptions about spacing and linear effects that an ordinal-category model does not require; assigning integers to categories is not a justification for treating the response as quantitative.
The response process also guides the likelihood choice. Cumulative-link models describe probabilities relative to ordered cut points; adjacent-category models compare neighboring levels; continuation-ratio models describe progression through sequential stages. These are different representations of the response probabilities, and their assumptions and interpretations differ. Sparse counts may expose weak support or convergence problems under any of them. Choosing a representation solely because it seems to avoid a sparse level is not a defensible substitute for matching the model to how the response was generated.
| Representation | Question represented | Sparse-level concern |
|---|---|---|
| Cumulative link | How does the probability below or at an ordered boundary vary? | A rare tail may weakly support the corresponding cumulative boundary. |
| Adjacent category | How do the probabilities of neighboring levels compare? | A rare level can leave one or both neighboring comparisons weakly supported. |
| Continuation ratio | Among responses reaching a stage, how likely is progression past it? | A rare stage or few observations reaching a stage can limit support for that step. |
| Numeric score | How does a numerical response score vary? | It adds a spacing interpretation that category labels alone do not supply. |
Worked Example: Checking Whether Numeric Coding Adds an Assumption
A hypothetical questionnaire records pain as none, mild, moderate, or severe. An analyst proposes coding the levels 0, 1, 2, and 3 and fitting a model as if the response were a numerical measurement. Suppose the observed counts are 30, 38, 29, and 3.
The numerical coding gives a mean score of
That arithmetic is correct, but its interpretation depends on treating each one-unit step as comparable. The category labels establish order, not equal distances. In particular, a mean of 1.05 is not automatically a meaningful average pain intensity, and the three severe responses do not turn the severe category into a continuous measurement. An ordered categorical response preserves the order without adding that spacing assumption. If a score model is scientifically justified by external measurement considerations, that justification must come from those considerations, not from the use of integer codes.
Distinguishing Sample Sparsity From Structural Absence
Before changing the response scale, determine why a level is empty or rare. A level may be possible but unobserved by chance, especially in a small sample or a small subgroup. It may be impossible by design for some observations, such as a response option not offered under a particular protocol. Or the apparent absence may result from a data-processing error: a misspelled label, an incorrect mapping, or an omitted level. These situations have different implications. Verify the questionnaire or measurement process and the data coding before interpreting a zero count.
Worked Example: A Level Missing From Some Clusters
Consider hypothetical responses from 10 clinics, with 20 patients per clinic, using the four ordered categories none, mild, moderate, and severe. Across all clinics, suppose the counts are 50, 82, 58, and 10. The severe level has 10 observations overall, but one clinic has no severe responses.
The zero in that clinic does not show that severe responses are impossible there. The pooled count is \(10/200=0.0500\), and the level occurs in the study data. Before fitting a GLMM, tabulate category counts by clinic and relevant covariates, and check whether the empty clinic-level cell reflects its small sample, an unusual response pattern, a design restriction, or a recording problem. A random-intercept ordinal model uses information across clusters while representing cluster heterogeneity; it does not make a nonexistent observation appear in the data. If severe responses occur only in a few clinics, estimates may be sensitive to those clusters, which should be reported and investigated rather than concealed by recoding.
Diagnostics, Alternatives, and Limits
Sparse-category assessment is not a single numerical cutoff. The implications depend on total sample size, the number of clusters, the covariate structure, random-effect structure, and the selected likelihood. Useful checks include:
- Tabulate counts for every declared category, overall and by important predictors and clusters.
- Confirm the response is ordered correctly and that no values are missing, miscoded, or silently dropped.
- Inspect fitted category probabilities and uncertainty, particularly for rare endpoints and sparse covariate patterns.
- Check convergence warnings, extreme estimates, large standard errors, and sensitivity to starting values or influential clusters.
- Compare scientifically plausible ordinal representations and assess whether the substantive conclusions are stable.
A model that converges is not necessarily well supported: convergence only indicates that a numerical algorithm met its stopping criteria. Conversely, a rare category does not automatically invalidate a model. Estimates may remain useful when the likelihood is identifiable, the uncertainty is honestly represented, and results are not driven by a few observations. The limitations should be stated when intervals are wide, probabilities are imprecise, or estimates change substantially under reasonable specifications.
Possible responses to a serious support problem include obtaining more data, simplifying an over-ambitious covariate or random-effect structure, or using a carefully justified alternative model. Merging categories is another possible change to the response definition, but it changes what the outcome distinguishes and can change the estimand. It should not be an automatic software repair or a rule triggered by a particular count. The rationale must be substantive and transparent, and the altered coding must be used consistently in interpretation.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- A response has ordered levels A, B, C, and D, coded 1, 2, 3, and 4. Does that coding establish equal spacing? Why or why not?
- In a hypothetical sample of 80 observations, two are in the highest category. What can you conclude from this count, and what can you not conclude?
- A category is absent in one cluster but observed in several others. Is it necessarily structurally impossible in the first cluster?
- Name two diagnostics that could reveal whether sparse levels are undermining a fitted ordinal GLMM.
- Why is choosing an adjacent-category model merely to avoid a rare endpoint not sufficient justification?
Solutions. (1) No. The codes represent order, but equal numerical gaps do not establish equal distances between response levels. (2) The highest level is rare in this sample and estimates involving its probability may be weakly supported. The count alone does not establish that the level is impossible in the population or that the model is invalid. (3) No. The zero may reflect sampling variation, a small cluster, design restrictions, or a coding error; investigate the response process and data. (4) Examples include category-by-cluster and category-by-covariate tables, convergence warnings, extreme estimates or large standard errors, and sensitivity to influential clusters or plausible model specifications. (5) Adjacent-category and endpoint-based representations answer different probability questions and make different assumptions. The response-generation process and scientific estimand, not a desire to avoid sparse counts, should guide the choice.