I have data in SAS like this:

Role                      Answer
A                              -
A                         Diabetes
B                             -
B                         Diabetes
B                         Diabetes
B                             -
C                             -
C                             -

As you can see, out of role A, only one answered the question, so the response rate would be 50%. Similarly, in role B two people answered the question. The response rate would be 33.33%. For C, it would be 0%.

How can I combine similar rows so that my data would look like this:

Role                  Response Rate
A                          1(50%)
B                          2 (33%)
C                          0 (0%)

OR

                    A          B                 C
Reponse Rate     1(50%)      2(33%)            0(0%)

I have tried everything I know about SAS.

link|improve this question
SAS the statistical suite, as opposed to the hard drive format, i presume - in which case, we may need to look up a way to seperate the tags... – Journeyman Geek Sep 21 '11 at 1:18
@ Journeyman: thanks! which tag should I use for SAS questions? – Nupur Sep 21 '11 at 1:28
I'm not actually sure - i've asked on meta since this is not a situation that I've seen so far. I'd leave it as is for now. – Journeyman Geek Sep 21 '11 at 1:29
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.