Group: Forum Members
Posts: 62,
Visits: 212
|
Ah yes when I first saw the stuff about the modulo arithmetic, I didn't really know how that could be used to generate appropriate group numbers, but that makes complete sense to me now and is all working. I have my spss syntax recoding those sometimes 6 figure group numbers into my three groups that can be used for analysis.
COMPUTE group_code=MOD(group-1, 3) +1. EXECUTE.
group_code is the new variable generated that is either 1, 2, or 3.
|