Hi All, I have a dataset like below . For this , I want to create a new variable called 'Total' in this I want to sum the values only 'Correct ' and 'Yes' from Col1-Col6 horizontally by each subjid , visit and drug wise .Please respond , if you know how to perform this operation ? subjid visit drug col1 col2 col3 col4 col5 col6 Total 101 1 A Correct Yes Incorrect Correct Correct No 4 101 1 A Incorrect Yes Correct No Correct 3 101 1 B Correct No Correct Correct Yes Correct 5 101 1 B Correct Yes Correct Yes Incorrect 4 101 2 A Correct Yes Incorrect Correct Yes Correct 5 101 2 A Incorrect Yes Correct Correct No Correct 4 101 2 B Correct No Correct Correct Yes Correct 5 101 2 B Correct Yes Correct Yes Incorrect 4 Thanks in advance,
... View more