Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Scaling the Marker Before Linking It to Hazard

The Basic Joint Model · Tutorial 163 of 697

Scaling the Marker Before Linking It to Hazard

You will learn to re-express a marker on a centered or standardized scale while preserving the joint model’s fitted hazards and interpreting its association coefficient correctly.

Advanced 11 min read

What You'll Learn

  • Define an affine transformation of the latent marker and derive the corresponding hazard-model parameters.
  • Distinguish what centering changes from what rescaling changes in the association coefficient.
  • Re-express marker units, association coefficients, and baseline hazards consistently.
  • Verify equivalence by comparing conditional hazards before and after transformation.
  • Recognize errors that break equivalence and diagnose numerical or interpretive problems.

Why Change the Marker’s Scale?

A marker may be measured in units that are inconvenient for computation or interpretation. A coefficient per one unit can be very small when the marker’s values are in the hundreds, while a coefficient per one standard deviation may be easier to compare or communicate. Centering can also give the marker’s zero value a useful reference meaning. These changes are re-expressions of a model, not changes to the underlying subject-specific marker trajectories or their fitted hazards—provided all affected parameters are transformed consistently.

The key distinction is that centering alone does not change the coefficient of a linear marker term in the log hazard. It changes the reference point and therefore the baseline-hazard parameterization. Rescaling changes the numerical coefficient because one unit on the new scale represents a different marker difference.

Model and Affine Re-expression

Let \(m_i(t)\) be subject \(i\)’s latent marker value at time \(t\), and let \(h_i(t\mid b_i)\) be that subject’s hazard conditional on the shared random effects \(b_i\). Consider the conditional hazard model

$$ h_i(t\mid b_i) = h_0(t)\exp\{\gamma^\top w_i+\alpha m_i(t)\}, $$

where \(h_0(t)\) is the baseline hazard, \(w_i\) is a vector of baseline covariates, \(\gamma\) is its coefficient vector, and \(\alpha\) is the marker-association coefficient. This tutorial concerns a linear marker contribution \(\alpha m_i(t)\) to the log hazard. The longitudinal submodel supplies \(m_i(t)\); the hazard uses that latent value, not a noisy observed measurement substituted for it.

Definition: For a fixed center \(c\) and a fixed positive scale \(s\), define the transformed latent marker by \(m_i^*(t)=(m_i(t)-c)/s\). The original and transformed values are related by \(m_i(t)=c+s\,m_i^*(t)\). The center \(c\) has the marker’s original units, and \(s\) is the number of original units represented by one transformed unit.

Substitute \(m_i(t)=c+s\,m_i^*(t)\) into the hazard model:

$$ h_i(t\mid b_i) = h_0(t)\exp\{\gamma^\top w_i+\alpha c+\alpha s\,m_i^*(t)\}. $$

Thus an exactly equivalent parameterization is

$$ \alpha^*=s\alpha, \qquad h_0^*(t)=h_0(t)\exp(\alpha c), \qquad h_i(t\mid b_i) = h_0^*(t)\exp\{\gamma^\top w_i+\alpha^*m_i^*(t)\}. $$

The transformed baseline hazard is still a baseline hazard: it is multiplied by a positive constant that does not depend on subject or time. The transformed and original conditional hazards are therefore equal at every time for every subject and random-effects value. This equivalence assumes the same fixed \(c\) and \(s\) for all subjects and times, the linear marker term shown above, and a baseline-hazard parameterization that can accommodate the constant multiplier. With a fixed finite-dimensional baseline-hazard parameterization, the multiplier must also be representable in that parameterization.

What Centering and Rescaling Do

If the marker is only centered, \(s=1\). Then \(\alpha^*=\alpha\): the coefficient per marker unit is unchanged. The baseline hazard becomes \(h_0^*(t)=h_0(t)\exp(\alpha c)\), so the zero point of the transformed marker corresponds to the original marker value \(c\). If the marker is also rescaled, the coefficient becomes \(s\alpha\). Its units change accordingly: if the original coefficient is per milligram per liter and \(s=5\) milligrams per liter, then \(\alpha^*\) is the log-hazard change per five milligrams per liter.

The marker’s longitudinal model must also be handled coherently. If the marker is merely re-expressed inside the hazard, the longitudinal model can remain on its original scale and the identity \(m_i(t)=c+s m_i^*(t)\) is used in the hazard. If the observed marker and its longitudinal submodel are instead fitted on the transformed scale, all marker measurements and the longitudinal mean and error components must be transformed too. For example, a measurement error with variance \(\sigma^2\) on the original scale has variance \(\sigma^2/s^2\) on the transformed scale. The transformed latent trajectory must represent \((m_i(t)-c)/s\), including its fixed and random components.

Worked Example: Centering at a Clinically Meaningful Value

Suppose a hypothetical model uses a marker measured in milligrams per liter, with \(\alpha=-0.0800\) per milligram per liter and \(h_0(t)=0.0200\) per year at a particular time. Center the marker at \(c=10.0\) milligrams per liter without rescaling. For a subject whose latent marker is \(12.0\) milligrams per liter, verify the hazard before and after centering, setting \(w_i=0\) for this calculation.

Before centering, the marker contribution is \(m_i(t)=12.0\). The conditional hazard is

$$ 0.0200\exp\{(-0.0800)(12.0)\} = 0.0200\exp(-0.960) \approx 0.00766\ \text{per year}. $$

The centered marker is \(m_i^*(t)=12.0-10.0=2.0\). Since \(s=1\), \(\alpha^*=\alpha=-0.0800\), and the transformed baseline hazard is

$$ h_0^*(t)=0.0200\exp\{(-0.0800)(10.0)\} =0.0200\exp(-0.800) \approx 0.00899\ \text{per year}. $$

The re-expressed hazard is \(0.00899\exp\{(-0.0800)(2.0)\}\approx0.00766\) per year, matching the original hazard up to rounding. Centering changed the baseline-hazard value at this time, but not the marker coefficient or the fitted hazard.

Worked Example: Standardizing the Marker

In a hypothetical model, a marker is measured in units on its original scale, \(\alpha=0.0300\) per unit, and \(h_0(t)=0.0100\) per year. Re-express it as \(m_i^*(t)=(m_i(t)-50)/10\), so one transformed unit represents 10 original units. For a latent marker value of 70, calculate the transformed parameters and verify the hazard, taking \(w_i=0\).

Here \(c=50\) and \(s=10\). Therefore \(\alpha^*=10(0.0300)=0.300\) per transformed unit, and

$$ h_0^*(t)=0.0100\exp\{(0.0300)(50)\} =0.0100\exp(1.50) \approx0.04482\ \text{per year}. $$

On the original scale, the hazard at \(m_i(t)=70\) is \(0.0100\exp\{(0.0300)(70)\}=0.0100\exp(2.10)\approx0.08166\) per year. On the transformed scale, \(m_i^*(t)=(70-50)/10=2\), giving \(0.04482\exp\{(0.300)(2)\}\approx0.08166\) per year. The coefficient \(0.300\) is not a change in the fitted association: it expresses the same log-hazard relationship per 10 original marker units rather than per one.

Derivation and Invariance of the Association Contrast

The preservation of the hazard follows directly from substitution. For any two latent marker values \(m_a\) and \(m_b\) at the same time, with the same covariates and other model quantities, the conditional hazard ratio is

$$ \frac{h(m_b)}{h(m_a)} = \exp\{\alpha(m_b-m_a)\}. $$

Under the affine transformation, \(m_b-m_a=s(m_b^*-m_a^*)\). Consequently,

$$ \exp\{\alpha(m_b-m_a)\} = \exp\{\alpha s(m_b^*-m_a^*)\} = \exp\{\alpha^*(m_b^*-m_a^*)\}. $$

The marker contrast and its interpretation are therefore invariant when expressed in corresponding units. A one-unit contrast on the transformed scale represents an \(s\)-unit contrast on the original scale; its hazard ratio is \(\exp(\alpha^*)=\exp(s\alpha)\). A center does not appear in a difference, which is another way to see why centering alone does not change the association coefficient.

For fixed \(s\), standard errors and confidence limits for the association coefficient transform by the same positive factor: \(SE(\hat{\alpha}^*)=s\,SE(\hat{\alpha})\), and a confidence interval for \(\alpha\) maps to one for \(\alpha^*\) by multiplying both endpoints by \(s\). The Wald statistic for testing \(H_0:\alpha=0\) is unchanged because both the estimate and its standard error are multiplied by \(s\). This statement treats \(s\) as fixed for the reparameterization; if a data-estimated scale is treated as uncertain in a separate inferential target, that uncertainty must be accounted for.

Worked Example: Checking a Hazard Ratio Under Rescaling

Suppose \(\alpha=0.120\) per original marker unit and define \(m_i^*(t)=(m_i(t)-12)/4\). Compare the hazard ratio for a two-unit increase on the original marker scale with the corresponding transformed-scale calculation.

The original-scale hazard ratio is \(\exp\{(0.120)(2)\}=\exp(0.240)\approx1.271\). The transformed coefficient is \(\alpha^*=4(0.120)=0.480\) per transformed unit. A two-unit original increase is a transformed increase of \(2/4=0.5\), so the transformed calculation is \(\exp\{(0.480)(0.5)\}=\exp(0.240)\approx1.271\). Thus the conditional hazard is about 27.1% higher for this marker contrast in either parameterization, holding the other terms fixed. This is a model-based association, not a causal effect.

Practical Checks, Alternatives, and Limitations

Raw units, centered units, and standardized units are alternative coordinate systems for the same linear marker association when the transformation and model are consistent. Raw units preserve direct measurement units. Centering makes the zero marker value a chosen reference and may improve the meaning of the baseline-hazard reference. Scaling can make a coefficient numerically easier to read or improve numerical conditioning when marker values are very large or very small. These are not substitutes for changing the association model; a linear link remains linear after an affine transformation.

Useful checks during fitting include confirming the formulas for \(\alpha^*\) and \(h_0^*(t)\), comparing conditional hazards at several marker values, and checking that fitted linear predictors agree after the transformation. If an equivalent model fitted with different coordinates gives materially different fitted hazards, investigate whether the marker transformation was applied consistently, whether the baseline-hazard parameterization can absorb the multiplier, and whether optimization has converged adequately. Small numerical discrepancies can occur from rounding or numerical optimization; systematic discrepancies are a warning.

Equivalence need not hold for a subject-specific center \(c_i\) or a time-varying center \(c(t)\): the resulting factor \(\exp\{\alpha c_i\}\) or \(\exp\{\alpha c(t)\}\) cannot generally be absorbed into one common baseline hazard. Nor does affine rescaling repair a misspecified longitudinal trajectory, an unsuitable hazard association, or problems caused by weak information about the latent marker. A nonlinear transformation of the marker is not just a change of units in this linear model; it changes the form of the hazard association unless the model is transformed accordingly.

  • Common mistake: “Centering changes the association coefficient.” With a linear marker term, centering alone has \(s=1\), so \(\alpha^*=\alpha\). It changes the reference point and rescales the baseline hazard.
  • Common mistake: changing the marker but not its coefficient. If one transformed unit represents \(s\) original units, the coefficient must become \(s\alpha\); otherwise the marker contribution to the log hazard changes.
  • Common mistake: comparing baseline hazards as if their reference scales matched. The transformed baseline hazard includes the factor \(\exp(\alpha c)\). A difference in its numerical value does not by itself indicate different fitted subject-specific hazards.
  • Common mistake: treating a standardized coefficient as a per-original-unit coefficient. State the scale explicitly and translate contrasts using \(m_i(t)=c+s\,m_i^*(t)\).
Key takeaway: For \(m_i^*(t)=(m_i(t)-c)/s\), the equivalent linear hazard association uses \(\alpha^*=s\alpha\) and \(h_0^*(t)=h_0(t)\exp(\alpha c)\). Centering changes the baseline reference; rescaling changes the numerical coefficient; consistent transformation preserves fitted conditional hazards.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. A marker is centered at 8 units but not rescaled. What happens to the association coefficient, and what happens to the baseline hazard?
  2. If \(m_i^*(t)=(m_i(t)-20)/5\) and \(\alpha=0.04\) per original unit, calculate \(\alpha^*\) and state its units.
  3. For the transformation in question 2, what original-scale marker difference corresponds to a transformed difference of 0.4?
  4. Why is a subject-specific center generally not absorbed by a single common baseline hazard?

Solutions. 1. The coefficient is unchanged because \(s=1\); the baseline hazard is multiplied by \(\exp(8\alpha)\). 2. \(\alpha^*=5(0.04)=0.20\) per transformed unit, where one transformed unit represents five original marker units. 3. The original difference is \(5(0.4)=2\) marker units. 4. The required multiplier would be \(\exp(\alpha c_i)\), which varies by subject when \(c_i\) varies, whereas a common baseline hazard cannot supply a different multiplier for each subject.

Clinical Biostats