Hi all,
I will really appreciate your help in this matter.
I would like to know how can I define a variable using its relative position to another variable? For example, lets say I have the variables: A B C D E, and I would like to apply the command "keep B-D" (without the quotes). However, what I would like to be able to write is something like "keep B-B[,3]", or similar. Is something like this even possible in Stata?
Thank you very much in advance for your help.
I will really appreciate your help in this matter.
I would like to know how can I define a variable using its relative position to another variable? For example, lets say I have the variables: A B C D E, and I would like to apply the command "keep B-D" (without the quotes). However, what I would like to be able to write is something like "keep B-B[,3]", or similar. Is something like this even possible in Stata?
Thank you very much in advance for your help.
Comment