The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Fertility » Calculation of Sex ratio at birth and chld sex ratio using DHS survey (How to calculate sex ratio at birth and child sex ratio using DHS survey in STATA)
Re: Calculation of Sex ratio at birth and chld sex ratio using DHS survey [message #18390 is a reply to message #18388] Thu, 21 November 2019 14:17 Go to previous messageGo to previous message
Liz-DHS
Messages: 1516
Registered: February 2013
Senior Member
A response from Dr. Tom Pullum:
Quote:

The easiest way to do this is with the KR file, which includes all births in the five years before the interview, regardless of whether the child survived. The sex of the child is given by b4 (1=boy, 2=girl). You can just do "tab b4 [iweight=v005/1000000]" to get the distribution. You can select on a specific calendar year, for example, if you want. You can get the sex ratio by recoding b4 into a 0/1 variable and using logit regression. The standard sex ratio in demography is the ratio of boys to girls times 100. The following lines will give the ratio of boys to girls: "gen male=1; replace male=0 if b4==2; logit male [pweight=v005], or". The odds ratio given as the constant in this logit regression is the sex ratio (after you multiply it by 100). In biology the sex ratio is usually proportion female, which you get from the tabulation.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using tfr2 to Calculate age specific marital fertility rate
Next Topic: B11 is actually missing or it represent first birth?
Goto Forum:
  


Current Time: Sat Jul 2 22:42:28 Coordinated Universal Time 2022