Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Creating all permutations of ten variables
From
Mark McCann <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Creating all permutations of ten variables
Date
Thu, 3 Feb 2011 16:41:51 +0000
Hello all,
I have a query about how to create data from scratch, and I'm not quite sure what command would suit. I assume there is some way to loop when creating data but I can't work it out from the data management commands.
I want to create a data set containing every possible unique combination of ten variables. The ten variables have 4,3,2,2,3,2,2,3,2, and 3 unique values each respectively. I'd really appreciate any guidance.
Regards,
Mark
Research Statistician
Improving Children's Lives
Institute of Child Care Research
Queen's University Belfast
6 College Park
Belfast BT7 1LP
Tel: +44(0)28 9097 3163
Improvingchildrenslives.org
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/