A common situation in statistical analysis is one where you must compare two groups of subjects to determine if there is a statistical difference in the results. Depending on the situation, SAS has a number of procedures to assist in this. This section will describe some of the procedures available to you. In order to pick the appropriate test to use you must determine if you have independent or paired groups.
Independent groups contain data on two unrelated samples.
For example, comparison of male and female subjects would be independent groups. Paired groups contain a pair a measurements for each subject. Summarizing two Independent Groups SAS provides two procedures, proc sort and proc means , that can be used to summarize two independent groups. To summary the groups using proc means the data must first be sorted. Comparing two independent groups.