Hi,
I am conducting a chart review with a matched cohort study design where I am trying to sample two control (received a transplant in home country) patients to an exposed (international transplant) patient. In the attached picture, d0 represents day 0 as the time of transplant, dx represents the day that the exposed patient returns to original/home country for follow-up, and dy represents the day that the patient develops an event/outcome of interest. (The dotted line in the second line represents a period of no data available to us since the patient was abroad.)
There are two caveats to this matching algorithm:
(a) the control patient can only develop an event after dx (to control for immortal time bias)
(b) there are variables called x' and y' that we want to match for between exposed and control patients.
The code I have tried thus far is as follows but I believe it does not consider my caveat (a).
I hope you could shed some light how to appropriately do this using Stata.
Thank you very much for your time,
Kevin
I am conducting a chart review with a matched cohort study design where I am trying to sample two control (received a transplant in home country) patients to an exposed (international transplant) patient. In the attached picture, d0 represents day 0 as the time of transplant, dx represents the day that the exposed patient returns to original/home country for follow-up, and dy represents the day that the patient develops an event/outcome of interest. (The dotted line in the second line represents a period of no data available to us since the patient was abroad.)
There are two caveats to this matching algorithm:
(a) the control patient can only develop an event after dx (to control for immortal time bias)
(b) there are variables called x' and y' that we want to match for between exposed and control patients.
The code I have tried thus far is as follows but I believe it does not consider my caveat (a).
Code:
stset eventdate, failure(exposed=1) id(id) origin(time dx) enter (time dx) scale(365.25) set seed 3156163 sttocc, match(x' y') n(2) nodots
Thank you very much for your time,
Kevin
Comment