id wt hr
1 56 89
1 50 84
1 51 98
2 51 86
2 58 89
2 50 105
What does your desired result look like? What have you tried already?
The MEANS Procedure will be your tool of choice.
Use
class id;
var wt hr;
I leave it as an exercise for you to define the statistics.
This is a knowledge-sharing community for SAS Certified Professionals and anyone who wants to learn more about becoming SAS Certified. Ask questions and get answers fast. Share with others who are interested in certification and who are studying for certifications.To get the most from your community experience, use these getting-started resources:
Community Do's and Don'ts
How to add SAS syntax to your post
How to get fast, helpful answers
Ready to level-up your skills? Choose your own adventure.