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
Control variables in interaction functionHello fellow stata users! I have a more theoretical question instead of how to use stata. I was won…
DID two way fixed effectsDear Statalist Members, PS: I have attached a small portion of my data. By using a repeated cross …
Time fixed effect and State fixed effectDear all, I am pretty much new for STATA. I'm currently working on my master's thesis. I want to inv…
Expxport codebook descriptives to latexHello, I have a very simple query that unfortunately I am unable to resolve. I am trying to export …
Suspected bug in -confirm-The title is self-explanatory. Here is a reproducible example: Code: clear sysuse auto confirm var…
Subscribe to:
Post Comments (Atom)
0 Response to Creating all combinations of a series of numbers without repeats
Post a Comment