Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[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" <f.rios.a@gmail.com>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index