Hello everyone. New self-taught STATA-user looking for some advice...
Question: I have 8 waves of panel data and would like to drop a number of variables from all waves at once. I would like to use some sort of macro/loop combination so that I don't have to do it all for them individually. How would you go about doing this?
I thought that the best way to go about doing this was to write a foreach loop inside a global macro? Does this sound right?
Just wanted to make sure I'm going down the right path before I spend an hour or two doing the wrong thing.
Thanks in advance!
Question: I have 8 waves of panel data and would like to drop a number of variables from all waves at once. I would like to use some sort of macro/loop combination so that I don't have to do it all for them individually. How would you go about doing this?
I thought that the best way to go about doing this was to write a foreach loop inside a global macro? Does this sound right?
Just wanted to make sure I'm going down the right path before I spend an hour or two doing the wrong thing.
Thanks in advance!
Comment