Hello everyone,

Im having trouble findind the right command to do this, hope you can help me. I need to generate a variable that tells me how many characteristics have every person surveyed. All the characteristics are satisfied when all these variables are = 1:
poco_int==1 | index_depr==1 | no_dormir==1 | cansancio==1 |no_apetito==1 | atencion==1 | moverse==1
Also the ID of each person is the variable HHID
Im going to describe an example for you to understand me better: Is like the person #8 fulfill poco_int=1 and cansancio=1 so they have 2 characteristics satisfied and the variable generated is going to be 2 for this person

hope my english is okay! thank you so much