Tutorials › Multiple Imputation by Chained Equations (MICE) › SMC-FCS for Product Terms in Regression

Passive Imputation and Substantive-Model-Compatible Methods · Tutorial 320 of 497

SMC-FCS for Product Terms in Regression

Learn how the substantive interaction changes the conditional distribution used to impute an incomplete covariate, and how to preserve the product term in each completed data set.

Advanced 12 min read

What You'll Learn

  • Write the substantive regression mean as a function of the incomplete covariate and the observed interacting covariate.
  • Derive the SMC-FCS conditional density for a missing covariate under a normal linear model.
  • Calculate conditional means and variances for concrete product-term examples.
  • Distinguish imputing a covariate from passively recalculating its product term.
  • Check key assumptions and identify signs that the interaction-aware imputation is failing.

Why a Product Term Changes the Imputation

Suppose a regression relates an outcome to an incomplete covariate \(X\), an observed covariate \(Z\), and their product \(XZ\). The interaction means that the association between \(X\) and the outcome depends on \(Z\). Consequently, the information about a missing \(X\) supplied by the observed outcome also depends on \(Z\). An imputation model that does not respect this structure can draw plausible values of \(X\) while failing to preserve the substantive regression relationship.

A passive product term is still needed: after imputing \(X\), calculate \(XZ\) from the completed \(X\) and observed \(Z\). But recalculating the product does not by itself determine a suitable distribution for missing \(X\). SMC-FCS addresses that second problem by constructing the covariate draw so it is compatible with the specified substantive model. The focus here is the case of one incomplete continuous covariate and one observed interacting covariate in a linear regression.

Definition: Let the substantive model for a continuous outcome \(Y\) be \(Y\mid X,Z\sim N(c(Z)+a(Z)X,\sigma^2)\), where \(c(Z)=\beta_0+\beta_ZZ\) and \(a(Z)=\beta_X+\beta_{XZ}Z\). The coefficient \(\beta_{XZ}\) multiplies the product \(XZ\). If the covariate model is \(X\mid Z\sim N(\mu_X(Z),\tau^2)\), the SMC-FCS target density for a missing \(X\), conditional on observed \(Y=y,Z=z\), is proportional to the product of the covariate density and the substantive outcome likelihood: \(f(x\mid z,y)\propto f(y\mid x,z)f(x\mid z)\).

The proportionality is with respect to \(x\); its normalizing constant makes the density integrate to one. This expression is the conditional distribution used to generate a missing covariate value under the two stated models. It is not enough to draw from \(f(x\mid z)\) alone, because that omits the outcome information, nor is it enough to choose a separate imputation model without considering the substantive likelihood.

Deriving the Interaction-Aware Conditional Distribution

For the normal models in the definition, the target density can be calculated exactly. Write \(c(z)=\beta_0+\beta_Zz\), \(a(z)=\beta_X+\beta_{XZ}z\), and \(\mu_X(z)\) for the mean of \(X\mid Z=z\). Ignoring terms that do not depend on \(x\), the log target density is

$$ -\frac{1}{2}\left\{\frac{(x-\mu_X(z))^2}{\tau^2} +\frac{(y-c(z)-a(z)x)^2}{\sigma^2}\right\}. $$

Collecting the terms involving \(x^2\) and \(x\) gives a quadratic kernel. Completing the square shows that the conditional distribution is normal. Its variance is the reciprocal of the coefficient multiplying \(x^2\) in the corresponding precision form, and its mean is that variance times the coefficient of \(x\):

$$ X\mid Y=y,Z=z\sim N\left(m(z,y),V(z)\right), \qquad V(z)=\left(\frac{1}{\tau^2}+\frac{a(z)^2}{\sigma^2}\right)^{-1}, $$
$$ m(z,y)=V(z)\left\{\frac{\mu_X(z)}{\tau^2} +\frac{a(z)\{y-c(z)\}}{\sigma^2}\right\}. $$

The calculation makes the interaction’s role explicit: \(a(z)=\beta_X+\beta_{XZ}z\) is the outcome slope for \(X\) at the observed value \(z\). It affects both the conditional mean and the conditional variance of the imputed \(X\). If \(a(z)\) is near zero, the outcome contributes relatively little information about \(X\); if its magnitude is large, the outcome likelihood is more informative, all else equal.

Worked Example: Calculating a Conditional Draw

Consider a hypothetical model with \(c(z)=1+0.5z\), \(a(z)=0.8+0.6z\), and \(\sigma^2=4\). Suppose the covariate model is \(X\mid Z=z\sim N(1+0.25z,1.5)\). For a record with missing \(X\), observed \(z=2\), and observed \(y=8\), calculate the target conditional mean and variance.

At \(z=2\), the outcome intercept contribution is \(c(2)=1+0.5(2)=2\), and the \(X\) slope is \(a(2)=0.8+0.6(2)=2.0\). The covariate-model mean is \(\mu_X(2)=1+0.25(2)=1.5\). Therefore,

$$ V(2)=\left(\frac{1}{1.5}+\frac{2.0^2}{4}\right)^{-1} =(0.6667+1.000)^{-1}=0.6000. $$

The conditional mean is

$$ m(2,8)=0.6000\left\{\frac{1.5}{1.5} +\frac{2.0(8-2)}{4}\right\} =0.6000(1+3)=2.400. $$

Thus the target distribution is \(X\mid y=8,z=2\sim N(2.400,0.6000)\), with conditional standard deviation \(\sqrt{0.6000}=0.7746\). An imputation is a draw from this distribution, not simply its mean. The calculation assumes the specified normal covariate and outcome models and uses their parameters as fixed for this derivation.

What the Interaction Does to the Draw

The interaction affects more than the derived column that will eventually be analyzed. It changes how much a particular observed outcome should shift the imputed \(X\). The next calculation isolates that effect. Suppose \(X\mid Z\sim N(0,1)\), and the hypothetical substantive model is \(Y=(1+Z)X+\epsilon\), where \(\epsilon\sim N(0,1)\). This model has an \(X\) main effect of 1, a product coefficient of 1, and no intercept or \(Z\) main effect.

Worked Example: Comparing Two Values of the Observed Covariate

For a record with \(y=2\), find the conditional distributions at \(z=0\) and \(z=1\). At \(z=0\), \(c(0)=0\), \(a(0)=1\), \(\mu_X(0)=0\), and both variances are 1. Hence

$$ V(0)=\left(1+1^2\right)^{-1}=0.5000,\qquad m(0,2)=0.5000\{0+1(2)\}=1.000. $$

At \(z=1\), the interaction changes the slope to \(a(1)=1+1=2\). The conditional variance and mean become

$$ V(1)=\left(1+2^2\right)^{-1}=0.2000,\qquad m(1,2)=0.2000\{0+2(2)\}=0.8000. $$

The resulting distributions are \(N(1.000,0.5000)\) at \(z=0\) and \(N(0.8000,0.2000)\) at \(z=1\). Both use the same observed outcome, but the interaction changes how that outcome informs \(X\). In particular, the second distribution is more concentrated because the outcome slope for \(X\) is larger. This dependence on \(z\) is exactly what an interaction-aware covariate draw must retain.

The calculation assumes the outcome model has the stated linear mean and constant residual variance, and that the normal covariate model is appropriate at both values of \(Z\). In applications, the conditional distributions may need to be checked over the observed range of \(Z\); a formula can be evaluated even where the data provide little support, but such extrapolation is not made reliable by the formula.

Generating the Product in Each Completed Data Set

SMC-FCS imputes the incomplete covariate, not an independently varying copy of the interaction term. Once a missing \(X\) has been drawn, the product is determined by the completed \(X\) and the observed \(Z\). Keeping this distinction prevents a completed data set from containing a product value inconsistent with its own covariates.

Worked Example: Recalculating the Passive Product

Use a hypothetical model with \(c(z)=1+0.2z\), \(a(z)=0.5+0.4z\), \(\sigma^2=2\), and \(X\mid Z=z\sim N(0.3+0.1z,0.8)\). For a record with \(z=1.5\), \(y=4\), and missing \(X\), first find the target distribution.

The component values are \(c(1.5)=1.3\), \(a(1.5)=1.1\), and \(\mu_X(1.5)=0.45\). Thus

$$ V(1.5)=\left(\frac{1}{0.8}+\frac{1.1^2}{2}\right)^{-1} =(1.250+0.6050)^{-1}=0.5391, $$
$$ m(1.5,4)=0.5391\left\{\frac{0.45}{0.8} +\frac{1.1(4-1.3)}{2}\right\} =0.5391(0.5625+1.485)=1.104. $$

Suppose one random draw from this target distribution is \(X=1.30\). The passive product for this completed record is then \(XZ=1.30(1.5)=1.950\). The value 1.104 is the conditional mean, not the imputed value, and \(1.950\) is calculated from the actual draw, not from the conditional mean.

The row’s product must be refreshed whenever \(X\) changes. For rows where \(X\) was observed, its observed value remains unchanged and the product is still computed from that value and \(Z\). This procedure maintains the deterministic identity \(XZ=X\times Z\) in every completed data set.

Assumptions, Diagnostics, and Alternatives

The derivation depends on a model for the outcome conditional on the covariates and a model for the incomplete covariate conditional on the observed covariates. In the worked normal case, these models specify a linear mean for \(Y\), normally distributed errors with variance \(\sigma^2\), and a normal conditional distribution for \(X\) with variance \(\tau^2\). The simplified setup also assumes independent records. In practice, the substantive model, covariate model, and any additional predictors needed to make the missingness assumption plausible must be chosen for the application.

The missingness mechanism is commonly assumed to be missing at random conditional on variables included in the analysis or imputation process, together with distinct model parameters. SMC-FCS does not make this assumption true; it works under the specified missingness and model assumptions. If important predictors of missingness or of \(X\) are omitted, or if the outcome mean, error distribution, or covariate distribution is badly misspecified, the resulting imputations can still be biased or poorly calibrated. There must also be adequate data support across relevant combinations of \(X\) and \(Z\); an interaction estimated in a sparse region can be unstable.

In an actual iterative procedure, model parameters are not generally known. They are estimated or drawn as part of the imputation process so that uncertainty in those parameters is represented across completed data sets. The formulas above show the covariate update conditional on specified parameter values; repeatedly inserting a single set of fitted values and using only conditional means would not provide proper stochastic imputations.

ApproachWhat it doesImportant distinction for an interaction
Passive product constructionCalculates \(XZ\) after \(X\) is available.Ensures the product identity, but does not by itself specify how missing \(X\) is drawn.
Conventional FCS imputationDraws a missing covariate from a specified conditional imputation model.Its conditional model may not be compatible with the substantive interaction model.
SMC-FCSCombines the covariate model with the substantive likelihood to form the target conditional density.The interaction changes the outcome slope \(a(z)\), which enters the covariate draw.

Useful diagnostics include checking that the product is exactly the product of the completed variables, inspecting the distribution of imputed \(X\) across values of \(Z\), and comparing observed and imputed covariate distributions where comparisons are informative. Also examine whether conditional draws are implausible, concentrated at limits, or unusually variable in regions with little data. These checks can reveal coding errors, poor covariate-model fit, or inadequate overlap. They do not prove that the models are correct, especially because missing values cannot be directly checked against their unobserved truth.

A common mistake is to reason, “I have passively recalculated \(XZ\), so the imputation preserves the interaction.” Recalculation preserves the algebraic identity, but it does not make the distribution of \(X\) conditional on \(Y\) and \(Z\) agree with the substantive model. The correction is to use the substantive likelihood when forming the conditional target for missing \(X\), then recalculate \(XZ\) from each resulting draw. Another mistake is to treat the conditional mean as the imputed value; doing so suppresses individual-level imputation variation and fails to represent uncertainty.

The normal closed-form update is convenient but limited to its stated model structure. It should not be carried over unchanged when the outcome model has a nonlinear effect, a non-normal outcome, a categorical incomplete covariate, or several incomplete covariates. Those settings require appropriate substantive and covariate models and may require a different method for drawing from the target distribution. The central principle remains: the conditional draw for an incomplete covariate must reflect the substantive model, and every deterministic product must be regenerated from the completed inputs.

Check Your Understanding

Try each problem, then compare your reasoning with the solutions below.

  1. In a linear substantive model containing \(X\), \(Z\), and \(XZ\), what is the slope of \(X\) at a fixed value \(Z=z\)?
  2. Suppose \(\mu_X(z)=1\), \(\tau^2=2\), \(a(z)=1.5\), \(c(z)=0.5\), \(y=2.5\), and \(\sigma^2=3\). Calculate the target conditional variance and mean for missing \(X\).
  3. Why is passively calculating \(XZ\) after imputing \(X\) not, by itself, sufficient to preserve the substantive interaction?
  4. If a stochastic draw for a record is \(X=0.8\) and the observed value is \(Z=2.5\), what product should be entered in that completed data set?

Solutions. (1) The slope is \(a(z)=\beta_X+\beta_{XZ}z\), because the terms involving \(X\) in the regression mean are \(\beta_XX+\beta_{XZ}XZ=(\beta_X+\beta_{XZ}z)X\). (2) \(V=(1/2+1.5^2/3)^{-1}=(0.5000+0.7500)^{-1}=0.8000\). Then \(m=0.8000\{1/2+1.5(2.5-0.5)/3\}=0.8000(0.5000+1.000)=1.200\). (3) Recalculation ensures the product agrees with the completed \(X\) and \(Z\), but does not ensure that missing \(X\) was drawn from a distribution that incorporates the substantive outcome likelihood and interaction. (4) The product is \(XZ=0.8(2.5)=2.000\).

Clinical Biostats