Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: Creating all permutations of ten variables

From   Nick Cox <>
To   "''" <>
Subject   RE: st: Creating all permutations of ten variables
Date   Thu, 3 Feb 2011 18:11:24 +0000

Also check out -egen, seq()-. 


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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index