Dear Forum Users,
I would like to create a variable that records the social class of an individual's partner.
Each individual in my dataset has a unique personal identifier 'pid'. Furthermore, if an individual has a partner in the dataset, their partner can be identified by variable 'sppid', which takes the pid value that corresponds to the individual's partner.
I have created a categorical variable, 'dgold', which records the social class of each individual. However, I would now like to create a categorical variable 'sgold', which takes the dgold value that corresponds to the individual's partner.
I would be very grateful if someone was able to recommend how I might achieve this.
Kind regards,
Harrison
I would like to create a variable that records the social class of an individual's partner.
Each individual in my dataset has a unique personal identifier 'pid'. Furthermore, if an individual has a partner in the dataset, their partner can be identified by variable 'sppid', which takes the pid value that corresponds to the individual's partner.
I have created a categorical variable, 'dgold', which records the social class of each individual. However, I would now like to create a categorical variable 'sgold', which takes the dgold value that corresponds to the individual's partner.
I would be very grateful if someone was able to recommend how I might achieve this.
Kind regards,
Harrison
Comment