Hello! In our previous lesson, we established a strong conceptual foundation for time-dependent covariates (TDCs), understanding what they are and why they are essential for avoiding critical errors like immortal time bias. We saw how a variable's value can change over time and how we need to account for that in our analysis.
This lesson builds directly on that knowledge. We will now shift from the 'why' to the 'what,' focusing on how to read and interpret the statistical output from a Cox proportional hazards model that includes these dynamic variables. By the end of this lesson, you will be able to confidently interpret the coefficients and hazard ratios for time-dependent covariates in several common scenarios.
Interpreting the Effect of a Time-Dependent Covariate
Let's start by recalling what a time-dependent covariate is. It is any predictor variable whose value can change during the study's follow-up period.

When we include such a variable in a Cox model, its coefficient tells us about the instantaneous risk associated with its value at any given moment in time. To see this in practice, we will use a fantastic and comprehensive guide on Cox regression in R. We will be referring to the Rossi dataset mentioned in this document, which tracks recidivism (rearrest) among 432 individuals after release from prison.
First, let's look at the output for a model with a time-dependent covariate and see how to interpret it.
[PDF] Cox Proportional-Hazards Regression for Survival Data in R
This document by John Fox and Sanford Weisberg is an excellent tutorial on Cox regression. We will use it to examine a model with a time-dependent employment variable.
First, quickly look at the section "Time-Dependent Covariates" to recall the start-stop data format we discussed previously. Next, focus on the model output presented in the text. Find the model mod.allison.2 which includes the time-dependent covariate employed. Read the summary output for this model, starting from this point. Finally, read the short paragraph that interprets the main result for the employed variable, found under the heading "Lagged Covariates".
Let's break down the key part of that output for mod.allison.2:
| Covariate | coef |
exp(coef) |
p |
|---|---|---|---|
| ... | ... | ... | ... |
employedyes |
-1.3283 | 0.2649 | 1.2e-07 |
| ... | ... | ... | ... |
The interpretation follows the same logic as for any other variable in a Cox model, but with a specific time-dependent framing.
- The Coefficient (
coef): The value -1.3283 is the estimated log-hazard. A negative value suggests a protective effect. - The Hazard Ratio (
exp(coef)): This is the most interpretable value. Here, it is . - The Interpretation: We say that at any given point in time, the hazard of rearrest for an individual who is employed is only 0.265 times the hazard for an individual who is not employed, holding all other covariates constant. Put another way, being employed is associated with a reduction in the instantaneous risk of rearrest.
This interpretation is powerful because it correctly reflects the changing nature of employment status.

Case Study: Interpreting the Fix for Immortal Time Bias
In the last lesson, we discussed how a naive analysis of the Stanford Heart Transplant data could lead to immortal time bias. Now, let's look at the actual output to see how using a time-dependent covariate corrects this.
[PDF] Time varying (or time-dependent) covariates
These lecture notes provide a clear comparison of the biased and correct analyses for the Stanford Heart Transplant data.
Please read the section titled "RESULTS for Stanford Heart Transplant data" on page 26. Examine the output for both the "Naive model" and the "Model with time-dependent transplant indicator". Pay close attention to the Parameter Estimate (the coefficient) and the Risk Ratio (the hazard ratio) for the transplant variable (TSTAT) in both models.
Let's compare the results side-by-side:
-
Naive (Biased) Model:
- Coefficient (
TSTAT): -1.999 - Hazard Ratio (
Risk Ratio): 0.135 - Biased Interpretation: This model suggests that receiving a heart transplant reduces the hazard of death by about 86.5%. As we know, this result is artificially inflated by immortal time bias.
- Coefficient (
-
Correct (Time-Dependent) Model:
- Coefficient (
TSTAT): -0.966 - Hazard Ratio (
Risk Ratio): 0.381 - Correct Interpretation: At any given point in time, the hazard of death for a patient who has received a transplant is 0.381 times the hazard for a patient who is still waiting for one. This translates to a 61.9% reduction in instantaneous risk.
- Coefficient (
The difference is stark. The correct model still shows a substantial benefit from transplantation, but the effect is much smaller than the biased estimate suggested. This comparison powerfully illustrates how crucial the correct analytical approach—and its interpretation—is to arriving at a valid conclusion.
An Interpretive Wrinkle: Lagged Covariates and Causality
Your background in information systems might lead you to think about the direction of causality. In the recidivism example, does being employed prevent arrest, or does being arrested prevent employment? The latter is certainly true! This is a classic problem of reverse causation.
One common, though imperfect, way to address this is to use a lagged value of the covariate. Instead of using employment status in the current week to predict arrest in that same week, we can use employment status from the previous week.
Let's return to the LINK PDF to see how this changes the interpretation.
[PDF] Cox Proportional-Hazards Regression for Survival Data in R
This resource demonstrates the use of a lagged covariate to address potential reverse causality.
Please find the heading "Lagged Covariates" again. Read the text from the beginning of this section down to the end of the page, focusing on the output for the model mod.allison.3 and its interpretation. Compare the interpretation of the lagged model to the original one.
In the lagged model (mod.allison.3), the coefficient for the lagged employed variable is -0.7869, which gives a hazard ratio of .
The interpretation is now: "Being employed in the previous week is associated with a 54.5% reduction in the hazard of rearrest in the current week."
Notice that the effect is smaller than the 73.5% reduction we saw in the non-lagged model. This is very common. The lagged analysis provides a more conservative and often more plausible estimate of the effect by slightly disentangling the immediate feedback loop between employment and arrest.
Using TDCs to Test the Proportional Hazards Assumption
Finally, one of the most important uses of time-dependent covariates is to formally test the proportional hazards (PH) assumption itself. If the effect of a covariate changes over time, then the hazards are not proportional. We can model this by creating a special kind of TDC: an interaction term between the covariate and a function of time.
[PDF] Cox Proportional-Hazards Regression for Survival Data in R
This document shows how to use a time-interaction term to check the PH assumption.
Read the section on accommodating non-proportional hazards. Focus on the example where an interaction between age and time (called stop in the data) is created. Read this section to understand the model mod.allison.5 and how its output is interpreted.
In model mod.allison.5, the output for the interaction term age:stop is:
| Covariate | coef |
p |
|---|---|---|
age:stop |
-0.0038 | 0.009 |
Here, the interpretation is different. We are not interested in the hazard ratio itself. Instead, we look at the p-value.
- The small p-value (0.009) indicates that the interaction term is statistically significant. This provides evidence against the proportional hazards assumption for the variable
age. It tells us the effect of age is not constant over time. - The negative coefficient (-0.0038) tells us the direction of this change. It means that the effect of age (its log-hazard) becomes more negative, or less positive, as time goes on. In this context, the impact of a person's age on their risk of rearrest diminishes over the follow-up period.
This is a powerful diagnostic tool that is made possible by the framework of time-dependent covariates.
Conclusion
In this lesson, we moved from theory to practice, learning how to interpret the output of a Cox model with time-dependent covariates. This skill is vital for understanding sophisticated survival analyses and for critically evaluating research findings.
Here are the key takeaways:
- The hazard ratio for a TDC represents the instantaneous risk ratio. It compares individuals based on their covariate status at a specific moment in time.
- Using TDCs is the correct way to analyze exposures that begin after follow-up starts, and interpreting the output correctly reveals an unbiased effect estimate, as seen in the heart transplant example.
- Thinking about causality is important. Using lagged covariates is one way to create a more conservative and plausible estimate when reverse causation is a concern.
- TDCs can be used as a diagnostic tool. A significant interaction between a covariate and time is evidence that the proportional hazards assumption does not hold for that covariate.
We have now covered how to handle covariates that don't have proportional hazards, either through stratification or by modeling them as time-dependent. In our next lesson, we will turn our attention from the covariates to the outcome, exploring the challenge of competing risks, which arise when individuals can experience more than one type of event.