Dear Statalist community,
I am currently struggling with how to combine a range of variables with similar information into one.
To elaborate on this, I work with prescription information in a wide dataset; with each individual assigned a row, and each time (day, month, year) they filled/dispensed a prescription is recorded in separate columns, with the variable named disp_date1, disp_date2, disp_date3, etc. Everyone in the dataset has filled a prescription at least one time, with some more than a thousand times.
What I would like to know is how many did fill a prescription more than let's say 400 times.
Best,
Haakon
I am currently struggling with how to combine a range of variables with similar information into one.
To elaborate on this, I work with prescription information in a wide dataset; with each individual assigned a row, and each time (day, month, year) they filled/dispensed a prescription is recorded in separate columns, with the variable named disp_date1, disp_date2, disp_date3, etc. Everyone in the dataset has filled a prescription at least one time, with some more than a thousand times.
What I would like to know is how many did fill a prescription more than let's say 400 times.
Best,
Haakon

Comment