-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Hi Prof Jackson,
I would like to use the msm package to assess how lagged environmental exposure affects transition intensities between disease states. My dataset has highly irregular visit times, with a median interval of about 353 days and an average of 3.65 visits per individual, with substantial individual variability.
I would like to include the mean temperature (and similar variables) over the past 6 months prior to a transition as covariate in the model. For two consecutive visits S → R (say 2 months apart), I assume the transition to R depends on the exposure in the 6 months before R. Since msm uses covariates at the start of each interval, I attach the lagged exposure for R to observation S.
I would like to clarify whether the following points are consistent with msm model assumptions:
- This creates a misalignment in time between the covariate value and the transition period over S→R
- If S→R is short (e.g., 1 month, which sometimes happens in the dataset), then the exposure window of 6 months influencing the transition includes several months (5 months) that occurred before S. Is this acceptable within the intended covariate interpretation in msm?
A second issue is that with ~1‑year intervals, time‑varying covariates become constant over very long periods, which is unrealistic for exposures with seasonal variation. To better approximate a piecewise‑constant covariate trajectory, I am considering adding censored pseudo‑observations at fixed calendar dates (e.g., season boundaries) so that the covariate can be updated more frequently. Each real and pseudo observation would have the exposure recalculated over the past 6 months. Would using censored pseudo‑observations in this way be an appropriate strategy ?
Thank you in advance for your answer !
Kind regards
Camille Morlighem