Aggregating variables

Accepted Solution Solved
Reply
Occasional Contributor kmh
Occasional Contributor
Posts: 7
Accepted Solution

Aggregating variables

I'm new to SAS and programming in general.  I'd like to create a new variable by aggregating three variables into a mean scale. The three variables I want to combine are measured on a three point likert scale. I've been trying to figure out how to do this and I'm lost.  I feel like it should be simple. I would appreciate any help on coding. Thank you!  


Accepted Solutions
Solution
‎04-10-2018 12:21 AM
Respected Advisor
Posts: 3,066

Re: Aggregating variables

If your three variables are named a, b and c, then this works:

 

Y = mean(a,b,c);
--
Paige Miller

View solution in original post


All Replies
Solution
‎04-10-2018 12:21 AM
Respected Advisor
Posts: 3,066

Re: Aggregating variables

If your three variables are named a, b and c, then this works:

 

Y = mean(a,b,c);
--
Paige Miller
Occasional Contributor kmh
Occasional Contributor
Posts: 7

Re: Aggregating variables

Posted in reply to PaigeMiller
Thank you so much. I knew it had to be simple!
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 126 views
  • 0 likes
  • 2 in conversation