Time-dependent covariate
A predictor whose value changes during the observation, such as a drug started later. In survival analysis each person is split into time intervals within which the value is constant. The method avoids immortal time bias.
Example: A person starts a therapy after 8 months. Until month 8 they count as untreated, afterwards as treated. Both periods enter the analysis.
Caution: A variable influenced by the event itself is not suitable. The dataset needs start and stop times.