The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Reproductive Health » Calculating Median Ages
Calculating Median Ages [message #2343] Fri, 06 June 2014 11:37 Go to previous message
hlantos is currently offline  hlantos
Messages: 6
Registered: June 2014
Location: Washington DC
Member
Hello all, I'm trying to develop STATA code for median ages of variables that are age dependent (right now age at first sex, age at first marriage, and age at first birth). I've found the following explanation:

1) Age at first marriage or first union is calculated as the difference between date when woman began living with first husband or consensual partner and date of birth of woman in completed single years.
2) The numerators are the number of women within single year of age categories who have married or lived in a consensual union.
3) The denominator is the number of women of all marital statuses.
4) Numerators for each age category are divided by the corresponding age category denominator and multiplied by 100 to obtain percentages.
5) Once the percentages have been calculated within specific age group categories, medians are calculated from the cumulated single year of age percent distributions for the ages women were first married. The median is linearly interpolated between the age values by which 50 percent or more of the women were first married or lived in consensual union.

I understand each of the steps until step 5... a) what does it mean to calculate a median from the cumulated single year of age distributions - am i combining them all into a weighted sample essentially? and b) how would any of you think about doing that in STATA?

Thanks!

Hannah
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Postpartum check while still in facility (Benin)
Next Topic: Calculating Confidence Interval
Goto Forum:
  


Current Time: Fri Apr 19 08:12:15 Coordinated Universal Time 2024