Hello Statalist Forum,

The following extracted data indicates different focus area employees of a sample organization are staffed to. I am interested in creating a new variable that identifies employees that are currently staffed to two or more focus areas.

Would appreciate any insights on how to generate this variable! Ideally candidates staffed to more than one focus area would be coded as 1 and candidates who are staffed to left than 1 would be coded as 0.

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte(focus_area_1 focus_area_2 focus_area_3 focus_area_4 focus_area_5)
. . . 1 .
. . . . .
. . 1 . .
. . . . .
1 . . 1 .
. . . 1 .
. . . . .
. . . . .
1 1 . . .
. . . . .
. . . . .
. . . . .
. . . 1 .
. . . . .
. . . . .
. . . . .
. . . 1 1
. . . . 1
1 . . . .
1 . . . .
. . . . .
. . . . .
. . . 1 .
. 1 . 1 .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
1 . . . .
. . . . .
. . . . .
. . . 1 .
. . . . .
. . 1 . .
. . . . .
. . 1 . .
. . . . .
. . . . .
. . . 1 .
. . 1 . .
. . . 1 .
. . . . .
. . . 1 .
1 . . 1 .
. . . . .
. . . . .
1 1 . 1 .
. . . . .
. . . . .
. . . . .
. 1 1 . .
. . . . .
1 . . . 1
. . . . .
. . . . .
. . . . .
. . . 1 .
. . 1 . .
. . . . .
. . . . .
. . . 1 .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . 1 .
. . . . .
. . . . .
. . . . .
1 . . . .
. . . . .
. . . 1 .
. . . . .
. . . . .
. . . 1 .
. . . . .
. . . . .
. . . . .
. . . . .
. . . 1 .
. . . 1 .
1 . . . .
. . . . .
. . . 1 .
. . . . .
. . 1 . .
. . . . .
. . . . .
. . 1 . .
. . . . .
. 1 . 1 .
end