Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)PO
poprocks @lemmy.world
Posts 1
Comments 48
statistics @lemmy.world poprocks @lemmy.world

SAS - how to combine multiple variables into one

I have a dataset with age groups as individual variables with counts and I want to create one age group variable with all the options in that variable and combine some age groups as well: HAVE: age_grp_1 = 345 age_grp_2 = 123 age_grp_3 = 46 age_grp_4 = 35 age_grp_5 = 232 age_grp_6 = 372

WANT: age_grp variable with the following values 1= 345 2 = 123 3 = 46 + 35 (combine groups 3&4 above) 4 = 232 5 = 372

Anyone know how to do this? Thanks in advance!

0