Dear all,
I am using Stata 16.1. Unforunately the dataex command does not give me what I want. I have a rather simple question, but I do not how to code it. As you can see from the picture above, I would like that the values of pid_7 take the values of pid_6. For example, in the two cases I highlighted, I would wish that the values 2 of PID_7 change to 3 (pid_6) or the values 4 change to 5. Anyone has an idea of how to code that?
Best,
Simeon
I am using Stata 16.1. Unforunately the dataex command does not give me what I want. I have a rather simple question, but I do not how to code it. As you can see from the picture above, I would like that the values of pid_7 take the values of pid_6. For example, in the two cases I highlighted, I would wish that the values 2 of PID_7 change to 3 (pid_6) or the values 4 change to 5. Anyone has an idea of how to code that?
Best,
Simeon

Comment