Re: Need information about some variables. [message #18098 is a reply to message #17908] |
Mon, 16 September 2019 12:59 |
Trevor-DHS
Messages: 805 Registered: January 2013
|
Senior Member |
|
|
Dear Tania
The century day code (CDC) variables do not exist for this survey as day of birth was not asked in the birth history for the Bangladesh DHS 2014. Century day code variables were added to the DHS standard shortly after this survey was conducted. However, it would be possible to get the day of birth from the PR file for children weighed and measured, where the day of birth is also asked (see hc16). You could use this to produce the CDC with the mdy function.
gen CDC = mdy(m, d, y) + 21916
where m = month (, d = day, y = year of birth, e.g.
gen CDCdob = mdy(hc30, hc16, hc31) + 21916
|
|
|