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 #8536 is a reply to message #8528] Wed, 11 November 2015 03:40 Go to previous messageGo to previous message
Sadhara is currently offline  Sadhara
Messages: 2
Registered: October 2015
Location: South Africa
Member
Thank you for the feedback on how to create the "family structure". In my study, my supervisor has asked me to consider the individual file (women recode) only. Which means I am creating an outcome variable "family structure' for women age 15-49 only categorised as:

single family: a woman alone taking care of biological children
Nuclear family: a woman staying with her husband alone or with of children
Extended family: a woman alone or with her husband taking care of children including other members like grandmother, unlce, aunt, grandson etc.

Below is what I have tried to come up with and I am not sure if it is the right thing:

***GENERATING DEPENDENT VARIABLE "FAMILY STRUCTURE"***/

***Categories: "Sinlge Family", "Nuclear Family" and "Extended Family"

***Tabulating and checking children ever born*/
rename v201 child_ever_born
ta child_ever_born
ta child_ever_born, m nol

***Tabulating and checking current marital status*/
rename v501 marital_status
ta marital_status
ta marital_status, m nol

***Tabulating and checking relationship to household head*/
rename v150 relationship_hhead
ta relationship_hhead
ta relationship_hhead, m nol

***Generating single_family_structure*/
gen fsm=0
replace fsm=1 if marital_status==0|marital_status==3|marital_status==4|marita l_status==5&child_ever_born!=0
replace fsm=2 if marital_status==1|marital_status==2&child_ever_born!=0
replace fsm=3 if fsm==0|relationship_hhead==3|relationship_hhead==4|relations hip_hhead==5|relationship_hhead==6|relationship_hhead==7|rel ationship_hhead==8|relationship_hhead==9|relationship_hhead= =10|relationship_hhead==11|relationship_hhead==12&child_ ever_born!=0
ta fsm
 
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: Sun Dec 1 17:29:31 Coordinated Universal Time 2024