Thank you for the quick response! I haven't create arrays before so I have a couple questions.... The data set I'm working with also contains a lot of other variables that I want to keep (e.g. bmi, age, sex, etc). When creating the temp dataset as seen in your code can I just set my dataset (which is titled "final_drug") instead of using the input function? If yes, then do I still include the datalines function? Thank you *More information:* Name of data set : Final_drug; Name of patient id variable: seqn; Name of drug id variables: drugID1, drugID2, drugID3,..., drugID22
... View more