Why transform the current marker value?
A linear current-value association assigns the same change in log hazard to the same absolute increase in the latent marker, wherever that increase occurs. That may be unsuitable when the association bends with marker level: an increase from a low value might matter differently from the same increase at a high value. A nonlinear transformation lets the hazard depend on the marker's current level in a specified curved way.
The key is to transform the latent marker trajectory, not to replace it with a noisy observed measurement. At time \(t\), write \(m_i(t)\) for the underlying marker value for subject \(i\). The longitudinal model describes this trajectory; the hazard model can then use a function of it. The association remains conditional on the model's other covariates and random effects.
Model and hazard-ratio contrast
A general conditional hazard specification for one such link is
Here \(h_0(t)\) is the baseline hazard, \(\mathbf w_i\) is a vector of other covariates, \(\boldsymbol\gamma\) their coefficient vector, and \(\mathbf b_i\) denotes the subject-specific random effects that help determine the latent trajectory. This is a conditional hazard: its interpretation holds given the random effects and covariates in the model. The hazard has units of inverse time; the exponential term is dimensionless.
For a marker contrast, compare two model-implied hazards at the same time, with the same other covariates and other terms held fixed. If the marker values are \(m_A\) and \(m_B\), the hazard ratio for \(B\) relative to \(A\) is
The baseline hazard and shared covariate terms cancel. This is a conditional model contrast, not automatically a population-averaged comparison and not a causal effect. If the comparison also changes covariates, their linear-predictor differences must be included in the exponent.
Choose \(f(m)\) and check its domain. A square is defined for any real marker; a logarithm requires a positive argument.
Evaluate \(f(m_B)-f(m_A)\), preserving the order \(B\) relative to \(A\).
Multiply the transformed contrast by \(\alpha\), exponentiate, and interpret the result as a conditional hazard ratio at the specified marker values.
Square transformation: curvature and symmetry
For \(f(m)=m^2\), the hazard is proportional to \(\exp\{\alpha m_i(t)^2\}\), apart from the baseline and other covariates. The finite contrast is
Unlike a linear current-value link, a square link does not generally give the same hazard ratio for equal marker increments at different starting levels. Its shape is also symmetric around zero: \(m\) and \(-m\) have the same transformed value. Thus, for a marker that can be negative, the model associates the same hazard with equal-magnitude positive and negative values, all else equal. If the marker is strictly positive, the square is increasing in the marker, but the change in its value grows as the marker increases.
The parameter \(\alpha\) has units reciprocal to the squared marker units, so \(\alpha m^2\) is dimensionless. Its sign determines whether larger squared values raise or lower the conditional hazard. For a local change around marker value \(m\), the derivative of the log hazard with respect to the marker is \(2\alpha m\); the direction of association can therefore vary across zero.
Worked Example: A Squared Marker Contrast
Suppose a hypothetical model uses a square link for a marker measured in mg/dL, with \(\alpha=0.10\;(\mathrm{mg/dL})^{-2}\). At a fixed time and fixed covariates, compare latent values \(m_A=1.5\) mg/dL and \(m_B=2.5\) mg/dL.
The transformed contrast is \(2.5^2-1.5^2=6.25-2.25=4.00\;(\mathrm{mg/dL})^2\). Therefore,
Under this hypothetical conditional model, the hazard at a latent value of 2.5 mg/dL is 1.492 times the hazard at 1.5 mg/dL, with the stated terms held fixed. The result follows from the squared values, not merely their difference of 1.0 mg/dL. For example, increasing from 0.5 to 1.5 mg/dL gives a squared contrast of \(2.25-0.25=2.00\), and hence \(\exp(0.10\times2.00)=1.221\), a different ratio for the same absolute increase.
Log transformation: relative contrasts and domain
A log link is \(f(m)=\log(m/c)\), where \(m>0\) and \(c>0\) is a fixed reference value in the same units as \(m\). The ratio for two positive marker values is
The reference value makes the logarithm's argument dimensionless. It cancels from a contrast, so changing \(c\) does not change this hazard ratio when the same \(c\) is used for both values. The log link gives a relative, rather than absolute, marker contrast: doubling the marker produces the same ratio at different starting values, provided both are in the model's valid range. The parameter \(\alpha\) is dimensionless.
Positivity is a substantive requirement, not a computational detail. If the latent marker can be zero or negative, \(\log(m/c)\) is undefined there. Adding an arbitrary constant to force positivity changes the model and its interpretation; it is not a harmless repair. The transformation must be scientifically defensible over the trajectory values used while subjects remain at risk.
Worked Example: A Log-Marker Contrast
Consider a hypothetical positive marker measured in mg/L. Let \(c=1\) mg/L and \(\alpha=0.70\). Compare latent values of 2 mg/L and 8 mg/L at the same time and covariate values.
Both values are positive, and the log arguments are dimensionless: \(2/1=2\) and \(8/1=8\). The marker ratio is \(8/2=4\). Thus,
The conditional hazard at 8 mg/L is 2.639 times the hazard at 2 mg/L under this model. The calculation depends on the fourfold marker ratio, not on the absolute difference of 6 mg/L. For a doubling, the model-implied ratio is \(2^{0.70}=1.625\), regardless of the positive starting value, as long as the model applies there.
What the association parameter does and does not say
The value of \(\alpha\) alone does not describe a universal hazard ratio for a nonlinear link. The relevant quantity is \(\alpha[f(m_B)-f(m_A)]\), which depends on both marker values and the chosen transformation. In particular, a positive \(\alpha\) means higher transformed values correspond to a higher conditional hazard; it does not necessarily mean that every increase in the original marker raises the hazard.
A short derivative makes this distinction explicit. At fixed time and covariates, the marker-dependent part of the log hazard is \(\alpha f(m)\). For a small marker change \(\Delta m\), its first-order change is approximately \(\alpha f'(m)\Delta m\). Thus the local log-hazard change per marker unit is \(\alpha f'(m)\). For the square link it is \(2\alpha m\); for the log link it is \(\alpha/m\). These derivatives describe local sensitivity, while the finite hazard-ratio formula is the appropriate calculation for a specified, non-small contrast.
This identity follows by subtracting the two log hazards: terms held fixed, including \(\log h_0(t)\) and the covariate contribution, cancel. Exponentiating the remaining difference gives the hazard ratio. The derivation also shows why the contrast must keep the comparison order consistent: reversing \(A\) and \(B\) reciprocates the ratio.
Worked Example: A Square Link Can Give the Same Hazard at Different Values
Suppose, hypothetically, that a marker can take negative values and the fitted square-link parameter is \(\alpha=0.08\) per squared marker unit. Compare \(m_A=-3\) and \(m_B=3\), with all other terms fixed.
The squared contrast is \(3^2-(-3)^2=9-9=0\). Therefore, \(\operatorname{HR}(3:-3)=\exp(0.08\times0)=1.000\). This equality is imposed by the square transformation: the model assigns equal transformed current values to \(-3\) and \(3\). It does not establish that the two marker values have equal hazards in reality. If that symmetry is not scientifically plausible, the transformation is a poor choice.
Assumptions, diagnostics, and alternatives
A nonlinear current-value link is useful only if its assumptions are plausible. The longitudinal model must provide a meaningful latent trajectory on the scale being transformed; the hazard must depend on that current value through the specified \(f\); and the conditional hazard specification must be adequate given its baseline hazard, covariates, and random-effects structure. The marker contrast formula additionally assumes that the comparison holds those other terms fixed. Joint-model estimation accounts for uncertainty in the latent trajectory under the specified model, but it cannot make an incorrect transformation correct.
Useful checks focus on the restrictions the transformation imposes. Examine whether observed longitudinal measurements and fitted latent trajectories support the scale and range used in the hazard link. Assess whether the assumed transformed association is compatible with the event data, and whether conclusions depend heavily on a few subjects or on extrapolated trajectory values. For a log link, verify that trajectories are positive over the relevant at-risk times; values at or near zero are a warning, and negative values invalidate the link. For a square link, ask whether equal-magnitude positive and negative marker values should plausibly have equal transformed effects. For either link, inspect uncertainty in the association estimate and in model-implied contrasts rather than relying only on a point estimate.
A linear current-value link is simpler and imposes a constant log-hazard change per absolute marker unit. A square link permits curvature but imposes symmetry around zero. A log link is suited to relative contrasts but requires positive values. These forms answer different scientific questions; none is automatically preferable. Compare candidate specifications using appropriate model fit and predictive checks, and consider whether the observed marker range can distinguish their shapes. A complicated transformation can be weakly identified when there are few events or little information at the extremes.
| Link | Finite transformed contrast | Central restriction |
|---|---|---|
| Linear: \(f(m)=m\) | \(m_B-m_A\) | Equal absolute increases have equal log-hazard changes. |
| Square: \(f(m)=m^2\) | \(m_B^2-m_A^2\) | Values with equal magnitude have equal transformed effects. |
| Log: \(f(m)=\log(m/c)\) | \(\log(m_B/m_A)\) | Requires positive values; equal proportional changes have equal log-hazard changes. |
A common mistake is to use a measured value \(y_{ij}\) in place of the latent value \(m_i(t)\), then interpret the resulting contrast as the joint model's current-value association. That reasoning ignores measurement error and may give a different, attenuated or otherwise distorted association. The correction is to define the hazard link in terms of the latent trajectory and use the observed measurements to inform that trajectory through the longitudinal model. Another mistake is to say that a positive square-link coefficient makes every marker increase raise the hazard: the local slope is \(2\alpha m\), so its sign depends on \(m\) as well as \(\alpha\).
Check Your Understanding
Answer each question, then compare your work with the solutions below.
- For a square link with \(\alpha=0.05\) per squared marker unit, calculate the hazard ratio for \(m_B=4\) versus \(m_A=2\). State the contrast direction.
- For a log link with \(\alpha=-0.30\), what is the hazard ratio for a doubling of a positive marker? Interpret its direction.
- Why is \(\log(m/c)\) preferable to writing \(\log(m)\) when \(m\) carries physical units, and what happens to \(c\) in a hazard-ratio contrast?
- A square-link model is fitted to a marker that may be negative. Name one restriction imposed by the link and one diagnostic question that follows from it.
Solutions. (1) The squared contrast is \(4^2-2^2=16-4=12\). Thus \(\operatorname{HR}(4:2)=\exp(0.05\times12)=\exp(0.600)=1.822\). The conditional hazard at 4 is 1.822 times that at 2, with other terms fixed. (2) A doubling gives \(\operatorname{HR}=2^{-0.30}=\exp(-0.30\log2)=\exp(-0.2079)=0.8123\). Under the model, the hazard at the doubled marker value is 0.8123 times the hazard at the original positive value. (3) The ratio \(m/c\) is dimensionless because \(c\) has the same units as \(m\). In a contrast, \(\log(m_B/c)-\log(m_A/c)=\log(m_B/m_A)\), so \(c\) cancels. (4) The square link assigns equal transformed effects to \(m\) and \(-m\). A diagnostic question is whether such symmetry is plausible for the marker and event process over the observed range.