Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: How to form every combination of n variables


From   n j cox <[email protected]>
To   [email protected]
Subject   Re: st: How to form every combination of n variables
Date   Fri, 05 Oct 2007 11:24:09 +0100

Perhaps you want -fillin-.

Nick
[email protected]

[email protected]

Suppose I have the following dataset:

gene1 gene2 gene3 gene 4
0 0 1 0
1 0 2 0
2 5 6 8
3 2 3 5
4 4 5 6
5 1 5 6
6 1 2 3
7 7 5 6
8 7 5 6
9 4 8 5
10 4 5 6

Is there a way to form every combination of these 4 variables without
depending on multiple datasets? I am doing this task by generating four
distinct datasets (one for each variables) and then using the -cross-
command. However, it would be nice if there is a more straightforward
solution to do that.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index