Dear community,
I am trying to create a variable called polypharmacy, which identifies participants in a cohort who have SIMULTANEOUSLY received at least 4 drugs during their follow-up.
In my database, the variable ID identifies the participants, and each participant has as many lines as drugs have been prescribed. The variable t_sd identifies the start date and the variable t_ed identifies the end date of each drug.
How could I identify the first date with simultaneous use of at least 4 drugs?
Many thanks in advance!
I am trying to create a variable called polypharmacy, which identifies participants in a cohort who have SIMULTANEOUSLY received at least 4 drugs during their follow-up.
In my database, the variable ID identifies the participants, and each participant has as many lines as drugs have been prescribed. The variable t_sd identifies the start date and the variable t_ed identifies the end date of each drug.
How could I identify the first date with simultaneous use of at least 4 drugs?
Many thanks in advance!
Comment