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!
Related Posts with how to get foreach of varlist v1-v10 take every second variable from the specified set (v1 v3 v5...)?
How to merge different Excel File.Hello Sir, I have 4 separate -excel files required to merge in one excel file. This is the longitud…
xtabond2: two way clustering-dynamic panelHello all. For my master thesis I am trying analyse what are the determinants of Non Performing Loan…
Using esttab to report results for Lagged VariablesHi All, My dataset resembles the following (I have panel data, so multiple observations for the sam…
Adding the average of a variable as a new categoryHi, My apologies if this has been asked before, I'm just sure how to explain it, so I'm showing the…
Understanding Abadie, Athey, Imbens, and Wooldridge (2017) using a long-difference exampleThere are 100 counties j. There are many people in each county. People do not move across counties f…
Subscribe to:
Post Comments (Atom)
0 Response to how to get foreach of varlist v1-v10 take every second variable from the specified set (v1 v3 v5...)?
Post a Comment