Abstract
Linear mixed models represent cluster-specific heterogeneity through a random-effects covariance matrix, but dependence among random coefficients is rarely modeled explicitly. We propose a graph-structured framework in which random-effect components are vertices and two complementary graphs encode marginal dependence through covariance zeros and conditional dependence through precision-matrix zeros. Scale-invariant correlation and partial-correlation weights are screened by a vanishing threshold, and selected covariance graphs may be refitted by restricted maximum likelihood (REML). We state explicit identifiability, interior-eigenvalue, and differentiability conditions under which root-m REML behavior transfers to correlations and partial correlations, and we give a conditional support-consistency result under a uniform estimation rate and a beta-min condition. We further establish scale invariance under diagonal rescaling, clarify dependence on the chosen random-effect coordinates, and extend the covariance perturbation bound to allow residual-variance re-estimation. In 500 Monte Carlo replications per primary configuration with three random effects, exact support recovery increased from 0.612 to 0.930 for covariance graphs and from 0.470 to 0.950 for precision graphs as the number of clusters increased from 30 to 120. Five-node, threshold-sensitivity, and additional stress experiments show that recovery remains favorable for disconnected and unbalanced settings but deteriorates, as expected, when a true edge is weaker than the screening threshold. A targeted exhaustive BIC benchmark at illustrates the value of data-adaptive structure selection. The Grunfeld application is presented strictly as a methodological illustration and demonstrates sensitivity to threshold choice, BIC-guided graph simplification, and boundary diagnostics.
Keywords:
linear mixed models; random effects; covariance graph; precision graph; REML; covariance selection; conditional independence; graphical models; model selection MSC:
62J05; 62H20; 05C82
1. Introduction
Linear mixed models (LMMs) are a standard framework for longitudinal, clustered, multilevel, and panel data because they separate population-level regression effects from latent cluster-specific heterogeneity [1,2,3]. For mutually independent clusters , a Gaussian LMM may be written as
where and are mutually independent. The positive-definite matrix governs both the magnitudes of the random-effect variances and the dependence among random intercepts, random slopes, and any other random coefficients.
The specification and estimation of are consequential. An unstructured covariance is flexible but requires covariance parameters, and likelihood-based estimates can approach the boundary of the positive-definite cone when information is limited or random effects are strongly correlated. Recent work continues to address stable covariance estimation and boundary behavior in mixed models [4,5]. A related literature studies the selection of random effects themselves, using penalized likelihood, boosting, Bayesian sparsity, or other model-selection mechanisms [6,7,8,9]. Another line of work focuses specifically on selecting the covariance structure of the random effects [10]. These problems should be distinguished: Deciding whether a random effect is present is not the same as deciding whether two retained random effects are statistically dependent.
Graphical models provide a natural language for the latter question. For Gaussian vectors, zeros in a covariance matrix encode pairwise marginal independences, whereas zeros in a precision matrix encode pairwise conditional independences [11,12,13,14]. The two graph types therefore answer different scientific questions. This distinction is particularly relevant in LMMs because the random-effects vector is latent and its dependence must be inferred through the mixed-model likelihood rather than from directly observed multivariate measurements.
This paper develops a graph-structured representation of random-effects dependence in Gaussian LMMs. The vertices are the q components of , not observations and not columns of the random-effects design matrix viewed as data. We define both covariance and precision graphs, use scale-invariant correlations and partial correlations as edge weights, and introduce a threshold sequence that is compatible with consistent support recovery when q is fixed. We also describe graph-restricted REML refitting, establish invariance and perturbation results, and investigate finite-sample graph recovery through a Monte Carlo study with both three- and five-node graphs. A real-data illustration based on the Grunfeld investment panel examines graph sensitivity to the threshold and the effect of a covariance-graph restriction on likelihood, fixed effects, and a cluster-scaled BIC-type score.
The contribution is fourfold. First, the framework separates covariance graphs from precision graphs and assigns each a direct Gaussian independence interpretation at the random-effects level. Second, it uses standardized edge weights and a cluster-indexed threshold whose support consistency follows from a uniform REML estimation rate and a beta-min condition. Third, it links graph sparsification to the marginal data covariance and embeds selected covariance graphs in an exact restricted-REML refit rather than imposing zeros on a Cholesky factor. Fourth, it evaluates graph recovery, threshold sensitivity, dimensional robustness, and a reproducible real-data refit in a single workflow. The proposal is intended to complement, not replace, existing covariance-selection and random-effect-selection procedures; the numerical experiments assess graph recovery rather than claim universal optimality over competing penalized, Bayesian, or boosting procedures.
The remainder of the paper is organized as follows. Section 2 presents the LMM, the two graph representations, graph screening and refitting, the simulation design, and the empirical application. Section 3 establishes the theoretical properties. Section 4 reports the simulation and Grunfeld results. Section 5 discusses interpretation, limitations, and extensions, and Section 6 concludes.
2. Materials and Methods
2.1. Linear Mixed Model, Identifiability, and Graph Definitions
Let cluster i contain observations and let . In Equation (1), and are known design matrices. Marginally,
Stacking all clusters gives , , and block-diagonal . We write
for the covariance-parameter vector in the unrestricted model, with the obvious deletion of structurally fixed entries under a restricted graph.
For fixed , generalized least squares gives
Substituting Equation (4) into the Gaussian quadratic form yields
where
The restricted likelihood additionally integrates out the p-dimensional fixed-effect component, producing the determinant correction . Consequently, for covariance parameters determining and , the restricted log-likelihood is [15,16]
The unrestricted REML estimate of the random-effects covariance is denoted by .
Identifiability is required before any graph can be interpreted. We assume that has full column rank and that the map is locally one-to-one at the true parameter, equivalently that the restricted information for the free covariance parameters is nonsingular. A useful sufficient design condition is that no nonzero symmetric matrix in the tangent space of the covariance model satisfies for every cluster while being confounded with the residual covariance component. Redundant or aliased random-effect columns can therefore make individual variance or covariance components unidentified. In practice, such problems are addressed by simplifying the random-effects structure, removing redundant columns, centering and scaling predictors, or using an orthogonal basis before graph estimation; regularization does not by itself repair a fundamentally nonidentifiable parameterization. These assumptions are standard prerequisites for likelihood-based covariance estimation in LMMs [2,3,17].
The graph is inferred from , not from the empirical covariance of the columns of : The latter describes the design, whereas describes the latent random-effects distribution. Let index the components of . The covariance graph is
Because raw covariances depend on measurement units, we use the correlation matrix
and define covariance-edge weight . For Gaussian random effects, a missing covariance edge means pairwise marginal independence.
The complementary precision graph is based on and is defined by
The standardized edge weight of is the partial correlation
with . Under multivariate normality, a missing precision edge means conditional independence of and given all remaining random-effect components. In general, and need not have the same topology.
The precision graph is defined only when is nonsingular. Accordingly, a precision graph is not reported when is singular; when is very small, partial correlations are flagged as numerically sensitive. A ridge-regularized inverse can be useful for exploratory work, but it defines a different estimator and is not used in the primary results reported here.
Finally, the graph is invariant to diagonal changes of measurement scale but not to arbitrary changes of random-effect coordinates. For example, if a random-slope predictor is recentered from x to , then and
Thus, a random-intercept–random-slope edge can change under recentering. Graph interpretation is therefore conditional on a scientifically meaningful and explicitly reported random-effects parameterization.
2.2. Graph Screening, Refitting, and Model Selection
Let and be obtained from . We define thresholded edge sets
For fixed q, the reference sequence used in the theoretical and primary numerical work is
The rate, rather than the numerical constant c, is what enters the support argument. The constant is therefore treated only as a transparent reference value, not as a universal optimum. The numerical study includes ; in applied analyses, threshold sensitivity should be reported, or c should be selected by an explicit data-adaptive rule. Thresholding standardized weights is preferable to the rule “estimated covariance is nonzero,”because unrestricted REML off-diagonal estimates are almost never exactly zero.
There are several principled ways to make threshold choice data-adaptive. For covariance graphs, one may define a grid of candidate constants, refit every distinct graph generated along the threshold path, and select the graph minimizing an information criterion. A cluster bootstrap can instead estimate edge-selection probabilities and retain edges whose stability exceeds a prespecified level. When estimated standard errors of the transformed correlations are reliable, edge-specific thresholds proportional to those standard errors provide another possibility. These approaches tie screening more directly to the estimation error of than a fixed constant does.
Automatic elbow procedures provide a further alternative when the candidate models can be ordered as a nested path. In particular, the spectral information criterion (SIC), the universal automatic elbow detector (UAED), and recent interval-valued extensions identify changes in the trade-off between lack of fit and model complexity [18,19,20]. A graph-learning application in soundscape emotion recognition has recently combined graph topology inference with an automatic sparsity-selection criterion [21]. In the present setting, one can sort from largest to smallest, form nested graphs , compute a lack-of-fit curve such as , and apply an elbow detector to select the effective number of edges k. These methods are conceptually complementary to Equation (15): They can select a point or interval along a finite graph path, but they do not replace the beta-min condition used in the asymptotic support theorem, and they do not by themselves provide edgewise post-selection inference.
A selected covariance graph may be imposed as a structural restriction. For an edge set E, define
The graph-restricted REML estimate is
Exact covariance constraints are imposed on itself; setting an entry of a Cholesky factor to zero is not generally equivalent to setting a specified covariance to zero. In the Grunfeld refit with , we used with and
This parameterization guarantees and hence positive definiteness. With only edge retained, , and the remaining correlations are fixed at zero. The residual variance is parameterized as . Multiple starting values are used, positive definiteness is verified by the minimum eigenvalue, and near-boundary solutions are explicitly flagged. We do not report ordinary post-selection standard errors from these refits. Precision-graph refitting would require imposing exact zeros on Ω rather than on a Cholesky factor of ; because the empirical precision graph is borderline and no precision-constrained refit is used in our numerical study, we restrict the demonstrated refitting procedure to covariance graphs.
For covariance structures with the same fixed-effects specification, we use the descriptive cluster-scaled BIC-type score
The penalty counts q random-effect variances, free covariances, and the residual variance. The common fixed-effect contribution is omitted because it is identical across the compared covariance structures. The use of m, the number of independent clusters, reflects the cluster-level replication relevant to random-effects covariance estimation; BIC definitions in mixed models require such care [22,23]. Equation (19) is used only for relative comparison and threshold-path selection in the empirical illustration, not as a new general-purpose BIC theory. Other established possibilities include likelihood-ratio procedures for nested covariance structures, conditional or marginal information criteria, penalized covariance selection, graphical-lasso-type precision estimation, stability selection, and Bayesian graph priors [10,24,25].
Graph summaries such as degree, weighted strength, and betweenness may be useful descriptively, but graph centrality is not a random-effect-selection criterion. A random effect may have low graph centrality yet a large variance or important predictive contribution. The graph addresses dependence among retained random effects; inclusion of random effects is a separate modeling problem.
2.3. Monte Carlo Design
The main experiment used random effects and observations per cluster at equally spaced times . The fixed-effects design and coefficient vector were
and the random-effects design used the first three Legendre-type terms,
Residual errors were independent . Two complementary data-generating regimes were considered. In the covariance-sparse regime,
so the covariance graph is the path . In the precision-sparse regime,
so the precision graph is the path 1-2-3. The nonzero standardized population edge magnitudes are approximately 0.467–0.520 for the covariance-sparse regime and 0.429–0.475 for the precision-sparse regime.
For each regime and , 500 independent data sets were generated. Each data set was fitted by unrestricted Gaussian REML, after which and were calculated. The primary metrics were edge sensitivity, edge specificity, exact support recovery, and Frobenius error of the relevant standardized dependence matrix. Exact recovery equals one only when every possible edge is classified correctly and therefore becomes increasingly stringent as q grows. MCSEs are reported for the primary graphwise exact-recovery proportions; the edgewise proportions are presented as descriptive averages across replications.
A second experiment examined robustness at . Each cluster contained observations, and the random-effects design used Legendre polynomials of degree 0 through 4. Both the covariance-sparse and precision-sparse population graphs were paths 1-2-3-4-5. We considered and again used 500 replications per configuration. The exact matrices are given in Appendix A. Across both simulation experiments, the threshold sensitivity grid was .
To address graph shapes and sampling patterns not represented by paths, we also conducted four targeted covariance-graph stress experiments at and , with 30 replications per scenario. The scenarios were as follows: (i) a dense three-edge graph; (ii) a disconnected graph with one and an isolated third vertex; (iii) a path with one weak nonzero edge whose population correlation was approximately , below the reference threshold ; and (iv) the original covariance-sparse path with unbalanced cluster sizes sampled uniformly from 4 to 12. These are intentionally secondary stress checks rather than replacements for the 500-replication primary experiment.
Finally, as a direct model-selection baseline, we performed a targeted , comparison over 30 additional covariance-sparse replications. The fixed threshold was compared with exhaustive selection among all covariance graph supports using Equation (19) after exact covariance-constrained REML refitting. This small benchmark is intended to determine whether a likelihood-based data-adaptive comparator changes the qualitative conclusion, not to establish a comprehensive ranking of covariance-selection methods.
All 5000 primary mixed-model fits were executed in R 4.6.1 using lme4 2.0-6 and the bobyqa optimizer [26]. The master seed was 20261021, and each task used a deterministic task-specific seed. The complete simulation code and the fitted-covariance objects are provided in the Supplementary Materials.
2.4. Grunfeld Empirical Illustration
The Grunfeld investment data contain 220 annual observations for 11 U.S. firms over 1935–1954 [27,28,29]. Gross investment, market value, and capital stock were log-transformed and standardized over the full sample using the population standard deviation, i.e., the square root of the mean squared deviation from the sample mean. This centering and scaling convention defines the random-intercept/random-slope coordinate system to which the reported graph refers. We fitted
where and . Thus, the graph vertices represent the random intercept, random market-value slope, and random capital slope. We examined the same threshold grid . At , the selected covariance graph was refitted under the exact covariance constraint . We also refitted the one-edge graph generated at , with only retained, and compared the distinct graphs on the threshold path together with the diagonal model using Equation (19). Thus, the empirical analysis reports both the prespecified reference threshold and a simple BIC-guided data-adaptive choice over the prespecified threshold grid.
The Grunfeld calculations are reproducible from Supplementary File S2. The data are distributed with the R package plm and are also publicly available in other statistical software distributions [28,29].
3. Theoretical Properties
Proposition 1.
Let with and . For :
- (i)
- if and only if and are marginally independent.
- (ii)
- if and only if and are conditionally independent given .
Proof.
For a multivariate Gaussian vector, zero covariance is equivalent to pairwise marginal independence. The conditional distribution of given the remaining components is Gaussian, and its conditional independence structure is encoded by the precision matrix. Hence, the off-diagonal precision entry is zero exactly when the corresponding two components are conditionally independent [11,12]. □
Proposition 2.
Let and write and . Then,
Consequently, if while , the missing covariance edge becomes a present precision edge. Conversely, is equivalent to
which need not be zero. Thus, even for three random effects, covariance and precision graphs generally have different edge sets.
Proof.
Equation (25) follows from the cofactor formula for the inverse of a nonsingular matrix. The two consequences follow immediately because and . □
Proposition 3.
Let with all , and define . Since is diagonal and symmetric, . Then, and . Consequently, the zero patterns of both and Ω are unchanged. If all , the correlation and partial-correlation edge weights are unchanged as well.
Proof.
Remark 1.
Proposition 3 is deliberately limited to diagonal rescaling. Under a general nonsingular change of coordinates , the covariance becomes , and its zero pattern need not be preserved. Equation (12) is an important special case. Consequently, covariance and precision graphs are statements about a specified random-effect basis, not coordinate-free properties of the latent subspace.
We now state the regularity bridge between REML covariance estimation and graph-weight estimation. Assume the following: (R1) p and q are fixed, clusters are independent, and cluster sizes and the operator norms of and are uniformly bounded; (R2) the true parameter is an interior point with constants such that and ; (R3) the covariance model is locally identifiable, and the normalized restricted information converges to a positive-definite limit; and (R4) the REML estimator satisfies . Conditions yielding consistency and asymptotic normality of REML variance-parameter estimators in broad mixed-model settings are given by Cressie and Lahiri [30] and Jiang [17]. We use (R4) as an explicit assumption rather than claiming a new REML asymptotic theorem.
Proposition 4.
Under (R1)–(R4),
and
Proof.
On the spectral set in (R2), the maps and are continuously differentiable with bounded derivatives. The partial-correlation standardization is also continuously differentiable because the diagonal entries of are bounded away from zero and infinity. The multivariate delta method applied to (R4) therefore gives root-m consistency for every correlation and partial correlation. Since q is fixed, the maximum is over finitely many pairs and has the same stochastic order. □
Let denote either the population correlation matrix or the population partial-correlation matrix , and let be obtained from unrestricted REML.
Theorem 1.
Let
be the true edge set. Suppose that for a deterministic sequence ,
and choose such that . If , assume the beta-min condition
for all sufficiently large m; if , this condition is vacuous. Then,
satisfies
Proof.
Corollary 1.
If q is fixed and the maximum graph-weight estimation error is , as in Proposition 4 under (R1)–(R4), then
satisfies the rate requirement in Theorem 1. Under the beta-min condition, covariance-graph and precision-graph screening are therefore support-consistent.
Proof.
Taking gives
while . □
The graph concerns the latent covariance , whereas inferential consequences propagate through . The next bound makes this connection explicit.
Theorem 2.
Let and be positive-semidefinite random-effects covariance matrices, let and , and define
Then,
For the stacked block-diagonal matrices and ,
If , then
Proof.
The difference satisfies
By the submultiplicativity of the operator norm and the triangle inequality, we obtain Equation (39). Since the norm of a block-diagonal matrix is the maximum of the norms of its blocks, we then obtain Equation (40). The inverse bound follows from the resolvent identity or from a Neumann-series argument, exactly as in the equal-residual-variance case. □
Corollary 2.
Suppose the event has probability tending to one and, conditional on the correct graph, the constrained REML refit satisfies and . If , then
Proof.
Apply Equation (39) to the constrained refit on the event and use the bounded-design assumption. The probability of that event tends to one by Theorem 1 under its stated conditions. □
Theorem 2 is deterministic and should not be confused with a guarantee that thresholding itself makes small. Such a statistical conclusion requires control of the support-selection error and of the subsequent constrained estimator, as made explicit in Corollary 2.
4. Results
4.1. Three-Node Graph Recovery
Table 1 reports the results for the graph that is sparse by construction in each regime, using the primary threshold . All 3000 LMM fits converged. Singular fits occurred in only four of 500 replications for the covariance-sparse case with and in none of the remaining configurations. In particular, no singular fit occurred in any precision-sparse target configuration, so the reported precision-graph metrics never required inversion of a singular covariance estimate.
Table 1.
Monte Carlo graph-recovery results for with . Each row is based on 500 replications. MCSE denotes Monte Carlo standard error.
Graph recovery improved markedly with the number of independent clusters. In the covariance-sparse regime, exact recovery increased from 0.612 at to 0.930 at ; sensitivity increased from 0.835 to 0.997 and specificity from 0.866 to 0.936. In the precision-sparse regime, exact recovery increased from 0.470 to 0.950; sensitivity reached 0.998 and specificity 0.952 at . Frobenius error decreased monotonically in both regimes. The MCSE of the exact-recovery proportion was at most 0.0224 across the configurations.
The results also illustrate why covariance and precision graphs should not be conflated. In Equation (22), the covariance graph has a missing 1–3 edge, but the corresponding precision graph is dense. Conversely, Equation (23) has a missing 1–3 precision edge, while inversion induces a nonzero marginal covariance between components 1 and 3. The same latent vector can therefore support different graph topologies depending on whether marginal or conditional dependence is the target.
4.2. Threshold Sensitivity and Five-Node Robustness
Table 2 reports exact support recovery across the prespecified threshold grid. No single c value is uniformly optimal, which is expected from the sensitivity–specificity trade-off. Lower thresholds improve sensitivity but admit more false edges; higher thresholds improve specificity but can remove true edges. For , provides a balanced intermediate choice across m, while becomes slightly preferable for exact recovery at .
Table 2.
Exact support recovery as a function of the threshold constant c. Each entry is based on 500 replications.
The five-node experiment is deliberately more demanding because there are 10 possible edges and exact recovery requires all 10 classifications to be correct simultaneously. Table 3 shows that at and , covariance-graph sensitivity and specificity were 0.916 and 0.923, respectively, while precision-graph sensitivity and specificity were 0.895 and 0.898. Nevertheless, exact support recovery was only 0.440 and 0.354. Thus, edgewise performance can be good even when the probability of recovering the entire larger graph is moderate. Frobenius error again decreased substantially as m increased. All 2000 fits converged; only one singular fit occurred, in the covariance-sparse case with .
Table 3.
Five-node robustness experiment with . Each row is based on 500 replications.
These results qualify the asymptotic support statement in a useful way. Theorem 1 is a fixed-q result; at finite m, increasing the number of possible edges makes exact support recovery substantially more stringent. The five-node experiment therefore supports reporting edgewise sensitivity and specificity together with exact graph recovery rather than relying on a single metric.
4.3. Additional Stress Scenarios and a BIC Baseline
Table 4 summarizes the four targeted stress scenarios at . These small 30-replication experiments are supplementary diagnostics; the primary Monte Carlo evidence remains the 500-replication study above. The disconnected and unbalanced scenarios retained favorable edgewise behavior, with exact recovery of 0.833 and 0.800, respectively. The dense graph had no absent edges, so specificity is not defined; all three edges were recovered simultaneously in 0.533 of the replications. The weak-edge scenario was intentionally difficult: The population correlation of the weak 1–2 edge was about 0.208, below . Its sensitivity fell to 0.650 and exact recovery to 0.333. This is consistent with, rather than contrary to, Theorem 1, because the beta-min separation condition is violated.
Table 4.
Targeted covariance-graph stress scenarios for , , and . Each row is based on 30 additional replications. The dense graph contains no null edges, so specificity is not applicable.
A targeted model-selection benchmark was also performed for the original covariance-sparse design at . Over 30 additional replications, the fixed threshold recovered the exact graph in 0.767 of cases (MCSE 0.077), whereas exhaustive selection over all eight covariance graph supports recovered it in 0.867 of cases (MCSE 0.062). The comparison is deliberately small and does not establish universal superiority of BIC, but it confirms the review-motivated point that a data-adaptive likelihood criterion can improve graph selection in finite samples and should be considered alongside fixed-threshold screening.
4.4. Grunfeld Application
The unrestricted REML estimate of the random-effects correlation matrix was
and the corresponding partial-correlation matrix was
For and , Equation (15) gives . The weakest precision edge has magnitude , only about below the threshold. Its classification is therefore borderline and should not receive substantive interpretation. The corresponding covariance edge has magnitude 0.4561 and is also close to the cutoff.
The threshold sensitivity is transparent in Table 5. With , both estimated graphs are complete. With , both retain edges and but remove . With , only the strong random-value-slope–random-capital-slope edge remains. Because there are only 11 independent firms, the application should be viewed as a methodological illustration, not as definitive population network inference.
Table 5.
Threshold sensitivity in the Grunfeld application. Vertices 1, 2, and 3 denote the random intercept, random market-value slope, and random capital slope, respectively.
At the prespecified reference value , we refitted the covariance graph under the exact restriction . We additionally refitted the one-edge graph produced at , for which , and included the complete and diagonal structures. Table 6 shows that the one-edge graph had the smallest on this candidate path. Relative to the unrestricted model, it lost 1.155 restricted log-likelihood units while removing two covariance parameters; its fixed-effect estimates remained close to the unrestricted values. The two-edge graph remained a plausible intermediate model but was not the BIC-preferred graph.
Table 6.
Grunfeld covariance-structure comparison. is measured from the smallest score.
The unrestricted covariance estimate had minimum eigenvalue approximately . The two-edge refit was much closer to the boundary, with minimum eigenvalue on the order of , whereas the BIC-selected one-edge refit had minimum eigenvalue approximately . These diagnostics strengthen the case for treating the Grunfeld analysis strictly as an illustration of the workflow rather than evidence for a unique population graph: The selected structure depends on the threshold or model-selection rule, and only 11 independent firms are available.
5. Discussion
The proposed framework addresses a modeling question that is often left implicit in LMM analyses: What is the dependence topology among the latent random coefficients? Conventional output reports variances and covariances, but a graph makes structural zeros explicit and forces a distinction between marginal and conditional dependence. A zero in and a zero in are different hypotheses, with different probabilistic meanings under Gaussian random effects.
The formulation also prevents a common conceptual error: The covariance of the columns of the random-effects design matrix does not estimate the covariance of the random effects. The graph is, however, conditional on the chosen random-effect coordinates. Diagonal rescaling leaves the graph unchanged, whereas predictor recentering or a general change of basis can alter covariance and precision zeros. For random-intercept/random-slope models, centering conventions should therefore be reported and chosen for scientific interpretability before graph estimation.
The formulation also prevents a common conceptual error: The covariance of the columns of the random-effects design matrix does not estimate the covariance of the random effects. The columns of are observed design quantities, whereas describes the latent stochastic variation of the coefficients multiplying those columns. The graph must therefore be derived from an estimator of obtained through the mixed-model likelihood or a valid alternative covariance estimator.
The three-node simulations support the fixed-q theory. At , exact recovery reached 0.930 for the covariance graph and 0.950 for the precision graph under the prespecified threshold. The five-node experiment provides a more demanding and informative robustness check. At , edgewise sensitivity and specificity remained close to or above 0.90, but exact recovery was 0.440 for the covariance graph and 0.354 for the precision graph. This difference is not contradictory: Exact recovery requires all 10 possible edges to be simultaneously correct. The result underscores the importance of reporting edgewise and graphwise performance separately as graph dimension increases.
The threshold sensitivity analysis shows that is a reasonable default for the investigated settings but not a universally optimal constant. At smaller m, a lower threshold can improve exact recovery by protecting true edges, whereas at larger m, a somewhat larger threshold can improve specificity without sacrificing much sensitivity. Accordingly, applied work should report a small prespecified sensitivity grid or use a principled data-adaptive selection method. The additional BIC benchmark and the Grunfeld threshold path provide concrete examples: In the small benchmark, exhaustive selection improved exact recovery relative to the fixed rule, while in Grunfeld, the BIC-preferred graph corresponded to rather than . Potential alternatives include stability selection, bootstrap edge probabilities, penalized covariance estimation, graphical-lasso-type precision estimation, Bayesian graph priors, and automatic elbow methods applied to a nested graph path [14,18,19,20,24]. The graph-topology feature-selection strategy of Rey et al. [21] is conceptually related in its use of a learned graph plus an automatic sparsity-selection stage, although their observed-feature structural-equation setting differs from the latent random-effects likelihood considered here. The present theory accommodates such developments conceptually, although their finite-sample and asymptotic properties in latent random-effects settings require separate study.
The Grunfeld analysis illustrates both the appeal and the limitations of graph-guided covariance selection. At , the covariance graph suggests removing the random-intercept–random-value-slope covariance while retaining the two relationships involving the random capital slope. The constrained refit preserves similar fixed-effect estimates and slightly improves the cluster-scaled BIC-type score. However, the evidence is modest, the weakest screened edges are near the cutoff, and the restricted covariance estimate approaches the boundary. Reporting only the selected graph would therefore overstate certainty. The sensitivity table and eigenvalue diagnostic are essential parts of the analysis.
The proposed procedure differs from methods that select which variables have random effects [6,7,8,9]. It assumes a candidate random-effects vector has been specified and asks which dependence relations among its components are supported. It is also distinct from general covariance-structure selection criteria [10]: The graph representation attaches marginal- or conditional-independence semantics to specific zeros and permits network-based structural summaries. These methods are complementary and could be combined, for example by first selecting a random-effects set and then estimating its dependence graph.
The two-stage nature of the procedure also affects inference. Once edges have been selected from the data and the model is refitted, ordinary standard errors or likelihood-based confidence intervals from the selected model condition implicitly on a graph that was itself estimated. We therefore do not use post-selection standard errors to support graph claims in the empirical illustration. Valid uncertainty quantification may require sample splitting, selective-inference adjustments, bootstrap procedures that repeat the selection step, or Bayesian model averaging; recent work on selective inference for LMMs emphasizes this distinction [31]. Information criteria are used here for model comparison, not as a correction for post-selection uncertainty.
Several limitations remain. First, Theorem 1 is stated for fixed q. If q grows with m, uniform estimation rates must explicitly account for dimension, and positive-definite estimation becomes more difficult. Second, the screening method treats the unrestricted REML estimate as its input; when is close to singular, both correlations and especially partial correlations can be unstable. Penalized non-boundary covariance estimators may be preferable in such settings [4]. Third, the paper does not provide post-selection confidence intervals for graph-constrained parameters. Selective inference after model selection in LMMs remains a nontrivial problem [31]. Fourth, the simulation study assesses recovery of known sparse structures but does not benchmark computation or predictive performance against every alternative covariance-selection method. Such comparisons are an important direction for future work.
Extensions are straightforward in principle. Residual covariance matrices may replace in Equation (2); generalized linear mixed models may be treated with an appropriate marginal or penalized likelihood; multiple random-effect blocks may be represented by separate or multilayer graphs; and non-Gaussian random effects may motivate graph definitions based on conditional moments or copula constructions rather than Gaussian independence equivalences. Graph-guided regularization that directly estimates sparse covariance or precision structures within the mixed-model likelihood is a particularly promising next step.
6. Conclusions
This paper develops a dual graphical representation of random-effects dependence in linear mixed models. Covariance graphs encode marginal independence, precision graphs encode conditional independence, and standardized edge weights make both representations invariant to measurement scale. Under explicitly stated interior, identifiability, and REML-rate assumptions, the delta method transfers root-m covariance-parameter behavior to the graph weights, and a vanishing threshold yields conditional support consistency under a beta-min condition. An extended operator-norm bound quantifies how covariance and residual-variance perturbations propagate to the marginal covariance of the observations.
The 500-replication experiments show strong recovery for three-node sparse graphs as the number of independent clusters increases, while the five-node experiment demonstrates the expected finite-sample difficulty of exact whole-graph recovery. Sensitivity analysis confirms that threshold choice should be reported rather than hidden. The Grunfeld illustration shows how graph screening can guide an interpretable covariance restriction without materially changing fixed-effect estimates, but also demonstrates why borderline edges and near-boundary covariance estimates require caution. The framework therefore separates three distinct questions in mixed-model analysis: whether a random effect is present, how variable it is, and how it is statistically connected to the remaining random effects.
Supplementary Materials
The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/axioms15120896/s1, Supplementary File S1: R scripts, fitted random-effects covariance objects, Monte Carlo simulation results, convergence diagnostics, threshold-sensitivity analyses, additional stress scenarios, and BIC-based model-selection benchmark; Supplementary File S2: Grunfeld investment data, R scripts for the empirical analysis, and numerical results.
Author Contributions
Conceptualization, D.F., S.S.F. and P.A.; methodology, D.F., S.S.F. and P.A.; software, D.F.; validation, D.F., S.S.F. and P.A.; formal analysis, D.F.; investigation, D.F., S.S.F. and P.A.; data curation, D.F.; writing- original draft preparation, D.F.; writing - review and editing, D.F., S.S.F. and P.A.; visualization, D.F.; and supervision, D.F., S.S.F. and P.A. All authors have read and agreed to the published version of the manuscript.
Funding
This work was funded by national funds through FCT—Fundação para a Ciência e a Tecnologia, I.P., and, when eligible, co-funded by EU funds under project/support UID/50008/2025-Instituto de Telecomunicações (DOI: 10.54499/UID/50008/2025), and through projects UIDB/04630/2025 and UIDB/00297/2025.
Data Availability Statement
The empirical data used in this study are publicly available through the R package plm. The remaining results are based on Monte Carlo simulations generated according to the data-generating mechanisms fully described in the manuscript. Additional information required to reproduce the analyses can be provided by the authors upon reasonable request.
Acknowledgments
During the preparation of this manuscript, the authors used ChatGPT (OpenAI, GPT-5.6 Sol) to assist with manuscript drafting, organization of mathematical exposition, code development, and numerical cross-checking. The authors reviewed and edited all AI-assisted output and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A. Five-Node Simulation Specification
For the robustness experiment, equally spaced points were used. The random-effects design contained the Legendre polynomials
The covariance-sparse matrix was
which has a covariance path graph 1-2-3-4-5. The absolute nonzero correlations range from approximately 0.324 to 0.380.
For the precision-sparse regime,
which has a precision path graph 1-2-3-4-5. The absolute nonzero partial correlations range from approximately 0.310 to 0.355. Both matrices are positive definite.
Appendix B. Reproducible Simulation Algorithm
For each replication, the computational workflow is as follows:
- Generate independent cluster-specific random effects from the specified distribution and independent Gaussian residuals.
- Construct the response from the fixed and random Legendre designs.
- Fit an LMM with an unrestricted random-effects covariance by REML.
- Extract and calculate ; calculate only if is nonsingular and flag near-singular fits using the minimum eigenvalue.
- For each , apply to the graph that is sparse by construction.
- Record edge sensitivity, specificity, exact support recovery, Frobenius error, convergence, and singular-fit status.
The same unrestricted fit is reused for all three threshold constants, so threshold sensitivity does not require refitting the LMM. For the additional BIC benchmark, all eight covariance graph supports are refitted under exact covariance-zero constraints, and the smallest value of Equation (19) is selected.
References
- Laird, N.M.; Ware, J.H. Random-effects models for longitudinal data. Biometrics 1982, 38, 963–974. [Google Scholar] [CrossRef] [Scilit]
- Pinheiro, J.C.; Bates, D.M. Mixed-Effects Models in S and S-PLUS; Springer: New York, NY, USA, 2000. [Google Scholar]
- Demidenko, E. Mixed Models: Theory and Applications with R, 2nd ed.; Wiley: Hoboken, NJ, USA, 2013. [Google Scholar]
- Košuta, T.; Langerholc, E.; Blagus, R. Non-boundary covariance matrix estimation in generalized linear mixed effects models using data augmentation priors. Biometrics 2026, 82, ujag013. [Google Scholar] [CrossRef] [Scilit]
- Ferreira, D.; Ferreira, S.S. CMMSE-A Hybrid EM and Bayesian-Stochastic Approximation Method for Variance Components in Incomplete Mixed Models. Math. Methods Appl. Sci. 2026, 49, 12413–12432. [Google Scholar] [CrossRef] [Scilit]
- Bondell, H.D.; Krishna, A.; Ghosh, S.K. Joint variable selection for fixed and random effects in linear mixed-effects models. Biometrics 2010, 66, 1069–1077. [Google Scholar] [CrossRef] [Scilit]
- Lin, B.; Pang, Z.; Jiang, J. Fixed and random effects selection by REML and pathwise coordinate optimization. J. Comput. Graph. Stat. 2013, 22, 341–355. [Google Scholar] [CrossRef] [Scilit]
- Battauz, M.; Vidoni, P. A boosting method to select the random effects in linear mixed models. Biometrics 2024, 80, ujae010. [Google Scholar] [CrossRef] [Scilit]
- Spyropoulou, M.-Z.; Hopker, J.G.; Griffin, J.E. Fast Bayesian inference in a class of sparse linear mixed effects models. Stat. Comput. 2025, 35, 122. [Google Scholar] [CrossRef] [Scilit]
- Zhang, X.; Liang, H.; Liu, A.; Ruppert, D.; Zou, G. Selection strategy for covariance structure of random effects in linear mixed-effects models. Scand. J. Stat. 2016, 43, 275–291. [Google Scholar] [CrossRef] [Scilit]
- Dempster, A.P. Covariance selection. Biometrics 1972, 28, 157–175. [Google Scholar] [CrossRef] [Scilit]
- Lauritzen, S.L. Graphical Models; Oxford University Press: Oxford, UK, 1996. [Google Scholar]
- Cox, D.R.; Wermuth, N. Multivariate Dependencies: Models, Analysis and Interpretation; Chapman & Hall: London, UK, 1996. [Google Scholar]
- Richardson, T.S. Estimation of a covariance matrix with zeros. Biometrika 2007, 94, 199–216. [Google Scholar] [CrossRef] [Scilit]
- Patterson, H.D.; Thompson, R. Recovery of inter-block information when block sizes are unequal. Biometrika 1971, 58, 545–554. [Google Scholar] [CrossRef]
- Lindstrom, M.J.; Bates, D.M. Newton–Raphson and EM algorithms for linear mixed-effects models for repeated-measures data. J. Am. Stat. Assoc. 1988, 83, 1014–1022. [Google Scholar] [CrossRef] [Scilit]
- Jiang, J. REML estimation: Asymptotic behavior and related topics. Ann. Stat. 1996, 24, 255–286. [Google Scholar] [CrossRef] [Scilit]
- Martino, L.; San Millán-Castillo, R.; Morgado, E. Spectral information criterion for automatic elbow detection. Expert Syst. Appl. 2023, 231, 120705. [Google Scholar] [CrossRef] [Scilit]
- Morgado, E.; Martino, L.; San Millán-Castillo, R. Universal and automatic elbow detection for learning the effective number of components in model selection problems. Digit. Signal Process. 2023, 140, 104103. [Google Scholar] [CrossRef] [Scilit]
- Martino, L.; San Millán-Castillo, R.; Morgado, E. Automatic uncertainty evaluation for determining the number of components in nested models and the shrinkage regularization parameters. PLoS ONE 2026, 21, e0354966. [Google Scholar] [CrossRef] [Scilit]
- Rey, S.; Martino, L.; San Millán-Castillo, R.; Morgado, E. Feature selection via graph topology inference for soundscape emotion recognition. IEEE Trans. Netw. 2026, 34, 6564–6579. [Google Scholar] [CrossRef] [Scilit]
- Jones, R.H. Bayesian information criterion for longitudinal and clustered data. Stat. Med. 2011, 30, 3050–3056. [Google Scholar] [CrossRef] [Scilit]
- Delattre, M.; Lavielle, M.; Poursat, M.-A. A note on BIC in mixed-effects models. Electron. J. Stat. 2014, 8, 456–475. [Google Scholar] [CrossRef] [Scilit]
- Friedman, J.; Hastie, T.; Tibshirani, R. Sparse inverse covariance estimation with the graphical lasso. Biostatistics 2008, 9, 432–441. [Google Scholar] [CrossRef] [Scilit]
- Williams, J.P.; Lu, Y. Covariance selection in the linear mixed effect model. In Proceedings of the 1st International Workshop on Feature Extraction: Modern Questions and Challenges at NIPS 2015; PMLR: Montreal, QC, Canada, 2015; Volume 44, pp. 277–291. [Google Scholar]
- Bates, D.; Mächler, M.; Bolker, B.; Walker, S. Fitting linear mixed-effects models using lme4. J. Stat. Softw. 2015, 67, 1–48. [Google Scholar] [CrossRef] [Scilit]
- Grunfeld, Y. The Determinants of Corporate Investment. Ph.D. Thesis, University of Chicago, Chicago, IL, USA, 1950. [Google Scholar]
- Kleiber, C.; Zeileis, A. The Grunfeld data at 50. Ger. Econ. Rev. 2010, 11, 404–417. [Google Scholar] [CrossRef] [Scilit]
- Croissant, Y.; Millo, G. Panel data econometrics in R: The plm package. J. Stat. Softw. 2008, 27, 1–43. [Google Scholar] [CrossRef] [Scilit]
- Cressie, N.; Lahiri, S.N. The asymptotic distribution of REML estimators. J. Multivar. Anal. 1993, 45, 217–233. [Google Scholar] [CrossRef] [Scilit]
- D’Alessandro, M.; Thoresen, M. Methods of selective inference for linear mixed models: A review and empirical comparison. Int. Stat. Rev. 2026; Early View. [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.