Dear all,

I am working on a dataset where households own different assets and I want to generate a new dummy variable (adownership) that reflects whether their "ownership score" is adequate or not. For this purpose, I am using 6 other dummy variables (whether they own a radio, a phone...).

For my new dummy to be adequate (that is to say =1), I want at least 4 out of 6 dummy variables to be positive. This can be any combination of the 6 dummy variables (that I called adradio, adphone, adspray, adkra, adsto, adchi). My initial idea was to generate a new variable that would take the value 1 by listing all the possible combinations but I believe this is quite tedious and prone to errors.

Does anyone have a better solution on how to proceed?
Thank you very much in advance!