From event times to interval risks
When follow-up is recorded at scheduled visits, the exact event time may not be known. Instead, the data may indicate that a person experienced the event between two visits, or remained event-free through a visit. A discrete-time survival model describes these outcomes directly as a sequence of event indicators. In an NLME model, subject-specific random effects can account for persistent differences in event risk among individuals.
The key modeling step is to connect the chance of an event in an interval to an underlying hazard rate. If the hazard is constant within an interval, the probability of an event is not the rate itself: it is one minus the probability of surviving the interval. This relationship leads to the complementary log-log link.
Each subject contributes intervals only until the event or the end of observed follow-up. After an event, that subject is no longer at risk for that event and contributes no further interval indicators. Right-censored subjects contribute their event-free intervals up to censoring. If censoring occurs partway through an interval and the censoring time is known, the exposure interval should end at that time rather than treating the person as observed event-free through the scheduled interval end.
Deriving the complementary log-log link
Let \(\lambda_{ij}(t\mid b_i)\) denote the event hazard for subject \(i\) at time \(t\), conditional on their random effects \(b_i\) and covariate history. The hazard is an instantaneous event rate among those still at risk. Suppose it is constant over interval \(j\), with value \(\lambda_{ij}\), and that the subject is observed over the full interval. The conditional probability of surviving the interval is then the exponential of minus the cumulative hazard over that interval.
For a log-linear hazard model, write \(\log(\lambda_{ij})=\eta_{ij}\), where a typical predictor is \(\eta_{ij}=\alpha_j+x_{ij}^{T}\beta+z_{ij}^{T}b_i\). Here \(\alpha_j\) is an interval-specific baseline log hazard, \(x_{ij}\) and \(z_{ij}\) are covariate vectors, \(\beta\) is a vector of fixed effects, and \(b_i\) is a subject-level random effect. Taking the complementary log-log transformation gives the model’s link directly.
Thus the complementary log-log (cloglog) link is \(g(p)=\log\{-\log(1-p)\}\), and \(\log(\Delta_{ij})\) is an offset when interval lengths vary. The offset has coefficient fixed at one; it accounts for the time at risk and is not an estimated covariate effect. If all intervals have the same length, its value can be absorbed into the interval-specific baseline terms.
This derivation requires a constant hazard within each modeled interval, conditional on covariates and random effects. More generally, if the hazard varies within an interval, the event probability is \(1-\exp\{-\int_{t_{i,j-1}}^{t_{ij}}\lambda_i(t\mid b_i)\,dt\}\). A single constant-rate expression is justified only when that integrated hazard is represented appropriately. Covariates that change within a wide interval may require splitting the interval or calculating the integrated hazard across their changes.
Worked Example: Converting a Hazard into a Weekly Risk
Suppose, hypothetically, that the hazard is constant at \(0.08\) events per day for a subject during a seven-day interval. Calculate the interval event risk and verify its cloglog value.
The interval length is \(\Delta=7\) days, so the cumulative hazard is \(0.08\times 7=0.56\). The probability of no event during the interval is \(\exp(-0.56)\), and the event risk is
The cloglog transformation is \(\log\{-\log(1-0.4288)\}\). Since \(1-p=\exp(-0.56)\), this equals \(\log(0.56)=-0.5798\). The same result follows from the hazard predictor and offset: \(\log(0.08)+\log(7)=-2.5257+1.9459=-0.5798\). The seven-day event risk is therefore about \(42.9\%\), conditional on this hazard and the subject remaining at risk at the interval’s start.
The rate is in events per day, while the risk is a probability for the entire seven-day interval. Treating \(0.08\) as the interval risk would confuse these quantities and ignore the length of follow-up.
Bernoulli likelihood and random effects
Conditional on \(b_i\), each at-risk interval has a Bernoulli likelihood contribution. For observed intervals \(j=1,\ldots,J_i\), the subject’s conditional likelihood is the product of event probabilities for intervals with an event and survival probabilities for event-free intervals. In a single-event model, at most one observed interval has \(Y_{ij}=1\); all subsequent intervals are absent.
The random effects are usually assigned a distribution such as \(b_i\sim N(0,\Omega)\), where \(\Omega\) is their covariance matrix. The likelihood for the observed data from subject \(i\) is obtained by integrating the conditional likelihood over that distribution:
This integration matters: the conditional model describes risk for a given random effect, while the integrated likelihood describes the data under the assumed distribution of subject effects. The subject effects are shared across that subject’s intervals, so the interval observations are generally dependent after the random effects are integrated out, even when their conditional likelihood factors as a product.
Worked Example: A Conditional Likelihood Through Two Intervals
Consider a hypothetical subject with two one-week intervals and a piecewise-constant hazard of \(0.10\) per week in the first interval and \(0.20\) per week in the second. Suppose the subject has no event in week one and an event in week two. For illustration, calculate the likelihood conditional on \(b_i=0\), with the stated rates already incorporating the fixed and random-effect terms.
The first interval risk is \(p_{i1}=1-\exp(-0.10)=0.09516\), so the probability of surviving that week is \(\exp(-0.10)=0.9048\). The second interval risk is \(p_{i2}=1-\exp(-0.20)=0.1813\). The observed sequence is \(Y_{i1}=0\), \(Y_{i2}=1\), so its conditional likelihood is
The value is the probability of this particular two-interval pattern under the specified conditional rates. If the subject instead had no event in either week, the contribution would be \(\exp(-0.10)\exp(-0.20)=\exp(-0.30)=0.7408\). With an estimated random effect, these conditional contributions are not used alone as the subject’s marginal likelihood; they must be integrated over the random-effect distribution.
Interpreting conditional and population risks
A coefficient in the linear predictor changes the log hazard, conditional on the random effects and other covariates. For example, a one-unit increase in a covariate with coefficient \(\beta_k\) multiplies the conditional hazard by \(\exp(\beta_k)\), if the model includes that covariate linearly and the other terms are held fixed. It does not generally multiply the interval risk by that factor, because risk is a nonlinear function of both hazard and interval length.
An individual’s interval risk is \(p_{ij}(b_i)\). A population-average risk instead averages that probability over the random-effect distribution. In general, the population-average risk is not the conditional risk evaluated at \(b_i=0\): nonlinear averaging does not commute with transformation. For a particular population prediction, the average also depends on which covariates and interval length are held fixed.
Worked Example: Averaging Risk Over a Random Intercept
Suppose, hypothetically, that a subject’s daily hazard is \(0.04\exp(b_i)\), where \(b_i\sim N(0,0.25)\). For a five-day interval, calculate the risk at \(b_i=0\), then approximate the population-average risk using a three-point normal quadrature rule. This approximation uses weights \(1/6,\,2/3,\,1/6\) at \(b_i=-0.8660,\,0,\,0.8660\), respectively.
At \(b_i=0\), the five-day cumulative hazard is \(0.04\times5=0.20\), giving risk \(1-\exp(-0.20)=0.1813\). At \(b_i=-0.8660\), the daily hazard is \(0.04\exp(-0.8660)\approx0.01682\), giving risk \(1-\exp(-5\times0.01682)\approx0.0807\). At \(b_i=0.8660\), the daily hazard is approximately \(0.0951\), giving risk \(1-\exp(-5\times0.0951)\approx0.3784\).
Under this quadrature approximation, the population-average five-day risk is about \(19.7\%\), compared with \(18.1\%\) at the mean random effect \(b_i=0\). The difference occurs because risk is nonlinear in \(b_i\). The quadrature value is an approximation to the integral, not the risk for a particular subject.
Assumptions, diagnostics, and alternatives
The interval likelihood relies on a defined at-risk set, correctly ordered follow-up intervals, and event indicators that represent whether an event occurred in each observed interval. The event process must be modeled conditional on the included covariates and random effects. Censoring should be independent of the event process conditional on the modeled information, or otherwise handled through an appropriate likelihood. A shared random effect also assumes that the chosen distribution captures relevant persistent subject-level heterogeneity.
Useful checks are specific to these assumptions and the interval representation. Compare observed and model-predicted event proportions across time intervals and across important covariate groups. Inspect whether residual discrepancies concentrate in particular intervals, which may signal an inadequate baseline pattern or an interval length too coarse to represent changing risk. Check whether the assumed random-effect distribution and fitted variability are plausible; a model with negligible estimated variability may not support strong claims about subject heterogeneity. Also verify that interval lengths and offsets are correct, especially when follow-up schedules differ.
The main link alternative is the logit link, which models the log odds of an event in an interval. It can be useful as a direct discrete-time probability model, but its coefficients describe conditional odds ratios rather than hazard ratios, and it does not arise exactly from a piecewise-constant continuous-time hazard. When risks are small, logit and cloglog probabilities may be numerically similar; that approximation does not make their interpretations identical. A continuous-time survival model is another alternative when event times and a continuous-time hazard are central. The interval model is especially natural when event occurrence is only known between scheduled observations, but it does not recover the precise event time within an interval.
A further limitation is that the cloglog derivation does not remove the need to choose a useful time partition. Very wide intervals may conceal important within-interval changes; very fine intervals may create sparse event indicators and many baseline parameters. The piecewise-constant hazard is an assumption on each interval, not a claim that the underlying biological event process literally changes abruptly at every boundary.
Specify interval boundaries, lengths, and which observations are at risk at each interval start.
State the baseline, covariates, and random effects, and check whether a constant hazard within each interval is defensible.
Use Bernoulli contributions for observed interval outcomes, integrate over random effects for the marginal likelihood, and calculate interval risks for interpretations.
Check Your Understanding
Try each question, then compare your reasoning with the short solutions.
- A constant hazard is \(0.05\) per day over a four-day interval. What is the interval event risk?
- Why is \(\log(\Delta_{ij})\) included in a cloglog model when interval lengths vary?
- A subject has no event in the first interval and is censored at the end of the second interval. Which interval indicators contribute to the likelihood?
- Why is a population-average risk generally not the same as the risk computed at \(b_i=0\)?
Solutions. (1) \(1-\exp(-0.05\times4)=1-\exp(-0.20)=0.1813\), or \(18.1\%\). (2) Under a constant interval hazard, the cumulative hazard is \(\lambda_{ij}\Delta_{ij}\); its logarithm includes the log interval length as an offset. (3) Both intervals contribute as event-free outcomes, \(Y_{i1}=Y_{i2}=0\), assuming the subject was observed and at risk throughout each interval; there are no later contributions. (4) Risk is a nonlinear function of the random effect, so averaging \(1-\exp\{-\Delta\lambda(b_i)\}\) over its distribution need not equal that function evaluated at the mean effect.