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.
coefplot and axis labels of different colorsHi all! I am using coefplot to plot predicted probabilities at certain values for 5 model specifica…
IV estimates with low mean values of the outcome?Dear all, I am examining the effects of maternal education on low bitrth weights using a fuzzy regr…
Combine the panel data with External Covariates.I have DHS data which have hhid(household id), BMI(Body Mass Index), and Year(2005, 2010, 2015. The …
Removing duplicate ID's by creating additional variableHi All, I would like to change this dataset such that each ID only appears one time, with additiona…
Which statistics should I use when analyzing the effect of interventions on health outcomes?Dear Stata users, I would like to ask which stats I should use. I have health outcomes data (contin…
Subscribe to:
Post Comments (Atom)
0 Response to I want to divide the numlist in two groups.
Post a Comment