Tutorials › Pharmacokinetic-Pharmacodynamic (PK/PD) Modeling › Frailty Models for Heterogeneous Event Risk

Time-to-Event PK/PD · Tutorial 358 of 598

Frailty Models for Heterogeneous Event Risk

Learn to specify gamma frailty models for PK/PD event times, derive their marginal survival functions, and interpret how latent risk heterogeneity changes exposure effects.

Advanced 10 min read

What You'll Learn

  • Specify individual and shared gamma frailty models for exposure-related event hazards.
  • Derive conditional survival and marginal survival by integrating over frailty.
  • Explain why a shared frailty induces dependence between individuals in a cluster.
  • Calculate how heterogeneity changes population-level survival and event risk.
  • Distinguish a conditional exposure hazard ratio from its marginal counterpart.
  • Recognize assumptions, diagnostics, and limitations of frailty models.

Why Model Unobserved Differences in Event Risk?

Patients with the same measured covariates and drug exposure may still differ in their underlying susceptibility to an event. Some may be more vulnerable because of unmeasured disease severity, physiology, or other risk factors. A frailty model represents this residual heterogeneity with a positive latent multiplier on the hazard. It can change not only predicted event probabilities but also the relationship between a conditional exposure effect and the effect seen after averaging across patients.

The key distinction is between the event process conditional on frailty and the process marginal over frailty. A proportional hazards model may hold at the conditional level while failing to hold at the marginal level. Shared frailty also creates dependence among people in the same cluster, even when their event times are independent conditional on the cluster frailty.

Model Specification

Definition: A frailty \(Z\) is a positive, unobserved random effect that multiplies an individual's hazard. We use a mean-one gamma frailty with variance \(\theta\): \(Z\sim\operatorname{Gamma}(1/\theta,1/\theta)\), where the arguments are shape and rate. Thus \(E(Z)=1\) and \(\operatorname{Var}(Z)=\theta\). The case \(\theta=0\) denotes the limiting no-frailty model.

For individual \(i\), let \(C_i(t)\) denote drug concentration or another exposure measure at time \(t\), and let \(W_i\) denote additional measured covariates. A conditional hazard specification is

$$ h_i(t\mid Z_i)=Z_i h_0(t)\exp\{\beta C_i(t)+\gamma^\top W_i\}. $$

Here \(h_0(t)\) is the baseline hazard, and \(\beta\) is the exposure coefficient conditional on frailty and the modeled covariates. This expression assumes the exposure effect is log-linear on the hazard scale; other exposure-response functions can replace \(\beta C_i(t)\). The hazard must be nonnegative, and the cumulative hazard must be finite over the time interval under consideration.

Define the cumulative hazard without frailty as

$$ H_i(t)=\int_0^t h_0(u)\exp\{\beta C_i(u)+\gamma^\top W_i\}\,du. $$

This definition allows concentration to vary over time. Conditional on \(Z_i=z\), survival through time \(t\) is \(S_i(t\mid z)=\exp\{-zH_i(t)\}\). The frailty is assumed constant over the modeled follow-up for that individual, positive, and independent of the measured covariates unless the model explicitly specifies otherwise.

Marginal Survival: Integrating Out Gamma Frailty

To obtain population survival, average conditional survival over the frailty distribution. For the stated gamma parameterization, the Laplace transform is \(E[\exp(-sZ)]=(1+\theta s)^{-1/\theta}\) for \(s\geq0\). Therefore,

$$ S_i(t)=E_Z\{S_i(t\mid Z)\} =E_Z\{\exp[-ZH_i(t)]\} =\{1+\theta H_i(t)\}^{-1/\theta}. $$

The formula is not the same as substituting the mean frailty into the conditional survival function. In general, \(E[\exp(-ZH)]\neq\exp[-E(Z)H]\). The marginal event risk by time \(t\) is \(1-S_i(t)\), whereas the conditional event risk for an individual with frailty \(z\) is \(1-\exp[-zH_i(t)]\).

A useful consequence follows by differentiating the marginal cumulative hazard \(-\log S_i(t)\). The marginal hazard is

$$ h_i^{\mathrm{marg}}(t) =-\frac{d}{dt}\log S_i(t) =\frac{h_0(t)\exp\{\beta C_i(t)+\gamma^\top W_i\}} {1+\theta H_i(t)}. $$

The denominator grows with accumulated hazard when \(\theta>0\). At later times, high-frailty individuals are more likely to have experienced the event, so those who remain event-free are increasingly selected toward lower frailty. This selection changes the marginal hazard even though each individual's conditional hazard still follows the specified model.

Worked Example: Marginal Risk at a Fixed Exposure

Suppose, hypothetically, that a constant exposure gives a cumulative hazard without frailty of \(H(3)=0.75\) by 3 weeks, and that \(\theta=0.50\). Find the marginal survival and event risk at 3 weeks. Compare these with conditional survival for two specified frailty values.

The gamma-frailty marginal survival is

$$ S(3)=\{1+\theta H(3)\}^{-1/\theta} =\{1+(0.50)(0.75)\}^{-2} =1.375^{-2} =\frac{1}{1.890625} \approx0.5289. $$

Thus the marginal event risk by 3 weeks is \(1-0.5289=0.4711\), or about 47.11%. This is an average over the frailty distribution, not the risk for every patient.

For a patient with \(z=0.50\), conditional survival is \(\exp[-(0.50)(0.75)]=\exp(-0.375)\approx0.6873\). For a patient with \(z=1.50\), it is \(\exp[-(1.50)(0.75)]=\exp(-1.125)\approx0.3247\). The two patients have different conditional risks despite the same measured exposure. Neither conditional survival value equals the marginal survival, which averages over all values of \(Z\).

Individual and Shared Frailty

An individual frailty assigns a separate latent multiplier \(Z_i\) to each person. If frailties are independent across people, this model represents person-level heterogeneity but does not, by itself, induce dependence between different people's event times. If the same individual's frailty multiplies the intensity for multiple recurrent events, however, it links that person's event history: a person with high \(Z_i\) tends to have higher event intensity across that person's events.

A shared frailty assigns one multiplier \(Z_g\) to everyone in cluster \(g\), such as patients in a hypothetical site or family. Conditional on \(Z_g\) and measured covariates, the members' event times may be modeled as independent. Marginally, they are dependent because they share the same unobserved risk multiplier.

For example, if the cumulative hazards without frailty for members \(1,\ldots,m\) in a cluster are \(H_1(t_1),\ldots,H_m(t_m)\), their joint survival under a shared gamma frailty is

$$ P(T_1>t_1,\ldots,T_m>t_m) =E_{Z_g}\left[\exp\left\{-Z_g\sum_{j=1}^m H_j(t_j)\right\}\right] =\left\{1+\theta\sum_{j=1}^m H_j(t_j)\right\}^{-1/\theta}. $$

This is generally not the product of the marginal survival probabilities. Consequently, treating clustered event times as independent after integrating out a shared frailty can understate their dependence.

Worked Example: Dependence Induced by a Shared Frailty

Consider two hypothetical patients in the same cluster with shared gamma frailty variance \(\theta=0.40\). At their respective follow-up times, suppose their cumulative hazards without frailty are \(H_1=0.30\) and \(H_2=0.60\). Calculate their separate marginal survival probabilities and their joint probability of both remaining event-free.

The first patient's marginal survival is

$$ S_1=(1+0.40(0.30))^{-1/0.40} =1.12^{-2.5} \approx0.7533. $$

For the second patient,

$$ S_2=(1+0.40(0.60))^{-2.5} =1.24^{-2.5} =\exp\{-2.5\log(1.24)\} \approx0.5840. $$

For both patients to remain event-free, use the shared frailty once with the sum of their cumulative hazards:

$$ P(T_1>t_1,T_2>t_2) =(1+0.40(0.30+0.60))^{-2.5} =1.36^{-2.5} \approx0.4636. $$

If the two marginal survivals were independent, their joint survival would be \(0.7533(0.5840)\approx0.4399\), not \(0.4636\). The joint survival is larger because a shared low frailty makes both patients more likely to remain event-free, while a shared high frailty makes both more vulnerable. Conditional independence therefore does not imply marginal independence.

How Frailty Changes the Exposure Effect

At a fixed time, with the same baseline and covariates, let \(r=\exp(\beta\Delta C)\) be the conditional hazard ratio for an exposure contrast \(\Delta C\). For a simple constant-exposure comparison, write \(H_0(t)\) for the unexposed cumulative hazard without frailty. The exposed cumulative hazard is \(rH_0(t)\). The marginal hazards are then

$$ h_{\mathrm{unexposed}}^{\mathrm{marg}}(t) =\frac{h_0(t)}{1+\theta H_0(t)},\qquad h_{\mathrm{exposed}}^{\mathrm{marg}}(t) =\frac{r h_0(t)}{1+\theta rH_0(t)}. $$

Their marginal hazard ratio is

$$ \frac{h_{\mathrm{exposed}}^{\mathrm{marg}}(t)} {h_{\mathrm{unexposed}}^{\mathrm{marg}}(t)} =r\frac{1+\theta H_0(t)}{1+\theta rH_0(t)}. $$

When \(r>1\), \(\theta>0\), and \(H_0(t)>0\), this marginal ratio is less than \(r\). It can also vary over time because cumulative hazard changes over time. Thus a constant conditional proportional-hazards exposure effect does not generally imply a constant marginal hazard ratio. The direction and size of the contrast depend on the exposure effect, frailty variance, and accumulated risk.

Worked Example: Conditional and Marginal Exposure Hazard Ratios

Suppose, hypothetically, that the conditional hazard ratio for a higher exposure is \(r=2.00\), the frailty variance is \(\theta=0.50\), and the unexposed cumulative hazard without frailty has reached \(H_0(t)=0.40\). Calculate the marginal hazard ratio at this time.

Substitution into the marginal ratio gives

$$ 2.00\frac{1+(0.50)(0.40)}{1+(0.50)(2.00)(0.40)} =2.00\frac{1.20}{1.40} \approx1.714. $$

At this time, the marginal hazard in the higher-exposure group is about 1.714 times the unexposed marginal hazard, not 2.00 times. The conditional ratio remains 2.00 for individuals with the same frailty value. At the start of follow-up, when \(H_0(t)=0\), the marginal ratio is 2.00; as cumulative risk builds, the population-level ratio changes under this model.

Assumptions, Estimation, and Model Checks

Frailty models require substantive assumptions. The frailty distribution is a chosen description of latent heterogeneity, not a fact revealed directly by the data. The mean-one convention separates the overall hazard scale from the frailty multiplier; \(\theta\) controls variation around that mean. The exposure and baseline hazard forms must also be adequate, and exposure measurement and covariate adjustment must support the intended interpretation. A conditional exposure association is not automatically causal.

For a single event observed at time \(t_i\), let \(\delta_i=1\) denote an event and \(\delta_i=0\) denote right censoring. Conditional on frailty, the event-time contribution has the form

$$ L_i(Z_i)=\{Z_i h_i^*(t_i)\}^{\delta_i}\exp\{-Z_iH_i(t_i)\}, $$

where \(h_i^*(t)\) is the hazard without frailty and \(H_i(t)\) its cumulative hazard. A censored observation contributes conditional survival rather than an event hazard. For an individual frailty model, the conditional contribution is integrated over that person's frailty distribution. For a shared frailty, the product of member contributions is integrated over one common cluster frailty. These likelihoods rely on censoring being noninformative conditional on the modeled quantities; event-dependent dropout requires additional modeling.

The gamma distribution yields the closed-form marginal survival shown above, which is one practical advantage. A lognormal frailty is a common alternative, but typically requires numerical integration. A model without frailty is simpler and may be adequate if residual heterogeneity is negligible; it cannot represent the latent risk variation or shared dependence targeted here. A shared-frailty model is appropriate when cluster-level dependence is scientifically plausible, while an individual frailty is suited to persistent unobserved differences between persons. These structures are not interchangeable.

Useful checks include examining whether estimated \(\theta\) is near zero or poorly determined, whether conclusions change under a plausible alternative frailty distribution, and whether the chosen exposure and baseline hazard forms produce reasonable predictions across follow-up. In shared models, the assumed clustering structure should match the study design. Weak information about long-term event risk, few clusters, or limited events can make the frailty variance difficult to estimate. A numerical estimate of \(\theta\) should not be treated as proof that the latent risk distribution is gamma.

Common Pitfall and Practical Interpretation

Common mistake: “The conditional exposure hazard ratio is 2, so the marginal hazard ratio for the population is 2 at every follow-up time.”

Correction: Under frailty, high-risk individuals are more likely to experience the event earlier, leaving a selected lower-risk set at later times. The marginal hazard ratio can therefore differ from the conditional ratio and vary with accumulated risk. Report which effect is being interpreted and state the frailty assumptions.

Frailty matters in PK/PD because patients can have different underlying event susceptibility even at similar measured concentrations. Ignoring this heterogeneity can distort population survival predictions and, in clustered settings, fail to represent dependence. A frailty model does not remove the need to specify the exposure effect carefully: the conditional model describes effects given latent risk, while marginal predictions average over the modeled frailty distribution.

Check Your Understanding

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

  1. For gamma frailty with variance \(\theta\), write the marginal survival in terms of the cumulative hazard without frailty \(H(t)\).
  2. Why can two event times be independent conditional on a shared frailty but dependent marginally?
  3. If \(r>1\), \(\theta>0\), and \(H_0(t)>0\), how does the marginal hazard ratio compare with the conditional ratio \(r\)?
  4. What happens to the gamma-frailty marginal survival formula as \(\theta\) approaches zero?

Solutions. (1) \(S(t)=\{1+\theta H(t)\}^{-1/\theta}\). (2) Both event times depend on the same latent multiplier; averaging over its possible values creates association, even if the times are independent after conditioning on it. (3) The marginal ratio \(r\{1+\theta H_0(t)\}/\{1+\theta rH_0(t)\}\) is less than \(r\), because \(1+\theta H_0(t)<1+\theta rH_0(t)\). (4) It tends to \(\exp\{-H(t)\}\), the survival function without frailty, since \(\lim_{\theta\to0}(1+\theta H)^{-1/\theta}=\exp(-H)\).

Clinical Biostats