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
Dividing lots of variables by one column.Hi, I currently have data that looks like this Code: * Example generated by -dataex-. To install…
Unable to open a file in STATAI need to use the data from https://admin.nber.org/data/current-...rvey-data.html for March 2018. It…
Stata equation for medical toolGood day everyone, I have a strange request/question but I have no where to ask. I am a physician wh…
Exporting DF-GLS and Phillips-Perron Unit root tests into LatexHi, I have done some preliminary unit root tests for some of the variables but I find it extremely …
log transformation of a ratio variable with small valuesI log-transformed a ratio variable (sem), which ranged from 5.73e-10 to .0001021 (mean: 1.72e-06, s.…
Subscribe to:
Post Comments (Atom)
0 Response to Creating all combinations of a series of numbers without repeats
Post a Comment