Tutorials › Competing Risks and Multi-State Models › Scaling Continuous Covariates for Transition Effects

Regression for Multi-State Data · Tutorial 355 of 699

Scaling Continuous Covariates for Transition Effects

Learn to recode continuous predictors so transition-specific hazard ratios describe useful increments and to transform estimates and confidence intervals correctly.

Advanced 10 min read

What You'll Learn

  • Choose a meaningful unit for a continuous predictor in a transition-specific hazard model.
  • Distinguish the effects of centering a predictor from the effects of rescaling it.
  • Transform coefficient estimates, standard errors, and confidence intervals to a new scale.
  • Interpret transition-specific hazard ratios for specified predictor increments.
  • Recognize when a convenient scale does not fix an inadequate model or sparse data.

Why Scale a Continuous Predictor?

A regression coefficient depends on the units used to record its predictor. If a biomarker is measured in single units, its coefficient describes a one-unit difference; if it is recorded in tens of units, the coefficient describes a ten-unit difference. The fitted comparisons need not change, but their numerical expression and practical interpretation do. In a multi-state model, this choice matters separately for each transition whose hazard has a covariate effect.

For instance, a hazard ratio of 1.02 per one-unit increase may sound small even when a clinically relevant 10-unit increase corresponds to a much larger contrast. Conversely, reporting a hazard ratio per one year of age may be less useful than reporting it per decade. Centering answers a different question: it makes zero on the recoded scale correspond to a chosen reference value, often one with direct scientific meaning.

The transformations below are exact algebraic recodings, not new modeling assumptions. Their interpretations still depend on the underlying transition model being appropriate, including its proportional-hazards and linear-predictor assumptions.

Model and Transformation

Definition: For transition \(r\), suppose the transition intensity has the proportional-hazards form \(\lambda_r(t\mid x,z)=\lambda_{0r}(t)\exp\{\beta_r x+\gamma_r^\mathsf{T}z\}\), where \(x\) is a continuous predictor, \(z\) denotes other covariates, \(\lambda_{0r}(t)\) is the baseline intensity for transition \(r\), and \(\beta_r\) is its coefficient for \(x\). For a chosen reference value \(c\) and positive increment \(q\), define \(u=(x-c)/q\). Then \(x=c+qu\), the coefficient for \(u\) is \(\beta_{r,u}=q\beta_r\), and a one-unit increase in \(u\) represents a \(q\)-unit increase in \(x\).

Here, \(c\) has the same units as \(x\), and \(q\) is a positive number of \(x\)-units per one recoded unit. The recoding combines two operations: subtracting \(c\) centers the predictor, while dividing by \(q\) sets the size of one coded unit. If \(q=1\), only centering occurs. If \(c=0\), the predictor is rescaled without being centered.

Substituting \(x=c+qu\) into the model gives

$$ \lambda_r(t\mid u,z) =\lambda_{0r}(t)\exp\{\beta_r(c+qu)+\gamma_r^\mathsf{T}z\} =\lambda_{0r}(t)\exp(\beta_r c)\exp\{(q\beta_r)u+\gamma_r^\mathsf{T}z\}. $$

Thus the coefficient changes to \(q\beta_r\). In a Cox model, the factor \(\exp(\beta_r c)\) can be absorbed into the baseline intensity for transition \(r\); the recoding leaves the fitted relative hazard comparisons unchanged. For any two predictor values \(x_1\) and \(x_2\), the hazard ratio is \(\exp\{\beta_r(x_2-x_1)\}\), so it depends on their difference, not on the chosen center.

This interpretation assumes that the specified model is meaningful over the predictor range being compared: in particular, the log transition intensity is linear in \(x\) and the coefficient does not vary with time under the proportional-hazards specification. Rescaling itself does not establish either assumption. It also does not make a large increment scientifically sensible if that increment lies mostly outside the observed data.

Transforming Estimates and Confidence Intervals

If the original coefficient estimate is \(\hat\beta_r\) with standard error \(SE(\hat\beta_r)\), then the estimate and standard error on the recoded scale are multiplied by \(q\). A Wald confidence interval is transformed by the same positive factor on the coefficient scale. Exponentiating the endpoints gives the interval for the hazard ratio corresponding to a \(q\)-unit increase in \(x\).

$$ \hat\beta_{r,u}=q\hat\beta_r,\qquad SE(\hat\beta_{r,u})=q\,SE(\hat\beta_r), $$
$$ \left[\hat\beta_r-1.96SE(\hat\beta_r),\, \hat\beta_r+1.96SE(\hat\beta_r)\right] \longrightarrow \left[q\{\hat\beta_r-1.96SE(\hat\beta_r)\},\, q\{\hat\beta_r+1.96SE(\hat\beta_r)\}\right]. $$

The factor 1.96 gives an approximate 95% Wald interval when the coefficient estimate is approximately normal. Exponentiation is increasing, so exponentiate the lower and upper coefficient limits in that order. The resulting interval describes uncertainty in the hazard ratio for the specified increment; it is not a probability statement about where the fixed parameter lies.

The same transformation applies to a variance-covariance matrix. If several coefficients are rescaled, multiply each coefficient by its own scale factor and transform the covariance matrix accordingly. For a single coefficient, its variance is multiplied by \(q^2\), which is why its standard error is multiplied by \(q\), not by \(q^2\). Centering alone does not alter the slope estimate or its standard error.

Worked Example: Reporting an Age Effect per Decade

Suppose a hypothetical transition-specific Cox model estimates an age coefficient of \(0.032\) per year, with standard error \(0.014\). Assume the proportional-hazards and linear-predictor specifications are being used for ages in the observed range. Find the hazard ratio and approximate 95% Wald confidence interval for a 10-year increase.

Set \(q=10\). The coefficient for a 10-year increase is \(10(0.032)=0.320\), and its standard error is \(10(0.014)=0.140\). The coefficient-scale interval is \([0.320-1.96(0.140),\,0.320+1.96(0.140)]\). Since \(1.96(0.140)=0.2744\), this is \([0.0456,\,0.5944]\).

Exponentiating gives the hazard ratio \(\exp(0.320)=1.377\), with interval \([\exp(0.0456),\,\exp(0.5944)]\approx[1.047,\,1.811]\).

Interpretation. Under the fitted model, a 10-year increase in age is associated with an estimated 1.377-fold transition hazard, or about a 37.7% higher instantaneous transition rate, conditional on the other model covariates and being in the transition’s risk set. The approximate 95% confidence interval for that hazard ratio is 1.047 to 1.811. This is a relative instantaneous rate, not a difference in transition probabilities.

Worked Example: Centering and Scaling a Biomarker

In a hypothetical model for one transition, a laboratory marker is measured in units for which the reference value is 48. The estimated coefficient is \(0.018\) per unit, with standard error \(0.008\). Recode it as \(u=(x-48)/5\), so one unit of \(u\) represents a five-unit increase. Interpret the coefficient and its interval.

The recoded coefficient is \(5(0.018)=0.090\), with standard error \(5(0.008)=0.040\). Its 95% Wald coefficient interval is \([0.090-1.96(0.040),\,0.090+1.96(0.040)]\). Because \(1.96(0.040)=0.0784\), the interval is \([0.0116,\,0.1684]\).

The estimated hazard ratio for a five-unit increase is \(\exp(0.090)=1.094\). Its interval is \([\exp(0.0116),\,\exp(0.1684)]\approx[1.012,\,1.183]\).

The center 48 makes \(u=0\) correspond to \(x=48\), and \(u=1\) to \(x=53\). The hazard ratio compares those predictor values, conditional on the other covariates in the model. Centering does not change this five-unit comparison relative to an uncentered coding; it makes the reference value explicit. The baseline intensity is re-expressed at the centered reference, but the relative comparison is preserved.

Transition-Specific Scales

A common recoding can be used for a continuous predictor across transitions even when its coefficients differ by transition. The same scale makes the resulting hazard ratios directly comparable in units of the predictor. It does not force the effects to be equal: each transition retains its own coefficient and uncertainty. If the goal is to report different scientifically meaningful increments for different transitions, each transformation must be stated explicitly so readers can identify what each hazard ratio compares.

Worked Example: Rescaling Effects for Two Transitions

Consider a hypothetical model with separate coefficients for a continuous exposure \(x\), measured in units where \(x=20\) is a useful reference. For transition A, the estimate is \(0.030\) per unit with standard error \(0.0125\). For transition B, it is \(-0.015\) per unit with standard error \(0.010\). Recode \(u=(x-20)/4\).

For transition A, the coefficient per four-unit increase is \(4(0.030)=0.120\), and its standard error is \(4(0.0125)=0.050\). Its coefficient interval is \([0.120-1.96(0.050),\,0.120+1.96(0.050)]=[0.022,\,0.218]\). The hazard ratio is \(\exp(0.120)=1.127\), with interval \([\exp(0.022),\,\exp(0.218)]\approx[1.022,\,1.244]\).

For transition B, the coefficient per four-unit increase is \(4(-0.015)=-0.060\), and its standard error is \(4(0.010)=0.040\). Its coefficient interval is \([-0.060-1.96(0.040),\,-0.060+1.96(0.040)]=[-0.1384,\,0.0184]\). The hazard ratio is \(\exp(-0.060)=0.942\), with interval \([\exp(-0.1384),\,\exp(0.0184)]\approx[0.871,\,1.019]\).

For transition A, the estimated hazard is higher at values of \(x\) four units apart, with the larger value having the higher hazard under the model. For transition B, the point estimate is lower at the larger value, but its interval includes 1. These are transition-specific conditional comparisons; the calculations do not establish that the two transition effects differ statistically.

Choosing a Scale and Checking the Result

A useful scale is one that gives a hazard ratio for a contrast readers can understand, such as five laboratory units, ten years, or a specified clinically meaningful increase. A useful center is a relevant reference value, such as a prespecified threshold or a typical value within the study population. If zero is already meaningful and the predictor is on a convenient scale, recoding may not improve interpretation.

Before reporting a transformed effect, check the following:

  • Units: State both the original units and the increment represented by one recoded unit. “Per unit” is not informative if the unit is unclear.
  • Transition: Name the transition to which the coefficient and hazard ratio apply. A transition-specific effect is not automatically a statement about every transition.
  • Arithmetic: Multiply the coefficient and its standard error by the same positive \(q\); form the interval on the coefficient scale, then exponentiate both endpoints.
  • Data support: Check that the reported increment is represented by enough observations in the relevant transition risk sets. A convenient scale cannot remedy sparse information.
  • Model form: Scaling does not diagnose whether a straight-line effect on the log-hazard scale is adequate, nor whether proportional hazards is reasonable.

A second common way to report a continuous effect is a hazard ratio per one original measurement unit. This is mathematically valid, and it can be preferable when that unit is already interpretable. A standardized effect per one standard deviation may help express changes on a common scale across differently measured predictors, but it depends on the chosen standard deviation and may be less directly clinical. Centering is useful for defining the reference value, while rescaling sets the contrast size; neither choice should obscure the underlying units.

Common Mistakes and Limitations

  • Changing the coefficient but not its uncertainty. If the predictor is rescaled by \(q\), its standard error and coefficient interval must also be scaled by \(q\). Otherwise the hazard-ratio interval is inconsistent with the reported estimate.
  • Thinking centering changes the slope effect. Subtracting a constant changes the reference point, not the coefficient for a one-unit difference. Dividing by \(q\) changes the numerical coefficient because one coded unit now represents \(q\) original units.
  • Interpreting the baseline as a population-average hazard. After centering, the baseline corresponds to the centered predictor value and the model’s reference values for other covariates. It is not generally an average hazard or an average person’s hazard.
  • Reporting a confidence interval as certainty about the parameter. A 95% confidence procedure has 95% long-run coverage under its assumptions. The calculated interval does not assign a 95% probability to the fixed hazard ratio being inside it.
  • Assuming scaling repairs misspecification. A neat per-decade or per-five-unit estimate still relies on the assumed linear log-hazard relationship and proportional hazards. If these assumptions are poor, the transformed coefficient remains an inadequate summary.
  • Extrapolating a large increment. A hazard ratio for a 20-unit increase is algebraically available under a linear model, but it may be misleading if few or no individuals span that contrast within the relevant risk sets.

A further technical point is that a negative multiplier reverses the coefficient interval’s endpoint order. The conventions here use a positive increment \(q\), so the transformed interval endpoints remain in their usual order. For ordinary reporting, define the recoded predictor so that increasing values correspond to increasing values of the original predictor.

Key takeaway: For \(u=(x-c)/q\) with \(q>0\), the transition-specific coefficient and standard error become \(q\) times their original values. The hazard ratio \(\exp(q\beta_r)\) describes a \(q\)-unit increase in the original predictor. Centering sets the reference value; rescaling sets the increment. Neither changes the substantive model comparison when the model is otherwise unchanged.

Check Your Understanding

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

  1. A transition-specific coefficient is \(0.025\) per year, with standard error \(0.010\). What are the coefficient and standard error for a five-year increase?
  2. If a predictor is centered at 60 but not rescaled, what happens to the slope coefficient for a one-unit increase? What does the value zero on the centered scale represent?
  3. For a coefficient of \(-0.040\) per unit and standard error \(0.015\), calculate the hazard ratio and approximate 95% Wald interval for a three-unit increase.
  4. Does changing a predictor’s scale make a nonlinear log-hazard relationship linear? Explain.

Solutions. (1) Multiply both values by five: the coefficient is \(0.125\) per five years and its standard error is \(0.050\). (2) The slope coefficient is unchanged because the scale increment is still one original unit; zero on the centered scale represents an original value of 60. (3) The coefficient for three units is \(3(-0.040)=-0.120\), with standard error \(3(0.015)=0.045\). The coefficient interval is \([-0.120-1.96(0.045),-0.120+1.96(0.045)]=[-0.2082,-0.0318]\). Thus the hazard ratio is \(\exp(-0.120)=0.887\), with interval \([\exp(-0.2082),\exp(-0.0318)]\approx[0.812,0.969]\). (4) No. Rescaling is an algebraic change of units; it does not alter the assumed functional relationship or correct a misspecified linear log-hazard form.

Clinical Biostats