Tutorials › Generalized Linear Mixed Models (GLMM) › Cluster-Level Influence Diagnostics

Diagnostics and Predictive Checks for Sparse and Overdispersed Outcomes · Tutorial 623 of 698

Cluster-Level Influence Diagnostics

Use cluster-deletion refits to assess whether particular groups materially affect GLMM estimates or predictions, while accounting for scale, cluster size, and uncertainty.

Intermediate 12 min read

What You'll Learn

  • Define leave-one-cluster estimates and cluster-level influence measures.
  • Calculate changes in fixed effects, variance components, and fitted predictions.
  • Distinguish changes on the coefficient scale from changes on interpretable scales.
  • Interpret influence cautiously when clusters are few, unequal, or unusual.
  • Compare cluster-level deletion with observation-level influence diagnostics.
  • Use a structured workflow to identify influential clusters and investigate why they matter.

Why Assess Influence by Cluster?

In a generalized linear mixed model, observations within a cluster share a grouping structure, such as patients within clinics or repeated measurements within people. A cluster can affect a fit in ways that a single observation cannot: it may contain many observations, have unusual covariate values, or provide much of the information about between-cluster variation. An observation-level diagnostic can identify an unusual record, but it does not directly answer whether the fitted conclusions depend on one entire cluster.

Cluster-level influence diagnostics address that question by comparing the model fitted to all clusters with models refitted after omitting one cluster at a time. The comparison is a sensitivity analysis, not a test of whether a cluster is erroneous. A large change signals that the full-data result depends materially on that cluster and merits investigation in context.

Definition and Model Setup

Write clusters as \(j=1,\ldots,J\), and observations within cluster \(j\) as \(i=1,\ldots,n_j\). For a GLMM, a common specification is

$$ Y_{ij}\mid b_j \sim \text{an exponential-family distribution}, \qquad g\{E(Y_{ij}\mid b_j)\}=x_{ij}^{\mathsf T}\beta+z_{ij}^{\mathsf T}b_j, \qquad b_j\sim N(0,D). $$

Here \(g\) is the link, \(\beta\) is the vector of fixed effects, and \(b_j\) is a vector of cluster-specific random effects with covariance matrix \(D\). The model ordinarily assumes that clusters are independent conditional on the model parameters, and that the random effects follow the specified distribution and are independent across clusters. The conditional response distribution, link, covariate structure, and random-effects structure must be specified consistently in every refit. If fitting relies on approximate likelihood or numerical integration, the refits also need to converge reliably.

Definition: Let \(\hat\theta\) denote the fitted parameter estimates from all clusters, and let \(\hat\theta_{(-j)}\) denote the estimates after deleting every observation in cluster \(j\) and refitting the same model. A cluster-level influence measure summarizes a difference between \(\hat\theta\) and \(\hat\theta_{(-j)}\), or between predictions from those fits. For a fixed-effect coefficient, the raw deletion change is \(\Delta_{j,k}=\hat\beta_{k,(-j)}-\hat\beta_k\).

The sign of \(\Delta_{j,k}\) gives the direction of change when cluster \(j\) is omitted. Its size must be judged on a meaningful scale. A change of 0.2 may be negligible for one coefficient and consequential for another; comparing it with a standard error or translating it to an odds ratio, rate ratio, or probability can help.

What to Compare Across Refits

A useful analysis does not reduce influence to a single number. At minimum, examine fixed-effect estimates, random-effect variance or covariance estimates, and fitted predictions relevant to the scientific question. For each cluster, report the full-data estimate, the deletion estimate, their difference, and—where meaningful—a relative or standardized change.

  • Fixed effects: compare coefficients and, where appropriate, their exponentiated values. Coefficient changes are on the link scale.
  • Variance components: compare estimated variances and standard deviations. A relative change can be informative, but is unstable when the full-data estimate is near zero.
  • Predictions: compare predictions for clearly specified covariate profiles. State whether these are conditional predictions involving random effects or predictions marginalized over the random-effects distribution.
  • Uncertainty: inspect standard errors, intervals, convergence, and boundary estimates as well as point estimates. A small point-estimate change does not guarantee that uncertainty is unchanged.

For fixed-effect coefficients, a simple standardized change is \(\Delta_{j,k}/SE(\hat\beta_k)\), using the full-data standard error as a reference scale. This is a descriptive yardstick, not a universally calibrated test statistic or cutoff. A multivariate summary can use a quadratic form, for example \(D_j^2=\Delta_j^{\mathsf T}\widehat{\mathrm{Var}}(\hat\beta)^{-1}\Delta_j\), where \(\Delta_j=\hat\beta_{(-j)}-\hat\beta\). Such summaries depend on the chosen parameter set and covariance estimate; they do not remove the need to inspect individual effects and predictions.

Why Deletion Changes the Fit

A short approximation explains why clusters with unusual covariate patterns or substantial information can have a larger effect. Consider fixed-effect estimation with other parameters held fixed, and let \(\ell_j(\beta)\) be cluster \(j\)'s contribution to the log likelihood. At the full-data maximum, the total score is zero: \(\sum_j U_j(\hat\beta)=0\), where \(U_j\) is the derivative of \(\ell_j\) with respect to \(\beta\). After deleting cluster \(j\), the score at the original estimate is therefore \(-U_j(\hat\beta)\).

Let \(I_{(-j)}\) be the negative Hessian of the remaining log likelihood at \(\hat\beta\), that is, its observed information matrix. A first-order Taylor expansion of the deletion score around \(\hat\beta\) gives

$$ 0 \approx -U_j(\hat\beta)-I_{(-j)}(\hat\beta_{(-j)}-\hat\beta), \qquad \hat\beta_{(-j)}-\hat\beta \approx -I_{(-j)}^{-1}U_j(\hat\beta). $$

Thus deletion changes can be substantial when the cluster score is large relative to the information in the remaining clusters. This is a local approximation: in a GLMM, variance components and random effects are also estimated, and refitting can change all of them. The approximation motivates the diagnostic but does not replace the actual deletion refits, especially with few clusters, a boundary variance estimate, or a large change.

Worked Example: A Fixed-Effect Change on the Odds-Ratio Scale

Suppose a hypothetical binary-outcome GLMM uses a logit link and a treatment indicator. Its fitted treatment coefficient is \(\hat\beta_{\text{trt}}=0.80\), with standard error \(0.30\). Deleting one clinic and refitting gives \(\hat\beta_{\text{trt},(-j)}=0.52\), with standard error \(0.32\). Assume both fits converged and used the same model structure.

The raw change is

$$ \Delta_{j,\text{trt}}=0.52-0.80=-0.28, \qquad \frac{\Delta_{j,\text{trt}}}{SE(\hat\beta_{\text{trt}})} =\frac{-0.28}{0.30}=-0.933. $$

Omitting the clinic lowers the treatment log-odds coefficient by 0.28, a change of about 0.93 full-data standard errors. Exponentiating gives the estimated treatment odds ratio in the full fit, \(\exp(0.80)=2.23\), and in the deletion fit, \(\exp(0.52)=1.68\). The odds-ratio estimate therefore falls by \(2.23-1.68=0.55\), or about 24.7% relative to 2.23. This is a meaningful sensitivity to investigate, not proof that the clinic is wrong or that treatment has no association with the outcome. The treatment coefficient describes an adjusted association on the conditional log-odds scale under the specified model.

Worked Example: A Change in the Random-Intercept Variance

Consider a hypothetical random-intercept GLMM with \(D=\tau_{00}\), the variance of the cluster random intercept. The full-data estimate is \(\hat\tau_{00}=0.64\). After deleting a large clinic, the estimate is \(\hat\tau_{00,(-j)}=0.25\). Suppose the refits converge, and both estimates are away from the numerical boundary at zero.

The absolute change in estimated variance and its relative size are

$$ \Delta_{j,\tau}=0.25-0.64=-0.39, \qquad \frac{0.25-0.64}{0.64}=-0.609. $$

The estimated random-intercept variance falls by 0.39, or 60.9%, when this clinic is omitted. Because standard deviations are often easier to interpret, compare \(\sqrt{0.64}=0.80\) with \(\sqrt{0.25}=0.50\) on the random-intercept, or link, scale. The standard deviation decreases by 0.30. This indicates that the full-data estimate of between-clinic heterogeneity is sensitive to this clinic. It does not show that the clinic caused the heterogeneity: cluster composition, unequal information, and model fit may all contribute. Variance differences should be reported on their original scale as well as relatively, particularly if either estimate is close to zero.

Worked Example: Comparing Fitted Probabilities

Suppose a hypothetical binary-outcome model has a logit link. For a particular covariate profile with \(x=0\), the full fit has fixed intercept \(-2.00\), while the fit omitting one cluster has intercept \(-1.70\). Compare the inverse-link predictions based on the fixed part of each model, holding random effects at zero.

For the full fit, the linear predictor is \(-2.00\), so

$$ \hat p=\frac{\exp(-2.00)}{1+\exp(-2.00)} =\frac{0.1353}{1+0.1353}=0.1192. $$

For the deletion fit,

$$ \hat p_{(-j)}=\frac{\exp(-1.70)}{1+\exp(-1.70)} =\frac{0.1827}{1+0.1827}=0.1545. $$

The fixed-part prediction increases by \(0.1545-0.1192=0.0353\), or 3.53 percentage points, for this covariate profile. These are predictions with random effects set to zero, not predictions marginalized over the random-effects distribution and not predictions for the deleted cluster's own latent effect. If the scientific target is a population-average probability, calculate and compare the marginal predictions under both fitted models instead.

Interpreting Influence When Clusters Are Few or Unequal

With few clusters, each cluster can contribute a substantial fraction of the information. Estimates of the random-effects distribution may be especially sensitive, and one deletion can move a variance estimate sharply or place it at a boundary. In this setting, the range of deletion estimates is more informative than a rigid cutoff. Report the number of clusters and show how conclusions vary across the deletion refits.

Unequal cluster sizes create a different interpretive challenge. A large cluster may influence the fit because it contributes many observations. A small cluster can also be influential if its covariate pattern is unusual or it contains outcomes that are hard for the model to accommodate. Cluster size alone does not establish influence, and a small cluster is not automatically harmless. Examine the data, covariate support, fitted patterns, and the effect of deletion together.

A cluster deletion also changes the analyzed collection of clusters. If the cluster is genuinely part of the target population, its influence is a property of the available evidence and model—not a reason to remove it from the analysis. Exclusion requires a defensible data-quality or design rationale established independently of whether exclusion improves the result.

Practical Workflow, Alternatives, and Failure Modes

1
Fit and verify the full model.
Record the model specification, convergence status, fixed effects, variance components, uncertainty estimates, and predictions needed for interpretation.
2
Delete one whole cluster at a time.
Refit the same model to the remaining clusters. Do not remove only selected observations when the diagnostic question concerns cluster-level influence.
3
Compare on useful scales.
Tabulate raw fixed-effect changes, standardized changes, variance and standard-deviation changes, and differences in relevant predictions.
4
Investigate and report.
Check unusual covariates, outcome patterns, cluster size, fit warnings, and boundary estimates. Report influential deletions and describe the resulting sensitivity without automatically excluding a cluster.

Observation-level influence diagnostics focus on the effect of an individual record, whereas cluster-level deletion assesses the combined effect of all records in a group and the group’s contribution to estimating heterogeneity. Residual diagnostics address how observed outcomes compare with fitted behavior; they do not by themselves measure how much the estimates would change if a cluster were removed. These approaches complement one another. For example, a cluster may have an unusual aggregate pattern without a single extreme observation, or one record may be influential while its cluster as a whole is not.

Common failures include treating a change in a coefficient as an automatic reason to discard a cluster, using one arbitrary threshold as a universal definition of influence, and interpreting a variance percentage change when the full estimate is nearly zero. Refit failures also matter: if deleting a cluster causes nonconvergence or a boundary estimate, that is important information about fragility, but the failed fit does not provide a trustworthy numerical influence estimate. Check optimization, starting values, and model identifiability before interpreting the comparison. Finally, a large change in one parameter need not imply a large change in the scientific prediction; assess the outcome-scale quantities that matter for the intended use.

Key takeaway: Cluster-level influence is a sensitivity comparison between a full GLMM fit and refits that omit one complete cluster. Interpret changes jointly across fixed effects, variance components, and relevant predictions, with particular care when the number of clusters is small, cluster sizes differ, or refits approach boundaries.

Check Your Understanding

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

  1. A full-data fixed-effect estimate is 0.60. After deleting cluster 4 it is 0.45, and the full-data standard error is 0.25. What is the raw and standardized change, and what do they mean?
  2. A random-intercept variance changes from 0.36 to 0.16 after a cluster deletion. Calculate the absolute and relative changes in variance and compare the corresponding standard deviations.
  3. Why can deleting a large cluster change a variance-component estimate even if its observations do not contain an obviously extreme outcome?
  4. A deletion refit changes a logit-scale fixed-part prediction from \(-1.00\) to \(-0.80\). Calculate the probabilities and their difference.
  5. One deletion refit fails to converge. Is its apparent parameter estimate a reliable influence comparison? What should be checked?

Solutions. (1) The raw change is \(0.45-0.60=-0.15\); standardized by the full-data standard error it is \(-0.15/0.25=-0.60\). The coefficient falls by 0.15, or 0.60 full-data standard errors, when cluster 4 is omitted. (2) The variance change is \(0.16-0.36=-0.20\), a relative decrease of \(-0.20/0.36=-0.556\), or 55.6%. The standard deviations change from \(\sqrt{0.36}=0.60\) to \(\sqrt{0.16}=0.40\), a decrease of 0.20. (3) A large cluster can contribute substantial information about the random-effects distribution and covariate patterns even without an extreme outcome; deleting it changes the information available to estimate between-cluster variation. (4) The probabilities are \(\exp(-1)/(1+\exp(-1))=0.2689\) and \(\exp(-0.8)/(1+\exp(-0.8))=0.3100\). The change is \(0.3100-0.2689=0.0411\), or 4.11 percentage points. (5) No. Check convergence diagnostics, optimization settings, starting values, and whether parameters are weakly identified or on a boundary. Until a stable refit is obtained, report the deletion fit as a computational failure rather than interpreting its apparent estimate as a reliable change.

Clinical Biostats