Disclosure: I am new to strata. Despite reading the manual and viewing multiple youtube channels I cannot find the accurate code to keep multiple observations across multiple variables.
For example, there are sixteen drugs (observations) that could have been prescribed under 30 different variables (var=MED1, MED2, etc).
I want to keep only patients who were prescribed one of these drugs under any of the MED variables (MED1-MED30). I was unsuccessful with multiple egen OK or inlist codes.
Observations: 12029, 22287, 10150, 10157, 98065, 12116, 09772, 05261, 05051, 10251, 05266, 08179, 06104, 05074, 13111, 12318
Variables: MED1, MED2... MED30
Any suggestions?
For example, there are sixteen drugs (observations) that could have been prescribed under 30 different variables (var=MED1, MED2, etc).
I want to keep only patients who were prescribed one of these drugs under any of the MED variables (MED1-MED30). I was unsuccessful with multiple egen OK or inlist codes.
Observations: 12029, 22287, 10150, 10157, 98065, 12116, 09772, 05261, 05051, 10251, 05266, 08179, 06104, 05074, 13111, 12318
Variables: MED1, MED2... MED30
Any suggestions?

Comment