Statalist


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

Re: st: counting with stata


From   n j cox <[email protected]>
To   [email protected]
Subject   Re: st: counting with stata
Date   Mon, 19 May 2008 17:39:39 +0100

.

egen wee_bairns = total(age <= 5), by(HHid)

Nick
[email protected]

Gauthier Tshiswaka-Kashalala

I am using a household survey data that has a household identification
variable "HHid" and a variable "age" which gives the age of every
member of the household. How do I use stata to create a variable
defining the number of children in the household with age <= 5.

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