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]

st: Creating all permutations of ten variables

From   Mark McCann <>
To   "" <>
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.


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

*   For searches and help try:

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