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]
Re: st: Creating all permutations of ten variables
From
Phil Schumm <[email protected]>
To
[email protected]
Subject
Re: st: Creating all permutations of ten variables
Date
Thu, 3 Feb 2011 10:51:08 -0600
On Feb 3, 2011, at 10:41 AM, Mark McCann wrote:
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.
You can accomplish this easily with -fillin-.
-- Phil
*
* 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/