Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: cancel a selection and continue working with all the variables or category of a variable


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: cancel a selection and continue working with all the variables or category of a variable
Date   Wed, 3 Sep 2008 14:36:55 +0100 (BST)

--- Michael McCulloch <mm@pinest.org> wrote:
> what if you wanted to add a second level of selection, for example 
> only children during 1996?
> Can the command
> 	gen byte touse96 = yearfile == "1996"
> be written like this:?
> 	gen byte touse96 = yearfile == "1996" & child==1

Yes, more on this can be found here:
http://www.stata.com/support/faqs/data/trueorfalse.html

Hope this helps,
Maarten


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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