BookmarkSubscribeRSS Feed
mgrzyb
Quartz | Level 8

Hi again.  

 

Thank you for reading this!  

 

 

If any of you know how to sum all the S1 scores/n where n=15 …… S20 scores/15, please let me know. 

 

I have done this before and it has been a long time. But I am in need of help. 

 

Thank you once again. 

 

See the attachment.  I want to calculate the mean of each column (s1-s20).

 

 

4 REPLIES 4
novinosrin
Tourmaline | Level 20

Have you tried Proc means or Proc summary. A simple google search and copy paste is what you need i think

mgrzyb
Quartz | Level 8

I   tried finding a link, but could not find one.   Thanks. 

novinosrin
Tourmaline | Level 20

proc means data=your_dataset;
var s1-s20;
output out=want mean = / AUTONAME;
run;

Reeza
Super User

https://github.com/statgeek/SAS-Tutorials/blob/master/proc_means_basic.sas

 

Not sure where you're searching but try starting at LexJansen.com though make sure to get the later results since SAS goes back to 1980's at least on there. 

 

Many more resources:

https://www.lexjansen.com/search/searchresults.php?q=proc%20means%20beginner

 


@mgrzyb wrote:

I   tried finding a link, but could not find one.   Thanks. 


 

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 750 views
  • 0 likes
  • 3 in conversation