BookmarkSubscribeRSS Feed
aqil97
Calcite | Level 5

Hello

Im working on a project for my class and im having some problems. My daya set is about presidential polls and it contains many polls for each state.(attatchemnt shown)

 

 

I want to make a table so that it shows the combined values for the 50 states like

 

Alabama

ALaska

Arizona

.

 

Instead of showing multiple entries


Capture.PNG
3 REPLIES 3
art297
Opal | Level 21

proc summary or proc means will do what you want, but I don't see why you'd want to sum values from polls that were taken at various points throughout the campaign.

 

Art, CEO, AnalystFinder.com

 

aqil97
Calcite | Level 5

I want it do a prelimenary analysis on who is going to win the elections according to the polls

 

Can you help me out on how i can layout the code for proc summary or proc means

 

art297
Opal | Level 21

Could I? Yes! Would I? No!

 

The goal here is to help people learn how to program/use SAS. You are the one responsible for understanding your data and deciding what you want to do with it in order to answer any particular question.

 

Try to do it yourself. If you run into problems, post what you are trying to do, what you did, and what didn't work the way you hoped.

 

Then, I'm sure someone here will help you (if your questions are sufficiently clear),

 

Art, CEO, AnalystFinder.com

 

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
  • 1206 views
  • 0 likes
  • 2 in conversation