Tutorials › Marginal Structural Models › Building Conditional Censoring Hazard Models

Censoring and Informative Dropout · Tutorial 220 of 501

Building Conditional Censoring Hazard Models

Learn to formulate time-specific conditional censoring models, calculate their predicted retention probabilities, and recognize when model fit or positivity threatens censoring weights.

Advanced 13 min read

What You'll Learn

  • Define the conditional censoring hazard among individuals still under observation.
  • Distinguish censoring hazards from the conditional probabilities of remaining observed.
  • Construct denominator predictions by multiplying conditional retention probabilities over time.
  • Derive the censoring-process likelihood and identify when it factors across individuals.
  • Diagnose model fit, positivity problems, and extreme predicted censoring weights.
  • Compare conditional parametric models with stratified and pooled approaches.

Why model the censoring hazard?

Inverse-probability-of-censoring weights require predictions of who remains observed at each follow-up time, conditional on the history available before that time’s censoring decision. A censoring hazard model supplies those predictions. Its output is not itself the weight: the denominator for a person observed through time \(t\) is the product of the predicted probabilities of remaining uncensored at each preceding decision.

The distinction between a censoring probability and a retention probability matters. A model may predict a high probability of censoring in one interval, while the corresponding contribution to the weight denominator is the lower probability of not being censored. The model must also use only history known before the decision being modeled; information recorded after censoring cannot be used to predict that decision.

Definition and assumptions

Definition: Consider discrete follow-up times \(t=1,\ldots,K\). Let \(R_{i,t-1}=1\) indicate that individual \(i\) is uncensored and under observation at the start of time \(t\). Among those individuals, let \(C_{it}=1\) indicate censoring during interval \(t\), and \(C_{it}=0\) indicate remaining uncensored through that interval. Let \(H_{it}\) denote the observed history available immediately before the censoring decision. The conditional censoring hazard is \(\lambda_t(h)=P(C_{it}=1\mid R_{i,t-1}=1,H_{it}=h)\). The corresponding conditional retention probability is \(q_t(h)=1-\lambda_t(h)\).

Once censored, an individual is no longer at risk for later censoring decisions in this follow-up process. Equivalently, define \(R_{it}=R_{i,t-1}(1-C_{it})\); then only person-times with \(R_{i,t-1}=1\) contribute a censoring decision. \(H_{it}\) can include baseline variables, treatment, and prior observed time-varying covariates or outcomes, provided each is available before the decision in interval \(t\).

The conditional model is used under the sequential independent censoring and positivity assumptions established in the earlier material on those subjects. Informally, after conditioning on the recorded history, censoring must not convey further information about the relevant future outcome, and the probability of remaining observed must be positive for histories relevant to the target. For a fitted model to provide valid denominator predictions, its conditional probabilities must also be adequately specified or estimated. Correct specification cannot be guaranteed by a good-looking fit alone.

From hazards to denominator predictions

Suppose a model indexed by parameter \(\beta\) specifies \(\lambda_t(h;\beta)\). For an individual observed through time \(t\), calculate the predicted retention probability at each decision using that individual’s history at that time. The censoring-weight denominator is \(G_i(t;\beta)=\prod_{k=1}^{t}\{1-\lambda_k(H_{ik};\beta)\}\). The inverse-denominator weight is \(1/G_i(t;\beta)\). If a stabilized weight is being used, its numerator is chosen separately; the denominator here is the product of the conditional retention predictions.

For example, a model may use different time-specific intercepts, or allow history variables to modify the hazard over time. A binary regression model is one possible specification, but the modeling task is broader than choosing a particular regression family: the model must define a probability between zero and one for each at-risk history and follow-up time. The later treatment of pooled logistic regression develops one particular way to estimate such hazards.

Worked Example: Multiplying Retention Predictions Across Three Intervals

Suppose an at-risk individual has predicted censoring hazards \(0.10\), \(0.20\), and \(0.25\) at times 1, 2, and 3, respectively. The person remains observed through time 3.

The predicted retention probabilities are \(1-0.10=0.90\), \(1-0.20=0.80\), and \(1-0.25=0.75\). Thus the denominator through time 3 is \(G_i(3)=0.90\times0.80\times0.75=0.54\). The inverse-denominator weight is \(1/0.54\approx1.852\).

The calculation is sequential: each factor is the predicted chance of getting through that interval, conditional on being at risk and on the history at that decision. It would be incorrect to use \(0.10\times0.20\times0.25\), which multiplies censoring probabilities rather than retention probabilities.

Conditional model likelihood

For a specified hazard model, each at-risk decision contributes a Bernoulli conditional likelihood term. Conditional on the histories used by the censoring model, an individual’s contribution through the last observed decision is \(\prod_{t:R_{i,t-1}=1}\lambda_t(H_{it};\beta)^{C_{it}}\{1-\lambda_t(H_{it};\beta)\}^{1-C_{it}}\). When \(C_{it}=1\), the term is the probability of censoring at that decision; when \(C_{it}=0\), it is the probability of remaining uncensored.

Within one individual, multiplying these terms follows the chain rule for the sequence of censoring decisions conditional on the histories available at those decisions. Multiplying individual contributions to obtain a sample likelihood requires an additional assumption: individuals’ trajectories are independent, conditional on the modeled histories, or else a specified joint model must account for their dependence.

Result: If individuals are independent and the conditional censoring model is correctly specified, the conditional likelihood for \(\beta\) factors as \(L(\beta)=\prod_{i=1}^{n}L_i(\beta)\), where \(L_i(\beta)\) is the product of the at-risk Bernoulli terms above. Without independence across individuals, this product is not justified by the individual conditional hazards alone.

Proof. For an individual, apply the chain rule in time order. At each time \(t\) for which \(R_{i,t-1}=1\), the conditional probability of the observed censoring decision is \(\lambda_t(H_{it};\beta)\) if \(C_{it}=1\), and \(1-\lambda_t(H_{it};\beta)\) if \(C_{it}=0\). These two cases are written together as \(\lambda_t(H_{it};\beta)^{C_{it}}\{1-\lambda_t(H_{it};\beta)\}^{1-C_{it}}\). Multiplying across that individual’s at-risk decisions gives \(L_i(\beta)\). Independence of the individual trajectories then makes the conditional joint likelihood the product of these contributions across \(i\). If trajectories are dependent, the chain rule for decisions within each person still holds, but the across-person product need not equal the joint likelihood. \(\square\)

This likelihood describes the censoring-process component conditional on the histories supplied to the model. It does not assert that the histories themselves are independent over time or that their distribution has been modeled. If dependence between people is plausible, such as within clinics or households, an independence-based likelihood should not be presented as the joint likelihood without a suitable dependence model.

Worked Example: A History-Dependent Hazard Model

Let \(X_{it}\) be a binary history variable measured before the censoring decision. Consider the model \(\lambda_t(X_{it})=\operatorname{expit}(-2+X_{it})\), where \(\operatorname{expit}(u)=1/(1+\exp(-u))\). The same coefficients are used at each time in this illustration.

When \(X_{it}=0\), the linear predictor is \(-2\), so \(\lambda_t(0)=1/(1+\exp(2))\approx0.1192\) and \(q_t(0)\approx0.8808\). When \(X_{it}=1\), the predictor is \(-1\), so \(\lambda_t(1)=1/(1+\exp(1))\approx0.2689\) and \(q_t(1)\approx0.7311\). Thus, at the same follow-up time, the model predicts lower retention for the history with \(X=1\).

Suppose one person has \(X_{i1}=0\) and \(X_{i2}=1\), and is observed through time 2. The denominator is \(G_i(2)=0.8808\times0.7311\approx0.6440\), giving inverse-denominator weight \(1/0.6440\approx1.553\). The two factors use the history available at their respective decisions; the model does not use a later value of \(X\) to revise the earlier hazard.

Worked Example: Why Conditioning on History Changes Predictions

At a particular time, suppose half the at-risk population has \(X=0\) and half has \(X=1\). The conditional censoring hazards are \(0.10\) for \(X=0\) and \(0.40\) for \(X=1\).

The corresponding retention probabilities are \(0.90\) and \(0.60\). Averaging over the two equally common histories gives marginal retention \(0.5(0.90)+0.5(0.60)=0.75\), and marginal censoring probability \(0.25\).

Using the marginal retention probability \(0.75\) for everyone would not reproduce the model’s conditional predictions: it overstates retention for \(X=1\) by \(0.15\) and understates it for \(X=0\) by \(0.15\). The denominator model is conditional on history, so it must preserve these differences when \(X\) is relevant to censoring. A marginal average is not a substitute for the conditional hazard merely because it matches the overall retention rate.

Checking the model and recognizing failure

Diagnostics should examine predicted hazards and the resulting denominator probabilities. Useful checks include comparing observed and predicted censoring frequencies across follow-up times and across important history groups, examining whether fitted probabilities are close to zero or one, and inspecting the distribution of \(G_i(t)\) and its inverse among those still observed. Large inverse weights often indicate that some observed histories were assigned very low probabilities of remaining observed.

These checks have limits. Agreement in an overall censoring rate does not establish conditional calibration, as the previous example shows. Conversely, a sparse history group may show unstable observed rates even when the model is reasonable. Extreme predictions can signal a positivity problem, model misspecification, sparse data, or some combination. A model cannot create information in histories where nearly everyone is censored; truncating extreme weights may change the bias-variance tradeoff rather than repair the underlying lack of support.

A common error is to fit or interpret a model as if censoring were independent without conditioning on the relevant observed history. The incorrect reasoning is: “The overall censoring fraction is modest, so censoring is harmless.” The correction is that a modest marginal fraction can conceal near-certain censoring in a particular history group. Assess conditional hazards and retention predictions for histories relevant to the target, not just the overall fraction censored.

Model choices and limitations

ApproachWhat it offersMain limitation
Parametric conditional hazard modelCan share information across histories and produce smooth predictions.Predictions depend on the chosen functional form and interactions.
Stratified empirical hazardsMake conditional rates transparent within defined history groups.Many strata can be sparse or empty, producing unstable or undefined estimates.
Pooled logistic regressionProvides one specific regression-based approach to discrete-time hazard estimation.Its specification and estimation details require separate treatment.

The appropriate choice depends on the data’s support and the structure of the histories. A simple model may be too restrictive; a highly detailed model may produce unstable predictions. Whatever the approach, denominator predictions should correspond to the conditional probability of remaining uncensored at each at-risk decision, under the time ordering and assumptions of the analysis.

The model’s role is limited: it estimates the censoring mechanism, not the causal outcome contrast. Valid inverse-probability weighting also relies on the censoring assumptions, adequate measurement of relevant history, and positivity. A well-fitted hazard model cannot compensate for unmeasured predictors of both censoring and future outcomes, nor can it justify extrapolation where retention probabilities are effectively zero.

Check Your Understanding

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

  1. If the conditional censoring hazard at a time is \(0.30\), what is the retention-probability factor used in the denominator?
  2. Two conditional retention predictions are \(0.80\) and \(0.50\). Calculate the denominator and inverse-denominator weight for a person observed through both decisions.
  3. Why does the product of individual censoring likelihood contributions require an assumption beyond the conditional hazards specified for each person?
  4. Can matching the overall observed censoring rate establish that a conditional hazard model is adequate? Explain.

Solutions. (1) The factor is \(1-0.30=0.70\). (2) The denominator is \(0.80\times0.50=0.40\), and its inverse is \(1/0.40=2.5\). (3) The within-person product follows from sequential conditional probabilities, but the across-person product requires independent trajectories or a joint dependence model. (4) No. Conditional hazards can differ across histories while their average matches the overall rate; calibration and support must also be assessed across relevant histories.

Clinical Biostats