I have a variable for each month of the year which value is either 1 (designates something has been checked in that month) or SYSMIS.
How do I recode this into a new variable e.g. VAR1 where I get something like
0 = no checks in a year
1 = 1 check in a year
2 = 2 checks in a year every six months
3 = 2+ checks in a year (where 2 of them were six months apart)
As an alternative I've been using a system where I calculate the total checks in that year and then see if there was 0, 1, or 2+ checks but this is not accurate because I can't see if two checks were six months apart or in two consecutive months
NUMERIC var1_Total (F3.0).
COMPUTE var1_Total=varA.1+varA.2+varA.3+varA.4+varA.5+varA.6+varA.7+varA.8+varA.9+varA.10+varA.11+varA.12.
EXECUTE.
NUMERIC var2 (F5.0).
VALUE LABELS var2 0 '0' 1 '1' 2 '>=2'.
IF (var1_Total=0) var2=0.
IF (var1_Total=1) var2=1.
IF (var1_Total>=2) var2=2.
EXECUTE.