Hello, I am using the full version of SAS 9.4 via a virtual desktop. I had two questions about coding an array. My data is in character format. 1. Each row is a different case and there are 3 columns of comorbidities. Patients can have 0-3 comorbidities but one person cannot have a repeated diagnosis. I am interested to know the overall most frequent diagnosis regardless of whether it is in position 1, 2 or 3. Is there a special name for an array like this? 2. Second, I would like to know the average number of comorbidities per person from the above data. How do I code this such that SAS counts and assigns a number of co-morbidities to each patient? Then I can do proc means to get the mean number. Thank you in advance for the help! Best Laura
... View more