Tutorials › Competing Risks and Multi-State Models › Sampling Weights in Fine-Gray Regression

Regression: Cause-Specific Cox and Fine-Gray · Tutorial 159 of 699

Sampling Weights in Fine-Gray Regression

Understand how to combine sampling weights with Fine-Gray estimation without confusing population representation with censoring adjustment.

Advanced 12 min read

What You'll Learn

  • Define population-representation weights and censoring adjustments in the Fine-Gray pseudo risk set
  • Construct the combined weighted risk-set sum and score for a subdistribution-hazard model
  • Work through the arithmetic for a weighted risk-set mean and event contribution
  • Identify assumptions about sampling, censoring, positivity, and model form
  • Diagnose unstable weights and explain why ordinary model-based standard errors may be inadequate
  • Distinguish Fine-Gray weighting from sampling-weighted cause-specific Cox regression

Why Fine-Gray Regression Needs Two Kinds of Weights

Fine-Gray regression models the subdistribution hazard for a specified cause. Its risk set is unusual: people who experience a competing event remain represented in the risk set after that event. With right censoring, inverse-probability censoring adjustments are used to account for the information lost when follow-up ends before event status is known. Those adjustments do not, by themselves, make a sample representative of a target population.

If people have unequal probabilities of being sampled, a second kind of weight may be needed: a sampling weight that represents how much of the target population each sampled person stands for. The two weights address different mechanisms. A population-representation weight is attached to a sampled person; a censoring adjustment modifies that person's contribution to the Fine-Gray pseudo risk set at a given time. Combining them is not a matter of choosing one or the other.

Definition: Let \(\tilde T_i=\min(T_i,C_i)\) be the observed time for person \(i\), where \(T_i\) is event time and \(C_i\) is censoring time. Let \(J_i\) denote the observed event type, with \(J_i=k\) indicating the event of interest and \(J_i\ne k\) a competing event. A sampling weight \(d_i\) represents person \(i\)'s contribution to a target population under the sampling design. A censoring adjustment \(q_i(t)\) corrects the contribution to the Fine-Gray pseudo risk set at time \(t\) for censoring.

The aim here is to construct and interpret the weighted Fine-Gray estimating equation. It is not to re-teach the Fine-Gray model or the general use of inverse-probability censoring weights. The essential point is to keep the two weighting roles explicit throughout the calculation.

Model and Combined Estimating Equation

For covariate vector \(Z_i\), the proportional subdistribution-hazards model for cause \(k\) is

$$ \lambda_k^*(t\mid Z_i)=\lambda_{k0}^*(t)\exp(\beta^\mathsf{T}Z_i). $$

Here \(\lambda_k^*(t\mid Z_i)\) is the subdistribution hazard, \(\lambda_{k0}^*(t)\) is its baseline function, and \(\beta\) is the regression coefficient vector. At time \(t\), the Fine-Gray pseudo risk set represents people who have not yet had the event of interest, including people already known to have had a competing event.

One common inverse-censoring-adjusted representation uses the following risk contribution, where \(\hat G(t\mid L_i)\) estimates the probability of remaining uncensored through time \(t\), conditional on relevant variables \(L_i\). Let \(\Delta_i=1\) indicate an observed event and \(\Delta_i=0\) indicate censoring. The left-limit notation accommodates event times at which censoring also occurs.

$$ q_i(t)=I(\tilde T_i\ge t)+I(\tilde T_i<t,\ \Delta_i=1,\ J_i\ne k) \frac{\hat G(t-\mid L_i)}{\hat G(\tilde T_i-\mid L_i)}. $$

An observed person still under observation and event-free at \(t\) has \(q_i(t)=1\). A person with an observed competing event before \(t\) remains represented, with the censoring adjustment shown. A person censored before \(t\) without a known competing event contributes zero at \(t\). This expression presumes a censoring model and timing convention appropriate to the data; implementations can differ in details, so the definition used by the analysis software must be checked.

For \(r=0,1\), define the weighted risk-set sums as follows, with \(Z_i^{\otimes 0}=1\) and \(Z_i^{\otimes 1}=Z_i\).

$$ S_w^{(r)}(\beta,t)=\frac{1}{n}\sum_{i=1}^n d_i q_i(t) \exp(\beta^\mathsf{T}Z_i)Z_i^{\otimes r}. $$

The factor \(1/n\) is optional: it cancels from the ratio below. For a single covariate, the weighted risk-set mean is \(S_w^{(1)}/S_w^{(0)}\). A corresponding weighted score equation is

$$ U(\beta)=\sum_{i=1}^n d_i\int \left[ Z_i-\frac{S_w^{(1)}(\beta,t)}{S_w^{(0)}(\beta,t)} \right]\,dN_{ik}(t)=0, $$

where \(N_{ik}(t)=I(\tilde T_i\le t,\ J_i=k)\) counts an observed event of the target cause. Thus the event contribution is multiplied by its sampling weight, while the risk-set mean uses both \(d_i\) and \(q_i(t)\). Tied target-cause events require a tie-handling convention consistent with the Fine-Gray procedure being used.

Assumptions and a Short Justification

Interpretation as a target-population analysis requires more than entering weights into software. The sampling weights must be appropriate for the target population and the sampling design; in particular, units with relevant target-population membership must have positive probability of representation. Censoring must be conditionally independent of the event process given the variables in the censoring model, with adequate positivity so that \(\hat G(t\mid L_i)\) does not approach zero over the times analyzed. The proportional subdistribution-hazards model must be an adequate description for the covariates and time range of interest. If weights are estimated, their estimation and the design features that generated them can affect uncertainty estimates.

The combined form follows by starting with the Fine-Gray weighted partial-likelihood contribution. At a target-cause event time \(t\), the risk denominator sums relative hazards across the pseudo risk set. Each person's contribution to that sum is multiplied by \(d_i\), to represent the target population, and by \(q_i(t)\), to adjust the pseudo risk-set contribution for censoring. Differentiating the log of the weighted event contribution gives an event covariate minus the risk-set weighted mean.

$$ \frac{\partial}{\partial\beta} \left\{d_i\left[\beta^\mathsf{T}Z_i- \log\left(\sum_j d_jq_j(t)e^{\beta^\mathsf{T}Z_j}\right)\right]\right\} =d_i\left[Z_i-\frac{\sum_j d_jq_j(t)e^{\beta^\mathsf{T}Z_j}Z_j} {\sum_j d_jq_j(t)e^{\beta^\mathsf{T}Z_j}}\right]. $$

Summing this expression over observed target-cause failures yields the score above. This is a justification of the estimating equation, not a claim that a complex weighted analysis has an ordinary independent-observation likelihood. The sampling design and estimated weights may require design-based or robust variance calculations.

Worked Example: A Weighted Risk-Set Mean

Consider a hypothetical analysis at time \(t=5\), with one target-cause event at that time. Suppose the fitted coefficient for a binary covariate \(Z\) is \(\beta=0.4\). The event subject A has \(Z=1\), sampling weight \(d=2\), and is under observation at time 5. Person B is event-free at time 5, with \(Z=0\) and \(d=1\). Person C had a competing event at time 3, with \(Z=1\), \(d=3\), and censoring-survival ratio \(\hat G(5-)/\hat G(3-)=0.80\). Person D was censored at time 4 before any event and is not in the pseudo risk set at time 5.

The relative hazard for \(Z=1\) is \(\exp(0.4)=1.4918\); for \(Z=0\), it is \(\exp(0)=1\). The respective risk contributions for A, B, and C are \(d_iq_i(t)\exp(\beta Z_i)\): \(2(1)(1.4918)=2.9836\), \(1(1)(1)=1.0000\), and \(3(0.80)(1.4918)=3.5803\). D contributes zero.

Therefore, \(S_w^{(0)}\), omitting the common factor \(1/n\), is \(2.9836+1.0000+3.5803=7.5639\). Only A and C have \(Z=1\), so \(S_w^{(1)}=2.9836+3.5803=6.5639\). The weighted mean covariate in the risk set is \(6.5639/7.5639=0.8678\). The event's score contribution is \(d_A[Z_A-S_w^{(1)}/S_w^{(0)}]=2(1-0.8678)=0.2644\), approximately.

This is one score contribution at a specified coefficient, not a fitted coefficient or a test result. The arithmetic shows why the competing-event subject is retained, why D is absent, and why the sampling and censoring factors multiply within the risk sum.

Worked Example: Separating Population Representation From Censoring Adjustment

In a hypothetical sample, person R has a sampling weight of \(d_R=4\). At a later target-cause event time, R is in the pseudo risk set because a competing event was observed earlier. Suppose the estimated censoring survival is \(\hat G(u-)=0.90\) at the competing-event time \(u\), and \(\hat G(t-)=0.675\) at the later time \(t\).

The censoring adjustment is \(q_R(t)=0.675/0.90=0.75\). Before multiplying by the relative hazard term, R's combined risk-set weight is \(d_Rq_R(t)=4(0.75)=3\). The value 4 reflects population representation; 0.75 reflects the censoring adjustment in the pseudo risk set. They are not interchangeable, and adding them to obtain 4.75 would be incorrect.

If R instead remained observed and event-free at \(t\), the stated construction gives \(q_R(t)=1\), and the risk-set weight would be 4. In both cases the interpretation of the sampling weight remains the same; only the time-specific censoring adjustment changes.

Worked Example: Rescaling Sampling Weights

Suppose three hypothetical people have sampling weights \(2,1,3\) and, at a given time and coefficient, risk contributions \(2,1,2\), respectively, after including their censoring adjustment and relative hazard. The weighted risk-set denominator is \(2(2)+1(1)+3(2)=11\). If every sampling weight is multiplied by \(c=5\), the denominator becomes \(10(2)+5(1)+15(2)=55\); the corresponding weighted numerator for a covariate sum is also multiplied by 5.

Consequently, the ratio \(S_w^{(1)}/S_w^{(0)}\) is unchanged by this common rescaling, and the zero of the score equation is unchanged when the event weights are rescaled by the same constant. This does not mean arbitrary person-specific changes to the weights are harmless: those alter the represented population and can change the estimate. Nor does this invariance justify ignoring how the sampling design affects standard errors.

Diagnostics, Alternatives, and Limitations

Before interpreting a fitted model, check both weighting mechanisms separately and then inspect their combined contributions. Useful checks include:

  • Confirm that sampling weights match the intended target population and account for the design, rather than treating them as censoring weights.
  • Inspect the range and distribution of \(d_i\), \(\hat G(t\mid L_i)\), and combined risk contributions \(d_iq_i(t)\). Very large or unstable contributions can make estimates sensitive to a few observations.
  • Check censoring-model fit and positivity over the analysis time range. Small estimated \(\hat G\) values can produce extreme adjustments or make late-time estimates unreliable.
  • Verify event coding and the handling of competing events and ties. The event indicator in the score must identify the target cause, not all failures.
  • Use variance estimation appropriate to the sampling design, including clustering or stratification when relevant, and account for estimated weights where required. A naive model-based standard error may not reflect the actual uncertainty.

A sampling-weighted cause-specific Cox model also uses population-representation weights when the target is a population parameter, but it concerns a cause-specific hazard and uses a different risk-set construction. Fine-Gray regression retains competing-event cases in its pseudo risk set; it is therefore not enough to transfer the cause-specific risk-set calculation unchanged. Neither model's coefficient should be described as a causal effect solely because sampling weights were used. The choice depends on the scientific estimand and the interpretation sought.

Weight truncation or stabilization may reduce the influence of extreme values, but changes the estimating procedure and can introduce bias for the original target. Such choices should be justified and accompanied by sensitivity analyses. Weighted Fine-Gray regression also cannot repair a misspecified subdistribution-hazards model, an incorrect censoring model, or a sample that gives inadequate representation to important target-population groups.

Common pitfall: “The sampling weight is 4 and the censoring weight is 0.75, so the subject's total weight is 4.75.” This adds two quantities that have different roles. In the pseudo risk-set sum, they multiply: the combined factor is \(4(0.75)=3\). The event contribution, by contrast, uses its sampling weight; the censoring adjustment is defined for the risk-set contribution at time \(t\).

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. A person has sampling weight 2.5 and a censoring adjustment of 0.80 in the Fine-Gray pseudo risk set. What is the combined factor before multiplying by the relative hazard?
  2. At a target-cause event time, why can a person with an observed earlier competing event contribute to the risk set while a person censored earlier without an event does not?
  3. If all sampling weights are multiplied by the same positive constant, what happens to the risk-set mean and the root of the weighted score equation?
  4. Name two assumptions or conditions that should be checked before interpreting a weighted Fine-Gray estimate.

Solutions. (1) The combined factor is \(2.5(0.80)=2.00\), because the sampling weight and censoring adjustment multiply. (2) An observed competing event establishes that the person did not experience the target event before that competing event, and the Fine-Gray construction retains that person in the pseudo risk set. Earlier censoring without an event leaves later event status unknown, so that person is not simply retained as if event-free. (3) The risk-set numerator and denominator are both multiplied by the same constant, so their ratio is unchanged; the score is rescaled without changing its root. (4) Examples include correct representation of the target population by the sampling weights, conditional independent censoring given the censoring-model variables, positivity for sampling and censoring, and adequate proportional subdistribution-hazards model form.

Clinical Biostats