Why the Design Matters Before Fitting
An optimizer can search for random-effect variances and covariances only insofar as the design gives those parameters distinct implications for the data. If two different covariance matrices produce exactly the same random-effect contribution for every cluster in the design, the parameters are not distinguishable from that design. Changing optimizers or tightening tolerances cannot supply the missing information.
This is a question of design-based identifiability: whether the cluster structure and predictor values permit specified random-effect covariance parameters to have distinct implications. It is separate from whether a particular finite data set estimates those parameters precisely, or whether an optimization algorithm has converged.
Model and Identifiability Criterion
For cluster \(i\), let \(Y_{ij}\) be the response for observation \(j\), and let \(x_{ij}\) denote its predictors. A GLMM specifies a response distribution conditional on random effects, with conditional mean linked to a linear predictor such as \(\eta_{ij}=o_{ij}+x_{ij}^{T}\beta+z_{ij}^{T}b_i\). Here \(o_{ij}\) is a known offset, \(\beta\) is a vector of fixed effects, \(z_{ij}\) is the row of the random-effects design matrix \(Z_i\), and \(b_i\) is a vector of cluster-specific random effects.
For the design checks below, assume clusters are independent, \(b_i\) has mean zero and a common covariance matrix \(G\), and the conditional response model and link are specified. In the usual Gaussian random-effects formulation, \(b_i\sim N(0,G)\), with \(G\) positive semidefinite. Observations are conditionally independent given the random effects and fixed predictors. These assumptions define the model being checked; they do not guarantee that the design identifies its parameters.
The entries of \(Z_iGZ_i^{T}\) describe the covariance pattern contributed by the random effects to the linear predictor within cluster \(i\). In a Gaussian model with an identity link, these contributions form part of the response covariance structure. In a non-Gaussian GLMM, the marginal response covariance is generally not simply \(Z_iGZ_i^{T}\), because integrating over random effects also involves the response distribution and link. The matrices remain a useful design check, but full likelihood identifiability can depend on the whole model.
A Rank Check for Covariance Parameters
Suppose \(G\) is an unrestricted symmetric \(q\times q\) covariance matrix. It has \(q(q+1)/2\) distinct entries. Each entry of \(Z_iGZ_i^{T}\) is a linear combination of those entries. Collect the coefficients for all clusters and all pairs of observations within each cluster into a matrix \(A\). Then a sufficient and, for this linear covariance mapping, necessary condition for the unrestricted entries of \(G\) to be distinguishable is that \(A\) have full column rank \(q(q+1)/2\).
The notation \(\operatorname{vec}_{\mathrm{sym}}\) means that only distinct entries of a symmetric matrix are listed. The rank criterion follows directly: if \(A\) has a nonzero null vector \(v\), then a change \(v\) in the listed covariance entries leaves every mapped matrix unchanged, since \(Av=0\). Conversely, if \(A\) has full column rank, no nonzero change in those entries leaves all mapped matrices unchanged. This is a linear-algebra result about the mapping, not a guarantee of precise estimation from a particular sample. Positive-semidefinite restrictions can also affect identifiability at a boundary, so the unrestricted rank check is best understood as a check for whether the design can distinguish the full covariance parameterization.
Worked Example: A Random Slope With No Predictor Variation
Suppose each cluster has a random intercept and a random slope for predictor \(x\). Write \(b_i=(b_{0i},b_{1i})^{T}\) and \[ G= \begin{pmatrix} \tau_{00}&\tau_{01}\\ \tau_{01}&\tau_{11} \end{pmatrix}. \] The random contribution to the linear predictor at value \(x\) is \(b_{0i}+xb_{1i}\). Consider a hypothetical design in which every observation in every cluster has \(x=0\).
At \(x=0\), the random contribution is just \(b_{0i}\). Its variance is \[ \operatorname{Var}(b_{0i}+0b_{1i})=\tau_{00}. \] The covariance entries \(\tau_{01}\) and \(\tau_{11}\) do not appear. Equivalently, every row of \(Z_i\) is \((1,0)\), so every entry of \(Z_iGZ_i^{T}\) is \(\tau_{00}\). For example, \(G_1=\begin{pmatrix}4&0\\0&1\end{pmatrix}\) and \(G_2=\begin{pmatrix}4&0.5\\0.5&2\end{pmatrix}\) both imply the same random-effect covariance contribution under this design: the value 4 for every observation pair.
Thus the design can distinguish \(\tau_{00}\), but cannot distinguish the slope variance \(\tau_{11}\) or intercept–slope covariance \(\tau_{01}\) through this random-effect mapping. A numerical estimate of either omitted component would not be evidence that the design identifies it.
Worked Example: Two Predictor Values Within Each Cluster
Now suppose every cluster has observations at both \(x=0\) and \(x=1\). Use the same random-intercept and random-slope model. The random-effect contribution has variance \(\tau_{00}\) at \(x=0\), covariance \(\tau_{00}+\tau_{01}\) between the contributions at \(x=0\) and \(x=1\), and variance \(\tau_{00}+2\tau_{01}+\tau_{11}\) at \(x=1\).
For a hypothetical implied pattern with these three quantities equal to 4, 5, and 9, respectively, the equations are \[ \tau_{00}=4,\qquad \tau_{00}+\tau_{01}=5,\qquad \tau_{00}+2\tau_{01}+\tau_{11}=9. \] The first gives \(\tau_{00}=4\). The second gives \(\tau_{01}=5-4=1\). Substituting into the third gives \(\tau_{11}=9-4-2(1)=3\). Thus the implied covariance matrix is \[ G=\begin{pmatrix}4&1\\1&3\end{pmatrix}. \] It is positive definite because its diagonal entries are positive and its determinant is \(4(3)-1^2=11>0\).
The three design-implied quantities determine the three covariance entries in this example. This establishes that the predictor pattern separates those entries in the linear covariance mapping; it does not mean that observed GLMM response covariances can be read off as 4, 5, and 9.
How Predictor Placement Changes What Can Be Distinguished
Within-cluster variation often makes random slopes distinguishable from random intercepts, but the actual criterion is the rank of the covariance mapping. A predictor that varies within clusters supplies more than one random-effects design row in a cluster. Predictor values that are all identical can collapse distinct random effects into the same contribution. The following example shows that having two values is not, by itself, enough to separate all three covariance entries.
Worked Example: Symmetric Predictor Values Without a Cross-Value Pair
Consider a hypothetical design with a random intercept and random slope, but suppose each cluster contains observations at only one of the two values \(x=-1\) or \(x=1\). Assume there are clusters at both values, but no cluster contains observations at both. For a cluster observed at a single value \(x\), the random contribution has variance \[ \tau_{00}+2x\tau_{01}+x^2\tau_{11}. \] At \(x=-1\), this is \(\tau_{00}-2\tau_{01}+\tau_{11}\); at \(x=1\), it is \(\tau_{00}+2\tau_{01}+\tau_{11}\).
Suppose the two implied variances are 4 and 8. Adding the equations gives \(2\tau_{00}+2\tau_{11}=12\), so \(\tau_{00}+\tau_{11}=6\). Subtracting the first from the second gives \(4\tau_{01}=4\), so \(\tau_{01}=1\). But the sum alone does not separate \(\tau_{00}\) from \(\tau_{11}\): both \((\tau_{00},\tau_{11})=(4,2)\) and \((3,3)\), for example, have sum 6. Both resulting matrices are positive definite: their determinants are \(4(2)-1=7\) and \(3(3)-1=8\), respectively.
In this design, the two variances across the two predictor values identify a combination of the intercept and slope variances and identify the covariance, but do not separately identify both variances through this mapping. If each cluster instead had observations at both values, the cross-value covariance would also contribute: it is \(\tau_{00}-\tau_{11}\). That additional quantity can separate the two variances.
Practical Design Checks and Failure Modes
Before interpreting a fitted covariance matrix, check the design that generates its random-effects columns. For each proposed random effect, ask which values its design column takes within each cluster and which combinations of columns occur together. Then assess whether the resulting covariance patterns can distinguish the parameters of interest. For a general structure, constructing the coefficient matrix \(A\) and checking its rank makes this question explicit.
A rank deficiency is structural for the chosen covariance mapping: some parameter changes leave the design-implied matrices unchanged. By contrast, a full-rank matrix can still be poorly conditioned, and a finite data set may provide weak information. Those are practical estimation difficulties rather than exact aliasing. Earlier material on convergence and singular fits helps diagnose numerical and boundary behavior, but such diagnostics do not replace this design check.
- Random intercept and slope: inspect the range and pattern of the slope predictor within clusters, not only its overall range.
- Random slopes for factors: check whether the relevant factor levels occur in the clusters whose random effects are being modeled. Missing combinations can remove covariance contrasts.
- Multiple random effects: check whether their design columns vary together so that different covariance entries imply distinguishable patterns.
- Centering and coding: a change of predictor origin or factor coding changes the parameter representation. It may make estimates easier to interpret or computation more stable, but it does not create information absent from the design.
Design Changes, Constraints, and Limits
When a design cannot distinguish specified covariance parameters, the most direct remedy for future data is often to collect observations at predictor values or combinations that add new covariance contrasts within clusters. In existing data, a simpler covariance structure may be appropriate if it matches the scientific question. For example, setting an intercept–slope covariance to zero removes that parameter from the model, but it is a substantive restriction, not a discovery that the design estimated the covariance to be zero.
Reparameterizing a covariance matrix can clarify which combinations are estimable, but cannot increase the rank of the information supplied by the design. Nor does a design-level rank check prove that the full GLMM likelihood uniquely identifies every model parameter: the response family, link, fixed-effects structure, and random-effects distribution also matter. It answers a narrower, useful question: whether the specified cluster and predictor layout separates the random-effect covariance patterns being requested.
Check Your Understanding
Answer each question, then compare with the solutions below.
- In a random-intercept and random-slope model, every observation has \(x=0\). Which entries of \(G\) appear in the random-effect covariance contribution?
- Why does a full-column-rank covariance mapping not guarantee precise estimates in a particular data set?
- Each cluster has observations only at \(x=-1\) or only at \(x=1\), and both groups of clusters occur. Which three covariance entries cannot be separated using only the two within-cluster variances?
- Does centering a predictor create design information that was not present before? Explain.
Solutions. (1) Only \(\tau_{00}\) appears, because the random contribution is \(b_{0i}\) at \(x=0\). The slope variance and intercept–slope covariance do not enter \(Z_iGZ_i^{T}\). (2) Full rank rules out exact linear aliasing in the covariance mapping, but the data may still be limited or weakly informative, and the likelihood may be numerically difficult. (3) The two variances are \(\tau_{00}-2\tau_{01}+\tau_{11}\) and \(\tau_{00}+2\tau_{01}+\tau_{11}\). They identify \(\tau_{01}\) and the sum \(\tau_{00}+\tau_{11}\), but not \(\tau_{00}\) and \(\tau_{11}\) separately. (4) No. Centering changes the parameter representation and can improve interpretation or numerical behavior, but it cannot add new observations or covariance contrasts.