[sas-users] Fw: frequency question

elizabeth.may.nichols at census.gov elizabeth.may.nichols at census.gov
Wed Jul 27 14:40:00 EDT 2011


Thank you very much for getting me the right user group to ask this
question.    See below.

Beth Nichols
Center for Survey Measurement
U.S. Census Bureau
301-763-1724
elizabeth.may.nichols at census.gov

----- Forwarded by Elizabeth May Nichols/CSM/HQ/BOC on 07/27/2011 02:38 PM
-----
                                                                                                                       
  From:       Elizabeth May Nichols/CSM/HQ/BOC                                                                         
                                                                                                                       
  To:         Katherine Drom/CSM/HQ/BOC at BOC                                                                            
                                                                                                                       
  Date:       07/27/2011 01:48 PM                                                                                      
                                                                                                                       
  Subject:    frequency question                                                                                       
                                                                                                                       




I have data that is from a mark all question.

Let's say it is race.
They stored the first answer as race1.  It could be between 1-6.  If the
person marked a second answer they stored the second answer as race 2.

race1 freq
white =5
black =4
asian =2

race 2 freq
white=1
black =1

I want a combined frequency.

race total
white=6
black=5
asian=2

I think I need to output my frequencies from the individual varialbes and
then add them together but I don't know how to do that.

I have a feeling it is a proc summary statement, but again, not sure and
have been playing round with it and haven't had luck.

Beth Nichols
Center for Survey Measurement
U.S. Census Bureau
301-763-1724
elizabeth.may.nichols at census.gov




More information about the sas-users mailing list