Dear all,
I am working on a project and have run into a problem with my dataset.
I have a dataset with two variables labled ID1 and ID2. I want to generate a dummy variable that is equal to 1 if the observation in ID1 is found among all the observations in ID2, and 0 otherwise. Do you have any advice on how to do this?
I am working on a project and have run into a problem with my dataset.
I have a dataset with two variables labled ID1 and ID2. I want to generate a dummy variable that is equal to 1 if the observation in ID1 is found among all the observations in ID2, and 0 otherwise. Do you have any advice on how to do this?
Comment