Hi,
I have a loop with 50 values "foreach j of numlist 1/50 {", and I want to divide the numlist in two groups.
In the first group I want the next values N1=1,...,25
In my second group I want the other values N2=26,...50
Because I want this to generate this vars:
PRI_N1_1
PRI_N1_...
PRI_N1_...
PRI_N1_...
PRI_N1_25
PRI_N2_26
PRI_N2_...
PRI_N2_...
PRI_N2_...
PRI_N2_50
Would appreciate any help!
Related Posts with I want to divide the numlist in two groups.
Question about svy: meanHello, this question is conceptual as much as anything else: when I run svy: mean var1 var2 var3, th…
getting putdocx to change the display format to %12.0fcDear Statalisters, could you please help with a conundrum I have not been able to resolve myself. …
graph using foreachHi I am producing some graphs having used Code: foreach My combined graph is a 3x3 plot (3 columns …
"putexcel save" Error: SAVE: invalid cell nameHello! I am trying to output tables in excel with this code: putexcel set "${path_results}\\`sc'_$…
Interpretation of the following regression resultHi Statalist, I used the following code Code: areg grade shock#c.months_exposure#c.treatment_inten…
Subscribe to:
Post Comments (Atom)
0 Response to I want to divide the numlist in two groups.
Post a Comment