Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: newbie if {} else {} question


From   John Hennen <jhennen@mclean.org>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: newbie if {} else {} question
Date   Thu, 19 Sep 2002 15:59:00 -0400

Richard Herrell wrote (in part):

> I've just started learning Stata syntax after long years of SAS use and am
> completely stumped by a result.  I want to create a new 4-level variable
> (ascertgp) based on the crosstabulation of 2 dichotomous variables (probip
> and promig).

Try
egen ascertgp = group(probip promig)


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index