Tutorials › Econometrics (Graduate) › Diagnostics for Censored and Truncated Regression

Censoring and Truncation · Tutorial 542 of 952

Diagnostics for Censored and Truncated Regression

Use diagnostics that respect censoring or truncation to identify where a limited-outcome model may not fit its data.

Intermediate 12 min read

What You'll Learn

  • Compare observed censoring frequencies with probabilities implied by a fitted limited-outcome model.
  • Diagnose residual patterns among uncensored observations using their conditional, not ordinary, reference distribution.
  • Use conditional probability-integral-transform values to assess the distribution of observed outcomes.
  • Distinguish diagnostic checks available for censored data from those requiring a source population for truncated data.
  • Assess whether conclusions are sensitive to distributional and variance assumptions.

Why Limited-Outcome Models Need Specialized Diagnostics

A model for a censored or truncated outcome describes more than the numerical values that happen to be observed. It also makes claims about which values are recorded and, for censored data, how often observations should accumulate at a censoring limit. Diagnostics must therefore check the observation pattern as well as the observed numerical outcomes.

A routine residual plot can be misleading here. If an outcome is censored below a known limit, the residuals among uncensored observations are selected from one part of the latent error distribution; they need not have mean zero. Under truncation, observations outside the selection range are absent altogether. The appropriate reference for either case depends on the model and the observation rule.

Model and Observation Rules

Let \(Y_i^*\) be a latent outcome for unit \(i\), with covariate vector \(x_i\), and suppose

$$ Y_i^* = x_i^\top\beta+\varepsilon_i,\qquad \varepsilon_i\mid x_i\sim N(0,\sigma_i^2). $$

Write \(\mu_i=x_i^\top\beta\). In a homoskedastic model, \(\sigma_i=\sigma\); in a heteroskedastic model, the scale may depend on \(x_i\). For a lower-censored outcome with limit \(L\), the recorded value is \(Y_i=\max(L,Y_i^*)\). A unit with \(Y_i=L\) is known to have a latent outcome at or below the limit, but its exact value is not observed. A truncated outcome differs: a unit is recorded only if it meets an observation rule, such as \(Y_i^*>L\), and units outside that rule do not appear in the outcome sample.

Definition: A diagnostic checks whether features of data generated under the fitted model resemble the features actually observed. For censored regression, relevant features include the censoring indicator and uncensored outcomes. For truncated regression, outcome diagnostics must be conditional on selection; checks of the selection rate require information about the source population as well as the selected sample.

The formulas below use a normal latent error model to make the diagnostic reference distributions explicit. A fitted model should be checked against the distribution and variance assumptions it actually uses. If a different error distribution is assumed, the corresponding conditional probabilities and moments should replace the normal formulas.

Check Censoring Frequencies

For lower censoring at \(L\), the fitted model implies a probability that unit \(i\) is censored. With estimated parameters, this probability is

$$ \hat p_{Li} = P(Y_i^*\leq L\mid x_i;\hat\beta,\hat\sigma_i) = \Phi\!\left(\frac{L-x_i^\top\hat\beta}{\hat\sigma_i}\right), $$

where \(\Phi\) is the standard normal cumulative distribution function. For upper censoring at \(U\), the implied probability of being censored above the limit is \(1-\Phi((U-x_i^\top\hat\beta)/\hat\sigma_i)\). With two limits, each limit has its own implied probability. Comparing these probabilities with observed censoring frequencies can reveal a model that predicts too many or too few censored outcomes.

The comparison should be made overall and, where useful, across meaningful covariate groups or ranges of fitted values. An overall rate can look reasonable even when the model systematically underpredicts censoring for one group and overpredicts it for another. For units with different fitted probabilities, the model’s expected number censored is the sum of their probabilities, not the sample size times a single arbitrary probability.

Worked Example: Comparing a Censoring Rate With Its Fitted Benchmark

Suppose a hypothetical sample has 100 independent observations, each with a fitted latent mean of 1 unit and a fitted standard deviation of 2 units. Outcomes are censored below \(L=0\). The data contain 36 observations recorded at the limit. Is that frequency broadly in line with the fitted model?

For each observation, the fitted probability of censoring is

$$ \hat p_L = \Phi\!\left(\frac{0-1}{2}\right) = \Phi(-0.5) \approx 0.3085. $$

The expected number censored is \(100(0.3085)=30.85\). Under the simplifying assumption that the fitted probabilities are fixed and observations are independent, the standard deviation of the censoring count is

$$ \sqrt{100(0.3085)(1-0.3085)} = \sqrt{21.3328} \approx 4.619. $$

The observed count exceeds its fitted expectation by \(36-30.85=5.15\), or about \(5.15/4.619=1.115\) of these reference standard deviations. This is a descriptive calibration check, not a formal test: it ignores uncertainty from estimating the model parameters and is not evidence by itself that the model is adequate. With covariates, one should also compare observed and expected counts in groups, using each unit’s fitted probability.

Residual Patterns Among Uncensored Outcomes

Let \(a_i=(L-\mu_i)/\sigma_i\). Among observations that are uncensored below \(L\), the latent error is known to exceed \(-\mu_i+L\), or, after standardizing, \(Z_i>a_i\), where \(Z_i=\varepsilon_i/\sigma_i\) is standard normal. Define the inverse Mills ratio for this lower-tail selection as \(\lambda(a)=\phi(a)/[1-\Phi(a)]\), with \(\phi\) the standard normal density. The conditional mean and variance of the error are

$$ E(\varepsilon_i\mid Y_i^*>L,x_i) = \sigma_i\lambda(a_i), \qquad \operatorname{Var}(\varepsilon_i\mid Y_i^*>L,x_i) = \sigma_i^2\{1+a_i\lambda(a_i)-\lambda(a_i)^2\}. $$

Thus, the raw residual \(Y_i-\hat\mu_i\) for an uncensored observation does not generally have conditional mean zero. In a truncated sample with the same lower selection rule, the observed outcomes are also drawn from this upper-tail conditional distribution. For two-sided observation over \(L<Y_i^*<U\), put \(a_i=(L-\mu_i)/\sigma_i\), \(b_i=(U-\mu_i)/\sigma_i\), and \(D_i=\Phi(b_i)-\Phi(a_i)\). The conditional mean residual is \(\sigma_i[\phi(a_i)-\phi(b_i)]/D_i\); diagnostics should use the relevant interval rather than an unselected normal reference.

Key diagnostic principle: Plot residuals against fitted values and covariates, but compare them with the residual behavior implied conditional on being uncensored or selected. A nonzero conditional residual mean is expected under the observation rule and is not, by itself, evidence of misspecification.

Worked Example: Calibrating Uncensored Residuals

Consider a hypothetical lower-censored model with \(L=0\), fitted latent mean \(\hat\mu=1\), and fitted standard deviation \(\hat\sigma=2\) for each of 25 uncensored observations. Their average raw residual \(Y_i-\hat\mu\) is 1.30 units. Compare it with the model’s conditional reference.

Here \(a=(0-1)/2=-0.5\). Using \(\lambda(-0.5)\approx0.5092\), the model’s expected residual among uncensored observations is

$$ 2(0.5092)=1.0184\text{ units}. $$

The conditional variance is

$$ 4\{1+(-0.5)(0.5092)-(0.5092)^2\} = 4\{1-0.2546-0.25928464\} = 4(0.48611536) = 1.94446144 \approx 1.9445\text{ units}^2. $$

The conditional standard deviation is approximately \(\sqrt{1.9445}=1.3944\) units. If the 25 observations are independent and share these fitted values, the standard error of their mean residual under this conditional reference is \(1.3944/\sqrt{25}=0.2789\) units. The observed mean exceeds the conditional mean by \(1.30-1.0184=0.2816\) units, a standardized discrepancy of \(0.2816/0.2789\approx1.01\). This rough comparison does not account for parameter estimation, but it illustrates why comparing the mean residual with zero would use the wrong benchmark.

Conditional Distribution Checks

Residual plots can expose systematic patterns, such as residuals that become more dispersed as fitted values increase, or conditional residual means that vary with a covariate. A complementary check uses the probability-integral transform (PIT): under a correctly specified continuous conditional distribution with known parameters, evaluating its cumulative distribution function at an observation produces a uniform value on \([0,1]\). For limited outcomes, the distribution used for this transformation must respect the censoring or selection rule.

For example, with lower censoring at \(L\), uncensored values can be transformed using their distribution conditional on exceeding \(L\). For a normal model, that conditional CDF at \(y>L\) is

$$ F(y\mid Y^*>L,x_i) = \frac{\Phi((y-\mu_i)/\sigma_i)-\Phi(a_i)} {1-\Phi(a_i)}. $$

Under the fitted conditional model, these transformed values should not show systematic clustering or trends when examined across fitted values or covariates. For a full check of a censored outcome, the censoring mass must also be represented. The general randomized PIT for any distribution with jumps is \(F(Y_i^-\mid x_i)+V_i\{F(Y_i\mid x_i)-F(Y_i^-\mid x_i)\}\), where \(V_i\) is an independent uniform random variable on \([0,1]\) and \(F(Y_i^-\mid x_i)\) is the left limit of the CDF. At a censoring point, this randomization spreads the probability mass across its appropriate interval. Applying an ordinary continuous PIT to the censored value as if it were an exact latent outcome is not valid.

Worked Example: Conditional PIT Values Above a Lower Limit

Suppose a hypothetical model has lower limit \(L=10\), latent mean \(\mu=10\), and standard deviation \(\sigma=2\). Four uncensored outcomes are 10.4, 11.0, 12.0, and 14.0. For these values, \(a=0\) and the conditional CDF above the limit simplifies to \(2\Phi((y-10)/2)-1\).

For \(y=10.4\), the standardized value is \(0.2\), so the conditional PIT value is \(2\Phi(0.2)-1\approx0.1585\). For \(y=11.0\), it is \(0.5\), giving \(2\Phi(0.5)-1\approx0.3829\). For \(y=12.0\), it is \(1\), giving \(2\Phi(1)-1\approx0.6827\). For \(y=14.0\), it is \(2\), giving \(2\Phi(2)-1\approx0.9545\).

The four values are ordered and span much of the unit interval, but four observations cannot establish calibration. In a larger sample, a histogram or quantile plot can be checked for departures from uniformity and for patterns across covariates. Because the parameters were fitted rather than known, the reference is approximate; parameter estimation can affect the apparent distribution of the PIT values.

What Can Be Checked Under Truncation?

A truncated outcome sample contains no outcome records for units excluded by the observation rule. Consequently, its observed outcome distribution cannot reveal how many units were excluded unless information on the source population or screening process is also available. If that denominator and the relevant covariates are recorded, predicted selection probabilities can be compared with observed selection rates. Without them, diagnostics should focus on the distribution conditional on selection rather than treating the selected sample as an unselected random sample.

This distinction also affects residual checks. For lower truncation at \(L\), the model’s outcome distribution in the observed sample is the distribution conditional on \(Y_i^*>L\). Residuals should therefore be compared with the conditional moments or conditional CDF, just as for the uncensored portion of a lower-censored outcome. The data do not contain residuals for excluded units, so no plot of observed residuals can directly assess their unobserved outcomes.

Sensitivity Checks and Common Pitfalls

A diagnostic conclusion can depend on assumptions that are difficult to verify from limited outcomes alone. Repeat important checks under plausible alternatives: for example, a different error distribution, a heteroskedastic scale specification, or a substantively justified change to the covariate specification. Compare predicted censoring probabilities and conditional residual patterns across these fits. If the apparent fit changes substantially, report that sensitivity rather than presenting one specification’s diagnostics as decisive.

Worked Example: Sensitivity of a Predicted Censoring Rate

Suppose 100 hypothetical observations have \(L=0\) and the fitted latent mean is 1 unit. A homoskedastic normal specification with \(\hat\sigma=2\) predicts a censoring probability of \(\Phi(-0.5)\approx0.3085\). A plausible alternative scale specification gives \(\hat\sigma=2.4\) for this group, with the same fitted mean. Its implied probability is

$$ \Phi\!\left(\frac{0-1}{2.4}\right) = \Phi(-0.4167) \approx 0.3385. $$

The alternative raises the predicted censoring rate by about \(0.3385-0.3085=0.0300\), or 3.00 percentage points. If 35 of the 100 outcomes are censored, the observed rate is 0.3500; it is closer to the alternative’s prediction, but that closeness alone does not establish that the alternative is correct. The comparison flags that the calibration assessment depends on the scale specification and should be considered alongside residual patterns and other checks.

Common mistake: “The uncensored residuals have a positive mean, so the model must be biased.” This reasoning treats uncensored observations as if they were an unselected sample. Under lower censoring, the uncensored residuals are drawn from the upper tail, whose conditional mean is generally positive; truncation creates the same issue. The correction is to compare residuals with the conditional distribution implied by the observation rule, and then look for departures from that conditional reference.

A second pitfall is relying on one aggregate censoring rate. Matching the overall rate does not guarantee that censoring probabilities are calibrated across covariates, and it says nothing by itself about the distribution of uncensored outcomes. Conversely, a handful of unusual residuals or PIT values is not conclusive evidence against a model. Diagnostics are most useful as a set of complementary checks, interpreted with the sample size, parameter estimation, and observation process in view.

Key takeaway: Diagnose the model that generated the observed data, including its observation rule. Compare censoring frequencies with fitted probabilities, assess residuals and PIT values conditionally on being observed, and check whether conclusions persist under plausible changes in distributional and variance assumptions.

Check Your Understanding

Use the observation rule as part of each diagnostic reference.

  1. In a lower-censored normal regression, what fitted probability should be compared with the observed censoring indicator for unit \(i\)?
  2. Why is a zero residual mean generally not the correct benchmark among observations uncensored below a limit?
  3. What information is needed to assess the selection rate for a truncated outcome sample?
  4. For a censored outcome with a point mass at the limit, why is an ordinary continuous PIT for every recorded value inappropriate?
  5. An alternative scale specification changes a group’s predicted censoring probability. What does that sensitivity show, and what does it not establish?
Clinical Biostats