The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in SPSS » computation of sex composition
computation of sex composition [message #8379] Mon, 19 October 2015 09:45 Go to next message
devraj is currently offline  devraj
Messages: 9
Registered: January 2015
Location: India
Member

Respected sir,


My question regarding, how to create sex composition variable using Kid file data, I want categories like 1. No sons and no daughters, 2. number of son greater than daughters, 3. number of son less than daughters and 4. equal number of sons and daughters.

so, please give suggestion on this
Re: computation of sex composition [message #8386 is a reply to message #8379] Wed, 21 October 2015 12:49 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3214
Registered: February 2013
Senior Member
Following is a response from Senior DHS Data Processing Specialist, Noureddine Abderrahim:

You need to count the number of boys and the number of girls for a given respondent using the variable B4 which is the sex of the child (more on the recode variables can be found in the DHS Recode Manual which can be downloaded from the www.DHSprogram.com website), then compare these two sums. The syntax will depend on the software you are using.

Re: computation of sex composition [message #8399 is a reply to message #8379] Fri, 23 October 2015 01:04 Go to previous messageGo to next message
devraj is currently offline  devraj
Messages: 9
Registered: January 2015
Location: India
Member

Respected sir,
Sorry, but I can't find any syntax or information about sex composition in DHS recode manual. If it is possible give some example with syntax using stata.
Re: computation of sex composition [message #8572 is a reply to message #8399] Tue, 17 November 2015 10:00 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3214
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:


In the IR files, all cases are women, except that in the AIDS Indicator Surveys, the IR file includes both men and women, with codes aidsex=1 and aidsex=2, respectively. In the MR files, all the cases are men.

In the PR files, sex is given by hv104, which is 1 for males and 2 for females. In the KR and BR files, sex is given by b4, which is 1 for boys and 2 for girls.

To get the sex composition in a PR file, for example, enter "tab hv104" for the unweighted distribution. Enter "tab hv104 [iweight=hv005/1000000]" for the weighted distribution.
Previous Topic: Decoding Calendar Data provided in DHS in SPSS
Next Topic: About Merging Data file
Goto Forum:
  


Current Time: Fri Dec 27 08:48:50 Coordinated Universal Time 2024