Tutorials › Pattern-Mixture and Selection Models › Perturbing Covariates in the Selection Equation

Local Influence · Tutorial 157 of 499

Perturbing Covariates in the Selection Equation

Use local covariate perturbations in a selection model to assess how influential a subject’s selection covariate is, separately from changes to the observed outcome.

Advanced 11 min read

What You'll Learn

  • Define a subject-specific perturbation to a covariate used only in the selection equation.
  • Derive how the perturbation changes observed-data likelihood contributions for responding and nonresponding subjects.
  • Calculate local parameter sensitivity and a quadratic influence measure.
  • Distinguish selection-covariate perturbations from outcome perturbations and case deletion.
  • Check the assumptions, scaling choices, and diagnostics needed to interpret the result.

Why Perturb a Selection Covariate?

In a selection model, the probability that an outcome is observed may depend on the outcome itself and on measured covariates. A subject can therefore be influential because their observed outcome is unusual, because their covariate value strongly affects the modeled observation process, or both. A targeted covariate perturbation helps distinguish these sources: it changes the subject’s input to the selection equation while leaving their outcome measurement and the outcome model unchanged.

This is a local diagnostic, not a proposal to alter the recorded data. It asks how fitted estimates would respond to a small, explicitly defined change in the covariate value used by the selection model. The distinction matters when assessing whether conclusions are sensitive to a few covariate values rather than to the outcomes themselves.

Definition: Let \(R_i=1\) indicate that subject \(i\)'s outcome is observed and \(R_i=0\) that it is missing. Let \(Y_i\) be the outcome, \(X_i\) covariates in its outcome model, and \(Z_i\) covariates in its selection equation. A subject-specific selection-covariate perturbation replaces \(Z_i\) by \(Z_i(\omega_i)=Z_i+\omega_i d_i\), where \(d_i\) specifies a direction of change and \(\omega_i\) is a scalar perturbation. The outcome measurement and the outcome-model inputs \(X_i\) remain fixed.

For a continuous covariate, \(d_i\) can select one component or a meaningful direction in a vector of covariates. The size and units of \(\omega_i\) must be stated: for example, \(\omega_i=0.2\) might represent a change of 0.2 years of age if \(d_i\) selects age measured in years. An additive perturbation is not automatically meaningful for a categorical covariate; a relevant category contrast or other explicit coding is needed.

Selection Likelihood and the Perturbation

Consider a simple selection model with outcome density \(f(y_i\mid X_i;\beta)\) and response probability \(q_i(y_i,Z_i;\gamma)=P(R_i=1\mid Y_i=y_i,Z_i)\). For illustration, suppose the selection equation is logistic:

$$ q_i(y_i,Z_i;\gamma)=\operatorname{expit}(\eta_i),\qquad \eta_i=\alpha+\gamma_y y_i+\gamma_z^\mathsf{T}Z_i, \qquad \operatorname{expit}(u)=\frac{1}{1+\exp(-u)}. $$

Here \(\gamma_z\) is the vector of selection-equation coefficients for \(Z_i\). The observed-data likelihood contribution is \(f(y_i\mid X_i;\beta)q_i(y_i,Z_i;\gamma)\) when \(R_i=1\) and \(Y_i=y_i\) is observed. When \(R_i=0\), the outcome is unobserved, so the contribution is the integral of the outcome density times the probability of nonresponse:

$$ L_i= \begin{cases} f(y_i\mid X_i;\beta)q_i(y_i,Z_i;\gamma),&R_i=1,\\[4pt] \displaystyle\int f(y\mid X_i;\beta)\{1-q_i(y,Z_i;\gamma)\}\,dy,&R_i=0. \end{cases} $$

This likelihood form assumes that the outcome model and selection model together specify the joint distribution relevant to observation, and that the covariate being perturbed is available for the subject even when \(Y_i\) is missing. The fitted model must also be identifiable and sufficiently regular for its likelihood and derivatives to be calculated. The logistic equation is an example; the same diagnostic idea can be applied to other differentiable selection probabilities.

Suppose \(Z_i(\omega_i)=Z_i+\omega_i d_i\). Define \(c_i=\gamma_z^\mathsf{T}d_i\). Then the linear predictor changes by \(\omega_i c_i\). In particular, the perturbation does not change \(y_i\), \(f(y_i\mid X_i;\beta)\), or \(X_i\). For a responder, differentiating the log selection contribution at \(\omega_i=0\) gives \(\partial\log q_i/\partial\omega_i=c_i(1-q_i)\). For a nonresponder, the outcome is unobserved and must be integrated out; its derivative is not obtained by substituting an imputed outcome as though it were observed.

$$ \left.\frac{\partial\log L_i}{\partial\omega_i}\right|_{\omega_i=0} = \begin{cases} c_i(1-q_i(y_i,Z_i;\gamma)),&R_i=1,\\[6pt] \displaystyle -c_i \frac{\int f(y\mid X_i;\beta)q_i(y,Z_i;\gamma) \{1-q_i(y,Z_i;\gamma)\}\,dy} {\int f(y\mid X_i;\beta)\{1-q_i(y,Z_i;\gamma)\}\,dy},&R_i=0. \end{cases} $$

For a nonresponder, the ratio is the model-based expectation of \(q_i(Y_i,Z_i;\gamma)\) among outcomes weighted by their probability of nonresponse. Thus increasing a covariate that raises response probability generally lowers the nonresponse contribution to the likelihood. The derivative also shows that a covariate can have little local effect when its selection coefficient is near zero, even if its recorded value is large.

From a Covariate Change to Parameter Sensitivity

Let \(\ell(\theta;\omega)\) be the observed log likelihood under a vector of subject-specific perturbations \(\omega\), with \(\theta\) collecting the model parameters. Write \(\hat\theta\) for the maximum-likelihood estimate at \(\omega=0\). Define the observed information \(I=-\partial^2\ell/\partial\theta\partial\theta^\mathsf{T}\) at \((\hat\theta,0)\), and the mixed-derivative matrix \(\Delta=\partial^2\ell/\partial\theta\partial\omega^\mathsf{T}\) at the same point. If \(I\) is nonsingular and the perturbed maximum remains near the baseline maximum, implicit differentiation of the likelihood score equation gives the local parameter response.

$$ 0=\frac{d}{d\omega} \left.\frac{\partial\ell(\hat\theta_\omega;\omega)}{\partial\theta}\right|_{\omega=0} =-I\left.\frac{d\hat\theta_\omega}{d\omega^\mathsf{T}}\right|_{\omega=0}+\Delta, \qquad \left.\frac{d\hat\theta_\omega}{d\omega^\mathsf{T}}\right|_{\omega=0} =I^{-1}\Delta. $$

The first equality follows by differentiating the score, which is zero at the fitted estimate. The derivative with respect to \(\theta\) is the Hessian \(-I\); the derivative with respect to \(\omega\) is \(\Delta\). Solving the resulting linear equation yields the sensitivity matrix. For a prespecified perturbation direction \(v\), the approximate parameter change is \(I^{-1}\Delta v\) per unit of perturbation in that direction.

A useful scalar summary of the local change in fitted parameters, measured in the information metric, is \(C(v)=v^\mathsf{T}\Delta^\mathsf{T}I^{-1}\Delta v\). It is nonnegative when \(I\) is positive definite. It measures local parameter sensitivity for the chosen perturbation scale; it is not a probability, a test statistic with a universal reference distribution, or proof that a subject is erroneous. It is comparable across subjects only when their perturbation directions and scales have been made comparable.

Worked Example: A Responder’s Selection Probability

Suppose a hypothetical subject has observed outcome \(y=2\) and selection covariate \(z=1\). The fitted selection equation is \(\eta=-1+0.5y+0.8z\), with response probability \(q=\operatorname{expit}(\eta)\). Consider increasing \(z\) by \(0.25\), holding \(y\) fixed.

At baseline, \(\eta=-1+(0.5)(2)+(0.8)(1)=0.8\), so \(q=1/(1+\exp(-0.8))=0.6900\). After the perturbation, \(\eta_{\mathrm{new}}=-1+(0.5)(2)+(0.8)(1.25)=1.0\), and \(q_{\mathrm{new}}=1/(1+\exp(-1.0))=0.7311\). The modeled response probability rises by \(0.7311-0.6900=0.0411\), or 4.11 percentage points.

Because \(R=1\), the change in the log selection contribution is \(\log(0.7311)-\log(0.6900)\approx0.0578\). Equivalently, its local derivative is \(c(1-q)=(0.8)(1-0.6900)=0.2480\) per unit increase in \(z\), giving a first-order change of about \((0.2480)(0.25)=0.0620\). The difference between \(0.0620\) and the exact \(0.0578\) reflects the approximation over a finite perturbation. Neither calculation changes the observed outcome value of 2.

Worked Example: A Nonresponder and an Integrated Likelihood

Consider a hypothetical nonresponder with \(z=0\). Suppose the outcome model assigns probability \(1/2\) to each of \(y=0\) and \(y=2\), and the selection equation is \(\eta=-1+0.5y+0.8z\). Calculate the probability of nonresponse under the model at baseline and after increasing \(z\) by \(0.5\).

At baseline, the response probabilities for the two possible outcomes are \(\operatorname{expit}(-1)=0.2689\) and \(\operatorname{expit}(0)=0.5000\). The model-implied probability of nonresponse is therefore \((1/2)(1-0.2689)+(1/2)(1-0.5000)=0.6155\).

After changing \(z\) to \(0.5\), the linear predictor increases by \((0.8)(0.5)=0.4\). The response probabilities become \(\operatorname{expit}(-0.6)=0.3543\) and \(\operatorname{expit}(0.4)=0.5987\). The new nonresponse probability is \((1/2)(1-0.3543)+(1/2)(1-0.5987)=0.5235\).

Thus the nonresponse likelihood contribution changes from \(0.6155\) to \(0.5235\), and its log changes by \(\log(0.5235/0.6155)\approx-0.162\). This calculation integrates over the two possible outcomes; the missing outcome was not treated as observed or replaced by a single guessed value.

Worked Example: Local Sensitivity of a Parameter Contrast

Suppose a hypothetical fitted model has observed information and mixed-derivative vector \(I=\begin{pmatrix}4&1\\1&3\end{pmatrix}\) and \(\Delta=\begin{pmatrix}0.30\\-0.20\end{pmatrix}\) for one subject’s selection-covariate perturbation. Let the parameters be \(\theta=(\alpha,\delta)^\mathsf{T}\), and consider the contrast \(g(\theta)=\alpha+2\delta\). These values are assumed to be evaluated at the baseline fit.

The determinant of \(I\) is \(4(3)-1(1)=11\), so \(I^{-1}=(1/11)\begin{pmatrix}3&-1\\-1&4\end{pmatrix}\). The local parameter response per unit perturbation is \(I^{-1}\Delta=(1/11)\begin{pmatrix}3(0.30)-(-0.20)\\-(0.30)+4(-0.20)\end{pmatrix}=(0.1000,-0.1000)^\mathsf{T}\).

The contrast therefore changes locally at rate \(0.1000+2(-0.1000)=-0.1000\) contrast units per unit of perturbation. For a perturbation of \(0.5\), the first-order approximation to its change is \((0.5)(-0.1000)=-0.0500\). The quadratic sensitivity summary is \(C=\Delta^\mathsf{T}I^{-1}\Delta=(0.30)(0.1000)+(-0.20)(-0.1000)=0.0500\). This summary and the contrast derivative answer different questions: \(C\) measures parameter movement in the information metric, while the derivative reports movement in the particular contrast.

Diagnostics, Comparisons, and Limitations

A useful diagnostic begins by specifying exactly which selection covariate is perturbed, its direction \(d_i\), and the units of \(\omega_i\). Then inspect both the subject’s selection-probability change and the resulting parameter or contrast sensitivity. A large covariate value alone does not establish influence: the selection coefficient, fitted response probability, outcome-model integration for missing records, and information in the rest of the data all matter.

  • Check the model scale. A one-unit shift in age, a standardized age shift, and a one-unit change in a binary indicator are not interchangeable. Report the perturbation scale alongside any influence ranking.
  • Check the selection equation and data availability. The covariate must be defined for the subject whose response status is modeled. A value missing for that subject cannot be perturbed as though it were observed without making additional modeling choices.
  • Check local approximation. If a perturbation is not small, refit the model at several values and compare the actual changes with the derivative-based approximation. Large discrepancies indicate curvature or other nonlocal behavior.
  • Check fit and numerical stability. A nearly singular \(I\), unstable integration over missing outcomes, or poorly determined selection coefficients can make \(I^{-1}\Delta\) unreliable. Inspect convergence and sensitivity to integration accuracy before interpreting a large diagnostic.
  • Check the intended separation. If a covariate also appears in the outcome model, a selection-only perturbation deliberately holds its outcome-model role fixed. This isolates one model component; it is not equivalent to changing the subject’s actual recorded covariate everywhere.

This diagnostic differs from perturbing observed outcomes: that changes an outcome input for an observed record, whereas the present perturbation changes only a selection-equation covariate. It also differs from case deletion or a case-weight perturbation, which changes a subject’s contribution to the likelihood rather than changing the modeled selection predictor. The earlier material on observed-outcome perturbations treats the first of these distinct questions.

The result remains conditional on the selected model and its assumptions. A large local influence may flag sensitivity to a covariate value, but does not demonstrate that the value is incorrect or that the model is misspecified. Conversely, a small local derivative does not validate the selection equation, resolve weak identification, or guarantee robustness to a large change. Local derivatives can also depend strongly on parameterization and perturbation scale. For consequential findings, compare local approximations with actual refits over substantively plausible covariate changes and report the selection-only nature of the diagnostic.

Common pitfall: “This subject’s outcome is missing, so I will fill in a plausible outcome and perturb that value to measure covariate influence.” That changes the question and can incorrectly treat an unobserved outcome as known. For a selection-covariate diagnostic, keep the outcome unobserved and use its model-based integral in the nonresponse likelihood contribution.

Check Your Understanding

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

  1. In a logistic selection equation, a covariate has coefficient \(0.6\). What is the change in the linear predictor when that covariate is increased by \(0.2\), with all other inputs fixed?
  2. A nonresponder’s outcome has two equally likely values under the outcome model. Why is their likelihood contribution not generally the nonresponse probability evaluated at the average of those two outcomes?
  3. For \(I=\begin{pmatrix}2&0\\0&2\end{pmatrix}\) and \(\Delta=(0.2,0)^\mathsf{T}\), calculate \(I^{-1}\Delta\) and \(C=\Delta^\mathsf{T}I^{-1}\Delta\).
  4. Name two checks needed before interpreting a large local sensitivity as evidence that a covariate value deserves further investigation.

Solutions. (1) The linear predictor changes by \((0.6)(0.2)=0.12\). (2) The nonresponse contribution is the average of the nonresponse probabilities at the possible outcomes: \(\tfrac12\{1-q(y_1,z)\}+\tfrac12\{1-q(y_2,z)\}\). Because the logistic probability is nonlinear in the outcome, this is generally not equal to \(1-q((y_1+y_2)/2,z)\). (3) Since \(I^{-1}=\begin{pmatrix}0.5&0\\0&0.5\end{pmatrix}\), \(I^{-1}\Delta=(0.10,0)^\mathsf{T}\), and \(C=(0.2)(0.10)=0.0200\). (4) Examples include verifying the covariate’s units and perturbation scale, checking that the likelihood fit and information matrix are numerically stable, and comparing a local approximation with actual refits for plausible changes.

Clinical Biostats