Tutorials › Generalized Linear Mixed Models (GLMM) › Fit Stability Under Small Data Perturbations

Convergence, Singular Fits and Boundary Estimates · Tutorial 315 of 698

Fit Stability Under Small Data Perturbations

Use controlled observation and cluster perturbations to identify GLMM estimates that change substantially despite nominal convergence.

Advanced 12 min read

What You'll Learn

  • Define a perturbation that respects the outcome scale and clustered sampling structure.
  • Compare refitted GLMM parameters on interpretable and appropriately scaled measures.
  • Use a local score-and-curvature argument to explain why weak curvature can produce sensitivity.
  • Distinguish data sensitivity from optimizer instability and ordinary sampling uncertainty.
  • Recognize when boundary estimates or few clusters make perturbation results difficult to interpret.
  • Report perturbation schemes and results without treating them as formal confidence intervals.

Why a Converged Fit May Still Be Fragile

A GLMM optimizer can report convergence even when a small, defensible change to the data leads to a noticeably different estimate. Convergence says that the algorithm met its stopping criteria for the data and model it was given; it does not establish that the estimated parameters are insensitive to the observed cases. Fit stability under small data perturbations is a sensitivity check: keep the model specification fixed, alter the data in a controlled way, refit, and compare the estimates.

This check is especially informative when the data contain a small number of influential clusters, an unbalanced design, or weak information about a variance component. It complements the earlier material on flat likelihood directions, curvature, and boundary estimates. It does not replace those diagnostics, and a large change does not by itself identify the cause.

Model and Meaning of a Perturbation

Write clusters as \(g=1,\ldots,G\) and observations within cluster \(g\) as \(i=1,\ldots,n_g\). A GLMM specifies a conditional outcome distribution from an exponential-family model, with linear predictor \(x_{ig}^{\mathsf T}\beta+z_{ig}^{\mathsf T}b_g+o_{ig}\), where \(\beta\) is the fixed-effect vector, \(b_g\sim N(0,D)\) is a random-effect vector, and \(o_{ig}\) is an offset when present. Outcomes are conditionally independent within and across clusters given the random effects, and the random effects for distinct clusters are independent. Fitting the GLMM uses the likelihood obtained by integrating over the random effects.

Definition: A data perturbation is a prespecified, limited alteration of the observed data or their contribution to the fit, followed by refitting the same model. Fit stability describes how much the estimates and other chosen summaries change across such alterations. The perturbation scheme must preserve the outcome scale and the sampling structure relevant to the scientific question.

Let \(\hat{\theta}\) denote the fitted parameter vector, including the fixed effects and the random-effect covariance parameters being reported. For each perturbation \(r\), record \(\hat{\theta}^{(r)}\), the corresponding estimate from the refit. A direct comparison is \(\Delta^{(r)}=\hat{\theta}^{(r)}-\hat{\theta}\). For parameters with different units, also report a scale-aware measure, such as \(\Delta^{(r)}/SE(\hat{\theta})\) for a fixed effect whose standard error is meaningful, or compare a variance parameter on a stated scale. A relative percentage change can be misleading when the original estimate is close to zero.

A perturbation is not automatically small because it changes only one row: that row could be highly informative, and an individual row may not be the independent sampling unit. Conversely, deleting or resampling a whole cluster may be a substantial change. The analyst should state exactly what was changed and why that change is a relevant stress test.

Local Sensitivity: The Role of Curvature

The local likelihood argument explains why two fits can both converge while their estimates differ. Let \(U(\theta;D)\) be the score vector for parameter \(\theta\) from data \(D\), and suppose an interior maximum-likelihood estimate satisfies \(U(\hat{\theta};D)=0\). Define the observed information \(J=-\partial U/\partial\theta^{\mathsf T}\), evaluated at the original fit. For a small data change, suppose the score at the old estimate changes by \(\Delta U_D\). A first-order Taylor expansion gives

$$ 0 \approx U(\hat{\theta};D)+\Delta U_D-J\Delta\theta =\Delta U_D-J\Delta\theta, \qquad \Delta\theta\approx J^{-1}\Delta U_D. $$

The first equality uses the fact that the original score is zero; the minus sign comes from the definition \(J=-\partial U/\partial\theta^{\mathsf T}\). Thus, when \(J\) has a direction with small curvature, its inverse can be large in that direction. A modest score change caused by a perturbation can then produce a substantial parameter change. This is a local approximation, not a formula for an arbitrary refit: it assumes a smooth likelihood, a nearby interior solution, and a sufficiently small perturbation. It can be unreliable near a boundary or when the optimizer moves to a different solution.

The argument motivates a practical interpretation, not a universal numerical cutoff. A change should be judged against the parameter’s units, its uncertainty, the scientific scale of interest, and the perturbation’s size. For example, a coefficient shift of 0.1 log-odds units may be minor in one application and consequential in another.

Worked Example: A One-Event Perturbation in a Binary GLMM

Suppose a hypothetical binary-outcome random-intercept GLMM has a treatment coefficient of \(0.30\) log-odds units. In one cluster there are 20 observations in the treatment group, and a recorded event is found to be uncertain after data verification. Refitting after correcting that one record from event to non-event gives a treatment estimate of \(0.18\). Assume both fits return finite estimates and the same model specification. This is a sensitivity illustration, not evidence that either record is wrong.

The signed change is

$$ \Delta\hat{\beta}_{\text{treatment}}=0.18-0.30=-0.12 \quad\text{log-odds units}. $$

Therefore, the absolute change is \(|-0.12|=0.12\) log-odds units. The magnitude of the coefficient decreased by \(0.12/0.30=0.40\), or 40%. The negative signed change indicates a decrease; it is not itself the absolute change. On the odds-ratio scale, the original estimate corresponds to \(\exp(0.30)=1.350\), whereas the perturbed estimate corresponds to \(\exp(0.18)=1.197\). The fitted odds ratio is consequently smaller after the correction.

Both coefficients remain positive, but their magnitudes differ. That observation alone does not show whether the difference is important: the fitted standard errors, scientific context, and reason for the correction matter. If the binary value was not genuinely uncertain, arbitrarily changing it is not a defensible perturbation. Binary outcomes take values zero and one; changing one to an arbitrary fraction is generally not a plausible small observation-level correction.

Cluster-Level Perturbations and Resampling

When clusters are the independent sampling units, perturbations should usually preserve the observations grouped within each cluster. One useful diagnostic is leave-one-cluster-out refitting: omit cluster \(g\), refit the same model, and compare each resulting estimate with the full-data estimate. This identifies whether any single cluster has unusual influence. It is a stress test, not an estimate of the effect of deleting a cluster from the target population.

A second approach is cluster resampling. Sample \(G\) clusters with replacement, including every selected cluster’s observations together, and refit the model to each resample. This preserves within-cluster groupings, unlike resampling individual observations as though they were independent. The resulting estimates describe sensitivity to the particular cluster composition in these resamples. With few clusters, a resample may contain few distinct clusters, and some refits may fail or be singular; those outcomes are informative limitations, not estimates to silently discard.

Worked Example: Leave-One-Cluster-Out Sensitivity

Consider a hypothetical study with 12 clinics. A random-intercept GLMM estimates a treatment coefficient of \(0.42\) log-odds units, with a reported standard error of \(0.12\). Omitting one clinic at a time gives coefficients from \(0.39\) to \(0.57\); omission of clinic 7 gives \(0.57\). Assume the same model converges for each fit.

For clinic 7, the signed change is

$$ 0.57-0.42=0.15\quad\text{log-odds units}. $$

The change measured in units of the original standard error is \(0.15/0.12=1.25\). In other words, omitting that clinic shifts the coefficient by 1.25 original standard errors. The full-data and leave-one-out estimates are both positive, but the shift is material enough to investigate. The other leave-one-out estimates range from \(0.03\) below to \(0.15\) above the full-data estimate. This pattern suggests that clinic 7 merits examination for a distinctive covariate distribution, outcome pattern, or data-quality issue. It does not establish that the clinic is erroneous or justify its removal. The analysis should report the full-data estimate and explain the sensitivity rather than selecting the estimate that is most convenient.

Worked Example: Cluster Resampling and a Variance Estimate

Suppose a hypothetical random-intercept GLMM fitted to 10 clinics estimates the random-intercept standard deviation as \(0.40\). In 100 cluster-resampled refits, 92 converge with finite standard-deviation estimates. Among those 92, the 10th percentile is \(0.12\), the median is \(0.31\), and the 90th percentile is \(0.58\); the other 8 fits are singular or fail to yield a usable estimate.

The resampled central spread is \(0.58-0.12=0.46\) standard-deviation units. This spread is larger than the original estimate of \(0.40\), while the median \(0.31\) is lower. The estimates therefore vary substantially with cluster composition in this particular diagnostic. The 8 problematic refits must also be reported: omitting them would make the resampling appear more stable than it was. These percentiles are not automatically a confidence interval. In particular, this exercise does not by itself supply a formal coverage claim or resolve the effects of having only 10 clusters. It is evidence about sensitivity to cluster composition, with limited resolution because the number of independent clusters is small.

Choosing and Reporting Perturbations

A perturbation should reflect a credible source of data uncertainty or a targeted influence question. Examples include correcting a verified data error, shifting a measured continuous covariate within a plausible measurement-error range, omitting one cluster at a time, or resampling whole clusters. For a binomial response recorded as a count of events out of a known number of trials, a change of one event may be meaningful; for a binary response, the corresponding change must remain zero or one. Do not alter outcomes or covariates merely to create a preferred result.

For every analysis, hold the model formula, link, random-effects structure, estimation method, and convergence tolerances fixed where possible. Otherwise, differences may reflect a changed fitting procedure rather than the data perturbation. Record convergence status, boundary or singular estimates, and whether each parameter is estimable for every refit. If the model returns multiple numerical solutions or fails on particular resamples, report that behavior rather than comparing only successful fits without explanation.

A concise report states the original estimate, perturbation rule, number of refits, range or distribution of changes, and any failed or singular fits. For a fixed-effect coefficient, report its units (for example, log-odds units) and, when useful, its change relative to the original standard error. For a variance or standard-deviation estimate, state which scale is being compared. Avoid percentage changes when the original estimate is near zero, where a small absolute difference can produce a misleadingly large percentage.

Diagnostics, Alternatives, and Limits

A large perturbation effect is a signal to investigate, not a diagnosis. Check the affected records and cluster-level covariate and outcome patterns, and compare the result with the model’s curvature and boundary diagnostics. If the concern is random-effects complexity, the earlier material on refitting after random-effects simplification provides a related model-based comparison; changing the random-effects structure is not the same as perturbing the data. If the concern is optimizer behavior, rerunning the same data from different starting values or with another optimizer probes numerical reproducibility, not data sensitivity.

ApproachMain questionImportant distinction
Small data perturbation or cluster deletionDo estimates depend strongly on particular observations or clusters?A targeted sensitivity diagnostic, not a formal interval.
Cluster resamplingHow do estimates vary across resampled cluster compositions?Resample clusters, not individual rows, when clusters are the sampling units.
Optimizer or starting-value checksDoes the algorithm reproduce a solution for the same data?Tests numerical stability, not sensitivity to the observed data.
Profile likelihood or standard-error analysisWhat does likelihood curvature indicate about parameter uncertainty?Studies uncertainty under the fitted data and model, rather than a chosen perturbation.

These checks have limits. Sensitivity depends on the chosen perturbation, and no single scheme covers every plausible source of uncertainty. Leave-one-cluster-out results can be noisy with few clusters, while cluster resampling can yield sparse or singular resamples. A large change can arise from genuine heterogeneity, limited information, a boundary, data error, or optimization problems; the perturbation analysis alone cannot distinguish them. A stable result under the tested changes does not prove the model is correctly specified or that all relevant perturbations would also be harmless.

Common Mistake

Wrong reasoning: “The optimizer converged for the original data and every perturbed data set, so the estimates are robust.” Convergence only indicates that each run met its numerical criteria; the estimates can still vary substantially across data sets. The correction is to compare the estimates directly, quantify their changes on relevant scales, and report the perturbation scheme and all important failures. Likewise, a changed estimate does not automatically mean the original fit is invalid: it shows dependence on the particular data alteration that was tested.

Key takeaway: Fit stability is assessed by comparing refits under defensible, explicitly described data perturbations. Interpret parameter changes in context, preserve the cluster sampling structure, and treat the results as sensitivity evidence rather than a convergence certificate or confidence interval.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A coefficient changes from \(0.30\) to \(0.18\) log-odds units after a valid perturbation. Give the signed and absolute changes, and the percentage decrease in magnitude.
  2. Why is resampling individual records generally inappropriate when clusters are the independent sampling units?
  3. A binary outcome is recorded as zero or one. Why is changing one record by an arbitrary fraction generally not a defensible small perturbation?
  4. What does a change of 0.15 log-odds units mean if the original fixed-effect standard error is 0.12?
  5. Give one reason why a cluster-resampling percentile range should not automatically be reported as a confidence interval.

Solutions. (1) The signed change is \(0.18-0.30=-0.12\) log-odds units, so the absolute change is \(|-0.12|=0.12\) log-odds units. The decrease in magnitude is \(0.12/0.30=0.40\), or 40%. (2) Individual resampling breaks the observed within-cluster structure and changes the sampling unit; cluster resampling retains the observations in each sampled cluster. (3) A binary outcome takes values zero and one; an arbitrary fractional change generally has no plausible interpretation as a small observation-level correction. (4) The change is \(0.15/0.12=1.25\) original standard errors, in the positive direction if the coefficient increased. (5) The percentile range summarizes the particular resampling procedure; it does not automatically establish the coverage properties required of a confidence interval, and few clusters or failed refits may further limit interpretation.

Clinical Biostats