The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Other countries » Burundi 2010 V781 (Ever been tested for HIV)
Re: Burundi 2010 V781 (Ever been tested for HIV) [message #8576 is a reply to message #8569] Tue, 17 November 2015 18:59 Go to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 805
Registered: January 2013
Senior Member
This is a mistake in the application that constructs the recode file. Most of the cases coded as 9 should be code 0.

The logic used in CSPro was as follows:
    { ever been tested for AIDS }
    if Q916 = 1 | Q922 = 1 | Q926 = 1 then
      V781 = 1
    elseif Q916 = missing | Q922 = notappl | Q926 = missing then
      V781 = missing
    else
      V781 = 0
    endif;

[missing is code 9, and notappl is the equivalent of . in Stata]

in the above code, the test for Q922 should have tested for missing, not notappl.

Fortunately the information from Q922 is also stored elsewhere in the recode file in V840A, and you can correct the case as follows (in Stata):
replace v781 = 0 if v781 == 9 & v840a == . & v840!= 9
replace v781 = 9 if v781 == 0 & v840a == 9
 
Read Message
Read Message
Read Message
Previous Topic: Ghana DHS survey
Next Topic: Colombia DHS contact
Goto Forum:
  


Current Time: Tue Feb 4 05:46:36 Coordinated Universal Time 2025