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
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
RE: st: Creating all permutations of ten variables
Date
Thu, 3 Feb 2011 18:11:24 +0000
Also check out -egen, seq()-.
Nick
[email protected]
Phil Schumm
You can accomplish this easily with -fillin-.
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.
*
* 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/