Hope this helps in explaining my issue, and thank you again for your conintued help. When I run q99r1, q99r2,q99r3, q99r3 and q99r9 individually, their respecitve counts are 260, 234, 33, 13, and 22 which adds up to 562. When I have tried running the aforemention codes, neither has given my the value of 562. When either q99r1, q99r2,q99r3, q99r3 and q99r9 equals '1(yes)', I want the sum of the dummy variable which groups these varaibles to be 562. ID q99r1 q99r2 q99r3 1 yes yes no 2 no yes no 3 no yes yes 4 no no no 5 yes no no
... View more