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)
Calculation of Sex ratio at birth and chld sex ratio using DHS survey [message #18373] Thu, 21 November 2019 01:46 Go to next message
Santosh88 is currently offline  Santosh88
Messages: 4
Registered: November 2019
Member
Dear All,

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 #18385 is a reply to message #18373] Thu, 21 November 2019 10:00 Go to previous messageGo to next message
Liz-DHS
Messages: 1414
Registered: February 2013
Senior Member
Dear User,
We now have repositories of code written in Stata and SPSS available on Github. Please reference these code repositories as a resource for code for matching or calculating DHS indicators. The code repositories can be found at:<br />
<br />
<a href="https://github.com/DHSProgram/DHS-Indicators-Stata" style="font-size:8pt">https://github.com/DHSProgram/DHS-Indicators-Stata</a><br />
<a href="https://github.com/DHSProgram/DHS-Indicators-SPSS" style="font-size:8pt">https://github.com/DHSProgram/DHS-Indicators-SPSS</a><br /><br />
Re: Calculation of Sex ratio at birth and chld sex ratio using DHS survey [message #18386 is a reply to message #18385] Thu, 21 November 2019 10:50 Go to previous messageGo to next message
Santosh88 is currently offline  Santosh88
Messages: 4
Registered: November 2019
Member
Dear Liz

Thank you for the source, but they have not provided the STATA syntax for calculating sex ratio at birth and child sex ratio using DHS survey.It would be helpful for me if there would be STATA syntax for calculating the same.


Thanking You
Re: Calculation of Sex ratio at birth and chld sex ratio using DHS survey [message #18387 is a reply to message #18386] Thu, 21 November 2019 11:08 Go to previous messageGo to next message
Liz-DHS
Messages: 1414
Registered: February 2013
Senior Member
Dear User, have you looked at The Guide to DHS Statistics?
Re: Calculation of Sex ratio at birth and chld sex ratio using DHS survey [message #18388 is a reply to message #18387] Thu, 21 November 2019 11:18 Go to previous messageGo to next message
Santosh88 is currently offline  Santosh88
Messages: 4
Registered: November 2019
Member
Dear Liz

I have already checked the The Guide to DHS statistics but I Could not found.
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 next message
Liz-DHS
Messages: 1414
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.
Re: Calculation of Sex ratio at birth and chld sex ratio using DHS survey [message #18393 is a reply to message #18390] Fri, 22 November 2019 02:02 Go to previous message
Santosh88 is currently offline  Santosh88
Messages: 4
Registered: November 2019
Member
Dear Liz,

Thank you so much for providing the code, I got the solution.

Thanking you
Previous Topic: Total Fertility Rates for India
Goto Forum:
  


Current Time: Thu Dec 12 20:13:33 Eastern Standard Time 2019