I am using Stata 16 to analyze a dataset with prescription information. Each person has multiple prescriptions and their unique ID shows up for each prescription. I would like to remove duplicates, in that I would like to create columns for prescription 1, prescription 2, etc. instead of having a new sample ID for each prescription. I believe this may be changing from long form to short form, but that terminology may be wrong.
I appreciate any guidance and apologize if anything is unclear.
I appreciate any guidance and apologize if anything is unclear.
Comment