Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Focusing on a particular age group in data set


From   "Fernando Rios Avila" <[email protected]>
To   <[email protected]>
Subject   st: RE: Focusing on a particular age group in data set
Date   Sun, 10 Apr 2011 12:55:54 -0400

Hi Hassan
I think your best option is first to identify those households, and then use
that identification for the subsequent analysis.
To identify you could:
Gen fem45=0
Replace fem45=1 if sex==female & age <=45
Bysort householdid: egen hfem45=max(fem45)
That should identify in your household has any female 45 years old or
younger
Hope this Helps

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Hassan Talal
Sent: Sunday, April 10, 2011 12:24 PM
To: statalist
Subject: st: Focusing on a particular age group in data set

Dear Statalist,

I am trying to determine the socio-economic factors behind fertility using
British Household Panel Survey. I want to restrict the age group of female I
will be focusing on to maximum 45 years. As I am dealing with households, so
I will be analysing only those households which have <45 years old females.
Can you guide me how I can incorporate this condition in STATA?

Many thanks for your time and I look forward to your kind reply.

Yours sincerely,
Hassan Talal
*
*   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/

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index