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

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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