The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Duplicated label categories
Duplicated label categories [message #17802] Wed, 05 June 2019 16:54 Go to next message
ozak is currently offline  ozak
Messages: 5
Registered: May 2019
Member
Hi,

I noticed that e.g. in file ZWIR52DT.ZIP, the included Stata file has duplicated code for some labels. E.g. in variable h46a_1 field worker is coded as 15 & 25 (see below). Any reason for this? Are these different types of field workers or is this an error?

. tab h46a_1

place first sought |
treatment for fever | Freq. Percent Cum.
---------------------------+-------------------------------- ---
government health center | 3 0.75 0.75
government health post | 41 10.20 10.95
mobile clinic | 75 18.66 29.60
field worker | 60 14.93 44.53
other public | 17 4.23 48.76
private hospital, clinic | 1 0.25 49.00
pharmacy | 27 6.72 55.72
private doctor | 9 2.24 57.96
private mobile clinic | 49 12.19 70.15
field worker | 1 0.25 70.40
other private | 81 20.15 90.55
shop | 14 3.48 94.03
other | 24 5.97 100.00
---------------------------+-------------------------------- ---
Total | 402 100.00

. tab h46a_1, nol

place first |
sought |
treatment |
for fever | Freq. Percent Cum.
------------+-----------------------------------
12 | 3 0.75 0.75
13 | 41 10.20 10.95
14 | 75 18.66 29.60
15 | 60 14.93 44.53
16 | 17 4.23 48.76
21 | 1 0.25 49.00
22 | 27 6.72 55.72
23 | 9 2.24 57.96
24 | 49 12.19 70.15
25 | 1 0.25 70.40
26 | 81 20.15 90.55
31 | 14 3.48 94.03
96 | 24 5.97 100.00
------------+-----------------------------------
Total | 402 100.00

Re: Duplicated label categories [message #17803 is a reply to message #17802] Wed, 05 June 2019 17:40 Go to previous message
ozak is currently offline  ozak
Messages: 5
Registered: May 2019
Member
Seems this issue is more general and happens in many datasets, which makes importing into programs for preprocessing (e.g., Python Pandas) problematic.
Previous Topic: Additional versions in Zip File
Goto Forum:
  


Current Time: Mon Jun 17 13:38:00 Eastern Daylight Time 2019