The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Linking child data with parentals information (DHS 2015 Colombia)
Re: Linking child data with parentals information [message #20222 is a reply to message #17795] Sun, 11 October 2020 12:17 Go to previous messageGo to previous message
ronaldmusi is currently offline  ronaldmusi
Messages: 3
Registered: June 2020
Member
Hello, Thanks for helping out. I am trying to replicate Table 2.1 0 Birth registration of children under age 5 for Zimbabwe DHS 2015. Using the attached code I have successfully coded other background variables. Now am having trouble with maternal variables eg education. which variable should I use for mothers education.
****constructing child registration variable
recode hv140 (0=0) (1/2=1) (else = 0) if hv102==1 & hv105<5, gen(birthreg)
label var birthreg " birth registered "
lab def birthreg 0 "not registered" 1 "registered"
lab val birthreg birthreg
svy:tab birthreg
tab birthreg[iweight=wt]


***Mother's highest educational level
recode v106 (0=0)(1=1)(2=2)(3=3) if hv102==1 & hv105<5, gen(Mothereducation222)
label var Mothereducation222 "Mother's highest educational level"
lab def Mothereducation2 0 "No education" 1 "Primary" 2 "Secondary" 3 "Higher"
lab val Mothereducation2 Mothereducation2
ta Mothereducation222 [iweight=wt]
tab Mothereducation22 birthreg [iweight=wt], row col
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Merging Egypt 2000 KR and HW files
Next Topic: Survey identifiers
Goto Forum:
  


Current Time: Sat Oct 5 10:12:47 Coordinated Universal Time 2024