Why Model Unobserved Heterogeneity?
People with the same measured covariates may still differ in their underlying event risk. In a duration model, an unmeasured characteristic can make one person more susceptible to an event throughout follow-up. A model that ignores these persistent differences may describe the observed population hazard poorly, even when each person's hazard follows a simple pattern.
A frailty model represents such latent susceptibility by multiplying the hazard by a positive random variable. Its implications depend on whether the latent effect belongs to one person or is shared by members of a group. Individual frailty captures unobserved differences among people; shared frailty can also induce dependence among event times within a cluster, such as patients treated at the same hypothetical clinic.
The frailty is unobserved, not an additional measured covariate. Conditional on its value, the hazard model describes an individual's event process. Marginal quantities average over the frailty distribution. These are different estimands: a conditional hazard compares individuals with the same frailty, whereas a marginal hazard describes the changing composition of the population still at risk.
Gamma Frailty and Marginal Survival
A common choice is a gamma frailty with mean one and variance \(\theta\), where \(\theta>0\) measures unobserved heterogeneity. Use the shape-scale parameterization: \(Z\sim\operatorname{Gamma}(1/\theta,\theta)\). Its mean is \((1/\theta)\theta=1\), and its variance is \((1/\theta)\theta^2=\theta\). The limiting case \(\theta=0\) represents no frailty, with \(Z=1\) with probability one.
This expression follows by averaging the conditional survival over \(Z\). The gamma Laplace transform is \(E[\exp(-sZ)]=(1+\theta s)^{-1/\theta}\) for \(s\geq 0\). Setting \(s=A(t,x)\) gives the displayed result. The formula also approaches \(\exp[-A(t,x)]\) as \(\theta\) tends to zero, recovering the model without frailty.
Worked Example: Marginal Survival With Gamma Frailty
Suppose that at a specified follow-up time the baseline cumulative hazard is \(H_0(t)=0.40\). A one-unit covariate contrast has \(\exp(x^\top\beta)=1.5\), and the frailty variance is \(\theta=0.50\). Calculate the marginal survival probability for the covariate value in question.
First calculate the covariate-adjusted cumulative hazard before frailty: \(A(t,x)=0.40(1.5)=0.60\). The gamma frailty formula gives
Under the model, the probability of remaining event-free to this time, averaged over the latent frailty distribution, is about 0.592. For comparison, setting frailty to its mean value \(Z=1\) gives conditional survival \(\exp(-0.60)\approx0.5488\). Averaging survival is not the same as evaluating survival at the average frailty.
Marginal Hazards and Risk-Set Selection
Differentiating the marginal cumulative hazard \(-\log S_m(t\mid x)\) gives the marginal hazard. Write \(q=\exp(x^\top\beta)\). Since \(A(t,x)=qH_0(t)\), its derivative is \(q h_0(t)\). Therefore,
The denominator shows why a marginal hazard need not preserve the conditional proportional-hazards structure. At a fixed time, individuals with larger frailty are more likely to have experienced the event already. The people remaining at risk are consequently selected toward lower frailty, so their average latent susceptibility can decline over time.
This also makes the selection mechanism explicit: the relevant mean frailty among survivors falls as cumulative hazard \(A(t,x)\) grows. The conditional hazard for someone whose frailty is \(Z\) remains \(Z h_0(t)\exp(x^\top\beta)\); it is the population's risk-set composition that changes.
Worked Example: A Declining Marginal Hazard From Selection
Suppose the conditional baseline hazard is constant at \(h_0(t)=0.20\) per year, there are no covariates, and \(\theta=0.50\). Then \(H_0(t)=0.20t\), with \(t\) measured in years. Compute the marginal hazard at the start, after 10 years, and after 30 years.
The marginal hazard is
At \(t=0\), \(h_m(0)=0.20\) per year. At \(t=10\), \(h_m(10)=0.20/(1+1)=0.10\) per year. At \(t=30\), \(h_m(30)=0.20/(1+3)=0.0500\) per year. Each individual's conditional hazard is constant in time for a fixed \(Z\), but the marginal hazard declines because high-frailty individuals tend to experience the event earlier and leave the risk set.
The corresponding marginal survival at 10 years is \((1+0.50(2))^{-2}=0.250\), and at 30 years it is \((1+0.50(6))^{-2}=0.0625\). The cumulative hazards used here are \(H_0(10)=2\) and \(H_0(30)=6\), respectively.
Frailty can also make marginal hazard ratios vary with time. For a one-unit covariate contrast with conditional hazard multiplier \(r=\exp(\beta)\), the marginal hazard ratio, relative to the covariate value with multiplier one, is
In the simple comparison where the reference multiplier is one, this ratio is \(r\{1+\theta H_0(t)\}/\{1+\theta H_0(t)r\}\). It equals the conditional ratio \(r\) at the start, when \(H_0(t)=0\), but for \(r>1\) it moves toward one as cumulative hazard grows. Thus, a constant conditional effect does not generally imply a constant marginal hazard ratio.
Worked Example: Conditional and Marginal Hazard Ratios
Suppose a one-unit covariate contrast doubles the conditional hazard, so \(r=2\). At a time when \(H_0(t)=0.50\), let \(\theta=0.50\) and use the reference group with covariate multiplier one. Calculate the marginal hazard ratio.
The reference marginal hazard is \(h_0(t)/(1+0.50(0.50))=h_0(t)/1.25=0.800h_0(t)\). The comparison group's marginal hazard is \(2h_0(t)/(1+0.50(0.50)(2))=2h_0(t)/1.50=1.333h_0(t)\). Therefore,
The conditional hazard ratio remains 2 for individuals with the same frailty. The marginal ratio is about 1.67 at this time because the two risk sets have different frailty compositions. This is a model implication, not evidence that the conditional covariate coefficient itself has changed.
Individual and Shared Frailty
With individual frailty, each person has a latent effect \(Z_i\). A common assumption is that the \(Z_i\) are independent draws from a specified distribution, independent of measured covariates. This describes unobserved heterogeneity across people and produces a marginal hazard that may vary with duration. Independent individual frailties do not, by themselves, create dependence between different people's event times.
With shared frailty, all members of a cluster share a latent effect \(Z_j\). Conditional on that shared value and the covariates, event times are often assumed independent. Marginally, they are dependent because a high value of \(Z_j\) raises the hazard for every member, while a low value lowers it for every member. The cluster could represent a family, workplace, or other group with common unobserved exposure or susceptibility.
Worked Example: Dependence From a Shared Frailty
Consider two hypothetical members of one cluster with a shared gamma frailty, \(\theta=0.50\). At a particular time, their covariate-adjusted cumulative hazards are \(A_1=0.40\) and \(A_2=0.80\). Calculate their joint survival probability and compare it with the product of their marginal survival probabilities.
Conditional on the common frailty \(Z\), the two survival probabilities multiply, giving joint survival \(\exp[-Z(A_1+A_2)]\). Averaging over the shared frailty gives
Their separate marginal survival probabilities are \(S_{m1}=(1+0.50(0.40))^{-2}=1.20^{-2}\approx0.6944\) and \(S_{m2}=(1+0.50(0.80))^{-2}=1.40^{-2}\approx0.5102\). If the survival indicators were independent, their joint probability would be \(0.6944(0.5102)\approx0.3543\). Instead, the joint probability is about \(0.3906\), a difference of \(0.0363\). In this model, surviving together is more likely than the product of the separate survival probabilities because both individuals share the same latent risk level.
For a shared gamma frailty and conditionally independent event times, the same calculation extends to \(m\) people: joint survival is \(\{1+\theta\sum_{i=1}^m A_i(t,x_i)\}^{-1/\theta}\). This expression is not the product of their marginal survival probabilities. The resulting dependence matters for likelihood construction and uncertainty estimation: members of a cluster cannot generally be treated as independent after the shared frailty has been integrated out.
Assumptions, Interpretation, and Pitfalls
The gamma formulas rely on a particular model, not merely on the existence of unobserved differences. They assume a positive multiplicative frailty, a specified gamma distribution, and conditional survival of the proportional-hazards form. The mean-one convention separates the overall hazard scale from the frailty multiplier; without a scale constraint, the baseline hazard and frailty scale would not be separately identified. The assumption that frailty is independent of covariates is also substantive. If latent susceptibility is associated with measured covariates, the simple marginal formulas above do not automatically apply.
In applications, the frailty variance \(\theta\) is estimated as part of a model, and conclusions depend on the assumed frailty distribution and cluster structure. A shared frailty is appropriate only when the scientific setting supports a common latent factor within the chosen clusters. An individual frailty model answers a different question and does not represent within-cluster dependence.
- Mistake: treating the marginal hazard as the conditional hazard at mean frailty. Substituting \(Z=E(Z)=1\) ignores how survival changes the frailty distribution among those still at risk. Use the marginal survival or marginal hazard formula when the target is population-level.
- Mistake: interpreting a conditional hazard ratio as the marginal hazard ratio. Under gamma frailty, marginal hazard ratios can vary with time even when the conditional coefficient is constant. State which comparison the model estimates.
- Mistake: assuming shared frailty is just another variance adjustment. It induces dependence among cluster members after the latent effect is averaged out. Account for that dependence rather than treating all event times as marginally independent.
Check Your Understanding
Use the definitions and formulas above to answer the following questions.
- For a mean-one gamma frailty with variance \(\theta\), what are its shape and scale under the parameterization used here?
- If \(H_0(t)=0.30\), \(\exp(x^\top\beta)=2\), and \(\theta=0.25\), calculate the marginal survival probability at time \(t\).
- Why can a marginal hazard decline over time when every individual's conditional hazard is constant?
- What additional feature does shared frailty capture that independent individual frailties do not capture?
- Why might a conditional hazard ratio differ from the marginal hazard ratio at a later follow-up time?