BookmarkSubscribeRSS Feed
Dick_Shryock
Calcite | Level 5

I have a table with 11 columns and 31 rows the first column is a description and the rest of the columns represent various counts for each description.

What I want to do in SAS is create a table that provides the following for columns 2 - 11:

Sum

Median

Mean

Max

This is really easy to do in excel but I can't seem to figure how to do it in SAS EG.

Thanks, Dick Shryock

Example Data:

DateAdmitObsAMAD/CLWBSTransLBECLDExpiredDayTotal
01/01/2013

44

0113001100177
01/02/2013440012403000171
01/03/2013410015623000202
Total1290141027100550
Median44.00.00.0130.00.03.00.00.00.0177.0
Mean43.00.00.3136.70.72.30.30.00.0183.3
Max440115623100202
1 REPLY 1
Reeza
Super User

Post in Enterprise Guide Forum and clarify your example data. Is that the data you have, your input data or your expected output? Also what version of EG do you have?

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 732 views
  • 0 likes
  • 2 in conversation