Cox PH regression with a tt() interaction lets a covariate's effect change as a function of time — both a diagnostic for, and a remedy against, proportional-hazards violations.
If Schoenfeld residuals suggest a covariate's effect drifts with time (HR not constant), you can model that drift directly via a tt() term: β(t) = β + γ·f(t) for some transform of time (log, linear). The interaction coefficient γ measures the time-trend.
Different from coxph_tv: tt() lets β change with time even though the covariate is fixed at baseline. tv lets the covariate itself change.
Time + event + predictors + time transform (log / linear).
Coefficients for the time-constant β and time-interaction γ per predictor.
A significant γ confirms the PH violation and quantifies the time-trend; report β at multiple landmark times rather than as a single HR.