In any non-cross-sectional, prospective (whether it be longitudinal, survival, etc) study there are baseline variables which contain the status of the variable at the beginning of the study, and these remain fixed for the duration of observation. But these are distinct from other time-invariant predictors which may contain information (usually some form of summary) about the value of the variable during the study. What comes to mind here is mainly a survival-type analysis and considering smoking as an example of exposure. Am I correct in stating how one could define smoking as a time-invariant exposure?
- Baseline - is the person currently a smoker / have they ever smoked / etc: yes/no. This is the value of smoking status in the study start.
- Time-invariant - did the person ever smoke during the study: yes/no. This is a summary of smoking status over the person's observation time.
- Time-invariant. Even though probably not the most appropriate summary in this particular example, you could also calculate the proportion/percentage of the total observation time that the person was a smoker.
The issue with using time-invariant measures for variables that change status during observation is that you run the risk of immortal-time bias, which is why you might consider using a time-varying covariate.
What I mainly want to get at here is that there aren't any 'rules' specifically for survival analysis that say you shouldn't use post-baseline data for formulating time-invariant predictors. I think I have conflated baseline and general time-independent variable concepts after reading page 2 of this document that discusses 'not looking into the future'.
https://cran.r-project.org/web/packages/survival/vignettes/timedep.pdf
Thanks.