The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » HIV » comprehensive knowledge of HIV AIDS
Re: comprehensive knowledge of HIV AIDS [message #12350 is a reply to message #11571] Wed, 03 May 2017 22:37 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 789
Registered: January 2013
Senior Member
Its a pretty easy conversion of the SPSS code to Stata, but here it is:
* A healthy-looking person can have the AIDS virus.
gen healthy = 1 if v756 == 1
label var healthy "A healthy-looking person can have the AIDS virus"
label def Healthy 1 "A healthy-looking person can have the AIDS virus"
label val healthy Healthy

* The AIDS virus cannot be transmitted by mosquito bites [COUNTRY SPECIFIC].
gen mosquito = 1 if v754jp == 0 
label var mosquito "The AIDS virus cannot be transmitted by mosquito bites [COUNTRY SPECIFIC]"
label def Mosquito 1 "The AIDS virus cannot be transmitted by mosquito bites [COUNTRY SPECIFIC]"
label val mosquito Mosquito

* The AIDS virus cannot be transmitted by supernatural means [COUNTRY SPECIFIC] .
gen snmeans = 1 if v823 == 0
label var snmeans "The AIDS virus cannot be transmitted by supernatural means [COUNTRY SPECIFIC]"
label def SNmeans 1 "The AIDS virus cannot be transmitted by supernatural means [COUNTRY SPECIFIC]"
label val snmeans SNmeans

* A person cannot become infected by sharing food with a person who has the AIDS virus [COUNTRY SPECIFIC] .
gen sfood = 1 if v754wp == 0 
label var sfood "A person cannot become infected by sharing food with a person who has the AIDS virus [COUNTRY SPECIFIC]"
label def SFood 1 "A person cannot become infected by sharing food with a person who has the AIDS virus [COUNTRY SPECIFIC]"
label val sfood SFood

* The two most common local misconception.
* Need to pick the two most common misconceptions - typically mosquito bites and sharing food - but this can vary from survey to survey.
gen msconcep = 0
replace msconcep = 1 if mosquito == 1
* if sharing food is more a more common misconception than supernatural means, use the next line
replace msconcep = msconcep + 1 if sfood == 1
* if supernatural means is a more common misconception than sharing food, use the next line instead
*replace msconcep = msconcep + 1 if snmeans == 1

* A healthy-looking person can have the AIDS virus and who reject the two most common local misconceptions.
gen mcreject = 0
replace mcreject = 1 if healthy == 1 & msconcep == 2
label var mcreject "Percentage who say that a healthy-looking person can have the AIDS virus and who reject the two most common local misconceptions"
label def MCReject 1 "Percentage who say that a healthy-looking person can have the AIDS virus and who reject the two most common local misconceptions"
label val mcreject MCReject

* Percentage with a comprehensive knowledge about AIDS.
gen knowaids = 0.
replace knowaids = 1 if v754cp == 1 & v754dp == 1 & healthy == 1 & msconcep == 2
label var knowaids "Percentage with a comprehensive knowledge about AIDS"
label def knowAIDS 1 "Percentage with a comprehensive knowledge about AIDS"
label val knowaids knowAIDS
For Zambia 2007 where supernatural means is a more common misconception than sharing food, comment out the replace command for sfood, and uncomment the replace command for snmeans instead.
 
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: Women/Children HIV/TB Status Tracking Variable (Nigeria)
Next Topic: Maternal and Child HIV status
Goto Forum:
  


Current Time: Thu Apr 25 04:18:18 Coordinated Universal Time 2024