Tutorials › Econometrics (Graduate) › Marginal Effects in Truncated Regression

Censoring and Truncation · Tutorial 532 of 952

Marginal Effects in Truncated Regression

Learn to derive and interpret latent-mean slopes and selected-sample marginal effects in a normally distributed truncated regression.

Intermediate 10 min read

What You'll Learn

  • State the normal regression and threshold-selection assumptions for left-truncated outcomes.
  • Derive the conditional mean among observations above a fixed threshold.
  • Calculate how a continuous covariate changes the selected-sample mean.
  • Distinguish a latent-mean slope from a selected-sample marginal effect.
  • Calculate exact conditional-mean differences for a discrete covariate.
  • Explain how to average marginal effects and why selection changes interpretation.

Why Truncation Changes a Marginal Effect

In a truncated regression, outcomes below a threshold are not recorded in the sample at all. The regression may describe a latent outcome for everyone in the target population, but the observed data describe only those who cross the threshold. As a result, a covariate can affect the mean of the latent outcome and also change which outcomes enter the observed sample. The mean among selected observations therefore need not have the same slope as the latent mean.

This tutorial considers selection above a fixed threshold. It derives the selected-sample conditional mean and its marginal effect for a continuous covariate, then contrasts those quantities with the regression’s latent mean and slope. The distinction is about the population being described: neither effect should be interpreted as causal without additional assumptions that justify a causal interpretation.

Model and assumptions: Let the latent outcome satisfy \(Y^* = x'\beta + \varepsilon\), where \(x\) is a vector of observed covariates, \(\beta\) is a coefficient vector, and \(\varepsilon\mid x \sim N(0,\sigma^2)\) with constant \(\sigma>0\). Write \(\mu(x)=x'\beta\). An outcome is observed if and only if \(Y^*>c\), where \(c\) is a known, fixed threshold. For selected observations, the recorded outcome equals \(Y^*\), and the covariates are observed. These assumptions describe truncation: units with \(Y^*\le c\) do not appear in the observed sample.

The normality, constant-variance, and fixed-threshold assumptions matter for the formulas below. In particular, if the threshold varies with covariates, or the conditional variance depends on covariates, differentiating the conditional mean requires additional terms. The earlier material on the truncated regression likelihood addresses how the selection rule enters estimation; here the focus is the interpretation and calculation of marginal effects.

The Conditional Mean Above the Threshold

Let \(\phi\) and \(\Phi\) denote the standard normal density and cumulative distribution functions, and let \(Q(a)=1-\Phi(a)\) be the upper-tail probability. For a given covariate vector \(x\), define the standardized threshold and the upper inverse Mills ratio by

$$ a(x)=\frac{c-\mu(x)}{\sigma}, \qquad \lambda(a)=\frac{\phi(a)}{Q(a)}. $$

The selection probability at \(x\) is \(P(Y^*>c\mid x)=Q(a(x))\). The selected-sample mean is the expected latent outcome conditional on passing that threshold.

Definition: The selected-sample conditional mean is
$$ E[Y^*\mid x,Y^*>c] = \mu(x)+\sigma\lambda\!\left(a(x)\right). $$

The added term is positive: the selected outcomes have, on average, been drawn from the upper part of the conditional outcome distribution. Its size depends on how restrictive the threshold is relative to \(\mu(x)\). When the threshold is far below the latent mean, most outcomes are selected and the adjustment is small. When it is high relative to that mean, selection is more restrictive and the adjustment is larger.

Deriving the Mean and Its Marginal Effect

The conditional-mean formula follows by standardizing the outcome. Given \(x\), write \(Z=(Y^*-\mu(x))/\sigma\), so \(Z\sim N(0,1)\) and selection is equivalent to \(Z>a(x)\). Then

$$ \begin{aligned} E[Y^*\mid x,Y^*>c] &=\mu(x)+\sigma E[Z\mid Z>a(x)]\\ &=\mu(x)+\sigma \frac{\int_{a(x)}^\infty z\phi(z)\,dz}{Q(a(x))}\\ &=\mu(x)+\sigma\frac{\phi(a(x))}{Q(a(x))}. \end{aligned} $$

For the last equality, use \(\phi'(z)=-z\phi(z)\). Thus \(\int_a^\infty z\phi(z)\,dz=[-\phi(z)]_a^\infty=\phi(a)\), since \(\phi(z)\) tends to zero as \(z\) tends to infinity. Dividing by \(Q(a)\) conditions on being above the threshold.

Now consider a continuous covariate \(x_j\), holding the other covariates fixed. Since \(\partial\mu(x)/\partial x_j=\beta_j\), the standardized threshold changes at rate \(\partial a(x)/\partial x_j=-\beta_j/\sigma\). To differentiate the selection adjustment, the derivative of the inverse Mills ratio is

$$ \lambda'(a) = \frac{-a\phi(a)Q(a)+\phi(a)^2}{Q(a)^2} = \lambda(a)\bigl(\lambda(a)-a\bigr). $$

Applying the chain rule gives the marginal effect in the selected sample:

Result: For a continuous covariate \(x_j\), with a fixed threshold and constant \(\sigma\),
$$ \begin{aligned} \frac{\partial E[Y^*\mid x,Y^*>c]}{\partial x_j} &=\beta_j\left[1-\lambda'\!\left(a(x)\right)\right]\\ &=\beta_j\left[1+a(x)\lambda\!\left(a(x)\right) -\lambda\!\left(a(x)\right)^2\right]. \end{aligned} $$

The latent conditional mean has marginal effect \(\partial\mu(x)/\partial x_j=\beta_j\). The selected-sample effect multiplies that slope by a factor that depends on the threshold’s position relative to \(\mu(x)\). This factor is the variance of a standard normal variable conditional on exceeding \(a(x)\): indeed, \(E[Z\mid Z>a]=\lambda(a)\), \(E[Z^2\mid Z>a]=1+a\lambda(a)\), and subtracting the squared conditional mean gives \(1+a\lambda(a)-\lambda(a)^2\). It is positive and less than one. Thus, under this model, the selected-sample effect has the same sign as \(\beta_j\) but a smaller magnitude. Its size varies across covariate values even though the latent-mean slope is constant.

1
Find the latent mean and standardized threshold.
For the covariate values of interest, calculate \(\mu(x)=x'\beta\) and \(a(x)=(c-\mu(x))/\sigma\).
2
Calculate the selection adjustment.
Evaluate \(\lambda(a)=\phi(a)/Q(a)\), then add \(\sigma\lambda(a)\) to \(\mu(x)\) to obtain the selected-sample mean.
3
Calculate the marginal effect.
For a continuous covariate, multiply \(\beta_j\) by \(1+a\lambda(a)-\lambda(a)^2\). For a discrete covariate, compare the two conditional means directly.

Worked Calculations

Worked Example: A Threshold Above the Latent Mean

Suppose a hypothetical model has threshold \(c=10\), residual standard deviation \(\sigma=2\), and latent mean \(\mu(x)=8\) at a particular covariate value. For a continuous covariate \(x_j\), suppose \(\beta_j=3\) units of outcome per unit of \(x_j\). Calculate the selected-sample mean and marginal effect at this covariate value.

The standardized threshold is \(a=(10-8)/2=1\). Standard normal values are \(\phi(1)=0.2420\) and \(Q(1)=0.1587\), giving

$$ \lambda(1)=\frac{0.2420}{0.1587}\approx 1.525. $$

Therefore, the conditional mean among outcomes above 10 is

$$ E[Y^*\mid x,Y^*>10] =8+2(1.525) \approx 11.05. $$

The factor multiplying the latent slope is

$$ 1+a\lambda(a)-\lambda(a)^2 =1+1(1.525)-(1.525)^2 \approx 0.1991. $$

The selected-sample marginal effect is \(3(0.1991)\approx 0.5973\) units of outcome per unit of \(x_j\). The latent mean rises at 3 units per covariate unit, while the mean among outcomes above 10 rises locally at about 0.5973 units per covariate unit. These are different conditional means, not conflicting estimates of the same quantity.

Worked Example: A Threshold Below the Latent Mean

Consider a second hypothetical setting with \(c=10\), \(\sigma=2\), and \(\mu(x)=12\). Let a continuous covariate have latent-mean slope \(\beta_j=1.5\). Calculate the selection probability, selected-sample mean, and selected-sample marginal effect.

Here \(a=(10-12)/2=-1\), so the probability of selection is \(Q(-1)=0.8413\). Also, \(\phi(-1)=0.2420\), giving \(\lambda(-1)=0.2420/0.8413\approx0.2876\). The selected-sample conditional mean is

$$ 12+2(0.2876)=12.575. $$

The marginal-effect factor is

$$ 1+(-1)(0.2876)-(0.2876)^2\approx0.6297. $$

Thus the selected-sample marginal effect is \(1.5(0.6297)\approx0.9445\) outcome units per unit of the covariate, compared with the latent-mean slope of 1.5. Selection is less restrictive here than in the first example: about 84.13% of outcomes exceed the threshold, and the selected-sample adjustment and slope compression are both smaller.

Worked Example: A Discrete Covariate Requires a Finite Difference

Suppose a hypothetical model is \(\mu(x)=4+2D\), where \(D\) is a binary covariate, with \(c=5\) and \(\sigma=2\). Find the difference in selected-sample means between \(D=1\) and \(D=0\). Because \(D\) is discrete, use the two conditional means rather than treating the coefficient as a derivative.

When \(D=0\), \(\mu=4\) and \(a=(5-4)/2=0.5\). Since \(\phi(0.5)=0.3521\) and \(Q(0.5)=0.3085\), \(\lambda(0.5)\approx1.1411\). The selected-sample mean is

$$ E[Y^*\mid D=0,Y^*>5] =4+2(1.1411)\approx6.282. $$

When \(D=1\), \(\mu=6\) and \(a=(5-6)/2=-0.5\). Now \(Q(-0.5)=0.6915\), so \(\lambda(-0.5)=0.3521/0.6915\approx0.5092\). The selected-sample mean is

$$ E[Y^*\mid D=1,Y^*>5] =6+2(0.5092)\approx7.018. $$

The selected-sample difference is \(7.018-6.282=0.736\) outcome units. The latent-mean difference is 2 units, the coefficient on \(D\). Here the group with \(D=1\) also has a higher selection probability: \(0.6915\), compared with \(0.3085\) for \(D=0\). The selected groups therefore differ both in their latent means and in which outcomes pass the threshold.

Reporting and Interpreting Marginal Effects

For a continuous covariate, the formula gives a local effect at a particular \(x\). Since \(a(x)\) varies across observations, reporting only the effect at the covariate means need not describe the typical effect. An average marginal effect can instead be calculated by evaluating the effect at each covariate vector in a specified target set and averaging:

$$ \widehat{\operatorname{AME}}_j = \frac{1}{n_T}\sum_{i\in T} \hat{\beta}_j \left[ 1+a_i\hat{\lambda}(a_i)-\hat{\lambda}(a_i)^2 \right], \qquad a_i=\frac{c-x_i'\hat{\beta}}{\hat{\sigma}}. $$

Here \(T\) denotes the observations used to define the target covariate distribution, and \(n_T\) is their number. The target should be stated: averaging over the full intended population’s covariates and averaging over observed selected cases answer different descriptive questions. Uncertainty for estimated marginal effects can be calculated with the delta method, using the estimated parameter covariance matrix, or with a suitable bootstrap procedure. The resulting interval concerns the specified marginal effect, not the probability that a parameter is inside the interval.

For a binary or other discrete covariate, report a finite change in the conditional mean, as in the third example. The derivative formula is for a continuous covariate and need not equal a finite difference for a discrete change. In either case, label the result clearly as an effect on the latent conditional mean or as a contrast in the selected-sample conditional mean. Unless the design and identifying assumptions support causal claims, describe these as model-based associations or conditional-mean changes rather than causal effects.

Common Pitfall

Common mistake: Reporting \(\beta_j\) as the change in the mean among observed cases because it is the regression slope. Correction: \(\beta_j\) is the change in the latent conditional mean \(\mu(x)\). For a continuous covariate, the selected-sample marginal effect is \(\beta_j[1+a\lambda(a)-\lambda(a)^2]\), which depends on \(x\). For a discrete covariate, calculate the difference between its two selected-sample conditional means.

A related interpretive error is to say that the selected-sample effect is “the effect for people who would be observed.” The formula describes how the conditional mean among those above the threshold changes as \(x\) changes. Because the set passing the threshold can also change, it is not generally a comparison of an unchanged group of individuals.

Check Your Understanding

Use the normal truncated-regression model and distinguish the latent outcome from the selected-sample outcome in each answer.

  1. Write the selection probability and selected-sample conditional mean in terms of \(\mu(x)\), \(\sigma\), \(c\), and the standard normal functions.
  2. Why does the selected-sample marginal effect for a continuous covariate depend on \(x\), even when the latent-mean slope is constant?
  3. For a discrete covariate, why is a finite difference between conditional means generally preferable to applying the derivative formula?
  4. What does the selection adjustment represent when the threshold is far below the latent mean?
  5. In a report, what information should accompany an average marginal effect so its target is clear?
Clinical Biostats