The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » child immunization
Re: child immunization [message #24599 is a reply to message #24598] Mon, 06 June 2022 13:41 Go to previous messageGo to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member


You can use the following command. For the KR file you should actually use bidx not b16.

egen ID=group(v001 v002 v003 bidx)

This will just number the children from 1 to N.
The following would give you the same ID.

gen ID2 = _n

Best,
Shireen
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: questionnaire and dataset
Next Topic: Child vaccination
Goto Forum:
  


Current Time: Fri Jul 12 20:35:23 Coordinated Universal Time 2024