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.
Numbers instead of variable namesI downloaded a .dta file. All of the variable names are numbers. Is there anything I can do to fix t…
Advice on using STATA with cloud-based filesHello, I am using STATA 14 and am trying to access a .dta file stored in Box Drive. I am new to usi…
drop duplicated pairs.Dear All, I find this question here (https://bbs.pinggu.org/forum.php?mod...=1#pid57044671). The dat…
OutlierHi everybody I have the model below. I found that I have one outlier that has influence on the coeff…
Outliers, didn't solve Hi everybody I have the model below. I found that I have one outlier that has influence on the coef…
Subscribe to:
Post Comments (Atom)
0 Response to I want to divide the numlist in two groups.
Post a Comment