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