Tutorials › Pattern-Mixture and Selection Models › Perturbing Subject-Specific Selection Probabilities

Local Influence · Tutorial 161 of 499

Perturbing Subject-Specific Selection Probabilities

You will learn to calculate how small, subject-level changes to selection log-odds locally move fitted outcome and response parameters, and why that diagnostic differs from case weighting.

Advanced 12 min read

What You'll Learn

  • Define a subject-specific offset to a selection model’s response log-odds.
  • Derive the local change in fitted parameters from the likelihood’s curvature and offset cross-derivative.
  • Interpret sensitivity in both outcome-parameter and response-parameter coordinates.
  • Work with observed-data likelihoods that integrate over missing outcomes.
  • Distinguish selection-log-odds perturbations from case-weight and covariate perturbations.
  • Identify diagnostics and limitations of a local sensitivity calculation.

Why Perturb Selection Log-Odds?

In a selection model, the probability that an outcome is observed can depend on the outcome itself. A subject whose outcome is unusual may therefore have a different chance of being observed than a subject with an otherwise similar history. A small, subject-specific change to the selection log-odds asks a focused diagnostic question: how would the fitted outcome and response parameters move if the model assigned this subject slightly different response odds?

This is not the same question as what happens when a subject receives less weight in the likelihood. An offset changes a specified part of the response mechanism. Case weighting changes the subject’s whole likelihood contribution. The distinction matters especially in a selection model, where the response mechanism and outcome distribution are linked through the likelihood.

Define the Perturbation in the Selection Model

Let \(Y_i\) denote subject \(i\)'s outcome history and \(R_i\) its response or observation pattern. Write \(\beta\) for outcome-model parameters and \(\gamma\) for response-model parameters; let \(\theta=(\beta^\mathsf{T},\gamma^\mathsf{T})^\mathsf{T}\) collect the fitted parameters. For a response indicator \(R_{ij}\) at occasion \(j\), a selection-model logit may be written

$$ \operatorname{logit} P(R_{ij}=1\mid Y_i,\text{history}) = \eta_{ij}(\beta,\gamma;Y_i). $$

Here \(R_{ij}=1\) means that the outcome is observed. A subject-level offset \(\omega_i\) adds a constant to the log-odds for the response events specified in advance. For example, if the offset applies to all relevant occasions for subject \(i\),

$$ \operatorname{logit} P(R_{ij}=1\mid Y_i,\text{history};\omega_i) = \eta_{ij}(\beta,\gamma;Y_i)+\omega_i. $$

Thus, a positive \(\omega_i\) raises the conditional log-odds of response by \(\omega_i\), holding the other model inputs fixed. It multiplies the odds by \(e^{\omega_i}\); it does not add \(\omega_i\) to the response probability. If the model instead defines the event as dropout, the sign interpretation reverses. The event and the occasions affected by an offset must be stated explicitly.

Definition: A subject-specific selection-probability perturbation is an additive offset \(\omega_i\) to the specified response log-odds for subject \(i\), with the fitted model recovered at \(\omega_i=0\). Its local parameter sensitivity is the derivative of the refitted parameter vector with respect to \(\omega_i\), evaluated at zero.

For incomplete outcomes, the likelihood contribution is an observed-data contribution, not a likelihood that treats missing outcomes as observed. In a general selection model it has the form

$$ L_i(\theta;\omega_i) = \int f(Y_i;\beta) \,P(R_i\mid Y_i;\gamma,\omega_i)\, dY_{i,\mathrm{mis}}, \qquad \ell(\theta;\omega)=\sum_i \log L_i(\theta;\omega_i). $$

The integral is over the missing components of \(Y_i\), with the observed components fixed at their recorded values. The model must define the outcome distribution and response mechanism, and the integral or its numerical approximation must be well defined. A local derivative further requires a differentiable likelihood and a locally identifiable, interior fitted solution with nonsingular observed information. If the response model has boundary estimates, the fit is not locally regular, or the Hessian is singular, the usual derivative may not exist or may be unstable.

Deriving the Local Parameter Change

Let \(\hat\theta(\omega)\) be the maximum-likelihood estimate under the offsets, and let \(U(\theta,\omega)=\partial\ell(\theta;\omega)/\partial\theta\) be the score vector. At an interior maximum, \(U(\hat\theta(\omega),\omega)=0\). Differentiate this equation with respect to one offset \(\omega_i\), then evaluate at the unperturbed fit \(\hat\theta=\hat\theta(0)\). Define \(H=\partial^2\ell/\partial\theta\partial\theta^\mathsf{T}\) and \(c_i=\partial^2\ell/\partial\theta\partial\omega_i\), both evaluated at \((\hat\theta,0)\). The chain rule gives

$$ H\frac{\partial\hat\theta}{\partial\omega_i}+c_i=0. $$

If the observed information \(J=-H\) is nonsingular, solving this equation yields the local influence direction:

$$ \frac{\partial\hat\theta}{\partial\omega_i} = -H^{-1}c_i = J^{-1}c_i. $$

This is a derivative, so for a sufficiently small change \(\delta\), the first-order approximation is \(\hat\theta(\delta)-\hat\theta(0)\approx\delta J^{-1}c_i\). The formula separates two ingredients: the offset’s effect on the score, \(c_i\), and the fitted likelihood’s curvature, represented by \(J^{-1}\). Since \(\theta\) includes both \(\beta\) and \(\gamma\), the resulting vector reports local changes in both outcome and response parameters.

A useful justification of the cross-derivative comes from the complete-outcome response contribution. For a single Bernoulli response event with logit \(\eta=x^\mathsf{T}\gamma+\omega_i\), its log-likelihood is \(r\eta-\log(1+e^\eta)\), and its score for \(\gamma\) is \(x(r-\pi)\), where \(\pi=\operatorname{expit}(\eta)\). Differentiating that score with respect to the offset gives

$$ \frac{\partial}{\partial\omega_i}\{x(r-\pi)\} = -x\pi(1-\pi). $$

This direct response-score change can be nonzero even when the offset has no direct derivative in the outcome score. Nevertheless, the outcome-parameter estimate can move because \(J^{-1}\) reflects dependence between the fitted parameters. With missing outcomes, the observed-data cross-derivative must be computed from the integrated likelihood; it is not generally obtained by simply substituting unobserved outcomes into the complete-data expression.

Worked Example: A Direct Response-Parameter Sensitivity

Consider a hypothetical response-only logistic model with an intercept \(\gamma\), 10 independent subjects, and 6 observed responses. At the unperturbed fit, all subjects have the same fitted response probability. The fitted intercept satisfies \(10\hat\pi=6\), so \(\hat\pi=0.6\) and \(\hat\gamma=\log(0.6/0.4)=0.4055\). Suppose a small offset is applied to the response log-odds of subject 1 only.

The score for \(\gamma\) is \(\sum_{k=1}^{10}(r_k-\pi_k)\). At zero offset, its derivative with respect to \(\gamma\) is \(-10\hat\pi(1-\hat\pi)=-10(0.6)(0.4)=-2.4\), so the observed information is \(J=2.4\). The offset affects only subject 1's fitted probability, giving the score cross-derivative \(c_1=-\hat\pi(1-\hat\pi)=-(0.6)(0.4)=-0.24\). Therefore,

$$ \frac{\partial\hat\gamma}{\partial\omega_1} =J^{-1}c_1 =\frac{-0.24}{2.4} =-0.1000. $$

A positive offset of \(0.05\) log-odds units therefore gives the first-order change \(\Delta\hat\gamma\approx(0.05)(-0.1000)=-0.0050\). The fitted intercept decreases because, when one subject’s response probability is raised directly, the common intercept must decrease slightly to maintain the observed total of 6 responses. This example isolates the response component; it does not estimate an outcome parameter.

Worked Example: An Offset Moves Both Outcome and Response Estimates

Suppose a hypothetical joint selection-model fit has parameter vector \(\theta=(\beta,\gamma)^\mathsf{T}\), where \(\beta\) is measured in outcome units and \(\gamma\) is a response log-odds coefficient. At the fitted model, numerical differentiation of the observed-data log-likelihood gives

$$ J= \begin{pmatrix} 4 & 1\\ 1 & 3 \end{pmatrix}, \qquad c_i= \begin{pmatrix} 0\\ -0.8 \end{pmatrix}. $$

The zero in the first coordinate means that the offset has no direct outcome-score cross-derivative in this calculation. It does not imply that the fitted outcome parameter cannot move. The determinant of \(J\) is \(4(3)-1(1)=11\), so \(J\) is nonsingular, and

$$ J^{-1} = \frac{1}{11} \begin{pmatrix} 3 & -1\\ -1 & 4 \end{pmatrix}, \qquad \frac{\partial\hat\theta}{\partial\omega_i} =J^{-1}c_i = \frac{1}{11} \begin{pmatrix} 0.8\\ -3.2 \end{pmatrix} = \begin{pmatrix} 0.07273\\ -0.2909 \end{pmatrix}. $$

For an offset increase of \(0.10\), the first-order changes are \(\Delta\hat\beta\approx0.007273\) outcome units and \(\Delta\hat\gamma\approx-0.02909\) response log-odds units. The outcome estimate moves through the off-diagonal curvature linking the parameters. These numbers are local approximations, not exact refitted changes; their accuracy depends on the size of the offset and the shape of the likelihood near the fit.

Distinguishing Selection Offsets From Case Weights

A case-weight perturbation changes the multiplier on subject \(i\)'s entire log-likelihood contribution. A selection offset changes the response mechanism for the specified subject and events, while leaving the outcome distribution itself unperturbed as a model component. These perturbations therefore have different score cross-derivatives and answer different diagnostic questions.

PerturbationWhat changesDiagnostic question
Selection-log-odds offsetSpecified response odds for one subjectHow sensitive is the fit to this subject’s selection probability?
Case weightWeight on the subject’s full likelihood contributionHow sensitive is the fit to the subject’s overall contribution?
Selection-equation covariate perturbationA subject’s value of a predictor in the response modelHow sensitive is the fit to that predictor value?
Case deletionThe subject’s entire contribution is removedWhat is the refitted estimate without this subject?

Worked Example: Why the Case-Weight Direction Differs

Continue with the hypothetical information matrix in the preceding example. Suppose the subject’s score contribution for a case-weight perturbation is \(u_i=(0.8,0.5)^\mathsf{T}\). Since multiplying that subject’s contribution by a weight \(w_i\) adds \(w_i\ell_i\) to the log-likelihood, the cross-derivative of the total score with respect to the weight at \(w_i=1\) is \(u_i\). Its local direction is

$$ J^{-1}u_i = \frac{1}{11} \begin{pmatrix} 3 & -1\\ -1 & 4 \end{pmatrix} \begin{pmatrix} 0.8\\ 0.5 \end{pmatrix} = \frac{1}{11} \begin{pmatrix} 1.9\\ 1.2 \end{pmatrix} = \begin{pmatrix} 0.1727\\ 0.1091 \end{pmatrix}. $$

This differs from the selection-offset direction \((0.07273,-0.2909)^\mathsf{T}\) because the two perturbations have different cross-derivatives: \(u_i\) for the case weight and \(c_i\) for the selection offset. The case-weight direction is not an alternative way to calculate selection-probability sensitivity. Nor does either local direction equal the exact case-deletion change, which is a finite refitting comparison.

Diagnostics, Interpretation, and Limitations

A large coordinate of \(J^{-1}c_i\) indicates that a small log-odds change for subject \(i\) can produce a large local movement in that fitted parameter, in the parameter’s own units. It does not establish that the subject is erroneous, that the assumed offset is plausible, or that the response model is correct. In particular, an outcome-parameter sensitivity can arise through parameter coupling even if the offset’s direct outcome-score cross-derivative is zero.

Before interpreting a calculation, check that the offset has the intended sign and applies to the intended response event and occasions. Verify that the fitted observed-data likelihood is differentiable at the estimate, the information matrix is nonsingular, and the derivatives use the same likelihood and parameterization as the fit. As a basic numerical check, refit at a small positive and negative offset and compare the finite-difference slope with \(J^{-1}c_i\). Large disagreement can indicate an offset that is not small enough, inaccurate derivatives, an ill-conditioned information matrix, or likelihood curvature that makes the linear approximation unreliable.

A single offset also imposes a specific perturbation pattern: it shifts each selected logit by the same amount wherever it is applied. Different patterns, such as occasion-specific changes, require a vector of offsets and a corresponding matrix of cross-derivatives. A scalar result should not be interpreted as covering patterns it did not perturb. Furthermore, a selection-offset diagnostic is conditional on the chosen selection and outcome model. It does not resolve uncertainty about missing outcomes that is not identified from observed data, and it does not validate the assumed dependence between outcomes and response.

A common mistake is to say, “A positive response-log-odds offset must increase every fitted response-model coefficient.” The correction is that the offset directly raises the specified subject’s response odds, but the refitted coefficients move according to \(J^{-1}c_i\). Curvature and parameter dependence can make a coefficient’s fitted change negative, and can transmit change to outcome parameters. Another mistake is to call this a case-weight diagnostic because both methods perturb one subject. The correction is to identify what was perturbed: response odds in one case, versus the entire likelihood contribution in the other.

Key takeaway: Subject-specific selection-probability influence is a local derivative with respect to an offset in the response log-odds. Calculate it as \(J^{-1}c_i\), interpret every coordinate in its parameter units, and do not equate it with case-weight influence or exact case deletion.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. If a response logit receives an offset of \(0.2\), by what factor do the specified response odds change?
  2. In the local derivative formula, what do \(J\) and \(c_i\) represent?
  3. Using \(J=\begin{pmatrix}2&0\\0&5\end{pmatrix}\) and \(c_i=(0,-1)^\mathsf{T}\), calculate the local sensitivity vector.
  4. Why can an outcome parameter move when the offset has zero direct cross-derivative with the outcome score?
  5. State one reason a local derivative might poorly approximate a refit at a finite offset.

Solutions. (1) The odds are multiplied by \(e^{0.2}=1.221\), approximately a 22.1% increase; the probability does not increase by 0.2. (2) \(J\) is the observed information, the negative Hessian of the log-likelihood with respect to the fitted parameters; \(c_i\) is the cross-derivative of the score with respect to subject \(i\)'s offset. (3) \(J^{-1}=\begin{pmatrix}0.5&0\\0&0.2\end{pmatrix}\), so \(J^{-1}c_i=(0,-0.2)^\mathsf{T}\). (4) Off-diagonal curvature in \(J^{-1}\) can transmit a score change in the response coordinate to the outcome coordinate. (5) A finite offset may be too large for a first-order approximation, or the likelihood may be strongly curved or the information matrix ill-conditioned.

Clinical Biostats