Tutorials › Multiple Imputation by Chained Equations (MICE) › Joint Modeling And Multilevel Chained Equations

Nested and Multilevel Data · Tutorial 360 of 497

Joint Modeling And Multilevel Chained Equations

Learn how joint modeling and fully conditional specification represent clustered data, what their assumptions imply, and how to choose between them.

Advanced 10 min read

What You'll Learn

  • Distinguish a joint multilevel model from a set of chained conditional models.
  • Interpret the covariance structure implied by a random-intercept joint model.
  • Check when Gaussian conditional regressions are compatible with one joint distribution.
  • Compare practical strengths and limitations for mixed-type clustered variables.
  • Diagnose model mismatch, sparse cluster information, and implausible imputations.

Two Ways to Represent Clustered Variables

When several variables are incomplete in clustered data, an imputation procedure must represent both their relationships with one another and their dependence within clusters. A joint model specifies a probability distribution for the variables together. Fully conditional specification (FCS), also called chained equations, instead specifies a conditional model for each incomplete variable given the others, then cycles through those models to update imputations. In either approach, ignoring clustering can distort both within-cluster relationships and uncertainty.

The choice is not simply between a “correct” and an “incorrect” method. A joint model offers a coherent probability model when its distributional assumptions are reasonable and it can represent the variables involved. FCS can accommodate different types of variables through different conditional models, but the collection of conditional models may not correspond to any single joint distribution. For clustered data, either approach also needs a defensible representation of cluster structure.

Definition: A joint model specifies a distribution for all variables being imputed, possibly conditional on fully observed predictors and cluster membership. Fully conditional specification specifies a separate conditional distribution for each incomplete variable given other variables and predictors, and iteratively draws from those distributions. A set of conditional models is compatible if there is at least one joint distribution whose conditional distributions are exactly the specified models.

For notation, let \(i=1,\ldots,m\) index clusters and \(j=1,\ldots,n_i\) index individuals within cluster \(i\). Cluster sizes \(n_i\) need not be equal. The word “multilevel” describes the dependence structure; it does not, by itself, identify a particular imputation algorithm.

A Joint Model and Its Implied Dependence

A simple joint model for a vector of continuous variables measured on each individual is a multivariate random-intercept model. Write the vector as \(Y_{ij}\), its population mean vector as \(\mu\), and the cluster-specific random vector as \(u_i\):

$$ Y_{ij}=\mu+u_i+\varepsilon_{ij}, \qquad u_i\sim N_p(0,T), \qquad \varepsilon_{ij}\sim N_p(0,S). $$

Here \(T\) is the between-cluster covariance matrix and \(S\) is the within-cluster residual covariance matrix. This specification assumes random effects and residual vectors are independent, clusters are independent of one another, and—conditional on \(u_i\)—individual residual vectors are independent with the same covariance \(S\). It also assumes the stated normal distributions and a common covariance structure across clusters. Additional predictors or more complex random effects may be needed in an application.

The model implies that two different individuals in the same cluster share covariance \(T\), while the covariance for two individuals in different clusters is zero under this model. For one individual, the marginal covariance is \(T+S\). These are implications of the model, not facts guaranteed by the mere presence of clusters. If observed data show markedly different cluster variances, non-normal variables, or dependence beyond the random intercept, this simple joint model may be inadequate.

Worked Example: Reading the Covariance Structure

Suppose two continuous outcomes, measured in hypothetical clinics, follow the random-intercept model above. Let the between-clinic and within-person covariance matrices be

$$ T= \begin{pmatrix} 1 & 0.6\\ 0.6 & 2 \end{pmatrix}, \qquad S= \begin{pmatrix} 4 & 1\\ 1 & 3 \end{pmatrix}. $$

For the same person, the marginal covariance matrix is

$$ T+S= \begin{pmatrix} 1+4 & 0.6+1\\ 0.6+1 & 2+3 \end{pmatrix} = \begin{pmatrix} 5 & 1.6\\ 1.6 & 5 \end{pmatrix}. $$

Thus each outcome has marginal variance \(5\), and the two outcomes for the same person have covariance \(1.6\). Their correlation is \(1.6/\sqrt{5\cdot5}=0.32\). For two different people in the same clinic, the covariance between their first outcomes is \(T_{11}=1\); their correlation for that outcome is \(1/\sqrt{5\cdot5}=0.20\). This calculation checks the model’s central implication: people from the same clinic are related through the shared random effect, even after accounting for individual residual variation. The interpretation depends on the assumed random-intercept structure and should be checked against the study design and observed data.

Compatibility: A Concrete Check

Compatibility matters because chained models are often described as though they necessarily define a single joint probability distribution. They need not. A useful small illustration comes from two jointly normal variables \(X\) and \(Y\), with variances \(\sigma_X^2\) and \(\sigma_Y^2\), covariance \(\sigma_{XY}\), and \(|\rho|<1\). Their conditional regression slopes are determined by the same covariance:

$$ b_{X\mid Y}=\frac{\sigma_{XY}}{\sigma_Y^2}, \qquad b_{Y\mid X}=\frac{\sigma_{XY}}{\sigma_X^2}. $$

The conditional residual variances are \(v_{X\mid Y}=\sigma_X^2-\sigma_{XY}^2/\sigma_Y^2\) and \(v_{Y\mid X}=\sigma_Y^2-\sigma_{XY}^2/\sigma_X^2\). These paired conditional models are compatible because both follow from the same bivariate normal distribution. Their slopes must satisfy the covariance identity below. It avoids dividing by a slope, which would fail when the covariance is zero.

$$ b_{X\mid Y}\sigma_Y^2 = b_{Y\mid X}\sigma_X^2 = \sigma_{XY}. $$

If \(\sigma_{XY}=0\), both slopes are zero; the identity remains valid. Compatibility in a multilevel setting is more demanding: the conditional models must also agree about cluster dependence, relevant predictors, and the distributions of random effects. In practice, a set of plausible conditional regressions is not automatically a compatible set.

Worked Example: Checking Two Gaussian Conditionals

For hypothetical continuous variables, suppose \(\sigma_X^2=4\), \(\sigma_Y^2=9\), and \(\sigma_{XY}=3\). The correlation is \(3/\sqrt{4\cdot9}=0.50\), which lies strictly between \(-1\) and \(1\), so a nondegenerate bivariate normal model is possible.

The conditional slopes implied by that model are

$$ b_{X\mid Y}=\frac{3}{9}=\frac{1}{3}, \qquad b_{Y\mid X}=\frac{3}{4}=0.75. $$

The covariance identity checks directly: \((1/3)(9)=3\) and \((0.75)(4)=3\). The conditional residual variances are \(4-3^2/9=3\) for \(X\) given \(Y\), and \(9-3^2/4=6.75\) for \(Y\) given \(X\). These values are positive, as required for nondegenerate conditional normal distributions. If instead \(\sigma_{XY}=0\), both slopes would be zero; the covariance identity still holds without forming a slope ratio. This example checks compatibility for a simple pair of Gaussian conditionals, not the more complicated compatibility of arbitrary multilevel FCS specifications.

How FCS Differs in Practice

In FCS, each incomplete variable is updated in turn from a model conditional on the other relevant variables. For clustered data, those conditional models must reflect the hierarchy in a way appropriate to the variable and the scientific analysis. The sequence of updates is an algorithm; it is not itself proof that the conditionals correspond to a coherent joint distribution. If they are incompatible, the procedure may still settle into a stable simulation behavior, but that behavior is not automatically the distribution intended by a joint model.

The attraction of FCS is flexibility. A conditional model can be chosen to suit a variable’s scale—for example, a continuous, binary, ordinal, nominal, or count variable—rather than forcing all variables into one multivariate normal distribution. That flexibility comes with a responsibility: examine whether each conditional model is sensible and whether the collection represents the important relationships needed for the analysis. The earlier material on multilevel imputation covers particular variable types and cluster structures; the present distinction is about how the models fit together.

A joint model can be attractive when a coherent distribution for all incomplete variables is scientifically defensible and can be estimated with adequate information. Its parameters and dependence assumptions are explicit. But a simple joint normal model may be awkward for mixed variable types, nonlinear relationships, or distinctive cluster structures. FCS may be more adaptable, but it can be harder to establish global coherence, and one poorly specified conditional model can affect multiple subsequent updates.

Worked Example: Choosing an Approach for Mixed Clinic Data

Consider a hypothetical study with 30 clinics and 20 patients per clinic. Three patient-level variables have missing values: a continuous laboratory measure, a binary outcome, and a three-category symptom rating. A clinic-level continuous measure is fully observed. The intended analysis uses the laboratory measure and symptom rating to estimate associations with the binary outcome.

A single multivariate normal joint model for all three patient-level variables would assign continuous support to the binary outcome and ordered categories; without an appropriate model for those variables, its implied imputations could be invalid. A joint model with distributions suitable for the different variable types may be an option if it is available and adequately represents the clinic dependence. FCS offers a direct way to use distinct conditional distributions for the laboratory measure, binary outcome, and categories, while including the clinic-level measure and cluster structure as required.

Suppose, however, that diagnostics show the observed symptom categories are almost perfectly separated by clinic, while the chosen conditional model assumes a common relationship across clinics and does not represent that structure. The fact that FCS allows a categorical conditional model does not fix this mismatch. The model would need reconsideration; a joint model that also fails to represent the separation would not solve it either. The practical choice is therefore conditional on model adequacy, not merely on whether the software labels an option “joint” or “chained.”

Assumptions, Diagnostics, and Failure Modes

Both approaches rely on assumptions about the missingness process and the observed-data models. For the usual multiple-imputation justification under missing at random, missingness may depend on observed information included in the imputation model, but not on the missing values themselves after conditioning on that information. The imputation model must also represent the distributions and dependencies relevant to the analysis. Proper imputation requires uncertainty in model parameters to be reflected, rather than treating fitted values as known. These conditions do not make one modeling strategy universally preferable.

In multilevel data, check whether the imputation model preserves cluster membership and represents the relevant between- and within-cluster variation. Compare observed and imputed distributions overall and by cluster; inspect cluster summaries, ranges, category frequencies, and relationships among variables. For FCS, examine convergence and stability across iterations, and check whether conditional models produce plausible values and preserve important associations. A stable trace is useful evidence about algorithmic behavior, but it does not prove compatibility or correct specification. For joint models, check fit of the assumed distributions and covariance structure, including whether the model allows the observed heterogeneity and variable types.

Common warning signs include imputations outside a variable’s allowable range, category frequencies that are implausible within clusters, a loss of observed associations, or estimates that change greatly under modestly different reasonable specifications. These are prompts to investigate, not automatic proof of a particular failure. The missingness assumptions cannot generally be verified from observed data alone, so substantive knowledge and sensitivity analysis remain important.

1
List the variables and hierarchy.
Identify which variables are incomplete, their measurement types, and whether each is measured at the individual or cluster level.
2
Specify the dependence needed.
Decide which within-cluster and between-cluster relationships must be represented for the planned analysis.
3
Compare model capacity with assumptions.
Assess whether a suitable joint distribution is available, or whether variable-specific FCS models are more practical and can represent the required structure.
4
Diagnose and qualify the result.
Check convergence, plausibility, and preservation of important relationships; report limitations and examine sensitivity to defensible alternatives.

Common Mistake and Practical Limits

Common mistake: “Each FCS regression looks reasonable, so together they must define a coherent joint model.” This conclusion does not follow. Conditional models can each be plausible in isolation yet be incompatible—for example, their slopes or variance assumptions may not be jointly attainable from one distribution. The correction is to distinguish a convenient iterative imputation algorithm from a fully specified joint probability model, and to assess compatibility where possible rather than assume it.

A second practical limit is information. A complex joint model may require more parameters than the observed clusters can support; highly flexible conditional models can also be unstable when cluster-specific information is sparse. Neither method automatically repairs weak identification, an unrepresented cluster structure, or departures from the missingness assumptions. The main alternative is not “always use the other method,” but to choose a simpler defensible model, improve the predictor set where possible, and assess sensitivity to plausible specifications.

Key takeaway: Joint modeling makes the joint distribution explicit; FCS makes a collection of conditional models explicit. For clustered data, judge either approach by whether its assumptions and dependence structure are credible for the variables, clusters, and analysis—not by its label alone.

Check Your Understanding

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

  1. In the random-intercept model, what covariance does \(T\) represent, and what is the marginal covariance for one individual?
  2. For a bivariate normal pair with \(\sigma_X^2=4\), \(\sigma_Y^2=9\), and \(\sigma_{XY}=0\), what are the two conditional regression slopes?
  3. Why does using a separate conditional model for each variable not establish that an FCS system is compatible?
  4. A study has continuous, binary, and nominal incomplete variables measured within clinics. Give one reason FCS may be attractive and one reason it still requires careful diagnosis.

Solutions. (1) \(T\) is the covariance of shared cluster effects, so it is the covariance between different individuals in the same cluster under this model; one individual’s marginal covariance is \(T+S\). (2) Both slopes are zero because \(b_{X\mid Y}=0/9=0\) and \(b_{Y\mid X}=0/4=0\); no slope ratio is needed. (3) Individually plausible conditionals may impose mutually inconsistent relationships and may not be the conditionals of any one joint distribution. (4) FCS can use variable-appropriate conditional distributions, but its models must still represent clinic dependence and produce plausible, stable imputations.

Clinical Biostats