Hi dear Statalisters,
I was wondering if there is any way to get Stata to pick every second variable of a specified list in varlist of a loop command?
Specifically, I would like to use -foreach of varlist-, but indicate stata to skip every second var and take the first, third, fifth and so on.. from the list.
Is there any smart way to do it?
Many thanks for any suggestions!