Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: generate multi-level dummy

From   "Delahanty, Ryan" <>
To   "" <>
Subject   st: generate multi-level dummy
Date   Fri, 22 Oct 2010 09:50:03 -0500


We have a very high dimensional dataset. There are several categorical variables for which we need to get unique ORs for each combination. For example:


We need to generate all n x m  categories for logistic regression. So our logistic regression can take the form:

Logistic y 11 12 13 ... 1m...21 22 23...2n...nm

This way we can get ORs for all levels from 11 to nm.

What is the easiest way to generate a new dummy variable that has all of these combinations and is still unique?



*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index