Hello Statalist,
I want to create a variable in Stata that is all of the combinations, repetition, of the values of another variable which takes the values 1-718 (this can be numeric or string - it is not very relevant). So, for example, I want a variable that includes "1-2", "1-3"...."1-718", but does NOT include "2-1", "3-1",..."718-1", and so on.
Thanks in advance for any help!
-Andy
Related Posts with Creating all combinations of a series of numbers without repeats
Optimize by minimizing the value of an equation to get a parameter value for each observationDear Everyone, Software Used: STATA 15.1 I am trying to get a parameter value (R) for each observa…
GMM Xtabond2Hi friends, This is my first experience for GMM. help me, please. I should examine the relationshi…
Is there a way to tsset aggregated binomial data?Hi, I am wanting to do a segmented regression (as an interrupted time series) using binary outcome …
Difference in Difference with multiple treatment periods and multiple treatmentsGood day all! This is my first post on Stata list. Please let me know if any additional information …
Generate a variable with the count of the value 3 across several variablesHi, I would like to generate a variable that contains the count of the value 3 across several column…
Subscribe to:
Post Comments (Atom)
0 Response to Creating all combinations of a series of numbers without repeats
Post a Comment