In an earlier post in this thread you wrote:
I am not addition another variable or row after this.
And now you are requesting just that:
@CathyVI wrote:
if you can add an ID variable to the data and some will have 2 records, this will be nice.
You have also opened a second thread find the count of variable by group where, as far as I see, the same problem is being discussed.
In this situation I am not going to give another precise shot at a moving target, sorry, but suggest a general four-step approach:
Aggregate the data to one observation per ID.
Classify the aggregated observations into the categories of interest.
Count the observations per category.
Create a report from the counts.
Example solutions for steps 2 (before aggregation, though) through 4 have been presented in this thread. Whether a DATA step, PROC SQL, PROC SUMMARY or other techniques are most appropriate for step 1 depends on the data structure and on the aggregation rules, neither of which we have seen entirely. For instance, if two records provide different pieces of information about forms that have been filled, their (e.g. chronological) order may or may not be relevant.
... View more