Tutorials › Nonlinear Mixed-Effects Models (NLME) › Backward Elimination from a Covariate-Rich Model

Covariate Model Building Strategies · Tutorial 463 of 797

Backward Elimination from a Covariate-Rich Model

Learn to carry out and audit backward elimination in an NLME model while preserving valid likelihood comparisons and tracking how estimates change.

Intermediate 12 min read

What You'll Learn

  • Define the full and reduced NLME models used in a backward search.
  • Calculate and interpret likelihood-ratio statistics for proposed deletions.
  • Refit after each removal and document changes in likelihood and parameter estimates.
  • Check that nested models use the same data, likelihood, and estimation settings.
  • Recognize convergence, identifiability, and post-selection limitations.

Why Begin with a Covariate-Rich Model?

Backward elimination is a covariate-search strategy that starts with a prespecified model containing the candidate effects and then considers removing them. It can be useful when the candidate set is scientifically motivated and the full model is estimable. The key operation is not simply deleting a term from a formula: each proposed deletion is tested against the current model, and the reduced model is refitted before the next decision.

The method uses likelihood comparisons to ask whether the data support retaining an effect conditional on the other effects currently in the model. This makes the sequence important. Removing one covariate can change the estimates and the evidence for another. The search is therefore a model-building procedure, not a collection of independent tests of the original candidate effects.

Definition: Let \(M_F\) be the current, larger NLME model and \(M_R\) a proposed reduced model formed by removing one candidate effect or a prespecified block of effects. The models are nested when \(M_R\) is obtained by constraining parameters in \(M_F\), so every distribution allowed by \(M_R\) is also allowed by \(M_F\). Backward elimination compares these models, removes an effect according to a prespecified rule, and refits the resulting model before considering further deletions.

Conditions for a Valid Elimination Step

A typical NLME model specifies the distribution of observations \(Y_{ij}\) for subject \(i\) at occasion \(j\), with subject-level random effects such as \(\eta_i\). Covariates may enter parameters such as clearance. For example, the following expression defines a covariate model for individual clearance:

$$ CL_i = CL_{\mathrm{typ}}\exp\left\{\beta_{\mathrm{age}}\frac{\mathrm{age}_i-50}{10} +\beta_{\mathrm{WT}}\log\left(\frac{\mathrm{WT}_i}{70}\right) +\beta_{\mathrm{Alb}}\frac{\mathrm{Alb}_i-4}{1} +\eta_{CL,i}\right\}. $$

Here, \(CL_{\mathrm{typ}}\) is typical clearance, the \(\beta\) terms describe covariate effects, and \(\eta_{CL,i}\) is the individual random effect on log clearance. The example centers age at 50 years, weight at 70 kg, and albumin at 4 g/dL. A deletion test for age, for instance, compares the model with \(\beta_{\mathrm{age}}\) estimated to the nested model with \(\beta_{\mathrm{age}}=0\), while leaving the other terms in place.

For the likelihood-ratio test (LRT), the larger and reduced models must use the same observations, response model, random-effects structure, residual model, and likelihood definition. They should be fitted using the same estimation method and settings. Maximum likelihood fits are compared; likelihoods from different datasets or incompatible approximations do not form a valid LRT. In addition, the models must be nested, adequately identifiable, and fitted successfully. Under standard regularity conditions, the null parameter values are not on a boundary, and the sample is sufficiently informative, the LRT has an approximate chi-square distribution with degrees of freedom equal to the number of independent parameters constrained by the deletion.

A full model that is too complex for the available information may fail to converge or produce unstable estimates. Check covariate support, missingness, and collinearity before beginning; these affect whether the proposed full model can be fitted meaningfully. The candidate model and elimination rule should be specified in advance. In particular, retain lower-order terms when required by a model hierarchy—for example, do not remove a main effect while retaining an interaction that includes it.

The Likelihood-Ratio Calculation

Write \(\ell(M)\) for the maximized log likelihood of model \(M\). Since the larger model can reproduce the reduced model by satisfying its constraints, its maximized log likelihood cannot be smaller than that of the reduced model, apart from numerical fitting error. The likelihood ratio compares the likelihoods of the two fits:

$$ \Lambda = \frac{L(M_R)}{L(M_F)}, \qquad -2\log(\Lambda)=2\{\ell(M_F)-\ell(M_R)\}. $$

The statistic is large when the reduced model fits substantially worse. Under the null hypothesis that the deleted parameter or block is unnecessary, its approximate reference distribution is \(\chi^2_{df}\), where \(df\) is the number of constraints. A small p-value is evidence against deleting that effect under the specified test; a larger p-value means the data did not provide strong evidence against the reduced model. It does not establish that the effect is exactly zero.

The derivation follows directly from the likelihood ratio. For a nested pair, the null model is the reduced model and the alternative is the larger model. The likelihood-ratio statistic is \(-2\log\{L(M_R)/L(M_F)\}\). Substituting \(\log L(M)=\ell(M)\) gives \(2\{\ell(M_F)-\ell(M_R)\}\). Under the regularity conditions above, this statistic is approximately chi-square under the null, with one degree of freedom for one constrained coefficient, or more for a block of coefficients.

Worked Search: One Effect Removed at a Time

Worked Example: Tracking a Three-Covariate Search

Hypothetical data. A pharmacometrician fits a clearance model to 240 subjects with age, weight, and albumin as candidate fixed effects. The subject data and all non-covariate model components remain unchanged at every step. For illustration, the prespecified elimination rule is to remove an effect when its current deletion test has \(p>0.05\). This cutoff is an example of a decision rule, not a general recommendation.

The full model has \(\ell=-812.4\). First, fit each one-effect deletion from that model:

  • Remove age: \(\ell=-813.0\), so \(LR=2\{(-812.4)-(-813.0)\}=1.2\), with \(df=1\) and \(p\approx0.273\).
  • Remove weight: \(\ell=-813.6\), so \(LR=2\{(-812.4)-(-813.6)\}=2.4\), with \(df=1\) and \(p\approx0.121\).
  • Remove albumin: \(\ell=-817.0\), so \(LR=2\{(-812.4)-(-817.0)\}=9.2\), with \(df=1\) and \(p\approx0.0024\).

Age has the largest p-value and is removed first under the stated rule. The model containing weight and albumin is refitted; its log likelihood is \(-813.0\). Now compare each remaining deletion with this current model:

  • Remove weight, leaving albumin: \(\ell=-814.2\), \(LR=2\{(-813.0)-(-814.2)\}=2.4\), \(df=1\), \(p\approx0.121\).
  • Remove albumin, leaving weight: \(\ell=-816.2\), \(LR=2\{(-813.0)-(-816.2)\}=6.4\), \(df=1\), \(p\approx0.0114\).

Weight is removed, and the albumin-only model is refitted with \(\ell=-814.2\). Removing albumin now gives an intercept-only model with \(\ell=-817.0\). Thus \(LR=2\{(-814.2)-(-817.0)\}=5.6\), with \(df=1\) and \(p\approx0.018\). Under the illustrative rule, albumin remains, and the search stops.

The estimates should be recorded along with the likelihoods. For example, suppose the full-model estimates are \(\hat\beta_{\mathrm{age}}=0.018\) per decade, \(\hat\beta_{\mathrm{WT}}=0.32\) per unit increase in \(\log(\mathrm{WT}/70)\), and \(\hat\beta_{\mathrm{Alb}}=0.24\) per g/dL. After age is removed, suppose refitting gives \(\hat\beta_{\mathrm{WT}}=0.28\) and \(\hat\beta_{\mathrm{Alb}}=0.21\); in the final albumin-only model, suppose \(\hat\beta_{\mathrm{Alb}}=0.19\) per g/dL. These hypothetical values illustrate that estimates can change as terms are removed. The remaining coefficient is a conditional model estimate; it should not be described as a causal effect solely because it survived the search.

Deleting Effects as Blocks

A covariate effect may require more than one coefficient. If a categorical predictor has several levels, for example, its representation may use multiple coefficients relative to a reference level. If the scientific question concerns the predictor as a whole, its deletion is a block constraint: remove all its associated coefficients together and use the corresponding difference in parameter count for \(df\). Testing or removing only one coefficient at a time answers a different question and can leave an incoherent representation of the effect.

Worked Example: Comparing a Two-Coefficient Effect

Hypothetical data. A full model for 180 subjects has a log likelihood of \(-430.7\) and includes a three-level diagnostic category represented by two coefficients. The reduced model removes both coefficients and has a log likelihood of \(-432.9\), with all other model components and data held fixed.

The models are nested and the two constraints are jointly tested. The statistic is \(LR=2\{(-430.7)-(-432.9)\}=4.4\), with \(df=2\). The chi-square tail probability is approximately \(p=0.111\). Under a prespecified \(0.05\) deletion rule, this block would be removed at this step. This result concerns the joint contribution of the category in this model; it does not show that each individual contrast is zero.

Audit the Comparisons and the Search Record

A useful search record includes the current model, the effect tested for deletion, the reduced-model log likelihood, the LRT statistic, degrees of freedom, p-value, the decision, and the estimates after refitting. Recording estimates is not optional bookkeeping: it reveals whether the remaining effects are stable or shift substantially as other terms disappear.

Worked Example: Correcting a Mismatched-Data Comparison

Hypothetical data. A full model fitted to 180 subjects has \(\ell=-512.0\). A reduced fit has \(\ell=-514.1\), but it used only 174 subjects because a covariate was missing for six subjects. A superficial calculation gives \(LR=2\{(-512.0)-(-514.1)\}=4.2\), and a one-degree-of-freedom chi-square reference gives \(p\approx0.0404\). This is not a valid deletion test: the likelihoods summarize different observations.

Refit both models on the same 174 subjects. Suppose the common-data full model has \(\ell=-499.8\) and the reduced model has \(\ell=-502.0\). Now \(LR=2\{(-499.8)-(-502.0)\}=4.4\), with \(df=1\) and \(p\approx0.036\). The corrected comparison provides evidence against the deletion under a \(0.05\) rule. The decision happens to match the superficial calculation, but only the common-data comparison is interpretable as an LRT.

For each fit, check convergence status, parameter estimates and standard errors, and whether the likelihood is plausible relative to the nested fit. A reduced model with a larger maximized likelihood than its parent usually signals an optimization problem, mismatched settings, or a coding error; it is not a reason to reverse the LRT formula. If a model does not converge or an estimate is effectively unidentifiable, treat the deletion comparison as unresolved until the cause is addressed. Do not turn a failed fit into evidence for removing the term.

How Backward Elimination Differs—and What It Cannot Establish

Forward inclusion starts with a simpler model and adds candidate effects; backward elimination starts with a covariate-rich model and considers deletions. Both can use nested likelihood comparisons, but they may reach different final models because each step conditions on the effects currently present. Backward elimination also depends on being able to fit its starting model. If the full model is unsupported by the data, a forward strategy may be more feasible, though it has its own limitations. A prespecified full model and a scientifically justified candidate set matter more than treating either search direction as an automatic discovery procedure.

The deletion p-values are conditional on the current model and the path taken to reach it. Repeatedly selecting and testing on the same data does not preserve the simple interpretation of a single prespecified test at its nominal error rate. The final model should therefore be reported as selected by a search, with the candidate set, rule, and sequence documented. A retained effect is not necessarily important in every scientific sense; a removed effect is not proven irrelevant. External knowledge, parameter uncertainty, model adequacy, and predictive performance remain part of model evaluation.

A common mistake is to test every deletion once in the full model and then remove all terms with large p-values simultaneously. This skips refitting and can produce a different sequence and final model, because the effect estimates and likelihood contrasts change after each deletion. The correction is to remove the selected effect, refit, and recompute every remaining comparison against that updated model. Another pitfall is to read a nonsignificant deletion test as proof that the covariate has no effect. It means only that the current data and model did not provide sufficiently strong evidence against the reduced model under the chosen rule.

Key takeaway: Backward elimination is a sequential, conditional search. At each step, compare a current model with one nested deletion using a valid common-data likelihood, apply the prespecified rule, refit, and record both likelihood and estimate changes.

Check Your Understanding

Answer each question, then check the solutions below.

  1. A current model has log likelihood \(-300.0\). Deleting one coefficient gives \(-302.0\). Calculate the LRT statistic and state the degrees of freedom.
  2. Why must the reduced model be compared with the current model rather than always with the original full model?
  3. A three-level factor is represented by two coefficients. What degrees of freedom are used when deleting the whole factor as one block?
  4. What should be done if a reduced-model fit does not converge?

Solutions. (1) \(LR=2\{(-300.0)-(-302.0)\}=4.0\), with \(df=1\). (2) Each decision changes the current model; estimates and the conditional likelihood comparison for remaining effects can change after refitting. (3) Use \(df=2\), because deleting the block imposes two independent parameter constraints. (4) Do not interpret a p-value from a failed fit. Investigate convergence, identifiability, and implementation, then obtain valid comparable fits or mark the deletion unresolved.