I have a dataset with multiple records per person (because each record represents a different year). I want to group people in this dataset by a value they had in 1996 with a new variable. My code is: group=.; if year= 1996 and y=0 then group=0; if year= 1996 and y=1 then group=1; My problem is that this just assigns a value to my new variable group in 1996 and this new variable has a missing value for all other years. I would like that same value to be assigned for every record of the same individual. Any suggestions about how to go about this? Thanks!
... View more