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...)?
Displaying the number of observationsDear statalist, While running a logistic regression, is it possible to display the number of observ…
Shea’s partial R squaredHi, I am trying to check the relevance of instruments used in 2SLS regression. I use Shea’s partial…
Dividing Variable by its meanDear all, I have question regarding to my independent variable and interpretation of it. I have di…
mi impute for two variablesHi, I am trying to impute two separate variables. When trying to determine an appropriate imputatio…
Plausible values: what do i do?Hi, i have found nearly nothing on this. It is used mostly on PISA, TIMMS and PIRLS testing. I kind …
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