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

Re: st: counting with stata

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


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


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:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index