The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Family structure
Re: Family structure [message #8528 is a reply to message #8474] Mon, 09 November 2015 07:49 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3139
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:


The way I do it, household structure variables are calculated just from the PR file. You construct codes for all household members and then collapse. Here's an example. Say that I wanted to classify households just in the following way: (1) households with no male age 15-59 in the household, and (2) all others.

gen adult_males=0
replace adult_males=1 if hv104==1 & hv105>=15 & hv105<=59

collapse (sum) adult_males, by (hv001 hv002)

gen household_type=1
replace household_type=2 if adult_males>0
drop adult_males
label define household_type 1 "No adult males" 2 "1+ adult males"
label values household_type household_type
tab household_type

I don't see how the categories "single family", "nuclear family", and "extended family" are complete and mutually exclusive. I'm not even sure what "single family" means. (I could guess....)

Let me know if you need more suggestions.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SVY command
Next Topic: Multilevel modeling in DHS-Sri Lanka
Goto Forum:
  


Current Time: Mon Aug 19 07:23:12 Coordinated Universal Time 2024