Combing values in dataset

Reply
New Contributor
Posts: 2

Combing values in dataset

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
PROC Star
Posts: 7,492

Re: Combing values in dataset

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

 

New Contributor
Posts: 2

Re: Combing values in dataset

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

 

PROC Star
Posts: 7,492

Re: Combing values in dataset

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

 

Ask a Question
Discussion stats
  • 3 replies
  • 106 views
  • 0 likes
  • 2 in conversation