Hi all, First time poster, long time forum user. All the advice provided has been super helpful. I am currently using SAS 9.3. I am trying to analyze the number of symptoms individuals experienced but the types of symptoms are in different columns, for example: Cough Fatigue Fever Headache Rash Yes Yes No Yes No No Yes No No No Yes No No No Yes No No No No No I want to know how many symptoms each individual experienced, but I am having a hard time thinking of a way to count the number of times "yes" appears across these variables without creating many if/then statements and a new variable. Like: IF FATIG="Yes" AND FVR="No" AND HDCH="No" AND COUGH="No" AND RASH="No" THEN NUM_SXS=1; Is there an easier way to count the number of times "Yes" appears across the row? I don't necessarily need there to be a new variable, although it would be helpful later down the line. Cough Fatigue Fever Headache Rash Num_Symptoms Yes Yes No Yes No 3 No Yes No No No 1 Yes No No No Yes 2 No No No No No 0 Any help is greatly appreciated. Thank you
... View more