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

RE: st: identify group of observations


From   Nick Winter <[email protected]>
To   [email protected]
Subject   RE: st: identify group of observations
Date   Thu, 29 Apr 2004 08:19:42 -0400

At 11:32 AM 4/29/2004 +0100, you wrote:
Or just

gen grp = sum(flag == "01")
Or, to avoid assigning grp values to missing values of flag:

gen grp = sum(flag == "01") if flag<.

--Nick Winter


--------------------------------------------------------
Nicholas Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government [email protected] e
308 White Hall falcon.arts.cornell.edu/nw53 w
Cornell University
Ithaca, NY 14853-4601
*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index