BookmarkSubscribeRSS Feed
rezaz
Calcite | Level 5

Hey everyone,

 

I have 4 questions asked in the questionnaire for self-esteem which must be measured using four items. The items are rated using a
5-point Likert scale (0–4). Composite scores should span 0–16. How should I construct the composite score using SAS?

 

 

3 REPLIES 3
mkeintz
PROC Star

It appears you merely want to sum of the 4 individual likert scales - a very very basic task in SAS.

 

What have you tried so far?  Please provide us sample data in the form of a working DATA step.  Then you will be on the path to joy.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
rezaz
Calcite | Level 5

Hey mkeintz

 

Thanks a lot, strange as it may seem, I didn't couldn't think of this solution. I'm a newbie to SAS and I thought the answer should be way more complicated than this!

 

 

ballardw
Super User

@rezaz wrote:

Hey mkeintz

 

Thanks a lot, strange as it may seem, I didn't couldn't think of this solution. I'm a newbie to SAS and I thought the answer should be way more complicated than this!

 

 


The complication would typically come in creating a composite score where each component had a different "weight" of importance in the resulting composite. Such as suppose from "well accepted literature" or similar that it was "know" that factor 1 had more impact on the outcome than factor 4 by some "known" margin. If you still want the score to be 0 to 16 but use that known difference of impact then you would get into a more complicated standardization than a simple sum.

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2097 views
  • 0 likes
  • 3 in conversation