--- Michael McCulloch <[email protected]> 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/