BookmarkSubscribeRSS Feed
BabyWS2001
Calcite | Level 5

Thanks,so if use sort do you use the Proc Sort or Order statement? Cause I can't seem to sort the mean once i use Class statement code as stated below...

I can't use Class SalePrice/Ascending as it will show all the mean saleprice and not group by the FloorAreaCat....

 

Proc Mean data=work.analysis mean;

 Class FloorAreaCat;

 var SalePrice;

Run;

Reeza
Super User
You need to first store your data in a data set then you sort that data set.
BabyWS2001
Calcite | Level 5

Ok, I will sort that dataset first. Thanks.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 17 replies
  • 1631 views
  • 0 likes
  • 5 in conversation