Dear all,
I am looking for a way to generate all possible combinations of 10 variables, i.e. the sum of var1 and var2, of var1 and var3, .... of var1 + var2 + ... + var10.
Is there any efficient way to achieve that goal?
Many thanks in advance.
Related Posts with Generate all possible combinations of variables
Problem in labels with splitvallabels Hi all, I am having problems in labelling graph with splitvallabels and catplot, I suspect that the…
Egen with an if statementHi, I have a long dataset with multiple observations per patient id. I’m trying to generate a medic…
Coding participants with metabolic syndromeHi there, I would like to categorize participants in a dataset that I am using by whether or not th…
Remove combination of quotes and asterisk in variable labelHi all, I have a extrange combination of quotes and asterisk in variable label in my data base... L…
Factor variable and interaction in syntax commandHi, I am trying to add interaction terms into a simple new command. Something simple like this: C…
Subscribe to:
Post Comments (Atom)
0 Response to Generate all possible combinations of variables
Post a Comment