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

RE: st: identify group of observations


From   "MITRA PINAKI (MAR1PXM)" <mar1pxm@ups.com>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: identify group of observations
Date   Thu, 29 Apr 2004 09:56:30 -0400

Thank you Nick Cox, Nick Winter, Richard Williams, and Doug Owens for all of
your kind help.

Sincerely,
Pinaki Mitra  

_____________________________
Pinaki Mitra
UPS Capital Insurance Agency, Inc.
35 Glenlake Parkway
Atlanta, GA 30345
Voice: (404) 828-6759
Fax:    (404) 828-6660
Web:   www.upscapital.com


-----Original Message-----
From: Nick Cox [mailto:n.j.cox@durham.ac.uk] 
Sent: Thursday, April 29, 2004 9:42 AM
To: statalist@hsphsun2.harvard.edu
Subject: RE: st: identify group of observations

Ha! My fix needs a fix. 

Nick 
n.j.cox@durham.ac.uk 

gen grp = sum(flag == "01") if flag != ""

or

gen grp = sum(flag == "01") if !mi(flag)

or perhaps even

gen grp = sum(flag == "01") if trim(flag) != ""

*
*   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/
*
*   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