I have a sas dataset concerning grades. Here is a subset follows:
Name: Grade: Subject:
Bob 8 English
Bob 6 Maths
Bill 7 English
Joe 9 Maths
Is there a way I can find the average grade per person? In another language I understand I would group by Name, and end up with
Name: Grade:
Bob 14
Bill 7
Joe 9
and then find the average ie sum(grade)/len(grade) to get the average grade per person i.e. (30/3 = 10).
Please note some of my observations appear many times like "Bob" in this example which is why a "group by" approach is necessary.
Is there a way to do this in sas?